Skip to main content

query.trading_account.list

List trading accounts.

Method

query.trading_account.list

Description

Returns a list of trading accounts associated with the current user. Filter by venue, account status, or specific account IDs.

Parameters

FieldTypeRequiredDescription
tradingAccountIdstringNoFilter by specific account ID
venuestringNoFilter by venue (e.g., "BINANCE")
statusstringNoFilter by status (CONNECTED, DISCONNECTED, DISABLED)
limitintegerNoMaximum results (default: 100)
offsetintegerNoPagination offset

Result

Returns an array of trading account objects.

Trading Account Object

FieldTypeDescription
tradingAccountIdstringUnique account identifier (UUID)
externalTradingAccountIdstringExchange account ID
venuestringExchange venue
nicknamestringUser-defined account name
accountTypestringAccount type (SPOT, MARGIN, FUTURES)
credentialsarrayAssociated credentials
statusstringAccount status
createdAtintegerCreation timestamp (ms)
updatedAtintegerLast update timestamp (ms)

Account Status Values

StatusDescription
CONNECTEDAccount is active and connected
DISCONNECTEDAccount is disconnected
DISABLEDAccount is disabled

Usage

# List all accounts
result = await client.rpc("query.trading_account.list", {})

# List accounts by venue
result = await client.rpc("query.trading_account.list", {
"venue": "BINANCE",
"status": "CONNECTED"
})

Example Response

{
"data": [
{
"tradingAccountId": "550e8400-e29b-41d4-a716-446655440000",
"externalTradingAccountId": "123456789",
"venue": "BINANCE",
"nickname": "Main Trading Account",
"accountType": "SPOT",
"status": "CONNECTED",
"credentials": [
{
"credentialId": "660e8400-e29b-41d4-a716-446655440001",
"venue": "BINANCE",
"status": "VERIFIED"
}
],
"createdAt": 1703052635110,
"updatedAt": 1703052635110
}
],
"pagination": {
"offset": 0,
"limit": 100,
"total": 3
}
}