Skip to main content

Uniswap for Python

Project description

UniswapPy

This package is a python re-factor of the original Uniswap V2 pairing code and can be utilized for the purpose of analysing and modelling its behavior for DeFi

To install package:

> git clone https://github.com/icmoore/uniswappy
> pip install .

or

> pip install UniswapPy

Special Features

  • Abstracted Actions: Obvusication is removed from standard Uniswap action events to help streamline analysis and lower line count
  • Rebasing: Can calculate settlment LP token amounts given token amounts and vice versa
  • Simulation: Can simulate trading using Geometric Brownian Motion (GBM) process, or feed in actual raw price data to analyze behavior
  • Randomized Events: Token amount and time delta models to simulate possible trading behavior
  • Revenue Tools: Basic yeild calculators and risk tools to assist in analyzing outcomes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

UniswapPy-1.0.3.tar.gz (17.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page