Close Trading Account
API URL: DELETE https://userapi-demo.s2f.projectx.com/TradingAccount/close/{tradingAccountId}
API Reference: /TradingAccount/close/{tradingAccountId}
Description
Close a Trading Account. This operation changes the status of a Trading Account to 'Closed.'
Trading Accounts should be closed to avoid billing for 'dormant accounts.' It is within the purview of the Firm to close accounts at appropriate times (i.e. when a Trader passes an evaluation / when a Trader cancels their subscription).
Parameters
| Name | Type | Description | Required | Nullable |
|---|---|---|---|---|
| tradingAccountId | integer | The Trading Account's id. | Required | false |
Example Usage
Example Request
- cURL Request
curl -X 'DELETE' \
'https://userapi-demo.s2f.projectx.com/TradingAccount/close/7' \
-H 'accept: application/json'
Example Response
- Success
- Error
Error: response status is 401