Stream real-time prices for an asset
Establishes an SSE stream for a single token’s price using query parameters.
Emitted events: token_price · ping · warning · error
Query Parameters
Streaming method. Use token_price to receive PriceResponse events.
token_price Token smart contract address.
Blockchain network identifier (e.g. ethereum, solana).
Optional identifier echoed back on each SSE event for this subscription.
0 <= x <= 4294967295Close the stream after this many events. Omit for an indefinite stream.
x >= 1Response
SSE stream established.
- Option 1
- Option 2
- Option 3
- Option 4
Price update payload. Delivered on the token_price event channel.
Token smart contract address.
"0x7a250d5630b4cf539739df2c5dacb4c659f2488d"
Blockchain network identifier.
"ethereum"
Token price in USD.
"3456.78"
Server ingestion timestamp (ISO 8601).
"2024-05-08T10:00:00Z"
On-chain or oracle price timestamp (ISO 8601).
"2024-05-08T09:59:58Z"
Alias for timestamp_price.
"2024-05-08T09:59:58Z"