Rest Client for Delta Exchange
Project description
python-rest-client
Get started
-
Create an account on https://testnet.delta.exchange/signup
-
Install the package:
pip install delta-rest-client
- Follow the below snippet to trade on testnet:
from delta_rest_client import DeltaRestClient, order_convert_format
delta_client = DeltaRestClient(
base_url='https://testnet-api.delta.exchange',
username='',
password=''
)
product_id = 2
delta_client.get_product(product_id)
order = order_convert_format(7078.5, 10, "buy", product_id)
delta_client.create_order(order) # will create order on testnet
order1 = order_convert_format(7078.5, 10, "buy", product_id)
order2 = order_convert_format(7078.5, 10, "sell", product_id)
orders = [order1, order2]
delta_client.batch_create(product_id, orders)
delta_client.get_orders()
delta_client.get_L2_orders(product_id)
delta_client.get_ticker(product_id)
delta_client.get_wallet()
- Verify your orders on https://testnet.delta.exchange
Same steps can used for production trading.
- Production url is https://trade.delta.exchange/
- Production base_url is https://api.delta.exchange
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
Close
Hashes for delta_rest_client-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c4a49764a29947afbc4233a3bbb0c8cba6d071c40ffc7a50ac8d53c1f31303 |
|
MD5 | f2f07eb3c26a6dc6a52947681a154f14 |
|
BLAKE2b-256 | def00e0317eb9b64c1790760140c4230f5a7f138c880a0a928be8fd7ae44efc1 |