Skip to main content

Rest Client for Delta Exchange

Project description

python-rest-client

Get started

  1. Create an account on https://testnet.delta.exchange/signup

  2. Install the package:

pip install delta-rest-client
  1. 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',
  username='',
  password=''
)
product_id = 2
delta_client.get_product(product_id)
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()
  1. Verify your orders on https://testnet.delta.exchange

Same steps can used for production trading.

  1. Production url is https://trade.delta.exchange/
  2. Production base_url is https://api.delta.exchange

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

delta_rest_client-0.0.8.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

delta_rest_client-0.0.8-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file delta_rest_client-0.0.8.tar.gz.

File metadata

  • Download URL: delta_rest_client-0.0.8.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

File hashes

Hashes for delta_rest_client-0.0.8.tar.gz
Algorithm Hash digest
SHA256 95882493178f005d76903cca6eccece8e6d722594f1251b184e714230a616d6e
MD5 10cde235b797dc5aa21daf527bed68a1
BLAKE2b-256 529467f52cc855aa9679da8c369a28e02dbf972c56f108c9591704439f3fe0e3

See more details on using hashes here.

File details

Details for the file delta_rest_client-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: delta_rest_client-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

File hashes

Hashes for delta_rest_client-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6c9a797e88593ab4a2c225eede06c6cce90a92b4729589d55ccb0baede3d1231
MD5 3321cd908ad484ea947ac39f111ed099
BLAKE2b-256 7651a7c6e6aec42b4e4ebe2f83b7d833aecb35a04d7fb3793d98f24801551454

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page