Get Top of Book
requires auth
Top of Book
Endpoint to query the L1 top of book prices for a set of pairs, inclusive of fees for the account.
GET /api/v1/routing/account/{accountId}/topofbookPath Parameters:
Path
Type
Description
accountId*
string
your account ID
Query Parameters:
Body
Type
Description
assetPairs*
string
Comma separated list of asset pairs formatted as BASE/QUOTE
Examples
GET L1 data for multiple pairs at the same time:
GET /api/v1/routing/ops/account/NNCV3kWoo0Se_bUUl_8yRg/topofbook?assetPairs=USDT/USD,USDC/USD,USDT/EUR{
"topOfBooks": {
"USDT/USD": {
"spread": 0.000600430015,
"ask": [1.0009502350150,1.0],
"bid": [1.000349805,100.0]
},
"USDC/USD": {
"spread": 0.001099969985,
"ask": [1.000549994985,1.0],
"bid": [0.999450025,100.0]
},
"USDT/EUR": {
"spread": 0.00153884525,
"ask": [0.8661148410,86.5682],
"bid": [0.86457599575,115.6058]
}
},
"status": "ok",
"httpStatusCode": 200
}
Example response w/ invalid asset pairs:
Last updated
