API reference
Get multiple accounts
GET | QUERY
https://api.tradesync.com/accountsReturn a paginated list of accounts with an individual connection status and, once the account has connected, last_ping. See Connection health and restrictions for how to interpret these fields.
Last updated
Filters
All filters are optional. See Filtering and Pagination.
- idType: integer
- Account IDAccepted values / limits: 1 to 9999999999999999999
- idsType: string
- Account IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 19 digits per ID
- last_ping_startType: string
- Last ping at or after this timeAccepted values / limits: UTC datetime (YYYY-MM-DDTHH:MM:SSZ)
- last_ping_endType: string
- Last ping at or before this timeAccepted values / limits: UTC datetime (YYYY-MM-DDTHH:MM:SSZ)
- filter_idType: integer
- Saved accounts filter belonging to the user; overrides id and idsAccepted values / limits: —
The last_ping_start and last_ping_end filters select accounts using the stored timestamp. The response uses the cached timestamp when available, so a returned last_ping can differ from the value used for filtering.
Response example
See response field definitions for field types and conditional fields.
Example for MT4 accounts. Fields vary with the application and whether the account has connected.
{
"result": "success",
"status": 200,
"meta": {
"count": 2,
"limit": 1000,
"order": "desc",
"last_id": 1241451
},
"data": [
{
"id": 1241453,
"created_at": "2025-04-23T14:15:50Z",
"updated_at": "2025-04-25T11:27:17Z",
"restored_at": "2025-04-25T11:26:35Z",
"application": "mt4",
"type": "full",
"account_name": "Test account 1",
"account_number": 5449295,
"password": "KSaaog",
"broker_server_id": 119,
"status": "connection_ok",
"login_response": null,
"modify_disabled": "no",
"last_ping": "2025-04-25T14:12:34Z",
"broker": "ActivTrades Plc",
"client_name": "ben mcmullan",
"server": "Activtrades-Demo",
"trade_mode": "demo",
"leverage": 30,
"is_demo": "no",
"suffix": "",
"currency": "USD",
"balance": 20123.99,
"credit": 0,
"equity": 20388.31,
"free_margin": 5047.24,
"used_margin": 15341.07,
"open_trades": 4,
"pending_orders": 0,
"open_trades_lots": 4,
"pending_orders_lots": 0,
"daily_profit": -5.61,
"weekly_profit": 123.99,
"monthly_profit": 123.99,
"total_profit": 123.99,
"account_identifier": 5449295,
"integration": "terminal",
"proxy_server_id": null,
"follower_only": "no",
"broker_offset": 0
},
{
"id": 1241451,
"created_at": "2025-04-23T14:12:47Z",
"updated_at": "2025-04-25T11:27:02Z",
"restored_at": "2025-04-25T11:26:21Z",
"application": "mt4",
"type": "full",
"account_name": "Test account 2",
"account_number": 5449289,
"password": "BUfnpv",
"broker_server_id": 119,
"status": "connection_ok",
"login_response": null,
"modify_disabled": "no",
"last_ping": "2025-04-25T14:13:02Z",
"broker": "ActivTrades Plc",
"client_name": "ben mcmullan",
"server": "Activtrades-Demo",
"trade_mode": "demo",
"leverage": 1,
"is_demo": "no",
"suffix": "",
"currency": "USD",
"balance": 100000.74,
"credit": 0,
"equity": 100021.2,
"free_margin": 95288.13,
"used_margin": 4733.07,
"open_trades": 6,
"pending_orders": 0,
"open_trades_lots": 0.06,
"pending_orders_lots": 0,
"daily_profit": 0,
"weekly_profit": 0.74,
"monthly_profit": 0.74,
"total_profit": 0.74,
"account_identifier": 5449289,
"integration": "terminal",
"proxy_server_id": null,
"follower_only": "no",
"broker_offset": 0
}
]
}
Errors
| Code | HTTP status | Condition |
|---|---|---|
| filter_does_not_exist | 422 | The saved filter does not exist or does not belong to the user. |
See also common response codes.