Deposit into MT4 Account
POST
/public/v1/mt4/accounts/{login}/deposit
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) | deposit amount |
comment | string | Mandatory | MT4 deposit 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 deposit | |
send_pop_up | boolean | Optional | send CRM user an in-app popup for deposit | |
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 |