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.2.2.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for tabdeal_python-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c5967d0c60b8a3c7d6de0ada19b2834699301a53ee07c7c73d68df174a9f4a6 |
|
MD5 | 6923ec6c894d9b7f3015264eb4890c96 |
|
BLAKE2b-256 | 204be349c548f8b75acedd7579c8e30712968c71ac521f5c6a623bb23a2de07f |