Delete account
About
Stops and deletes an API server for a specified MetaTrader account. The terminal state such as downloaded market data history will be deleted as well when you delete the account.
DELETE /users/current/accounts/:accountId
For more information see swagger documentation
Headers
Name | Type | Required | Description |
---|---|---|---|
auth-token | string | Yes | Authorization token. See Authentication and authorization |
Path parameters
Name | Type | Required | Description |
---|---|---|---|
accountId | string | Yes | Id of the account to be deleted |
Response
- 204 - MetaTrader account with specified id has been deleted.
- 401 - Authorization failed. Response schema: Error
- 404 - Account with specified id was not found. Response schema: Error
Examples
Example request:
curl -X DELETE --header 'Accept: application/json' --header 'auth-token: token' 'https://mt-provisioning-api-v1.agiliumtrade.agiliumtrade.ai/users/current/accounts/1eda642a-a9a3-457c-99af-3bc5e8d5c4c9'