bitopro-api-python
Project description
bitopro-api-python
SDK for the BitoPro API.
Installation
pip install bitopro-client
Linux
cd ~/ && git clone https://github.com/bitoex/bitopro-api-python.git
cd ~/bitopro-api-python && cp bitopro/sample_test.py .
# update API key and secret
# vim sample_test.py
python3 sample_test.py
Windows
cd %USERPROFILE%\Downloads
git clone https://github.com/bitoex/bitopro-api-python.git
cd bitopro-api-python
cd bitopro
# update API key and secret
# notepad sample_test.py
python3 sample_test.py
Getting started
Create BitoPro client. Pass api keys only if you are going to do authenticated calls. You can create an api key here.
bitopro_client = BitoproRestfulClient('apiKey', 'apiSecret')
Limitations
Rate Limit
There is rate limits applied to each API, please check API documentation for more detail.
Precisions
Both price and amount are subject to decimal restrictions, please check official settings for more detail.
Minimum order amount
Checkout the official settings of minimum amount.
Public restful enpoint example
from bitopro_restful_client import BitoproRestfulClient, CandlestickResolutin
if __name__ == '__main__':
bitopro_client = BitoproRestfulClient('apiKey', 'apiSecret')
'''
Open restful test
'''
# [GET] list of currencies
response = bitopro_client.get_currencies()
print("List of currencies: ", response)
# [GET] limitations and fees
response = bitopro_client.get_limitations_and_fees()
print("List of currencies: ", response)
# [GET] order book
pair = "BTC_USDT"
response = bitopro_client.get_order_book(pair)
print("Order book: ", response)
# [GET] tickers
response = bitopro_client.get_tickers(pair)
print("Tickers: ", response)
# [GET] trades
response = bitopro_client.get_trades(pair)
print("Trades: ", response)
# [GET] candlestick
response = bitopro_client.get_candlestick(pair, CandlestickResolutin._1d, 1650707415, 1678355415)
print("Candlestick: ", response)
# [GET] trading pairs
response = bitopro_client.get_trading_pairs()
print("Trading pairs: ", response)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bitopro-1.0.3.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file bitopro-1.0.3.tar.gz
.
File metadata
- Download URL: bitopro-1.0.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd92b76fd5589372a4ae382b3cb93f15d56f4a9b15145dfcc384406f2b73e78c |
|
MD5 | ef1c4b8ab3e664c61d3506d86dc39ab6 |
|
BLAKE2b-256 | 0eb1abb2142f62f802c418577a47867694925e779740f9321196701d2b0210af |
File details
Details for the file bitopro-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: bitopro-1.0.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec75a7f64bb57c8f4b375d81c09718da94900e5584b317db1a4842713afd1d15 |
|
MD5 | bc01cb68cb2cf8106ffc4ed723e8a2ea |
|
BLAKE2b-256 | 436b8223c56d3ca37c7f744fe38946ce6843a66932edc18c96f99329f789f857 |