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.7.tar.gz
(8.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tabdeal_python-0.4.7.tar.gz.
File metadata
- Download URL: tabdeal_python-0.4.7.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21ffbc3b704f256a51387e337c36e8b4b37f6a518d78f987da0165e74fba0c22
|
|
| MD5 |
a4dca34ad7c17d8586cea7fa7ecb47b5
|
|
| BLAKE2b-256 |
2d6477d1fbcacac278f484285fc33ec80a569aea30acb0a796c7dc70bba638ff
|
File details
Details for the file tabdeal_python-0.4.7-py3-none-any.whl.
File metadata
- Download URL: tabdeal_python-0.4.7-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93617dc7609d2de92bbc823c6aedd69315f2f3b584af9caa476a5cfe4f703840
|
|
| MD5 |
c9fa713c2d38456258e7bb3769abc94f
|
|
| BLAKE2b-256 |
a09020294f417047f179145764e48fe563a440f0d18a18d72c84d9f3716f0f6a
|