An implementation of a Stockfighter server in Python 3
Written by Stockfighter user Amtiskaw (a.k.a. Fohristiwhirl on GitHub)
Requirements:
- With the help of Medecau, we now use the Bottle library for request handling
- It can likely be installed using "pip install bottle"
- The old server will remain as disorderBook_simple.py but is deprecated
disorderBook Usage:
- Run disorderBook_bottle.py
- Connect your trading bots to http://127.0.0.1:8000/ob/api/ instead of the normal URL
- Don't use https
Authentication:
- There is no authentication by default
- If you want authentication, run disorderBook_bottle.py -a accounts.json
- (Edit that file to contain a list of valid users and API keys)
Features:
- Your bots can use whatever accounts, venues, and symbols they like
- New exchanges/stocks are created as needed when someone tries to do something on them
- Two stupid bots are included - you must start them (or many copies) manually
Issues:
- No websockets yet, or maybe ever
- Everything persists forever; we will eventually run out of RAM or the CPU will get bogged down