Skip to content
Fourohtwo

Get Prediction Market OHLCV Candles

api.nansen.ai/api/v1/prediction-market/ohlcv

Get Prediction Market OHLCV Candles

SolanaAnswering
POSThttps://api.nansen.ai/api/v1/prediction-market/ohlcv

Uptime100% of 2 checks in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://api.nansen.ai/api/v1/prediction-market/ohlcv" \
  -d '{"date":{"to":"2024-12-31T23:59:59Z","from":"2024-01-01T00:00:00Z"},"order_by":[{"field":"period_start","direction":"DESC"}],"market_id":"654412"}'

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "date": {
    "to": "2024-12-31T23:59:59Z",
    "from": "2024-01-01T00:00:00Z"
  },
  "order_by": [
    {
      "field": "period_start",
      "direction": "DESC"
    }
  ],
  "market_id": "654412"
}