Skip to the content.

Retrieving predictions

After you publish repeatedly for some time, you can retrieve predictions submitted by other people’s algorithms.

Python

To retrieve predictions for the 70 second horizon:

 from microprediction import MicroReader
 mw = MicroReader()
 pred = mw.get_predictions(write_key='YOUR WRITE KEY HERE', name='your_stream.json', delay=70, strip=True, consolidate=True)

The allowable delays are in mw.DELAYS property, if you forget them.

API

GET request to api.microprediction.org/predictions/your_stream.json.

The payload should include delay and write_key

Allowable delays are 70, 310, 910, 3555