Withdraw from MT4 Account
POST /public/v1/mt4/accounts/{login}/withdrawal
Path Variables
| Name | Type | Required | Rule | Description |
|---|---|---|---|---|
| login | number | Mandatory | the login of MT4 account |
Request Body
| Key | Type | Required | Rule | Description |
|---|---|---|---|---|
| connection_id | string | Mandatory | MT4 Server ID given by this API | |
| currency | string | Mandatory | currency code | |
| amount | string | Mandatory | decimal (20, 8) | withdrawal amount |
| comment | string | Mandatory | MT4 withdrawal comment | |
| user_id | string | Optional | length 8 | CRM user that binds to this trading account |
| send_email | boolean | Optional | send CRM user an email for withdrawal | |
| send_pop_up | boolean | Optional | send CRM user an in-app popup for withdrawal | |
| language | string | Optional | language code | user language for email/popup |
Expected HTTP status code
- 204
Error
| Code | Type | Description |
|---|---|---|
400 | mt4_connection_not_found | Cannot find connection from given connection_id |
400 | mt4_account_not_found | Cannot find MT4 account |
400 | insufficient_funds | Not enough amount for withdrawal |