Skip to main content

Command-line submitter for IMC Prosperity 2 algorithms

Project description

IMC Prosperity 2 Submitter

Build Status PyPI Version

This repository contains a command-line submitter for IMC Prosperity 2 algorithms. It uploads the algorithm, monitors its progress, downloads the logs, logs the final profit / loss, and opens the submission in my IMC Prosperity 2 Visualizer (optional), all in one command.

Usage

Basic usage:

# Install the latest version of the submitter
$ pip install -U prosperity2submit

# Submit an algorithm
$ prosperity2submit <path to algorithm file>

Run pip install -U prosperity2submit again when you want to update the submitter to the latest version.

Submitting requires your Prosperity ID token that is stored in the local storage item with the CognitoIdentityServiceProvider.<some id>.<email>.idToken key on the Prosperity website. You can inspect the local storage items of a website by having the website open in the active tab, pressing F12 to open the browser's developer tools, and going to the Application (Chrome) or Storage (Firefox) tab. From there, click on Local Storage in the sidebar and select the website that appears underneath the sidebar entry.

The submitter will prompt you for the token when it needs it. The token is then stored in your system's credentials store for convenience. ID tokens are short-lived, so you'll be prompted somewhat regularly and old tokens persisted in the credentials store do not pose much of a security risk.

By default, the submitter automatically downloads the submission's logs after simulation is done to submissions/<timestamp>.log. You can change this file using the --out <path to log file> option, or disable downloading logs altogether using the --no-logs flag.

If you use my IMC Prosperity 2 Visualizer, the --vis flag will automatically open the submission in the visualizer after the simulation ends successfully.

Development

If you want to make changes to the submitter, clone (or fork and clone) this repository and run pip install -e . in the project's root. This installs the project in editable mode, so any changes you make are automatically taken into account the next time you run prosperity2submit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prosperity2submit-0.2.6.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

prosperity2submit-0.2.6-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file prosperity2submit-0.2.6.tar.gz.

File metadata

  • Download URL: prosperity2submit-0.2.6.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for prosperity2submit-0.2.6.tar.gz
Algorithm Hash digest
SHA256 2f7605f373e31b816635d055ddd7e8dfa24059cb8c1ba55a4d976e6da8db4e46
MD5 885da3c92e32376813fd05c3cf0f55bd
BLAKE2b-256 6d1f739957c1d9cccb014b072bdd3dd51e41db36f3d8adae8972b24964ffa083

See more details on using hashes here.

File details

Details for the file prosperity2submit-0.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for prosperity2submit-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 32a9108970fe89064dd6313a815a3f6d6a96c813ad9509e2a9af364ce22ad8be
MD5 0fb56054208fb3ff20e435163ce59782
BLAKE2b-256 504eb21b6c09f3f51c7dc7c932d09ce9727244ecef9bdcc60b2c67057e7fcaff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page