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.5.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for tabdeal_python-0.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 207ae9f02fea2201d95767f91d5d787be28ce21969af71f25afa0b1639df3607 |
|
MD5 | daf0bc20928911eb04b9c29686028fc5 |
|
BLAKE2b-256 | ffc3af88acfe84beab87692f05cfe2241da077ae43c0e3b22188fdc4c206498d |