POST
https://prv.gateway.indexer.biya.io
/
injective_spot_exchange_rpc.InjectiveSpotExchangeRPC
/
OrderbookV2
OrderbookV2
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.
market_id
string
required
Market ID (required)
depth
number
Orderbook depth (optional)

Response

{
  "orderbook": {
    "buys": [
      {
        "price": "string",
        "quantity": "string",
        "timestamp": "number"
      }
    ],
    "sells": [
      {
        "price": "string",
        "quantity": "string",
        "timestamp": "number"
      }
    ],
    "sequence": "number",
    "timestamp": "number",
    "height": "number"
  }
}