POST
https://prv.gateway.indexer.biya.io
/
injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC
/
StreamPositionsV2
StreamPositionsV2
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamPositionsV2 \
  --header 'Content-Type: application/json' \
  --data '
{
  "subaccount_id": "<string>",
  "market_id": "<string>",
  "market_ids": [
    {}
  ],
  "subaccount_ids": [
    {}
  ],
  "account_address": "<string>"
}
'
Stream derivatives position updates (V2). Use this endpoint instead of StreamPositions for better performance.
This is a streaming endpoint that requires WebSocket or Server-Sent Events support.
subaccount_id
string
Subaccount ID (optional)
market_id
string
Market ID (optional)
market_ids
array
List of market IDs (optional)
subaccount_ids
array
Array of subaccount IDs (optional)
account_address
string
Account address (optional)

cURL Example

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