orderBookOrders
Get order book orders
get/api/v1/orderBookOrders
Query parameters
market_idinteger · int16Required
Public market identifier returned by orderBooks or events.
limitinteger · int64 · min: 1 · max: 250Required
Maximum number of records to return.
Responses
200
A successful response.
application/json
codeinteger · int32RequiredExample:
200messagestringOptional
total_asksinteger · int64RequiredExample:
1total_bidsinteger · int64RequiredExample:
1400
Bad request
application/json
get/api/v1/orderBookOrders
GET /api/v1/orderBookOrders?market_id=1&limit=1 HTTP/1.1
Host: mainnet.zklighter.elliot.ai
Accept: */*
{
"code": 200,
"message": "text",
"total_asks": 1,
"asks": [
{
"order_index": 1,
"order_id": "1",
"owner_account_index": 1,
"initial_base_amount": "0.1",
"remaining_base_amount": "0.1",
"price": "3024.66",
"order_expiry": 1640995200,
"transaction_time": 1
}
],
"total_bids": 1,
"bids": [
{
"order_index": 1,
"order_id": "1",
"owner_account_index": 1,
"initial_base_amount": "0.1",
"remaining_base_amount": "0.1",
"price": "3024.66",
"order_expiry": 1640995200,
"transaction_time": 1
}
]
}Last updated
Was this helpful?