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, create_order_format, cancel_order_format, round_by_tick_size
delta_client = DeltaRestClient(
base_url='https://testnet-api.delta.exchange',
api_key='',
api_secret=''
)
product_id = 2
product = delta_client.get_product(product_id)
settling_asset = product['settling_asset']
order = create_order_format(7078.5, 10, "buy", product_id)
delta_client.create_order(order) # will create order on testnet
order1 = create_order_format(7078.5, 10, "buy", product_id)
order2 = create_order_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(settling_asset)
- Verify your orders on https://testnet.delta.exchange
Same steps can used for production trading.
- Production base_url is https://api.delta.exchange
- Production trade terminal url is https://trade.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.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5d02a2ad65158ed6c0ab7e4b079370275902c8754c163332cac81963f1aba4d |
|
MD5 | 27408bd059f871f2caa654b5de1f5013 |
|
BLAKE2b-256 | 30430a979dc009fc21990b350e49c2ba94574719425d61f70d2e97a0fc2b8fb1 |