tabdeal-python 0.4.6
pip install tabdeal-python
Latest version
Released:
Official python package to use Tabdeal API
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- Author: Amin Basiri
- Requires: Python >=3.6
Classifiers
- Operating System
- Programming Language
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- Author: Amin Basiri
- Requires: Python >=3.6
Classifiers
- Operating System
- Programming Language
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
Built Distribution
File details
Details for the file tabdeal-python-0.4.6.tar.gz
.
File metadata
- Download URL: tabdeal-python-0.4.6.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01dfc933c54a8f4aac185e30318d940087a4ccd4e2925a7be6e29beb51ad165e |
|
MD5 | 0dd20c16056fe4d18c0b1d1c1526db00 |
|
BLAKE2b-256 | 7b32a96e83e278174e5b1f9b51fc80064af4ace5f68e79386a8b3b16819114ef |
File details
Details for the file tabdeal_python-0.4.6-py3-none-any.whl
.
File metadata
- Download URL: tabdeal_python-0.4.6-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60a9fb5dcffd745d0d70f06ecb1352fd34c0eb58bf14a98421302cc6f3e268d4 |
|
MD5 | ded641e8f3988518d3aaa9a692da2c78 |
|
BLAKE2b-256 | 98f7f3d713f1af6b21e3c5e3e3b2161786018f7174bcfcd03de903ebb40964a2 |