This is an UNOFFICIAL wrapper for BitoPro exchange HTTP API v2 written in Python 3.6
And this wrapper does not receive active maintainance, plaese consider using CCXT
USE THIS WRAPPER AT YOUR OWN RISK, I WILL NOT CORRESPOND TO ANY LOSES
- Implementation of all public and private endpoints
- Simple handling of authentication with API key and secret
- All HTTP raw requests and responses can be found here
- Register an account with BitoPro exchange (referral link)
- Generate API key and secret, assign relevant permissions to it
- Clone this repository, and run
examples/all_api_endpoints.py
- Write your own trading strategies and get profits !
cd ~/ && git clone https://github.com/kulisu/bitopro-api-python3
cd ~/bitopro-api-python3 && cp examples/all_api_endpoints.py .
# update mail address, API key and secret
# vim all_api_endpoints.py
python3 all_api_endpoints.py
cd %USERPROFILE%\Downloads
git clone https://github.com/kulisu/bitopro-api-python3
cd ~/bitopro-api-python3 && cp examples/all_api_endpoints.py .
# update mail address, API key and secret
# notepad all_api_endpoints.py
python3 all_api_endpoints.py
#!/usr/bin/env python3
from bitopro.client import Client
if __name__ == '__main__':
client = Client('PUT_MY_EMAIL_ADDRESS_HERE', 'PUY_MY_API_KEY_HERE', 'PUY_MY_API_SECRET_HERE')
try:
# Public (Read)
result = client.get_public_all_tickers()
print(f"[I] Invoked get_public_all_tickers() API Result: \n {result}\n")
result = client.get_public_available_currencies()
print(f"[I] Invoked get_public_available_currencies() API Result: \n {result}\n")
result = client.get_public_available_pairs()
print(f"[I] Invoked get_public_available_pairs() API Result: \n {result}\n")
result = client.get_public_order_book('bito_twd', 10)
print(f"[I] Invoked get_public_order_book('bito_twd', 10) API Result: \n {result}\n")
result = client.get_public_recent_trades('bito_twd')
print(f"[I] Invoked get_public_recent_trades('bito_twd') API Result: \n {result}\n")
# Private (Read)
result = client.get_private_account_balance()
print(f"[I] Invoked get_private_account_balance() API Result: \n {result}\n")
result = client.get_private_order_data('bito_twd', 1122334455)
print(f"[I] Invoked get_private_order_data('bito_twd', 1122334455) API Result: \n {result}\n")
result = client.get_private_order_history()
print(f"[I] Invoked get_private_order_history() API Result: \n {result}\n")
result = client.get_private_order_list('bito_twd', 1, False)
print(f"[I] Invoked get_private_order_list('bito_twd', 1, False) API Result: \n {result}\n")
except Exception as error:
print(f"[X] {str(error)}")
# Networking errors occurred here
response = getattr(error, 'read', None)
if callable(response):
print(f"[X] {response().decode('utf-8')}")
If you feel this wrapper saved your times, buy me a coffee ?
- BITO: 0x51002b2408badb8cc716fd6fbda287b7d71f5118
- BTC: 3C2N5czF2z39hfQhNeE37TPKCpfogmj7iw
- ETH: 0x51002b2408badb8cc716fd6fbda287b7d71f5118
- LTC: 36tFsojB1GrBraCHkchKWb6VH1HnV3heuW
- USDT: 3C2N5czF2z39hfQhNeE37TPKCpfogmj7iw