Numerai Python API

Automatically download and upload data for the Numerai machine learning competition.

This library is a Python client to the Numerai API. The interface is programmed in Python and allows downloading the training data, uploading predictions, and accessing user and submission information. Some parts of the code were taken from numerflow by ChristianSch.
Visit his wiki, if you need further information on the reverse engineering process.

If you encounter a problem or have suggestions, feel free to open an issue.

Installation

  1. Obtain a copy of this API

    • If you do not plan on contributing to this repository, download a release.

      1. Navigate to releases.
      2. Download the latest version.
      3. Extract with unzip or tar as necessary.
    • If you do plan on contributing, clone this repository instead.

  2. cd into the API directory (defaults to numerapi, but make sure not to go into the sub-directory also named numerapi).

  3. pip install -e .

Usage

See example.py. You can run it as ./example.py

Documentation

Layout

Parameters and return values are given with Python types. Dictionary keys are given in quotes; other names to the left of colons are for reference convenience only. In particular, lists of dicts have names for the dicts; these names will not show up in the actual data, only the actual dict data itself.

login

Parameters

download_current_dataset

Parameters

get_all_competitions

Return Values

get_competition

Return Values

get_earnings_per_round

Parameters

get_scores_for_user

Parameters

get_user

Parameters

get_submission_for_round

Parameters

upload_predictions

Parameters

Return Values

Notes