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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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