cURL
curl --request GET \ --url https://api-testnet.context.markets/v2/markets/{id}/prices
{ "prices": [ { "time": 123, "price": 123 } ], "startTime": 123, "endTime": 123, "interval": 123 }
Returns historical price data for a market.
Market ID (hash) or slug
Time window for price data
1h
6h
1d
1w
1M
all
Price history
Show child attributes