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.7.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

tabdeal_python-0.4.7-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file tabdeal_python-0.4.7.tar.gz.

File metadata

  • Download URL: tabdeal_python-0.4.7.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for tabdeal_python-0.4.7.tar.gz
Algorithm Hash digest
SHA256 21ffbc3b704f256a51387e337c36e8b4b37f6a518d78f987da0165e74fba0c22
MD5 a4dca34ad7c17d8586cea7fa7ecb47b5
BLAKE2b-256 2d6477d1fbcacac278f484285fc33ec80a569aea30acb0a796c7dc70bba638ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tabdeal_python-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for tabdeal_python-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 93617dc7609d2de92bbc823c6aedd69315f2f3b584af9caa476a5cfe4f703840
MD5 c9fa713c2d38456258e7bb3769abc94f
BLAKE2b-256 a09020294f417047f179145764e48fe563a440f0d18a18d72c84d9f3716f0f6a

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