POST
https://prv.gateway.indexer.biya.io
/
injective_oracle_rpc.InjectiveOracleRPC
/
StreamPrices
StreamPrices
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_oracle_rpc.InjectiveOracleRPC/StreamPrices \
  --header 'Content-Type: application/json' \
  --data '
{
  "base_symbol": "<string>",
  "quote_symbol": "<string>",
  "oracle_type": "<string>"
}
'
Stream new price changes for a specified oracle. If no oracles are provided, all price changes are streamed.
This is a streaming endpoint that requires WebSocket or Server-Sent Events support.
base_symbol
string
Oracle base currency (optional)
quote_symbol
string
Oracle quote currency (optional)
oracle_type
string
Oracle Type (optional)

cURL Example

Using grpcurl:
grpcurl -plaintext -d '{
  "base_symbol": "BTC",
  "quote_symbol": "USD",
  "oracle_type": "BandIBC"
}' \
  localhost:8088 \
  injective_oracle_rpc.InjectiveOracleRPC/StreamPrices
Using websocat:
echo '{"base_symbol": "BTC", "quote_symbol": "USD", "oracle_type": "BandIBC"}' | \
  websocat ws://localhost:8088/injective_oracle_rpc.InjectiveOracleRPC/StreamPrices