Thursday, February 6, 2020

Predict-It Python API

The PredictIt website provides a variety of non-standard betting markets (politics, world events, etc.). Utilizing PredictIt's public REST API, I have uploaded an initial version of python code that retrieves various Market and Contract data.

To try this code, check out my public "Misc-python" GitHub repository:
https://github.com/mdhatmaker/Misc-python

The PredictIt python code is in the "/Apis/predict-it" folder within this repository.

If you'd like to see the REST API description that I used to create this code, check out the following link:
https://predictit.freshdesk.com/support/solutions/articles/12000001878-does-predictit-make-market-data-available-via-an-api-

I have started looking at more advanced sample code that implements additional functionality (such as actual trading of contracts). As I make progress, I'll post updates here.




No comments:

Post a Comment