POST
https://prv.gateway.indexer.biya.io
/
injective_spot_exchange_rpc.InjectiveSpotExchangeRPC
/
OrderbooksV2
OrderbooksV2
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.
market_ids
array
required
Array of market IDs (required)
depth
number
Orderbook depth (optional)

Response

{
  "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"
      }
    }
  ]
}