🦄 The unofficial Python client for the Uniswap exchange.
The unofficial Python client for Uniswap.
Documentation is available at https://uniswap-python.com/
See our Getting started guide in the documentation.
Unit tests are under development using the pytest framework. Contributions are welcome!
Test are run on a fork of the main net using ganache-cli. You need to install it with
npm install -g ganache-cli before running tests.
To run the full test suite, in the project directory set the
PROVIDER env variable to a mainnet provider, and run:
poetry install export PROVIDER= # URL of provider, e.g. https://mainnet.infura.io/v3/... make test # or... poetry run pytest --capture=no # doesn't capture output (verbose)
You can support us on Gitcoin Grants.
Want to help out with development? We have funding to those that do! See #181
use_estimate_gasconstructor argument (used in testing)
A huge thank you Erik Bjäreholt for adding Uniswap V2 support, as well as all changes in this version!