Orderbook scraping tool to log Level 2 data from the Binance.us api.
Uses threaded websocket clients to monitor individual symbols and writes incoming orders in txt files.
Run the main.py script:
- Clone repo: git clone https://github.com/4b41/obscraper.git
- Select directory: cd obscraper/src
- Compile program: python -u main.py
- Create or remove watchers with the syntax: python main.py --create_watcher SYMBOL or python main.py --remove_watcher SYMBOL
Alternatively, you can run the code blocks in the main.ipynb notebook.