Orderbook of Spot Markets
OK response.
const response = await fetch('https://inj-indexer.nownodes.io/api/exchange/spot/v2/orderbooks?marketIds=0x74b17b0d6855feba39f1f7ab1e8bad0363bd510ee1dcc74e40c2adfe1502f781', {
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
}
}
]
}