POST
https://prv.gateway.indexer.biya.io
/
injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC
/
StreamTradesV2
StreamTradesV2
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamTradesV2 \
  --header 'Content-Type: application/json' \
  --data '
{
  "market_id": "<string>",
  "subaccount_id": "<string>",
  "execution_side": "<string>",
  "direction": "<string>"
}
'
Stream newly executed trades from Derivative Market (V2). Same functionality as StreamTrades but with improved performance.
This is a streaming endpoint that requires WebSocket or Server-Sent Events support.
market_id
string
Market ID (optional)
subaccount_id
string
Subaccount ID (optional)
execution_side
string
Execution side (optional)
direction
string
Trade direction (optional)

cURL Example

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