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
Metadata
Release files for tabdeal-python 0.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tabdeal_python-0.4.7.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tabdeal_python-0.4.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.3 kB
Release files / tabdeal_python-0.4.7.tar.gz
| Download URL | tabdeal_python-0.4.7.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21ffbc3b704f256a51387e337c36e8b4b37f6a518d78f987da0165e74fba0c22
|
|
BLAKE2b-256 checksum How to use checksums |
2d6477d1fbcacac278f484285fc33ec80a569aea30acb0a796c7dc70bba638ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / tabdeal_python-0.4.7-py3-none-any.whl
| Download URL | tabdeal_python-0.4.7-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93617dc7609d2de92bbc823c6aedd69315f2f3b584af9caa476a5cfe4f703840
|
|
BLAKE2b-256 checksum How to use checksums |
a09020294f417047f179145764e48fe563a440f0d18a18d72c84d9f3716f0f6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|