command.trading_account.disable
Disable a trading account.
Method
command.trading_account.disable
Description
Disables a trading account. Disabled accounts cannot submit new orders but remain connected for monitoring purposes.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
tradingAccountId | string | Yes | Trading account ID to disable |
Result
Returns the updated trading account object.
Trading Account Object
| Field | Type | Description |
|---|---|---|
tradingAccountId | string | Unique account identifier |
venue | string | Exchange venue |
status | string | Updated status (DISABLED) |
updatedAt | integer | Last update timestamp (ms) |
Usage
result = await client.rpc("command.trading_account.disable", {
"tradingAccountId": "550e8400-e29b-41d4-a716-446655440000"
})
Example Response
{
"tradingAccountId": "550e8400-e29b-41d4-a716-446655440000",
"externalTradingAccountId": "123456789",
"venue": "BINANCE",
"nickname": "Main Binance Account",
"accountType": "SPOT",
"status": "DISABLED",
"updatedAt": 1703152635110
}
Notes
- Disabling does not cancel existing open orders
- Account subscriptions remain active for monitoring
- Use
command.trading_account.enableto restore trading