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.4.4.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for tabdeal_python-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5670d795221186e3f2224cfd090a7b096fdc5ee1a0da63294dd6926e8b13f6bb |
|
MD5 | df03e643bade9788a6943eb07e9c71b1 |
|
BLAKE2b-256 | 3d6bbea6ec96e9f91155bbc4905a681d8cb358c3d68f39a832c68efe8d2e3347 |