POST
https://prv.gateway.indexer.biya.io
/
injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC
/
StreamOrdersHistory
StreamOrdersHistory
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamOrdersHistory \
  --header 'Content-Type: application/json' \
  --data '
{
  "subaccount_id": "<string>",
  "market_id": "<string>",
  "order_types": [
    {}
  ],
  "direction": "<string>",
  "state": "<string>"
}
'
Stream updates to historical orders of a derivative Market. This endpoint sends real-time updates for historical order changes.
This is a streaming endpoint that requires WebSocket or Server-Sent Events support.
subaccount_id
string
required
Subaccount ID (required)
market_id
string
Market ID (optional)
order_types
array
Array of order types (optional)
direction
string
Order direction (optional)
state
string
Order state (optional)

cURL Example

Using grpcurl:
grpcurl -plaintext -d '{
  "subaccount_id": "0x...",
  "market_id": "0x..."
}' \
  localhost:8088 \
  injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamOrdersHistory
Using websocat:
echo '{"subaccount_id": "0x...", "market_id": "0x..."}' | \
  websocat ws://localhost:8088/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamOrdersHistory