drift-labs / driftpy

python sdk to interact with drift v2
https://drift-2.gitbook.io/driftpy-for-dummies/
65 stars 40 forks source link

Historical data - how to fetch markets data? #204

Open gabrielfior opened 1 month ago

gabrielfior commented 1 month ago

I am trying to fetch historical data for markets, specifically where type == Prediction (as described in the API docs).

I used the endpoint https://data.api.drift.trade/contracts but the response didn't include any Prediction markets. How can I query those?

I also tried the historical snapshots (on S3), but didn't succeed either.

gabrielfior commented 1 month ago

This is related to https://github.com/drift-labs/driftpy/issues/201 but not a duplicate.