Fetching market data
This guide covers how to fetch and work with market data using the Context SDK.Setup
Getting market lists
Trending markets
Fetch the hottest markets by recent trading volume:Filtering markets
Find markets matching specific criteria:Paginating results
Handle large result sets with cursor-based pagination:Getting market details
Single market
Getting quotes
Get current bid/ask prices for a market:Working with orderbooks
Snapshot
Get the current orderbook state:Real-time streaming
For real-time orderbook updates, use Server-Sent Events by setting theAccept header:
Calculate spread
Price history
Fetch historical prices
"1h", "6h", "1d", "1w", "1M", "all".