This script gets a selection of orders from three exchanges (Coinbase, Gemini, and Kraken) given a quantity. It returns a selection of orders, the total price and total coins of said selection.
This script requires a python version of 3.8 or higher. Any earlier version will have breaking changes. A make file is provided to help you get started.
make installwill installpython3.8on your systemmake setupwill create a virtualpythonenvironment and install all dependencies to run the scriptmake runwill run the script with default quantities
To run the script without make run you can type python3 coinroutes_challenge.py. You can add optional flags as well.
-qto set a quantity-fto set a filename to read a json with exchange endpoints from-oto determine the most optimal selection of orders to buy or sell.