Rest Client for Delta Exchange
Project description
python-rest-client
Get started
-
Create an account on https://testnet.delta.exchange/signup
-
Create a new virtualenv and install dependencies
virtualenv --python=python3 venv
source venv/bin/activate
pip install -r requirements.txt
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()
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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9c6206fe2a85a335062fef3003e4559d9810b6e721f59debad12aade49bdf52 |
|
MD5 | 24eb7bc64da0784794a28ca1d9bcde7e |
|
BLAKE2b-256 | 0637c61b8e9ff241cdeac96ce8df158020d6db005596d6f02e8128bead54bfad |