Add exchange account
| exchangeType required | string (exchangeType) Enum: "BINANCE" "BINANCE_MARGIN" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" Exchange type |
| apiKey required | string API key |
| apiSecret required | string API secret |
| exchangeAccountName required | string Exchange account name, Available characters: a-z, A-Z, 0-9, _, (space) |
| environment required | integer Enum: 0 1 Environment(0 - real, 1 - sandbox) |
{- "exchangeType": "BINANCE",
- "apiKey": "my_api_key",
- "apiSecret": "my_api_secret",
- "exchangeAccountName": "my_exchange",
- "environment": 0
}{- "data": "ok"
}[- {
- "accountType": "SPOT",
- "exchangeType": "BINANCE",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "name": "string",
- "environment": "REAL",
- "status": "ACTIVE"
}
]Update exchange account, now only support Binance account API key and secret
| exchangeAccountId required | string <uuid> Exchange account ID |
| exchangeAccountName | string Exchange account name, Available characters: a-z, A-Z, 0-9, _, (space) |
| apiKey | string API key |
| apiSecret | string API secret |
{- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeAccountName": "my_exchange",
- "apiKey": "my_api_key",
- "apiSecret": "my_api_secret"
}{- "data": "ok"
}Remove exchange account, now only support Binance account API key and secret
| exchangeAccountId required | string <uuid> Exchange account ID |
{- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96"
}{- "data": "ok"
}Set the priority of exchanges
| priority required | Array of strings Priority list of exchanges in descending order |
{- "priority": [
- "my_exchange_1",
- "my_exchange_2",
- "my_exchange_3"
]
}{- "data": "ok"
}List available exchange symbols
| exchangeType | string (exchangeType) Enum: "BINANCE" "BINANCE_MARGIN" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" Exchange type |
| symbol | string Symbol |
| detail | boolean Example: detail=false Whether to return detailed information |
[- {
- "baseSymbol": "BTC",
- "description": "string",
- "exchangeType": "BINANCE",
- "marginRate": 0,
- "maxQuantity": 0,
- "minQuantity": 0,
- "quantityStep": 0,
- "minTick": 0,
- "orderTypes": [
- "MARKET"
], - "pipSize": 0,
- "pipValue": 0,
- "pricePrecision": 0,
- "quantityPrecision": 0,
- "quoteSymbol": "USDT",
- "securityType": "SPOT",
- "symbol": "BTC/USDT",
- "timeInForce": [
- "DAY"
]
}
]Symbol price
| exchangeType | string (exchangeType) Enum: "BINANCE" "BINANCE_MARGIN" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" Exchange type |
| symbol required | string Example: symbol=BTC/USDT Symbol |
[- {
- "askPrice": 0,
- "askQuantity": 0,
- "bidPrice": 0,
- "bidQuantity": 0,
- "exchangeType": "BINANCE",
- "lastPrice": 0,
- "lastQuantity": 0,
- "symbol": "BTC/USDT",
- "timestamp": 1632933600000
}
]Get order book
| exchangeType required | string (exchangeType) Enum: "BINANCE" "BINANCE_MARGIN" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" Exchange type |
| symbol required | string Example: symbol=BTC/USDT Symbol |
| limit | integer Example: limit=100 Limit the number of returned results. |
[- {
- "asks": [
- [
- 0,
- 0
]
], - "bids": [
- [
- 0,
- 0
]
], - "exchangeType": "string",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "symbol": "string",
- "level": 0
}
]Get historical kline data
| exchangeType required | string (exchangeType) Enum: "BINANCE" "BINANCE_MARGIN" "B2C2" "WINTERMUTE" "BLOCKFILLS" "STONEX" "CUMBERLAND" Exchange type |
| symbol required | string Example: symbol=BTC/USDT Symbol |
| interval required | string (interval) Enum: "1s" "1m" "5m" "15m" "30m" "1h" "2h" "1d" "1w" Kline interval |
| startTime | integer (millisecond) Example: startTime=1632933600000 Start time (in unix milliseconds) |
| endTime | integer (millisecond) Example: endTime=1632933600000 End time (in unix milliseconds) |
| limit | integer Example: limit=100 Limit the number of returned results. |
{- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "symbol": "string",
- "interval": "1s",
- "candles": [
- {
- "asset": "BTC",
- "free": 1,
- "locked": 0,
- "borrowed": 3,
- "net": -2,
- "total": 1
}
]
}Place order
| Idempotency-Key | string Example: my_idempotency_key Idempotency key is used to ensure that the same request is not processed more than once. If the same request is received again, the server will return the same response as the first time. |
| quoteRequestId | string <uuid> (uuidString) UUID string |
| exchangeAccountId | string <uuid> (uuidString) UUID string |
| leverage | integer Levarage |
| orderSide | string Enum: "BUY" "SELL" Order side |
| orderType | string Enum: "MARKET" "LIMIT" "STOP_LOSS" "STOP_LOSS_LIMIT" "TAKE_PROFIT" "TAKE_PROFIT_LIMIT" "QUOTED" Order type |
| positionId | string <uuid> Position ID for closing position in margin trading |
| price | number Price |
| priceSlippageTolerance | number Price slippage tolerance, range: [0, 0.1] with 2 decimal places |
| quantity | number Quantity. One of quantity or quoteQuantity must be provided. If both is provided, only quantity will be used. |
| quoteQuantity | number Quote Quantity |
| symbol | string Symbol |
| timeInForce | string Enum: "DAY" "GTC" "GTX" "GTD" "OPG" "CLS" "IOC" "FOK" "GFA" "GFS" "GTM" "MOO" "MOC" "EXT" Time in force |
| routePolicy required | string (routePolicy) Enum: "PRIORITY" "QUOTE" Route policy. For PRIORITY, the order request will be routed to the exchange account with the highest priority. For QUOTE, the system will execute the execution plan based on the quote. Order request with route policy QUOTE will only accept two parameters, quoteRequestId and priceSlippageTolerance |
| priority | Array of strings Priority list of exchange account ID in descending order |
| quoteId | string Quote ID used by exchange for RFQ, e.g. WINTERMUTE need this field to execute QUOTED order |
| tenantId | string Tenant ID |
{- "quoteRequestId": "934d900e-84a8-48c9-b041-cbff0d908da7",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "leverage": 0,
- "orderSide": "BUY",
- "orderType": "MARKET",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "price": 0,
- "priceSlippageTolerance": 0,
- "quantity": 0,
- "quoteQuantity": 0,
- "symbol": "BTC/USDT",
- "timeInForce": "DAY",
- "routePolicy": "PRIORITY",
- "priority": [
- "exchange_account_id_1",
- "exchange_account_id_2",
- "exchange_account_id_3"
], - "quoteId": "string",
- "tenantId": "tenantId"
}[- {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}
]Cancel order. If the order is already filled, it will return an error.
| orderId required | string Order ID |
{- "orderId": "string"
}{- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}List orders
| orderId | string Order ID |
| orderStatus | string (orderStatus) Enum: "SUBMITTED" "ACCEPTED" "OPEN" "PARTIALLY_FILLED" "FILLED" "CANCELED" "PENDING_CANCEL" "REJECTED" "EXPIRED" "REVOKED" Order status |
| exchangeAccountId | string Exchange account ID |
| symbol | string Symbol |
| startTime | integer (millisecond) Example: startTime=1632933600000 Start time (in unix milliseconds) |
| endTime | integer (millisecond) Example: endTime=1632933600000 End time (in unix milliseconds) |
| limit | integer Example: limit=100 Limit the number of returned results. |
| offset | integer Example: offset=0 Offset of the returned results. Default: 0 |
| tenantId | string Tenant ID |
| ascending | boolean Return records in ascending order |
{- "data": [
- {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}Quote will give the best quote from all available exchange accounts
| quoteRequestId | string Quote Request ID |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "routePolicy": "PRIORITY",
- "order": {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}, - "filled": 1,
- "cost": 42859.99,
- "fees": [
- {
- "asset": "string",
- "quantity": 0
}
], - "status": "SUBMITTED",
- "createdAt": 1632933600000,
- "updatedAt": 1632933600000,
- "executions": [
- {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}
]
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}Quote will give the best quote from all available exchange accounts
| quoteRequestId | string Quote Request ID |
| startTime | integer (millisecond) Example: startTime=1632933600000 Start time (in unix milliseconds) |
| endTime | integer (millisecond) Example: endTime=1632933600000 End time (in unix milliseconds) |
| limit | integer Example: limit=100 Limit the number of returned results. |
| offset | integer Example: offset=0 Offset of the returned results. Default: 0 |
| ascending | boolean Return records in ascending order |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "routePolicy": "PRIORITY",
- "order": {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}, - "filled": 1,
- "cost": 42859.99,
- "fees": [
- {
- "asset": "string",
- "quantity": 0
}
], - "status": "SUBMITTED",
- "createdAt": 1632933600000,
- "updatedAt": 1632933600000,
- "executions": [
- {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}
]
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}Quote will give the best quote from all available exchange accounts
| baseCurrency required | string Base currency is the currency you want to buy or sell |
| quoteCurrency required | string Quote currency is the currency you want to pay or receive, and the price of the base currency is quoted in the quote currency |
| orderSide required | string Order side, BUY or SELL |
| quantity | number Amount of the base currency |
| quoteQuantity | number Amount of the quote currency |
| exchangeAccountId | string <uuid> (uuidString) UUID string |
| exchangeAccountIds | Array of strings <uuid> (uuidString) [ items <uuid > ] |
| crossCurrency | string The intermediary currency used for cross-currency quotes |
| disableCrossAccounts | boolean When true, prevents quotes from being sourced across multiple accounts |
| clientOrderId | string (clientOrderId) [ 1 .. 64 ] characters ^[a-zA-Z0-9_-]{1,64}$ Client-provided order identifier that must be unique |
{- "baseCurrency": "string",
- "quoteCurrency": "string",
- "orderSide": "string",
- "quantity": 0,
- "quoteQuantity": 0,
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeAccountIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "crossCurrency": "USD",
- "disableCrossAccounts": false,
- "clientOrderId": "my_order_123"
}[- {
- "quoteRequestId": "934d900e-84a8-48c9-b041-cbff0d908da7",
- "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "quantity": 1,
- "quoteQuantity": 42859.99,
- "quotePrice": 42859.99,
- "orderSide": "BUY",
- "clientOrderId": "my_order_123",
- "askPrice": 42859.99,
- "askQuantity": 1,
- "bidPrice": 42859.71,
- "bidQuantity": 1,
- "timestamp": 1632933600000,
- "createdAt": 1632933600000,
- "validUntil": 1632933600000,
- "expireAt": 1632933600000,
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE"
}
]| username required | string (Username) |
| consumer_key | string or null (Consumer Key) |
| dhparam | string or null (Dhparam) |
| encryption_private_key | string or null (Encryption Private Key) |
| signature_private_key | string or null (Signature Private Key) |
| access_token | string or null (Access Token) |
| access_token_secret | string or null (Access Token Secret) |
| live_session_token | string or null (Live Session Token) |
{- "username": "string",
- "consumer_key": "string",
- "dhparam": "string",
- "encryption_private_key": "string",
- "signature_private_key": "string",
- "access_token": "string",
- "access_token_secret": "string",
- "live_session_token": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "string",
- "account_id": "string",
- "master_id": "785bf4bf-4b84-45a0-bc70-ed22c473646e",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_auth_method": "string",
- "session_status": "string",
- "conn_status": "string"
}[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "string",
- "account_id": "string",
- "master_id": "785bf4bf-4b84-45a0-bc70-ed22c473646e",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_auth_method": "string",
- "session_status": "string",
- "conn_status": "string"
}
]| account_username required | string (Account Username) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "string",
- "account_id": "string",
- "master_id": "785bf4bf-4b84-45a0-bc70-ed22c473646e",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_auth_method": "string",
- "session_status": "string",
- "conn_status": "string"
}| account_username required | string (Account Username) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "string",
- "account_id": "string",
- "master_id": "785bf4bf-4b84-45a0-bc70-ed22c473646e",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_auth_method": "string",
- "session_status": "string",
- "conn_status": "string"
}| account_username required | string (Account Username) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "string",
- "account_id": "string",
- "master_id": "785bf4bf-4b84-45a0-bc70-ed22c473646e",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_auth_method": "string",
- "session_status": "string",
- "conn_status": "string"
}List Portfolio Summary
| exchangeAccountId | string Exchange account ID |
| hideEmptyValue | boolean Hide small account |
[- {
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "balances": [
- {
- "asset": "BTC",
- "free": 1,
- "locked": 0,
- "borrowed": 3,
- "net": -2,
- "total": 1
}
], - "positions": [
- {
- "amount": 0,
- "cost": 0,
- "entryPrice": 0,
- "positionSide": "LONG",
- "status": "OPEN",
- "symbol": "BTC/USDT"
}
], - "credit": {
- "exchangeAccountId": "018e41a1-cebc-7b49-a729-ae2c1c41e297",
- "exchangeType": "BINANCE",
- "accountType": "SPOT",
- "currency": "USDT",
- "leverage": 1,
- "credit": 10000,
- "margin": 5000,
- "marginLoan": 3000,
- "marginRequirement": 1500,
- "marginUsage": 0.5,
- "marginLevel": 0.89,
- "riskExposure": 5677517.76,
- "maxRiskExposure": 5000000,
- "riskExposureRate": 0.89
}, - "updatedAt": 1632933600000
}
]List credit
| exchangeAccountId | string Exchange account ID |
| hideEmptyValue | boolean Hide small account |
[- {
- "exchangeAccountId": "018e41a1-cebc-7b49-a729-ae2c1c41e297",
- "exchangeType": "BINANCE",
- "accountType": "SPOT",
- "currency": "USDT",
- "leverage": 1,
- "credit": 10000,
- "margin": 5000,
- "marginLoan": 3000,
- "marginRequirement": 1500,
- "marginUsage": 0.5,
- "marginLevel": 0.89,
- "riskExposure": 5677517.76,
- "maxRiskExposure": 5000000,
- "riskExposureRate": 0.89
}
]List balances
| exchangeAccountId | string Exchange account ID |
| hideEmptyValue | boolean Hide small account |
[- {
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "balances": [
- {
- "asset": "BTC",
- "free": 1,
- "locked": 0,
- "borrowed": 3,
- "net": -2,
- "total": 1
}
]
}
]List positions
| exchangeAccountId | string Exchange account ID |
| hideEmptyValue | boolean Hide small account |
[- {
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "positions": [
- {
- "amount": 0,
- "cost": 0,
- "entryPrice": 0,
- "positionSide": "LONG",
- "status": "OPEN",
- "symbol": "BTC/USDT"
}
]
}
]PubSub Event Handler
required | object |
| subscription required | string The subscription name. |
{- "message": {
- "data": "string",
- "id": "string"
}, - "subscription": "string"
}{- "data": "ok"
}PubSub event handler placeholder
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
| payload | object The actual data of the event, which varies based on the event type. |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": { }
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": { }
}PubSub event handler placeholder for quote request acknowledgment event
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
object (quoteRequest) |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "baseCurrency": "string",
- "quoteCurrency": "string",
- "orderSide": "string",
- "quantity": 0,
- "quoteQuantity": 0,
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeAccountIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "crossCurrency": "USD",
- "disableCrossAccounts": false,
- "clientOrderId": "my_order_123"
}
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "baseCurrency": "string",
- "quoteCurrency": "string",
- "orderSide": "string",
- "quantity": 0,
- "quoteQuantity": 0,
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeAccountIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "crossCurrency": "USD",
- "disableCrossAccounts": false,
- "clientOrderId": "my_order_123"
}
}PubSub event handler placeholder for quote request acknowledgment event
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
object (quoteRequest) |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "baseCurrency": "string",
- "quoteCurrency": "string",
- "orderSide": "string",
- "quantity": 0,
- "quoteQuantity": 0,
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeAccountIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "crossCurrency": "USD",
- "disableCrossAccounts": false,
- "clientOrderId": "my_order_123"
}
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "baseCurrency": "string",
- "quoteCurrency": "string",
- "orderSide": "string",
- "quantity": 0,
- "quoteQuantity": 0,
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeAccountIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "crossCurrency": "USD",
- "disableCrossAccounts": false,
- "clientOrderId": "my_order_123"
}
}PubSub event handler placeholder for place order request acknowledgment event
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
object (placeOrderRequest) |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "quoteRequestId": "934d900e-84a8-48c9-b041-cbff0d908da7",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "leverage": 0,
- "orderSide": "BUY",
- "orderType": "MARKET",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "price": 0,
- "priceSlippageTolerance": 0,
- "quantity": 0,
- "quoteQuantity": 0,
- "symbol": "BTC/USDT",
- "timeInForce": "DAY",
- "routePolicy": "PRIORITY",
- "priority": [
- "exchange_account_id_1",
- "exchange_account_id_2",
- "exchange_account_id_3"
], - "quoteId": "string",
- "tenantId": "tenantId"
}
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "quoteRequestId": "934d900e-84a8-48c9-b041-cbff0d908da7",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "leverage": 0,
- "orderSide": "BUY",
- "orderType": "MARKET",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "price": 0,
- "priceSlippageTolerance": 0,
- "quantity": 0,
- "quoteQuantity": 0,
- "symbol": "BTC/USDT",
- "timeInForce": "DAY",
- "routePolicy": "PRIORITY",
- "priority": [
- "exchange_account_id_1",
- "exchange_account_id_2",
- "exchange_account_id_3"
], - "quoteId": "string",
- "tenantId": "tenantId"
}
}PubSub event handler placeholder for cancel order request acknowledgment event
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
object (cancelOrderRequest) |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "orderId": "string"
}
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "orderId": "string"
}
}PubSub event handler placeholder for quote event
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
object (quote) |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "quoteRequestId": "934d900e-84a8-48c9-b041-cbff0d908da7",
- "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "quantity": 1,
- "quoteQuantity": 42859.99,
- "quotePrice": 42859.99,
- "orderSide": "BUY",
- "clientOrderId": "my_order_123",
- "askPrice": 42859.99,
- "askQuantity": 1,
- "bidPrice": 42859.71,
- "bidQuantity": 1,
- "timestamp": 1632933600000,
- "createdAt": 1632933600000,
- "validUntil": 1632933600000,
- "expireAt": 1632933600000,
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE"
}
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "quoteRequestId": "934d900e-84a8-48c9-b041-cbff0d908da7",
- "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "quantity": 1,
- "quoteQuantity": 42859.99,
- "quotePrice": 42859.99,
- "orderSide": "BUY",
- "clientOrderId": "my_order_123",
- "askPrice": 42859.99,
- "askQuantity": 1,
- "bidPrice": 42859.71,
- "bidQuantity": 1,
- "timestamp": 1632933600000,
- "createdAt": 1632933600000,
- "validUntil": 1632933600000,
- "expireAt": 1632933600000,
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE"
}
}PubSub event handler placeholder for order event
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
object (order) |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}
}PubSub event handler for execution report drop copy event
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
object (executionReport) |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "routePolicy": "PRIORITY",
- "order": {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}, - "filled": 1,
- "cost": 42859.99,
- "fees": [
- {
- "asset": "string",
- "quantity": 0
}
], - "status": "SUBMITTED",
- "createdAt": 1632933600000,
- "updatedAt": 1632933600000,
- "executions": [
- {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}
]
}
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "routePolicy": "PRIORITY",
- "order": {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}, - "filled": 1,
- "cost": 42859.99,
- "fees": [
- {
- "asset": "string",
- "quantity": 0
}
], - "status": "SUBMITTED",
- "createdAt": 1632933600000,
- "updatedAt": 1632933600000,
- "executions": [
- {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "tenantId": "tenantId",
- "positionId": "da3402dc-13f8-45f9-83a6-bde06dd8eb35",
- "quoteId": "string",
- "symbol": "BTC/USDT",
- "baseCurrency": "BTC",
- "quoteCurrency": "USDT",
- "orderSide": "BUY",
- "orderType": "MARKET",
- "timeInForce": "DAY",
- "status": "SUBMITTED",
- "quantity": 0,
- "quoteQuantity": 0,
- "price": 0,
- "limitPrice": 0,
- "stopPrice": 0,
- "executedPrice": 0,
- "cost": 0,
- "filled": 0,
- "fee": 0,
- "feeCurrency": "USDT",
- "createdAt": 1703052635110,
- "updatedAt": 1703052635111
}
]
}
}PubSub event handler placeholder for portfolio event
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
object (exchangeAccountPortfolio) |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "balances": [
- {
- "asset": "BTC",
- "free": 1,
- "locked": 0,
- "borrowed": 3,
- "net": -2,
- "total": 1
}
], - "positions": [
- {
- "amount": 0,
- "cost": 0,
- "entryPrice": 0,
- "positionSide": "LONG",
- "status": "OPEN",
- "symbol": "BTC/USDT"
}
], - "credit": {
- "exchangeAccountId": "018e41a1-cebc-7b49-a729-ae2c1c41e297",
- "exchangeType": "BINANCE",
- "accountType": "SPOT",
- "currency": "USDT",
- "leverage": 1,
- "credit": 10000,
- "margin": 5000,
- "marginLoan": 3000,
- "marginRequirement": 1500,
- "marginUsage": 0.5,
- "marginLevel": 0.89,
- "riskExposure": 5677517.76,
- "maxRiskExposure": 5000000,
- "riskExposureRate": 0.89
}, - "updatedAt": 1632933600000
}
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "balances": [
- {
- "asset": "BTC",
- "free": 1,
- "locked": 0,
- "borrowed": 3,
- "net": -2,
- "total": 1
}
], - "positions": [
- {
- "amount": 0,
- "cost": 0,
- "entryPrice": 0,
- "positionSide": "LONG",
- "status": "OPEN",
- "symbol": "BTC/USDT"
}
], - "credit": {
- "exchangeAccountId": "018e41a1-cebc-7b49-a729-ae2c1c41e297",
- "exchangeType": "BINANCE",
- "accountType": "SPOT",
- "currency": "USDT",
- "leverage": 1,
- "credit": 10000,
- "margin": 5000,
- "marginLoan": 3000,
- "marginRequirement": 1500,
- "marginUsage": 0.5,
- "marginLevel": 0.89,
- "riskExposure": 5677517.76,
- "maxRiskExposure": 5000000,
- "riskExposureRate": 0.89
}, - "updatedAt": 1632933600000
}
}PubSub event handler placeholder for order book event
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
object (orderbook) |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "asks": [
- [
- 0,
- 0
]
], - "bids": [
- [
- 0,
- 0
]
], - "exchangeType": "string",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "symbol": "string",
- "level": 0
}
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "asks": [
- [
- 0,
- 0
]
], - "bids": [
- [
- 0,
- 0
]
], - "exchangeType": "string",
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "symbol": "string",
- "level": 0
}
}PubSub event handler placeholder for kline event
| eventId required | string A unique identifier for the event. |
| eventType required | string (EventType) Enum: "cadenza.task.quote" "cadenza.dropCopy.quoteRequestAck" "cadenza.dropCopy.placeOrderRequestAck" "cadenza.dropCopy.cancelOrderRequestAck" "cadenza.dropCopy.quote" "cadenza.dropCopy.order" "cadenza.dropCopy.executionReport" "cadenza.dropCopy.portfolio" "cadenza.marketData.orderBook" "cadenza.marketData.kline" Event Type |
| source | string The source system or module that generated the event. |
| timestamp required | integer (millisecond) Unix timestamp in milliseconds |
object (kline) |
{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "symbol": "string",
- "interval": "1s",
- "candles": [
- {
- "asset": "BTC",
- "free": 1,
- "locked": 0,
- "borrowed": 3,
- "net": -2,
- "total": 1
}
]
}
}{- "eventId": "string",
- "eventType": "cadenza.task.quote",
- "source": "string",
- "timestamp": 1632933600000,
- "payload": {
- "exchangeAccountId": "0378501b-c811-45d5-8f0a-408d80cb2c96",
- "exchangeType": "BINANCE",
- "symbol": "string",
- "interval": "1s",
- "candles": [
- {
- "asset": "BTC",
- "free": 1,
- "locked": 0,
- "borrowed": 3,
- "net": -2,
- "total": 1
}
]
}
}