Skip to main content

Paradex Python SDK

Project description

Paradex Python SDK

Release Build status codecov Commit activity License

Paradex Python SDK provides a simple interface to interact with the Paradex REST and WS API.

Examples

from paradex_py import Paradex
from paradex_py.environment import Environment

paradex = Paradex(env=Environment.TESTNET, l1_address="0x...", l1_private_key="0x...")
print(paradex.account.l2_address) # 0x...
print(paradex.account.l2_public_key) # 0x...
print(paradex.account.l2_private_key) # 0x...

paradex.api_client.fetch_system_config() # { ..., "paraclear_decimals": 8, ... }

async def on_message(ws_channel, message):
    print(ws_channel, message)

await paradex.ws_client.connect()
await paradex.ws_client.subscribe(ParadexWebsocketChannel.MARKETS_SUMMARY, callback=on_message)

📖 For complete documentation refer to tradeparadex.github.io/paradex-py

💻 For comprehensive examples refer to following files:

Development

make install
make check
make test
make build
make clean-build
make publish
make build-and-publish
make docs-test
make docs
make help

The CI/CD pipeline will be triggered when a new pull request is opened, code is merged to main, or when new release is created.

Notes

[!WARNING] Experimental SDK, library API is subject to change

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

paradex_py-0.4.3.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

paradex_py-0.4.3-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file paradex_py-0.4.3.tar.gz.

File metadata

  • Download URL: paradex_py-0.4.3.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for paradex_py-0.4.3.tar.gz
Algorithm Hash digest
SHA256 a2ea08c02274806d84fa445ffacfcacb59a47789e5a686ef23d1fbe98069dcc6
MD5 66738a65d0a3eb2f0b43ff8d851ead46
BLAKE2b-256 48d6a58cb5b8adf626c667e77e93070e58c9348a10488f46ab895777293b192f

See more details on using hashes here.

File details

Details for the file paradex_py-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: paradex_py-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for paradex_py-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a134c77ec2431884e1aef2180d56fa9fb2094e3054c5e1b8a668e2ccbf98cd15
MD5 b155f0c6bb73ceb258fa882472a361f1
BLAKE2b-256 fc652587a140dde21d495c97c910f959a98354ac160f9fede004431d3bd13c5e

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