Skip to main content

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

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.26.tar.gz (52.5 kB view details)

Uploaded Source

Built Distribution

driftpy-0.6.26-py3-none-any.whl (60.7 kB view details)

Uploaded Python 3

File details

Details for the file driftpy-0.6.26.tar.gz.

File metadata

  • Download URL: driftpy-0.6.26.tar.gz
  • Upload date:
  • Size: 52.5 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

Hashes for driftpy-0.6.26.tar.gz
Algorithm Hash digest
SHA256 72993ae59254ebb7db24edd761420c5a2fb8c608990e5e289c90b3a15ced5217
MD5 b097e78f715091d4c0ff42a9d5f3fde5
BLAKE2b-256 f6d1c4bb27533e82b4cc67fcec9bfbb17b79ba1c80441bd187db35c25a43647a

See more details on using hashes here.

File details

Details for the file driftpy-0.6.26-py3-none-any.whl.

File metadata

  • Download URL: driftpy-0.6.26-py3-none-any.whl
  • Upload date:
  • Size: 60.7 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

Hashes for driftpy-0.6.26-py3-none-any.whl
Algorithm Hash digest
SHA256 cf5f6a036dcaf42711b9820bda2a012fd31759cf4ef9ba6ac949d827dd375f9a
MD5 e6f9b8395264beb7906930cb8e5a9e01
BLAKE2b-256 c836e5542eb341e3ede9cb72fbddcc93376901996fcc6fc9a2399352d475d75d

See more details on using hashes here.

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