curl --request POST \
--url https://prv.gateway.indexer.biya.io/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbookV2 \
--header 'Content-Type: application/json' \
--data '
{
"market_id": "<string>",
"depth": 123
}
'Get the orderbook of a spot market
curl --request POST \
--url https://prv.gateway.indexer.biya.io/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbookV2 \
--header 'Content-Type: application/json' \
--data '
{
"market_id": "<string>",
"depth": 123
}
'{
"orderbook": {
"buys": [
{
"price": "string",
"quantity": "string",
"timestamp": "number"
}
],
"sells": [
{
"price": "string",
"quantity": "string",
"timestamp": "number"
}
],
"sequence": "number",
"timestamp": "number",
"height": "number"
}
}