A Python SDK for the D2Y Exchange API
Project description
D2Y Python SDK
The D2Y Python SDK is a convenient and user-friendly library for interacting with the D2Y Exchange API. It simplifies the process of accessing and managing data from the D2Y platform and offers an easy-to-use interface for developers.
Installation
To install the D2Y Python SDK, use pip:
pip install d2y
Documentation
For comprehensive documentation, including getting started guides and detailed examples, please visit our official SDK documentation.
Running tests
- Create a .env file inside the tests folder and populate with the following variables:
API_KEY,API_SECRET,TEST_INSTRUMENT_NAME,LINKED_SIGNER_KEY - For tests to pass the api key and secret should be from a fresh user, linked signer key should be associated with the same user and the instrument name should have an empty book
- Optionally specify
API_BASE_URLenv var if you want to test locally, by default it points to testnet - Create venv and install packages from requirements.txt and enter venv
source venv/bin/activate - By default the last published version of d2y packge is installed. But for testing of the current d2y changes you must run
pip install -e . - Run tests
python tests/test_sdk.py
Updating package
- Increment version number in setup.py
- Delete existing
dist/directory - Add any new required packages to setup.py
- Build package:
python setup.py sdist bdist_wheel - Upload to PyPI:
twine upload dist/*
TODO
- Add constants for different environents like CHAIN_ID
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file d2y-0.0.11.tar.gz.
File metadata
- Download URL: d2y-0.0.11.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c582dc554dfe155b4635889a388d34100a85fa18d939bd898ebd175832e0e9d
|
|
| MD5 |
7eda2878170dc24c5a2b111a737acd40
|
|
| BLAKE2b-256 |
a30c6d0c692538d747b68398b9868151733f9bf939a1b9bc474efc201595834e
|
File details
Details for the file d2y-0.0.11-py3-none-any.whl.
File metadata
- Download URL: d2y-0.0.11-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22de482b6d1fc63e42fc8cb90d9aea87433dcbf863a024ff23878e1e1050a954
|
|
| MD5 |
ff8f084fa1855f31b10ebcca56592d1a
|
|
| BLAKE2b-256 |
9b75f9008393ab770c0532babba0eca5a8ac13de62f7d4f2d3af40f0716720a6
|