Metadata-Version: 2.4
Name: dnse-sdk
Version: 0.1.0
Summary: DNSE Python SDK
Author: DNSE
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# DNSE Python SDK

This SDK provides a simple client for calling the DNSE APIs with HMAC signatures.

## Requirements

- Python 3.8+

## Usage

```python
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:

```bash
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
