Command-line submitter for IMC Prosperity 2 algorithms
Project description
IMC Prosperity 2 Submitter
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file prosperity2submit-0.1.1.tar.gz
.
File metadata
- Download URL: prosperity2submit-0.1.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 796328c7ca10351f47ac734d53e9b1959c7291f93ea310ed1e1ffb93f4ef74e2 |
|
MD5 | 373a425375caf2b4fcaaba254a9417b9 |
|
BLAKE2b-256 | 15b723973625f9cd4613ae788d315d255a7ff95b0033f785d4fa154ea98898e1 |
File details
Details for the file prosperity2submit-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: prosperity2submit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5e43a817e8d5fe772cebaf245ea04edcfa3ec507dc52117a0eb6f71784a3235 |
|
MD5 | 2ec5d77940b4bf6c316905e4a07647c3 |
|
BLAKE2b-256 | 382ccbaafb3ad0d462463295a1d47c060717d74548f1c0c820c11a8eba70a9ba |