Skip to main content

CLI for the Anjeer trading game — find, create and join API-mode lobbies

Project description

CLI & Scripted Players

A Python CLI for managing lobbies and launching scripted players in API-mode games.

Installation

pip install -e cli/          # RECOMMENDED: dev install from repo root
# or
uv tool install anjeer       # production install

Run anjeer setup from your bot's project directory. It prompts for your API key and preferred language, saves config to anjeer.json in the current directory, and copies a starter script template.

Commands

anjeer setup                              # first-time setup in cwd
anjeer find                               # list open API-mode lobbies
anjeer create                             # interactive lobby creation
anjeer create --game-mode advanced \
              --spawn-bots \
              --bot-difficulty hard       # non-interactive
anjeer join <code>                        # join a lobby and launch your script on start
anjeer start <code>                       # (creator) start the game and launch your script
anjeer close <code>                       # leave and delete if empty
anjeer preset list/save/delete            # manage saved lobby configurations

anjeer start and anjeer join set environment variables (ANJEER_API_KEY, ANJEER_SERVER_WS_URL, ANJEER_LOBBY_CODE, ANJEER_GAME_MODE) then exec your configured script. Your script connects to the same WebSocket the browser uses and receives the full wire protocol.

Scripted Players

Scripts receive everything: MBP-N depth snapshots, MBO order lifecycle events, eval module outputs, delta tables, and round lifecycle messages. This is enough data surface to build serious strategies.

The spectator view shows a live script log panel — your script can send script_log messages over the WebSocket and they appear in real time for anyone watching.

A few directions people might take this:

  • Bayesian agent — replicate or extend the hard bot's hypergeometric posterior in Python with full access to your own hand
  • Time-series model — buffer depth snapshots and trade events into a feature matrix; act on confidence crossings
  • Reinforcement learning — treat each round as an episode; reward = end-of-round balance delta

The interface is stable enough for real strategies. Helper templates covering connection setup, book reconstruction, and hand tracking are planned.

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

anjeer-0.1.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

anjeer-0.1.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file anjeer-0.1.0.tar.gz.

File metadata

  • Download URL: anjeer-0.1.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for anjeer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dbade90360e24539b861f721cddbf3a36bd854a1de9efbb9c930b3a505dbe0d5
MD5 7a43326b54f4375f04cc9153e034a47d
BLAKE2b-256 2671c735eb9ec7364791289a13de8c6b61ecb704528430249729527844a412e3

See more details on using hashes here.

File details

Details for the file anjeer-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for anjeer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f074bf76fe82ebb9a9382ebcf78511d81e25e32e7e77a99f277d8c531fc5a9aa
MD5 02fc7ba13fdfa76dc1064abaaa82743d
BLAKE2b-256 a9096917472b36b0ae6ae57dc91cca9ceba9dfe0a4b1884c897050b7187cc9f3

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