POST
https://prv.gateway.indexer.biya.io
/
injective_oracle_rpc.InjectiveOracleRPC
/
StreamPricesByMarkets
StreamPricesByMarkets
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_oracle_rpc.InjectiveOracleRPC/StreamPricesByMarkets \
  --header 'Content-Type: application/json' \
  --data '
{
  "market_ids": [
    {}
  ]
}
'
Stream new price changes for markets. Market IDs to stream price for, empty to listen for all prices.
This is a streaming endpoint that requires WebSocket or Server-Sent Events support.
market_ids
array
Market IDs to stream price for. Empty array means ‘ALL’ prices (optional)

cURL Example

Using grpcurl:
grpcurl -plaintext -d '{"market_ids": ["0x..."]}' \
  localhost:8088 \
  injective_oracle_rpc.InjectiveOracleRPC/StreamPricesByMarkets
Using websocat:
echo '{"market_ids": ["0x..."]}' | \
  websocat ws://localhost:8088/injective_oracle_rpc.InjectiveOracleRPC/StreamPricesByMarkets