Official python package to use Tabdeal API
Project description
Tabdeal API Python SDK
Official python package to use Tabdeal Exchange API
Installation
pip install tabdeal-python
Documentation
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 codecode
- Server's error codemessage
- Server's error messagedetail
- Detail of exception
- This is thrown when server returns
tabdeal.exceptions.ServerException
- This is thrown when server returns
5XX
, it's an issue from server side.
- This is thrown when server returns
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
tabdeal-python-0.3.1.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for tabdeal_python-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba812be25f83f485d2e96eed20b33a522c5dd0f00531c9025f0cc0586262e1df |
|
MD5 | 367c81e936f536f12fb8b681ab354767 |
|
BLAKE2b-256 | ddfff7b28670f65dfbf0ad494eb0ca12e446a6bd5fbd998d5adeb42dea234af8 |