POST
https://prv.gateway.indexer.biya.io
/
injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC
/
StreamOrderbookV2
StreamOrderbookV2
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamOrderbookV2 \
  --header 'Content-Type: application/json' \
  --data '
{
  "market_ids": [
    {}
  ]
}
'
Stream live snapshot updates of selected derivative market orderbook. This endpoint sends complete orderbook snapshots whenever the orderbook changes.
This is a streaming endpoint that requires WebSocket or Server-Sent Events support. The connection will remain open and receive updates in real-time.
market_ids
array
List of market IDs for orderbook streaming. Empty array means ‘ALL’ derivative markets (optional)

Response

The response is a stream of StreamOrderbookV2Response objects with complete orderbook snapshots.

cURL Example

Using grpcurl:
grpcurl -plaintext -d '{"market_ids": ["0x..."]}' \
  localhost:8088 \
  injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamOrderbookV2
Using websocat:
echo '{"market_ids": ["0x..."]}' | websocat ws://localhost:8088/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamOrderbookV2
Using wscat:
wscat -c ws://localhost:8088/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamOrderbookV2
# Then send: {"market_ids": ["0x..."]}