This package contains code for finding the optimal exchange rate and trade amounts for a set of orders between two tokens.
pip install git+http://github.com/gnosis/dex-open-solver#egg=dex-open-solver_gnosis
For help on all options:
gp_match -h
Matching a specific token pair:
gp_match instance.json token-pair token0 token1
Matching the token pair which leads to highest objective value:
gp_match instance.json best-token-pair
- Checkout the source code.
git clone git@github.com:gnosis/dex-open-solver.git
cd dex-open-solver
- Create a virtual environment (optional but recommended):
virtualenv --python=/usr/bin/python3 venv
. venv/bin/activate
- Install in development mode:
pip install -e .
See here.