Skip to main content

Official python package to use Tabdeal API

Project description

Tabdeal API Python SDK

PyPI version Python version

Official python package to use Tabdeal Exchange API

Installation

pip install tabdeal-python

Documentation

https://docs.tabdeal.org

Postman Collection

RESTful APIs

Usage examples:

from tabdeal.enums import OrderSides, OrderTypes
from tabdeal.spot import Spot

api_key = '<api_key>'
api_secret = '<api_secret>'


client = Spot(api_key, api_secret)

order = client.new_order(symbol='BTC_IRT',
                         side=OrderSides.BUY,
                         type=OrderTypes.MARKET,
                         quantity="0.002")

print(order)

Exception

There are 2 types of exceptions returned from the library:

  • tabdeal.exceptions.ClientException
    • This is thrown when server returns 4XX, it's an issue from client side.
    • It has 4 properties:
      • status - HTTP status code
      • code - Server's error code
      • message - Server's error message
      • detail - Detail of exception
  • tabdeal.exceptions.ServerException
    • This is thrown when server returns 5XX, it's an issue from server side.

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

tabdeal-python-0.4.6.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

tabdeal_python-0.4.6-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file tabdeal-python-0.4.6.tar.gz.

File metadata

  • Download URL: tabdeal-python-0.4.6.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for tabdeal-python-0.4.6.tar.gz
Algorithm Hash digest
SHA256 01dfc933c54a8f4aac185e30318d940087a4ccd4e2925a7be6e29beb51ad165e
MD5 0dd20c16056fe4d18c0b1d1c1526db00
BLAKE2b-256 7b32a96e83e278174e5b1f9b51fc80064af4ace5f68e79386a8b3b16819114ef

See more details on using hashes here.

File details

Details for the file tabdeal_python-0.4.6-py3-none-any.whl.

File metadata

File hashes

Hashes for tabdeal_python-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 60a9fb5dcffd745d0d70f06ecb1352fd34c0eb58bf14a98421302cc6f3e268d4
MD5 ded641e8f3988518d3aaa9a692da2c78
BLAKE2b-256 98f7f3d713f1af6b21e3c5e3e3b2161786018f7174bcfcd03de903ebb40964a2

See more details on using hashes here.

Supported by

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