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
0.5.4
use_estimate_gas
constructor argument (used in testing)0.5.3
0.5.2
0.5.1
0.5.0
get_price_input
and get_price_output
0.4.6
0.4.5
0.4.4
0.4.3
approved
decorator.0.4.2
0.4.1
0.4.0
A huge thank you Erik Bjäreholt for adding Uniswap V2 support, as well as all changes in this version!
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。