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.27.tar.gz
(52.6 kB
view details)
Built Distribution
driftpy-0.6.27-py3-none-any.whl
(60.9 kB
view details)
File details
Details for the file driftpy-0.6.27.tar.gz
.
File metadata
- Download URL: driftpy-0.6.27.tar.gz
- Upload date:
- Size: 52.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.9 Linux/5.15.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a312fb26341148b7e7bc36fc26e6de7bd6393e4ae363fdbe3b5889726c668c7c |
|
MD5 | 05754f45d5acfc6ca1528ddf88cfc3e9 |
|
BLAKE2b-256 | 46f79442dedf56b6958e155d947f793e232e9a5473dff68920ea842df569382a |
File details
Details for the file driftpy-0.6.27-py3-none-any.whl
.
File metadata
- Download URL: driftpy-0.6.27-py3-none-any.whl
- Upload date:
- Size: 60.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.9 Linux/5.15.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cafed554aa6d1e87a41b45f36c8f730a49e74d2adb4831e1341e224d3dcfb75a |
|
MD5 | 67475b6c4368811e3090069015f7a404 |
|
BLAKE2b-256 | 25b5dcbf65c0d01382e7f6dade1b3c0c811c449038968d08a927cdc2cf62380a |