Skip to main content

List Accounts

List trading accounts.

Endpoint

GET /api/v3/tradingAccount/list

Description

Retrieves a list of all trading accounts belonging to the authenticated user, with optional filtering.

Authentication

Requires Bearer token authentication.

Authorization: Bearer {access_token}

Request Parameters

ParameterTypeRequiredDescription
tradingAccountIdstringNoFilter by specific account ID
venuestringNoFilter by exchange venue
statusstringNoFilter by status (ACTIVE, DISABLED, DISCONNECTED)
limitintegerNoMaximum results (default: 10, max: 100)
offsetintegerNoNumber of results to skip

Response

Returns an array of trading account objects.

FieldTypeDescription
tradingAccountIdstringUnique trading account identifier
userIdstringUser ID
venuestringExchange venue
namestringTrading account name
accountTypestringAccount type (SPOT, MARGIN, FUTURES)
statusstringAccount status
createdAtintegerCreation timestamp (milliseconds)
updatedAtintegerLast update timestamp (milliseconds)

Usage

import requests

headers = {"Authorization": f"Bearer {access_token}"}

# List all trading accounts
response = requests.get(
"https://cadenza-api-uat.algo724.com/api/v3/tradingAccount/list",
headers=headers
)

accounts = response.json()["data"]
for account in accounts:
print(f"{account['venue']}: {account['name']} ({account['status']})")

# List only active Binance accounts
response = requests.get(
"https://cadenza-api-uat.algo724.com/api/v3/tradingAccount/list",
headers=headers,
params={
"venue": "BINANCE",
"status": "ACTIVE"
}
)
curl "https://cadenza-api-uat.algo724.com/api/v3/tradingAccount/list?venue=BINANCE&status=ACTIVE" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."

Example Response

{
"data": [
{
"tradingAccountId": "550e8400-e29b-41d4-a716-446655440000",
"userId": "user-uuid-here",
"venue": "BINANCE",
"name": "My Binance Account",
"accountType": "SPOT",
"status": "ACTIVE",
"createdAt": 1703052635110,
"updatedAt": 1703052635110
},
{
"tradingAccountId": "550e8400-e29b-41d4-a716-446655440001",
"userId": "user-uuid-here",
"venue": "COINBASE",
"name": "My Coinbase Account",
"accountType": "SPOT",
"status": "ACTIVE",
"createdAt": 1703052600000,
"updatedAt": 1703052600000
}
],
"success": true,
"errno": 0,
"error": null,
"pagination": {
"offset": 0,
"limit": 10,
"total": 2
}
}

Error Responses

HTTP CodeErrorDescription
400Invalid requestInvalid parameter values
401UnauthorizedInvalid or expired access token

Notes

  • Only trading accounts owned by the authenticated user are returned
  • Use the tradingAccountId for trading operations and portfolio queries
  • Accounts with status DISCONNECTED are no longer usable for trading
  • Use pagination for users with many trading accounts