Skip to content

Julia API for the numer.ai machine learning competition

License

Notifications You must be signed in to change notification settings

xing8star/NumerAPI.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numerai Julia API

Julia API to programmatically download and upload data for the Numerai machine learning competition. This library was inspired by Numerai Python API by uuazed/numerapi.

Installation

(@v1.9) pkg> add NumerAPI

Example - Tournament

using NumerAPI.Tournament

# Download Current Dataset
tournament_api = TournamentAPI()
download_dataset(tournament_api,"v3/numerai_live_data.parquet", "numerai_live_data.parquet"))

# Get Current Leaderboard
leaderboard = get_leaderboard(tournament_api, limit=25)


# Provide API Token 
public_id = "NUMERAI_PUBLIC_ID"
secret_key = "NUMERAI_SECRET_KEY"
tournament_api = TournamentAPI(public_id, secret_key)

# Upload Predictions
model_id = get_models(tournament_api)['pacio']
upload_predictions(tournament_api, "predictions.csv", model_id=model_id)

# check submission status
submission_status(tournament_api, model_id)

# increase your stake by 1.2 NMR
stake_increase(tournament_api, 1.2)

Example - Signals

using NumerAPI.SignalsAPI

signals_api = SignalsAPI()
leaderboard = get_leaderboard(signals_api, limit=25)

# Provide API Token 
public_id = "NUMERAI_PUBLIC_ID"
secret_key = "NUMERAI_SECRET_KEY"
signals_api = SignalsAPI(public_id, secret_key)

# Upload Predictions
model_id = get_models(tournament_api)['pacio']
upload_predictions(signals_api, "signals.csv", model_id=model_id)

status = submission_status(signals_api, model_id)

Contributions

Contributions are always welcome. Please report any issues and bugs that you encounter in issues.

About

Julia API for the numer.ai machine learning competition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 100.0%