Examples
git clone https://exchange.samuel-drapeau.info/examples.git
cd examples && git pull # later, for updates
No git? Download the zip.
| Example | What it shows | Needs |
|---|---|---|
01_hello.py | Who you are, which server you reached, what you can trade | A login |
02_market_board.py | Live board of the public markets | A login |
03_order_book.py | Live 10-level book of one market | A login |
05_strategies/ | Mean reversion and momentum: edit one function | A code from your teacher |
06_class_game/play.py | Your seat in the class game | A code from your teacher |
04_first_arena.py | Your own private market, against a bot | The right to create arenas |
07_record_and_plot.py | Sell on a schedule, save everything, chart it | The right to create arenas |
08_portfolio.py | The two ways to watch an account | The right to create arenas |
09_live_demo.py | Six trading styles compete, for presentations | The right to create arenas |
Run any of them with fastboxex run, for example fastboxex run examples/01_hello.py. Options go after the script. Ctrl-C stops every script cleanly.