Withdraw from MT5 Account
POST /public/v1/mt5/accounts/{login}/withdrawal
Path Variables
| Name | Type | Required | Rule | Description |
|---|---|---|---|---|
| login | number | Mandatory | the login of MT5 account |
Request Body
| Key | Type | Required | Rule | Description |
|---|---|---|---|---|
| connection_id | string | Mandatory | MT5 Server ID given by this API | |
| currency | string | Mandatory | currency code | |
| amount | string | Mandatory | decimal (20, 8) | withdrawal amount |
| comment | string | Mandatory | MT5 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 | response | | --- | --- | --- | | 400 | mt5_connection_not_found | Cannot find connection from given connection_id | | 400 | mt5_account_not_found | Cannot find MT5 account | | 400 | insufficient_funds | Not enough amount for withdrawal | | 200 | | Comment cannot repeat in 2 minutes | { repeat: true }