Skip to content

gnosis/dex-open-solver

Repository files navigation

Contents

This package contains code for finding the optimal exchange rate and trade amounts for a set of orders between two tokens.

Installing

pip install git+http://github.com/gnosis/dex-open-solver#egg=dex-open-solver_gnosis

Using

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

Developing

  1. Checkout the source code.
git clone git@github.com:gnosis/dex-open-solver.git
cd dex-open-solver
  1. Create a virtual environment (optional but recommended):
virtualenv --python=/usr/bin/python3 venv
. venv/bin/activate
  1. Install in development mode:
pip install -e .

Algorithm

See here.

About

Open source solver to the batch auction problem.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages