Download OpenAPI specification:Download
OpenAPI Specification for Algo724 Cadenza Fermata API
Root endpoint providing API metadata, version information, and available endpoints
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "name": "Algo724 Cadenza Fermata API",
- "version": "3.0.1",
- "description": "Unified trading platform for connecting to multiple venues, executing orders, and accessing real-time market data",
}
}Health check endpoint for monitoring service status and dependencies. No authentication required - designed for load balancers, Kubernetes probes, and monitoring systems.
{- "status": "healthy",
- "timestamp": 1632933600000,
- "isoDateTime": "2023-09-29T12:00:00.000Z",
- "version": "3.0.1",
- "checks": {
- "database": {
- "status": "healthy"
}, - "temporal": {
- "status": "healthy"
}, - "redis": {
- "status": "healthy"
}
}
}Create a new user account with email and password
| email required | string <email> User email address |
| password required | string >= 8 characters User password (minimum 8 characters) |
object Optional user metadata |
{- "email": "user@example.com",
- "password": "securepassword123",
- "metadata": { }
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "phone": "string",
- "emailConfirmedAt": "2019-08-24T14:15:22Z",
- "phoneConfirmedAt": "2019-08-24T14:15:22Z",
- "lastSignInAt": "2019-08-24T14:15:22Z",
- "role": "authenticated",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "appMetadata": {
- "tenantId": "string",
- "environments": [
- "string"
]
}, - "userMetadata": { }
}
}Authenticate user and return access/refresh tokens
| email required | string <email> User email address |
| password required | string User password |
{- "email": "user@example.com",
- "password": "securepassword123"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "accessToken": "string",
- "refreshToken": "string",
- "tokenType": "bearer",
- "expiresIn": 3600,
- "expiresAt": 0,
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "phone": "string",
- "emailConfirmedAt": "2019-08-24T14:15:22Z",
- "phoneConfirmedAt": "2019-08-24T14:15:22Z",
- "lastSignInAt": "2019-08-24T14:15:22Z",
- "role": "authenticated",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "appMetadata": {
- "tenantId": "string",
- "environments": [
- "string"
]
}, - "userMetadata": { }
}
}
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": "ok"
}Get new access token using refresh token
| refreshToken required | string Refresh token from previous login |
{- "refreshToken": "string"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "accessToken": "string",
- "refreshToken": "string",
- "tokenType": "bearer",
- "expiresIn": 3600,
- "expiresAt": 0,
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "phone": "string",
- "emailConfirmedAt": "2019-08-24T14:15:22Z",
- "phoneConfirmedAt": "2019-08-24T14:15:22Z",
- "lastSignInAt": "2019-08-24T14:15:22Z",
- "role": "authenticated",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "appMetadata": {
- "tenantId": "string",
- "environments": [
- "string"
]
}, - "userMetadata": { }
}
}
}Get the currently authenticated user's information
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "phone": "string",
- "emailConfirmedAt": "2019-08-24T14:15:22Z",
- "phoneConfirmedAt": "2019-08-24T14:15:22Z",
- "lastSignInAt": "2019-08-24T14:15:22Z",
- "role": "authenticated",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "appMetadata": {
- "tenantId": "string",
- "environments": [
- "string"
]
}, - "userMetadata": { }
}
}Update the currently authenticated user's information
string <email> New email address | |
| password | string >= 8 characters New password (minimum 8 characters) |
object User metadata to update |
{- "email": "user@example.com",
- "password": "stringst",
- "metadata": { }
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "phone": "string",
- "emailConfirmedAt": "2019-08-24T14:15:22Z",
- "phoneConfirmedAt": "2019-08-24T14:15:22Z",
- "lastSignInAt": "2019-08-24T14:15:22Z",
- "role": "authenticated",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "appMetadata": {
- "tenantId": "string",
- "environments": [
- "string"
]
}, - "userMetadata": { }
}
}Send password recovery email to user
| email required | string <email> Email address to send recovery link |
{- "email": "user@example.com"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": "ok"
}Submit a new trade order
| tradingAccountId required | string <uuid> (uuidString) UUID string |
| instrumentId required | string (instrumentId) Instrument ID in format {VENUE}:{BASE}/{QUOTE} |
| idempotencyKey | string (idempotencyKey) Idempotency key to prevent duplicate request processing |
| clientOrderId | string (clientOrderId) Client-provided order ID, used as idempotency key |
| orderSide required | string (orderSide) Enum: "BUY" "SELL" "UNKNOWN" Order side (buy or sell) |
| orderType required | string (orderType) Enum: "" "MARKET" "LIMIT" "STOP" "STOP_LIMIT" "STOP_LOSS" "STOP_LOSS_LIMIT" "TAKE_PROFIT" "TAKE_PROFIT_LIMIT" "TRAILING_STOP" "QUOTED" "UNKNOWN" Order type |
| limitPrice | string (decimal) ^-?\d+(\.\d+)?$ Decimal value as string to preserve precision |
| stopPrice | string (decimal) ^-?\d+(\.\d+)?$ Decimal value as string to preserve precision |
| quantity required | string (decimal) ^-?\d+(\.\d+)?$ Decimal value as string to preserve precision |
| quantityType | string (orderQuantityType) Enum: "BASE" "QUOTE" "POSITION_RATIO" "POSITION_PERCENTAGE" How order quantity is specified |
| quantityRounding | string (quantityRounding) Default: "" Enum: "" "UP" "DOWN" "NEAREST" "CEIL" "FLOOR" "HALF_UP" "HALF_DOWN" "HALF_EVEN" Quantity rounding strategy to meet lot size requirements. Empty string means no rounding. |
| positionId | string <uuid> (uuidString) UUID string |
| timeInForce | string (timeInForce) Enum: "" "GTC" "IOC" "FOK" "GTD" "DAY" "GTX" "OPG" "CLS" "GFA" "GFS" "GTM" "MOO" "MOC" "EXT" "UNKNOWN" Time in force - specifies how long an order remains active |
| expireAt | integer <int64> (millisecond) Unix timestamp in milliseconds |
| quoteId | string <uuid> (uuidString) UUID string |
| leverage | integer Leverage |
| awaitClosed | boolean Default: false If true, the API will wait up to 1 second for the order to reach a closed/finalized state (FILLED, REJECTED, EXPIRED, CANCELLED) before responding. If false or omitted, returns immediately with the initial order state. Useful for market orders that typically fill immediately. |
{- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "instrumentId": "BINANCE:BTC/USDT",
- "idempotencyKey": "my_unique_request_id",
- "clientOrderId": "client_order_12345",
- "orderSide": "BUY",
- "orderType": "LIMIT",
- "limitPrice": "1234.56789000",
- "stopPrice": "1234.56789000",
- "quantity": "1234.56789000",
- "quantityType": "BASE",
- "quantityRounding": "DOWN",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "timeInForce": "GTC",
- "expireAt": 1632933600000,
- "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7",
- "leverage": 0,
- "awaitClosed": true
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "tradeOrderId": "85df4133-2159-4db1-a117-d20455178752",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "venue": "BINANCE",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "instrumentId": "BINANCE:BTC/USDT",
- "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7",
- "baseAsset": "BTC",
- "quoteAsset": "USDT",
- "orderSide": "BUY",
- "orderType": "LIMIT",
- "timeInForce": "GTC",
- "status": "FILLED",
- "rejectReason": "string",
- "cancelReason": "string",
- "limitPrice": "1234.56789000",
- "stopPrice": "1234.56789000",
- "quantity": "1234.56789000",
- "orderQuantityType": "BASE",
- "quantityRounding": "DOWN",
- "executedPrice": "1234.56789000",
- "executedQuantity": "1234.56789000",
- "executedCost": "1234.56789000",
- "fees": [
- {
- "security": "BINANCE:BTC",
- "asset": "BTC",
- "venue": "BINANCE",
- "quantity": "1234.56789000"
}
], - "executions": [
- {
- "executionId": "fc49a52d-e069-4441-83c6-8d779c937dd9",
- "externalTradeId": "binance-exec-12345",
- "venue": "BINANCE",
- "instrumentId": "BINANCE:BTC/USDT",
- "orderSide": "BUY",
- "executedQuantity": "1234.56789000",
- "executedPrice": "1234.56789000",
- "executedCost": "1234.56789000",
- "fees": [
- {
- "security": "BINANCE:BTC",
- "asset": "BTC",
- "venue": "BINANCE",
- "quantity": "1234.56789000"
}
], - "executedAt": 1632933600000,
- "executedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "expireAt": 1632933600000,
- "expireAtDateTime": "2019-08-24T14:15:22Z",
- "canceledAt": 1632933600000,
- "canceledAtDateTime": "2019-08-24T14:15:22Z"
}
]
}Cancel an existing trade order
| tradingAccountId required | string <uuid> (uuidString) UUID string |
| tradeOrderId required | string <uuid> (uuidString) UUID string |
{- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "tradeOrderId": "85df4133-2159-4db1-a117-d20455178752"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "tradeOrderId": "85df4133-2159-4db1-a117-d20455178752",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "venue": "BINANCE",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "instrumentId": "BINANCE:BTC/USDT",
- "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7",
- "baseAsset": "BTC",
- "quoteAsset": "USDT",
- "orderSide": "BUY",
- "orderType": "LIMIT",
- "timeInForce": "GTC",
- "status": "FILLED",
- "rejectReason": "string",
- "cancelReason": "string",
- "limitPrice": "1234.56789000",
- "stopPrice": "1234.56789000",
- "quantity": "1234.56789000",
- "orderQuantityType": "BASE",
- "quantityRounding": "DOWN",
- "executedPrice": "1234.56789000",
- "executedQuantity": "1234.56789000",
- "executedCost": "1234.56789000",
- "fees": [
- {
- "security": "BINANCE:BTC",
- "asset": "BTC",
- "venue": "BINANCE",
- "quantity": "1234.56789000"
}
], - "executions": [
- {
- "executionId": "fc49a52d-e069-4441-83c6-8d779c937dd9",
- "externalTradeId": "binance-exec-12345",
- "venue": "BINANCE",
- "instrumentId": "BINANCE:BTC/USDT",
- "orderSide": "BUY",
- "executedQuantity": "1234.56789000",
- "executedPrice": "1234.56789000",
- "executedCost": "1234.56789000",
- "fees": [
- {
- "security": "BINANCE:BTC",
- "asset": "BTC",
- "venue": "BINANCE",
- "quantity": "1234.56789000"
}
], - "executedAt": 1632933600000,
- "executedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "expireAt": 1632933600000,
- "expireAtDateTime": "2019-08-24T14:15:22Z",
- "canceledAt": 1632933600000,
- "canceledAtDateTime": "2019-08-24T14:15:22Z"
}
}List trade orders with filtering options
| tradeOrderId | string <uuid> (uuidString) Trade order ID |
| orderStatus | string (orderStatus) Enum: "" "CREATED" "SUBMITTED" "ACCEPTED" "PARTIALLY_FILLED" "FILLED" "CANCELLED" "PENDING_CANCEL" "REPLACED" "PENDING_REPLACE" "REJECTED" "EXPIRED" "REVOKED" "UNKNOWN" Example: orderStatus=FILLED Order status |
| tradingAccountId | string <uuid> (uuidString) Trading account ID |
| instrumentId | string (instrumentId) Example: instrumentId=BINANCE:BTC/USDT Instrument ID |
| startTime | integer Example: startTime=1622505600000 Start time (in unix milliseconds), of the created at field |
| endTime | integer End time (in unix milliseconds), of the created at field |
| limit | integer [ 1 .. 1000 ] Default: 50 Example: limit=100 Limit the number of returned results |
| offset | integer >= 0 Default: 0 Example: offset=0 Offset of the returned results |
| cursor | string Cursor for next page |
| ascending | boolean Default: false Return records in ascending order |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "tradeOrderId": "85df4133-2159-4db1-a117-d20455178752",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "venue": "BINANCE",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "instrumentId": "BINANCE:BTC/USDT",
- "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7",
- "baseAsset": "BTC",
- "quoteAsset": "USDT",
- "orderSide": "BUY",
- "orderType": "LIMIT",
- "timeInForce": "GTC",
- "status": "FILLED",
- "rejectReason": "string",
- "cancelReason": "string",
- "limitPrice": "1234.56789000",
- "stopPrice": "1234.56789000",
- "quantity": "1234.56789000",
- "orderQuantityType": "BASE",
- "quantityRounding": "DOWN",
- "executedPrice": "1234.56789000",
- "executedQuantity": "1234.56789000",
- "executedCost": "1234.56789000",
- "fees": [
- {
- "security": "BINANCE:BTC",
- "asset": "BTC",
- "venue": "BINANCE",
- "quantity": "1234.56789000"
}
], - "executions": [
- {
- "executionId": "fc49a52d-e069-4441-83c6-8d779c937dd9",
- "externalTradeId": "binance-exec-12345",
- "venue": "BINANCE",
- "instrumentId": "BINANCE:BTC/USDT",
- "orderSide": "BUY",
- "executedQuantity": "1234.56789000",
- "executedPrice": "1234.56789000",
- "executedCost": "1234.56789000",
- "fees": [
- {
- "security": "BINANCE:BTC",
- "asset": "BTC",
- "venue": "BINANCE",
- "quantity": "1234.56789000"
}
], - "executedAt": 1632933600000,
- "executedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "expireAt": 1632933600000,
- "expireAtDateTime": "2019-08-24T14:15:22Z",
- "canceledAt": 1632933600000,
- "canceledAtDateTime": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "offset": 0,
- "limit": 20,
- "total": 100,
- "cursor": "string",
- "hasNext": true
}
}Connect to a trading account
| credentialIds required | Array of strings <uuid> (uuidString) [ items <uuid > ] A list of credential IDs to be used to connect the trading account |
| externalTradingAccountId required | string External trading account ID |
| nickname | string Nickname of the trading account |
{- "credentialIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "externalTradingAccountId": "string",
- "nickname": "string"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "externalTradingAccountId": "string",
- "venue": "BINANCE",
- "nickname": "string",
- "accountType": "SPOT",
- "externalAccountType": "string",
- "positionMode": "NETTING",
- "collateralMode": "CROSS",
- "marginMode": "STANDARD",
- "credentials": [
- {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z"
}
}Disconnect from a trading account, all trading functions and the event stream notification will be stopped. The trading account will be archived and no longer available for trading. If the same trading account need to be connected again, please use the connect trading account API to create another new trading account.
| tradingAccountId required | string <uuid> (uuidString) UUID string |
{- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "externalTradingAccountId": "string",
- "venue": "BINANCE",
- "nickname": "string",
- "accountType": "SPOT",
- "externalAccountType": "string",
- "positionMode": "NETTING",
- "collateralMode": "CROSS",
- "marginMode": "STANDARD",
- "credentials": [
- {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z"
}
}Update trading account information
| tradingAccountId required | string <uuid> (uuidString) UUID string |
| nickname | string New nickname for the trading account |
{- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "nickname": "string"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "externalTradingAccountId": "string",
- "venue": "BINANCE",
- "nickname": "string",
- "accountType": "SPOT",
- "externalAccountType": "string",
- "positionMode": "NETTING",
- "collateralMode": "CROSS",
- "marginMode": "STANDARD",
- "credentials": [
- {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z"
}
}List all trading accounts
| tradingAccountId | string <uuid> (uuidString) Trading account ID |
| venue | string (venue) Enum: "" "BINANCE" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" "IBKR" "DERIBIT" "BITFINEX" "OKX" "BINANCE_UAT" "B2C2_UAT" "WINTERMUTE_UAT" "BLOCKFILLS_UAT" "STONEX_UAT" "CUMBERLAND_UAT" "IBKR_UAT" "DERIBIT_UAT" "BITFINEX_UAT" "OKX_UAT" "BINANCE_SANDBOX" "B2C2_SANDBOX" "IBKR_PAPER" "MOCK" "PAPER" Example: venue=BINANCE Exchange type |
| accountStatus | string (tradingAccountStatus) Enum: "SETUP" "ACTIVE" "INACTIVE" "LOCKED" "DISCONNECTED" "SUSPENDED" "DELETED" "UNKNOWN" Example: accountStatus=ACTIVE Account status |
| userId | string <uuid> Filter by user ID |
| tenantId | string Filter by tenant ID |
| limit | integer [ 1 .. 1000 ] Default: 50 Example: limit=100 Limit the number of returned results |
| offset | integer >= 0 Default: 0 Example: offset=0 Offset of the returned results |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "externalTradingAccountId": "string",
- "venue": "BINANCE",
- "nickname": "string",
- "accountType": "SPOT",
- "externalAccountType": "string",
- "positionMode": "NETTING",
- "collateralMode": "CROSS",
- "marginMode": "STANDARD",
- "credentials": [
- {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "offset": 0,
- "limit": 20,
- "total": 100,
- "cursor": "string",
- "hasNext": true
}
}Disable a trading account, the trading account will be disabled and no longer available for trading.
| tradingAccountId required | string <uuid> (uuidString) UUID string |
{- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "externalTradingAccountId": "string",
- "venue": "BINANCE",
- "nickname": "string",
- "accountType": "SPOT",
- "externalAccountType": "string",
- "positionMode": "NETTING",
- "collateralMode": "CROSS",
- "marginMode": "STANDARD",
- "credentials": [
- {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z"
}
}Enable a trading account, the trading account will be enabled and available for trading.
| tradingAccountId required | string <uuid> (uuidString) UUID string |
{- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "externalTradingAccountId": "string",
- "venue": "BINANCE",
- "nickname": "string",
- "accountType": "SPOT",
- "externalAccountType": "string",
- "positionMode": "NETTING",
- "collateralMode": "CROSS",
- "marginMode": "STANDARD",
- "credentials": [
- {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z"
}
}List operations history for trading accounts
| tradingAccountId | string <uuid> (uuidString) Trading account ID |
| operationType | string (operationType) Enum: "CONNECT" "DISCONNECT" "ENABLE" "DISABLE" "UPDATE" "CREDENTIAL_REVOKE" "CREDENTIAL_ROTATE" Operation type |
| startTime | integer Example: startTime=1622505600000 Start time (in unix milliseconds), of the created at field |
| endTime | integer End time (in unix milliseconds), of the created at field |
| limit | integer [ 1 .. 1000 ] Default: 50 Example: limit=100 Limit the number of returned results |
| offset | integer >= 0 Default: 0 Example: offset=0 Offset of the returned results |
| cursor | string Cursor for next page |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "operationType": "CONNECT",
- "status": "PENDING",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "offset": 0,
- "limit": 20,
- "total": 100,
- "cursor": "string",
- "hasNext": true
}
}List all credentials for a trading account
| credentialType | string (credentialType) Enum: "" "API_KEY" "HMAC" "OAUTH" "RSA" "ED25519" Example: credentialType=API_KEY Credential type |
| credentialStatus | string (tradingAccountStatus) Enum: "SETUP" "ACTIVE" "INACTIVE" "LOCKED" "DISCONNECTED" "SUSPENDED" "DELETED" "UNKNOWN" Example: credentialStatus=ACTIVE Credential status |
| credentialIds | Array of strings credentialId array |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "offset": 0,
- "limit": 20,
- "total": 100,
- "cursor": "string",
- "hasNext": true
}
}Create credentials for a trading account
| venue required | string (venue) Enum: "" "BINANCE" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" "IBKR" "DERIBIT" "BITFINEX" "OKX" "BINANCE_UAT" "B2C2_UAT" "WINTERMUTE_UAT" "BLOCKFILLS_UAT" "STONEX_UAT" "CUMBERLAND_UAT" "IBKR_UAT" "DERIBIT_UAT" "BITFINEX_UAT" "OKX_UAT" "BINANCE_SANDBOX" "B2C2_SANDBOX" "IBKR_PAPER" "MOCK" "PAPER" Trading venue identifier. UAT/sandbox environments are treated as separate venues. Note: _SANDBOX and _PAPER suffixes are deprecated. Use _UAT suffix for new integrations. |
| nickname | string Nickname of the credential |
| credentialType required | string (credentialType) Enum: "" "API_KEY" "HMAC" "OAUTH" "RSA" "ED25519" Type of API credential |
| apiKey | string |
| apiSecret | string |
| apiPassphrase | string |
{- "venue": "BINANCE",
- "nickname": "string",
- "credentialType": "API_KEY",
- "apiKey": "my_api_key",
- "apiSecret": "my_api_secret",
- "apiPassphrase": "my_api_passphrase"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
}Revoke credentials for a trading account.
| credentialId required | string <uuid> (uuidString) UUID string |
{- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
}Rotate credentials for a trading account, the credential will be rotated to the new api key, api secret and api passphrase, other fields are not editable.
| credentialId required | string <uuid> (uuidString) UUID string |
| apiKey required | string |
| apiSecret | string |
| apiPassphrase | string |
{- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "apiKey": "my_api_key",
- "apiSecret": "my_api_secret",
- "apiPassphrase": "my_api_passphrase"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
}Verify credentials and list all supported trading accounts that the credential have permissions to access
| credentialIds required | Array of strings <uuid> (uuidString) [ items <uuid > ] |
{- "credentialIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "externalTradingAccountId": "string",
- "venue": "BINANCE",
- "nickname": "string",
- "accountType": "SPOT",
- "externalAccountType": "string",
- "positionMode": "NETTING",
- "collateralMode": "CROSS",
- "marginMode": "STANDARD",
- "credentials": [
- {
- "credentialId": "f568fec0-10b6-4b94-9daf-e62c50c9bf3e",
- "venue": "BINANCE",
- "credentialType": "API_KEY",
- "nickname": "api_key_for_binance",
- "status": "CREATED",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "revokedAt": 1632933600000,
- "revokedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z"
}
]
}Subscribe to real-time trading account updates
| tradingAccountId required | string <uuid> (uuidString) UUID string |
{- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
- "venue": "BINANCE",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "instrumentId": "BINANCE:BTC/USDT",
- "subscriptionType": "MARKET.SUBSCRIPTION.ORDERBOOK",
- "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "lastEventTimestamp": 1632933600000
}
}Unsubscribe from real-time trading account updates
| subscriptionId | string <uuid> (uuidString) UUID string |
| tradingAccountId | string <uuid> (uuidString) UUID string |
| instrumentId | string (instrumentId) Instrument ID in format {VENUE}:{BASE}/{QUOTE} |
{- "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "instrumentId": "BINANCE:BTC/USDT"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
- "venue": "BINANCE",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "instrumentId": "BINANCE:BTC/USDT",
- "subscriptionType": "MARKET.SUBSCRIPTION.ORDERBOOK",
- "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "lastEventTimestamp": 1632933600000
}
}List active trading account subscriptions
| tradingAccountId | string <uuid> (uuidString) Trading account ID |
| limit | integer [ 1 .. 1000 ] Default: 50 Example: limit=100 Limit the number of returned results |
| offset | integer >= 0 Default: 0 Example: offset=0 Offset of the returned results |
| cursor | string Cursor for next page |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
- "venue": "BINANCE",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "instrumentId": "BINANCE:BTC/USDT",
- "subscriptionType": "MARKET.SUBSCRIPTION.ORDERBOOK",
- "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "lastEventTimestamp": 1632933600000
}
]
}List portfolios across all trading accounts
| tradingAccountId | string <uuid> (uuidString) Trading account ID |
| venue | string (venue) Enum: "" "BINANCE" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" "IBKR" "DERIBIT" "BITFINEX" "OKX" "BINANCE_UAT" "B2C2_UAT" "WINTERMUTE_UAT" "BLOCKFILLS_UAT" "STONEX_UAT" "CUMBERLAND_UAT" "IBKR_UAT" "DERIBIT_UAT" "BITFINEX_UAT" "OKX_UAT" "BINANCE_SANDBOX" "B2C2_SANDBOX" "IBKR_PAPER" "MOCK" "PAPER" Example: venue=BINANCE Exchange type |
| currency | string Example: currency=USDT Currency |
| limit | integer [ 1 .. 1000 ] Default: 50 Example: limit=100 Limit the number of returned results |
| offset | integer >= 0 Default: 0 Example: offset=0 Offset of the returned results |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "venue": "BINANCE",
- "positions": [
- {
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "securitySymbol": "BTC",
- "externalPositionId": "string",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "instrumentId": "BINANCE:BTC/USDT",
- "securityType": "CRYPTO",
- "status": "OPEN",
- "quantity": "1234.56789000",
- "entryPrice": "1234.56789000",
- "exitPrice": "1234.56789000",
- "currentPrice": "1234.56789000",
- "unrealizedPnl": "1234.56789000",
- "realizedPnl": "1234.56789000",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "closedAt": 1632933600000,
- "closedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "balances": [
- {
- "securitySymbol": "USDT",
- "securityType": "CRYPTO",
- "externalBalanceId": "string",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "status": "ACTIVE",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "free": "1234.56789000",
- "locked": "1234.56789000",
- "borrowed": "1234.56789000",
- "total": "1234.56789000",
- "net": "1234.56789000",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "summary": {
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "currency": "USDT",
- "leverage": 0,
- "equity": "1234.56789000",
- "margin": "1234.56789000",
- "marginLoan": "1234.56789000",
- "marginUsage": "1234.56789000",
- "marginRequirement": "1234.56789000",
- "marginLevel": "1234.56789000",
- "credit": "1234.56789000",
- "riskExposure": "1234.56789000",
- "maxRiskExposure": "1234.56789000",
- "riskExposureRate": "1234.56789000"
}, - "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "offset": 0,
- "limit": 20,
- "total": 100,
- "cursor": "string",
- "hasNext": true
}
}List available market venues/exchanges
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "venue": "BINANCE",
- "status": "ONLINE"
}
]
}Synchronize market instruments from exchanges
| venue required | string (venue) Enum: "" "BINANCE" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" "IBKR" "DERIBIT" "BITFINEX" "OKX" "BINANCE_UAT" "B2C2_UAT" "WINTERMUTE_UAT" "BLOCKFILLS_UAT" "STONEX_UAT" "CUMBERLAND_UAT" "IBKR_UAT" "DERIBIT_UAT" "BITFINEX_UAT" "OKX_UAT" "BINANCE_SANDBOX" "B2C2_SANDBOX" "IBKR_PAPER" "MOCK" "PAPER" Trading venue identifier. UAT/sandbox environments are treated as separate venues. Note: _SANDBOX and _PAPER suffixes are deprecated. Use _UAT suffix for new integrations. |
| symbols required | Array of strings symbol list, example ["BTC/ETH","BTC/USDT"] |
{- "venue": "BINANCE",
- "symbols": [
- "string"
]
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "total": 100
}
}Delete a market instrument
| instrumentId required | string (instrumentId) Instrument ID in format {VENUE}:{BASE}/{QUOTE} |
{- "instrumentId": "BINANCE:BTC/USDT"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "data": "ok"
}Enable a market instrument for trading
| instrumentId required | string (instrumentId) Instrument ID in format {VENUE}:{BASE}/{QUOTE} |
{- "instrumentId": "BINANCE:BTC/USDT"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "instrumentId": "BINANCE:BTC/USDT",
- "venue": "BINANCE",
- "symbol": "BTC/USD",
- "externalSymbol": "BTCUSDT",
- "description": "string",
- "instrumentType": "SPOT",
- "status": "ACTIVE",
- "baseAsset": "BTC",
- "quoteAsset": "USD",
- "baseSecurityType": "CRYPTO",
- "quoteSecurityType": "CRYPTO",
- "basePrecision": 0,
- "quotePrecision": 0,
- "baseMaxSignificant": 0,
- "quoteMaxSignificant": 0,
- "lotSize": "1234.56789000",
- "pipSize": "1234.56789000",
- "baseScale": 0,
- "quoteScale": 0,
- "minQuantity": "1234.56789000",
- "maxQuantity": "1234.56789000",
- "minNotional": "1234.56789000",
- "maxNotional": "1234.56789000",
- "orderFilters": { },
- "orderTypes": [
- "LIMIT"
], - "timeInForceOptions": [
- "GTC"
], - "tradingHours": { },
- "isIcebergAllowed": true,
- "icebergMinQuantity": "1234.56789000",
- "deliveryDate": 1632933600000,
- "deliveryDateTime": "2019-08-24T14:15:22Z",
- "exerciseStyle": "EUROPEAN",
- "strikePrice": "1234.56789000"
}
}Disable a market instrument for trading
| instrumentId required | string (instrumentId) Instrument ID in format {VENUE}:{BASE}/{QUOTE} |
{- "instrumentId": "BINANCE:BTC/USDT"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "instrumentId": "BINANCE:BTC/USDT",
- "venue": "BINANCE",
- "symbol": "BTC/USD",
- "externalSymbol": "BTCUSDT",
- "description": "string",
- "instrumentType": "SPOT",
- "status": "ACTIVE",
- "baseAsset": "BTC",
- "quoteAsset": "USD",
- "baseSecurityType": "CRYPTO",
- "quoteSecurityType": "CRYPTO",
- "basePrecision": 0,
- "quotePrecision": 0,
- "baseMaxSignificant": 0,
- "quoteMaxSignificant": 0,
- "lotSize": "1234.56789000",
- "pipSize": "1234.56789000",
- "baseScale": 0,
- "quoteScale": 0,
- "minQuantity": "1234.56789000",
- "maxQuantity": "1234.56789000",
- "minNotional": "1234.56789000",
- "maxNotional": "1234.56789000",
- "orderFilters": { },
- "orderTypes": [
- "LIMIT"
], - "timeInForceOptions": [
- "GTC"
], - "tradingHours": { },
- "isIcebergAllowed": true,
- "icebergMinQuantity": "1234.56789000",
- "deliveryDate": 1632933600000,
- "deliveryDateTime": "2019-08-24T14:15:22Z",
- "exerciseStyle": "EUROPEAN",
- "strikePrice": "1234.56789000"
}
}List available market instruments
| venue | string (venue) Enum: "" "BINANCE" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" "IBKR" "DERIBIT" "BITFINEX" "OKX" "BINANCE_UAT" "B2C2_UAT" "WINTERMUTE_UAT" "BLOCKFILLS_UAT" "STONEX_UAT" "CUMBERLAND_UAT" "IBKR_UAT" "DERIBIT_UAT" "BITFINEX_UAT" "OKX_UAT" "BINANCE_SANDBOX" "B2C2_SANDBOX" "IBKR_PAPER" "MOCK" "PAPER" Example: venue=BINANCE Exchange type |
| symbols | Array of strings Example: symbols=BTC/USDT Instrument Symbols array |
| securityType | string (securityType) Enum: "" "CASH" "STOCK" "CRYPTO" "CURRENCY" "COMMODITY" "INDEX" "BOND" "DERIVATIVE" "OPTION" "FUTURE" "FUTURES" "PERPETUAL" "FOREX" Example: securityType=CRYPTO Security type |
| instrumentStatus | string (instrumentStatus) Enum: "ACTIVE" "INACTIVE" "DISABLED" "DELISTED" Instrument status |
| limit | integer [ 1 .. 1000 ] Default: 50 Example: limit=100 Limit the number of returned results |
| offset | integer >= 0 Default: 0 Example: offset=0 Offset of the returned results |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "instrumentId": "BINANCE:BTC/USDT",
- "venue": "BINANCE",
- "symbol": "BTC/USD",
- "externalSymbol": "BTCUSDT",
- "description": "string",
- "instrumentType": "SPOT",
- "status": "ACTIVE",
- "baseAsset": "BTC",
- "quoteAsset": "USD",
- "baseSecurityType": "CRYPTO",
- "quoteSecurityType": "CRYPTO",
- "basePrecision": 0,
- "quotePrecision": 0,
- "baseMaxSignificant": 0,
- "quoteMaxSignificant": 0,
- "lotSize": "1234.56789000",
- "pipSize": "1234.56789000",
- "baseScale": 0,
- "quoteScale": 0,
- "minQuantity": "1234.56789000",
- "maxQuantity": "1234.56789000",
- "minNotional": "1234.56789000",
- "maxNotional": "1234.56789000",
- "orderFilters": { },
- "orderTypes": [
- "LIMIT"
], - "timeInForceOptions": [
- "GTC"
], - "tradingHours": { },
- "isIcebergAllowed": true,
- "icebergMinQuantity": "1234.56789000",
- "deliveryDate": 1632933600000,
- "deliveryDateTime": "2019-08-24T14:15:22Z",
- "exerciseStyle": "EUROPEAN",
- "strikePrice": "1234.56789000"
}
], - "pagination": {
- "offset": 0,
- "limit": 20,
- "total": 100,
- "cursor": "string",
- "hasNext": true
}
}Synchronize financial securities from exchanges
| venue required | string (venue) Enum: "" "BINANCE" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" "IBKR" "DERIBIT" "BITFINEX" "OKX" "BINANCE_UAT" "B2C2_UAT" "WINTERMUTE_UAT" "BLOCKFILLS_UAT" "STONEX_UAT" "CUMBERLAND_UAT" "IBKR_UAT" "DERIBIT_UAT" "BITFINEX_UAT" "OKX_UAT" "BINANCE_SANDBOX" "B2C2_SANDBOX" "IBKR_PAPER" "MOCK" "PAPER" Trading venue identifier. UAT/sandbox environments are treated as separate venues. Note: _SANDBOX and _PAPER suffixes are deprecated. Use _UAT suffix for new integrations. |
{- "venue": "BINANCE"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "data": "ok"
}Delete a financial security
| securityId required | string Security ID in the format of venue:symbol |
{- "securityId": "BINANCE:BTC"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "securityId": "BINANCE:BTC",
- "symbol": "BTC",
- "venue": "BINANCE",
- "securityType": "CRYPTO",
- "precision": 8,
- "scale": 10,
- "minQuantity": "1234.56789000",
- "lotSize": "1234.56789000"
}
}List available financial securities
| venue | string (venue) Enum: "" "BINANCE" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" "IBKR" "DERIBIT" "BITFINEX" "OKX" "BINANCE_UAT" "B2C2_UAT" "WINTERMUTE_UAT" "BLOCKFILLS_UAT" "STONEX_UAT" "CUMBERLAND_UAT" "IBKR_UAT" "DERIBIT_UAT" "BITFINEX_UAT" "OKX_UAT" "BINANCE_SANDBOX" "B2C2_SANDBOX" "IBKR_PAPER" "MOCK" "PAPER" Example: venue=BINANCE Exchange type |
| securityId | string (securityId) Example: securityId=BINANCE:BTC Security ID |
| limit | integer [ 1 .. 1000 ] Default: 50 Example: limit=100 Limit the number of returned results |
| offset | integer >= 0 Default: 0 Example: offset=0 Offset of the returned results |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "securityId": "BINANCE:BTC",
- "symbol": "BTC",
- "venue": "BINANCE",
- "securityType": "CRYPTO",
- "precision": 8,
- "scale": 10,
- "minQuantity": "1234.56789000",
- "lotSize": "1234.56789000"
}
], - "pagination": {
- "offset": 0,
- "limit": 20,
- "total": 100,
- "cursor": "string",
- "hasNext": true
}
}Get order book for a specific instrument. instrumentId or venue+symbol
| instrumentId | string (instrumentId) Example: instrumentId=BINANCE:BTC/USDT Instrument ID |
| venue | string (venue) Enum: "" "BINANCE" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" "IBKR" "DERIBIT" "BITFINEX" "OKX" "BINANCE_UAT" "B2C2_UAT" "WINTERMUTE_UAT" "BLOCKFILLS_UAT" "STONEX_UAT" "CUMBERLAND_UAT" "IBKR_UAT" "DERIBIT_UAT" "BITFINEX_UAT" "OKX_UAT" "BINANCE_SANDBOX" "B2C2_SANDBOX" "IBKR_PAPER" "MOCK" "PAPER" Example: venue=BINANCE Exchange type |
| symbol | string Example: symbol=BTC/USDT Instrument Symbol |
| depth | integer [ 1 .. 1000 ] Default: 10 Order book depth |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "instrumentId": "BINANCE:BTC/USDT",
- "venue": "BINANCE",
- "symbol": "BTC/USDT",
- "asks": [
- [
- "1234.56789000",
- "1234.56789000"
]
], - "bids": [
- [
- "1234.56789000",
- "1234.56789000"
]
], - "timestamp": 1632933600000
}
}List order books for multiple instruments
| instrumentIds | Array of strings Example: instrumentIds=BINANCE:BTC/USDT |
| venue | string (venue) Enum: "" "BINANCE" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" "IBKR" "DERIBIT" "BITFINEX" "OKX" "BINANCE_UAT" "B2C2_UAT" "WINTERMUTE_UAT" "BLOCKFILLS_UAT" "STONEX_UAT" "CUMBERLAND_UAT" "IBKR_UAT" "DERIBIT_UAT" "BITFINEX_UAT" "OKX_UAT" "BINANCE_SANDBOX" "B2C2_SANDBOX" "IBKR_PAPER" "MOCK" "PAPER" Example: venue=BINANCE Exchange type |
| symbols | Array of strings Example: symbols=BTC/USDT Instrument Symbols array |
| depth | integer [ 1 .. 1000 ] Default: 10 Order book depth |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "instrumentId": "BINANCE:BTC/USDT",
- "venue": "BINANCE",
- "symbol": "BTC/USDT",
- "asks": [
- [
- "1234.56789000",
- "1234.56789000"
]
], - "bids": [
- [
- "1234.56789000",
- "1234.56789000"
]
], - "timestamp": 1632933600000
}
]
}Subscribe to real-time order book updates
| instrumentId required | string (instrumentId) Instrument ID in format {VENUE}:{BASE}/{QUOTE} |
{- "instrumentId": "BINANCE:BTC/USDT"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
- "venue": "BINANCE",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "instrumentId": "BINANCE:BTC/USDT",
- "subscriptionType": "MARKET.SUBSCRIPTION.ORDERBOOK",
- "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "lastEventTimestamp": 1632933600000
}
}Unsubscribe from real-time order book updates
| subscriptionId | string <uuid> (uuidString) UUID string |
| tradingAccountId | string <uuid> (uuidString) UUID string |
| instrumentId | string (instrumentId) Instrument ID in format {VENUE}:{BASE}/{QUOTE} |
{- "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "instrumentId": "BINANCE:BTC/USDT"
}{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": {
- "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
- "venue": "BINANCE",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "instrumentId": "BINANCE:BTC/USDT",
- "subscriptionType": "MARKET.SUBSCRIPTION.ORDERBOOK",
- "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "lastEventTimestamp": 1632933600000
}
}List active order book subscriptions
| instrumentId | string (instrumentId) Example: instrumentId=BINANCE:BTC/USDT Instrument ID |
{- "success": true,
- "errno": 0,
- "error": "string",
- "details": {
- "code": "INVALID_TOKEN",
- "resource": "/api/v3/tradingAccount",
- "action": "create",
- "required": [
- "admin",
- "write"
], - "provided": [
- "read"
], - "tenant_id": "tenant-123",
- "request_id": "req-456-789",
- "metadata": { }
}, - "data": [
- {
- "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
- "venue": "BINANCE",
- "tradingAccountId": "14f773c5-2079-41e0-90e4-340a7b4d3391",
- "instrumentId": "BINANCE:BTC/USDT",
- "subscriptionType": "MARKET.SUBSCRIPTION.ORDERBOOK",
- "status": "ACTIVE",
- "createdAt": 1632933600000,
- "createdAtDateTime": "2019-08-24T14:15:22Z",
- "updatedAt": 1632933600000,
- "updatedAtDateTime": "2019-08-24T14:15:22Z",
- "lastEventTimestamp": 1632933600000
}
]
}This endpoint documents the WebSocket API protocol, not a REST endpoint.
Connect to the Cadenza WebSocket API using the Centrifugo protocol.
Use the WebSocket servers listed above (wss://cadenza-ws.algo724.com/connection/websocket for production
or wss://cadenza-ws-uat.algo724.com/connection/websocket for UAT).
Include your JWT token in the connect command:
{
"connect": {
"token": "your-jwt-token",
"name": "your-client-name"
},
"id": 1
}
Subscribe to channels for real-time updates:
| Channel Pattern | Description |
|---|---|
tradingAccount:{accountId} |
Trading account updates (orders, portfolio, balances) |
market:orderBook:{instrumentId} |
Order book updates for an instrument |
market:trade:{instrumentId} |
Trade updates for an instrument |
All WebSocket messages follow the Centrifugo JSON protocol format. See the WebSocket schemas section for detailed message structures.
For complete protocol documentation, refer to:
WebSocket command (sent after WebSocket connection is established)
| id required | integer Unique command ID for request-response correlation |
object (wsConnectRequest) Connect request sent after WebSocket connection is established | |
object (wsSubscribeRequest) Subscribe to a channel for real-time updates | |
object (wsUnsubscribeRequest) Unsubscribe from a channel | |
object (wsPublishRequest) Publish a message to a channel | |
object (wsPresenceRequest) Request presence information for a channel | |
object (wsPresenceStatsRequest) Request presence statistics for a channel | |
object (wsHistoryRequest) Request publication history for a channel | |
| ping | object (wsPingRequest) Ping request to keep connection alive |
object (wsSendRequest) Send asynchronous message (no reply expected) | |
object (wsRPCRequest) Remote procedure call request | |
object (wsRefreshRequest) Refresh connection credentials | |
object (wsSubRefreshRequest) Refresh subscription credentials |
{- "id": 1,
- "connect": {
- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "name": "my-trading-client",
- "version": "1.0.0"
}
}{- "id": 1,
- "connect": {
- "client": "c7a8b9d0-1234-5678-9abc-def012345678",
- "version": "5.0.0",
- "expires": false,
- "ttl": 0,
- "ping": 25,
- "pong": true,
- "time": 1703052635110
}
}