Orderbook
Orderbook gets the Orderbook of a Derivative Market
Path parameters
marketIdstring · min: 66 · max: 66RequiredExample:
MarketId of the market's orderbook we want to fetch
0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb
Pattern: ^0x[0-9a-fA-F]{64}$
Responses
200
OK response.
application/json
400
Bad Request response.
application/vnd.goa.error
404
Not Found response.
application/vnd.goa.error
500
Internal Server Error response.
application/vnd.goa.error
get
GET /api/exchange/derivative/v2/orderbook/{marketId} HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
"orderbook": {
"buys": [
{
"price": "1960000000000000000",
"quantity": "40",
"timestamp": 1544614248000
},
{
"price": "1960000000000000000",
"quantity": "40",
"timestamp": 1544614248000
}
],
"sells": [
{
"price": "1960000000000000000",
"quantity": "40",
"timestamp": 1544614248000
},
{
"price": "1960000000000000000",
"quantity": "40",
"timestamp": 1544614248000
}
],
"sequence": 15083503124060903000,
"timestamp": 8857124747398009000
}
}