A Python client for the Drift DEX
Project description
DriftPy
DriftPy is the Python client for the Drift protocol. It allows you to trade and fetch data from Drift using Python.
Read the full SDK documentation here!
Installation
pip install driftpy
Note: requires Python >= 3.10.
SDK Examples
examples/
folder includes more examples of how to use the SDK including how to provide liquidity/become an lp, stake in the insurance fund, etc.
Setting Up Dev Env
bash setup.sh
Running Unit Tests
bash test.sh
Building the docs
Local Docs: mkdocs serve
Updating public docs: poetry run mkdocs gh-deploy --force
Releasing a new version of the package
python new_release.py
- Create a new release at https://github.com/drift-labs/driftpy/releases.
- (The CI process will upload a new version of the package to PyPI.)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
driftpy-0.6.28.tar.gz
(52.6 kB
view hashes)
Built Distribution
driftpy-0.6.28-py3-none-any.whl
(60.9 kB
view hashes)