curl --request POST \
--url https://prv.gateway.indexer.biya.io/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbooksV2 \
--header 'Content-Type: application/json' \
--data '
{
"market_ids": [
{}
],
"depth": 123
}
'Get orderbooks for multiple spot markets
curl --request POST \
--url https://prv.gateway.indexer.biya.io/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbooksV2 \
--header 'Content-Type: application/json' \
--data '
{
"market_ids": [
{}
],
"depth": 123
}
'{
"orderbooks": [
{
"market_id": "string",
"orderbook": {
"buys": [
{
"price": "string",
"quantity": "string",
"timestamp": "number"
}
],
"sells": [
{
"price": "string",
"quantity": "string",
"timestamp": "number"
}
],
"sequence": "number",
"timestamp": "number",
"height": "number"
}
}
]
}