Skip to main content

MetaGame Trading Bootcamp Python Client

Project description

MetaGame Trading Bootcamp Python Client

Write your trading bot with Python!

Dependencies

  • python
  • uv (which figures out all the python dependencies)

Installing uv

Install uv with the standalone installers:

# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Or, from PyPI:

# With pip.
pip install uv
# Or pipx.
pipx install uv

Using bots

This following may not work on Windows without WSL.

  1. git clone https://github.com/tradingbootcamp/platform && cd python-client
  2. Install the dependencies with uv sync
  3. Copy example.env to .env
  4. Go to the "Accounts" page on the exchange and copy your JWT into .env
  5. Make sure you are acting as the account you are going to be trading from, the copy the ACT_AS into .env

You can test if it is working by running

uv run examples/min_max_bot.py "<name of market>"

This command places orders at the min and max settlement prices, so you shouldn't be risking any capital.

You can look at other example bots in examples/, like the code for an (older?) version of mark (market_maker_bot.py) and bob (naive.py).

You can figure out the Jupyter Notebook if you wish.

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

metagame-0.4.23.tar.gz (128.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metagame-0.4.23-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file metagame-0.4.23.tar.gz.

File metadata

  • Download URL: metagame-0.4.23.tar.gz
  • Upload date:
  • Size: 128.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for metagame-0.4.23.tar.gz
Algorithm Hash digest
SHA256 543f9930bb6665256d6a9d50180d74e0fb14b291e78037bf3c0d342cb594daa8
MD5 ef80a74d29b4695fc9766a150dbe5776
BLAKE2b-256 0aa7378876c2d91316de726d64f630a0e888209e286e722a9c26b3a45fa89149

See more details on using hashes here.

File details

Details for the file metagame-0.4.23-py3-none-any.whl.

File metadata

  • Download URL: metagame-0.4.23-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for metagame-0.4.23-py3-none-any.whl
Algorithm Hash digest
SHA256 b8c922e23c71eb7f6516ab95c8d3591d38037f5c65cae37fece3acaffb13e35d
MD5 a1d9a28dcf3f22bf6879caca715be5ae
BLAKE2b-256 ce281bde5252f2f757d042b150c57fe62e1d1c32f54b8b536f0c692513655962

See more details on using hashes here.

Supported by

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