Orderbooks gets the Orderbooks of requested derivative markets
OK response.
const response = await fetch('https://inj-indexer.nownodes.io/api/exchange/derivative/v2/orderbooks?marketIds=0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"orderbooks": [
{
"marketId": "Debitis harum expedita et accusantium et.",
"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
}
},
{
"marketId": "Debitis harum expedita et accusantium et.",
"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
}
},
{
"marketId": "Debitis harum expedita et accusantium et.",
"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
}
}
]
}