DNSE Python SDK
Project description
DNSE Python SDK
This SDK provides a simple client for calling the DNSE APIs with HMAC signatures.
Requirements
- Python 3.8+
Usage
from dnse import DNSEClient
client = DNSEClient(
api_key="replace-with-api-key",
api_secret="replace-with-api-secret",
base_url="https://openapi.dnse.com.vn",
)
status, body = client.get_accounts(dry_run=False)
print(status, body)
Dry run
Set dry_run=True on any API call to print the request and skip the network call.
Examples
Run any example from the sdk/python/trading-api directory:
python sdk/python/trading-api/get_accounts.py
Available examples:
- cancel_order.py
- create_trading_token.py
- get_accounts.py
- get_balances.py
- get_deals.py
- get_loan_packages.py
- get_ohlc.py
- get_order_detail.py
- get_order_history.py
- get_orders.py
- get_ppse.py
- get_security_definition.py
- post_order.py
- put_order.py
- send_email_otp.py
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
dnse_sdk-0.1.0.tar.gz
(4.1 kB
view details)
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 dnse_sdk-0.1.0.tar.gz.
File metadata
- Download URL: dnse_sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
072e9c556e332a8d6052a11587333f55a20268ced4409a21cd4e95a002893d90
|
|
| MD5 |
cedb63ed3ba038c455abffff27c60d5b
|
|
| BLAKE2b-256 |
e85e6fb55db6e24ea2716fe9afb42bcfdbf9f835ea142179f2ff1e51ac14acf8
|
File details
Details for the file dnse_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dnse_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2534e2e2227297714952a4274d4e495c488cdc7d86c9bae84b0f5db9451360a2
|
|
| MD5 |
6ea600e938d7e4b7eeb34710d6cda857
|
|
| BLAKE2b-256 |
ff35a69894164d9ac7a5c8623a9d9c5148a5826beb9adab17fee224873b5218e
|