Stream live updates of selected derivative markets. This is a server-side streaming endpoint that continuously sends market updates.
This is a streaming endpoint that requires WebSocket or Server-Sent Events support. The connection will remain open and receive updates in real-time.
List of market IDs for updates streaming. Empty array means ‘ALL’ derivative markets (optional)
Response
The response is a stream of StreamMarketResponse objects:
{
"market": {
"market_id": "string",
"market_status": "string",
"ticker": "string",
...
},
"operation_type": "string",
"timestamp": "number"
}
cURL Example
gRPC-Web streaming endpoints require WebSocket support. Standard curl cannot handle streaming responses.
Using grpcurl:
grpcurl -plaintext -d '{"market_ids": ["0x..."]}' \
localhost:8088 \
injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamMarket
Using websocat:
echo '{"market_ids": ["0x..."]}' | websocat ws://localhost:8088/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamMarket
Using wscat:
wscat -c ws://localhost:8088/injective_derivative_exchange_rpc.InjectiveDerivativeExchangeRPC/StreamMarket
# Then send: {"market_ids": ["0x..."]}