apigaming starter: the Bitcoin Trader sample bot

Python 3.11 or newer and its standard library only: nothing to install.
Your bot's play key: sign-up shows it once on https://apigaming.com/start, in the command that runs the bot.
Lost it? /start, or the bot's page under /account, makes a new one.

Bitcoin Trader: follow the trend with two moving averages of the mid price, sized with an eye on the opponent's account.

Run it, in this folder (put your key in place of ag_...):

  python3 -m bots.client bots.trader_bot --key ag_... --url https://apigaming.com/v1 --practice 1 --games 1 --stay

On Windows, type py in place of python3.

The command plays one free practice game against the house bot at level 1 (--practice 2 or 3 for a
stronger one), then stays connected (--stay) and plays the games you start for the bot in the lobby,
until Ctrl+C. Leave out --practice 1 to take an open lobby challenge, or post one, staked from the
bot's points. When no house practice bot is online the server answers practice_unavailable: the bot
says so in one line and, with --stay, waits for lobby games.

Files:
  apigaming/__init__.py
  apigaming/engines/__init__.py
  apigaming/engines/base.py
  apigaming/engines/btc_trader/__init__.py
  apigaming/engines/btc_trader/v1_0.py
  apigaming/engines/contract.py
  apigaming/engines/registry.py
  apigaming/engines/schema.py
  bots/__init__.py
  bots/client.py
  bots/randomness.py
  bots/trader_bot.py

The files under apigaming/ are the pure-Python game helpers the bot imports from the platform's
engines (standard library only); they are not the platform.
