Client to HitBtc API
Project description
HitBTC Client API
This is a simple client to connect in the HitBTC Exchange API.
The main objective is provide a simple interface to consume the methods to consulting, create orders, sell and buy cryptos in HitBTC.
Installation
pip install hitbtc-api-brunohenz
Pré-Req
To use de client and connect to HitBTC API, is necessary create a account in the exchange and generate a API KEY in path https://hitbtc.com/settings/api-keys
Usage
from hitbtcapi.hitbtc import HitBtc
APIKey = 'API-KEY'
SecretKey = 'SECRET-KEY'
client = HitBtc(APIKey, SecretKey)
# Get OrderBooks by Symbol
orderbooks = client.get_orderbook('smartbtc')
print(orderbooks)
# Create a order
order = client.create_order(
{'symbol': 'smartbtc',
'side': 'buy',
'quantity': 1,
'price': '0.000148'
})
print(order)
Avaliable Methods
Currencies
client.get_currencies()
Order Books
client.get_orderbook('smartbtc')
Orders
get_orders()
create_order({'symbol': 'smartbtc', 'side': 'buy', 'quantity': 1, 'price': '0.000148'})
Trades
get_trades_history('smartbtc')
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
Built Distribution
Close
Hashes for hitbtc-api-brunohenz-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd429c1118ed5dbded51c22ba0a229c980bcacd6a6a479f2945adb3d967eacbd |
|
MD5 | 9a215318755157dde773cddd2c18b653 |
|
BLAKE2b-256 | f0de054973ed9cd2ce8d27fdd431ebd6efbff1e40a97b026bbb3df0b0f7beb1e |
Close
Hashes for hitbtc_api_brunohenz-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c681361a4c6521230e04a059e71764b1b5d477dd32429fd6d08cc78d66d633b4 |
|
MD5 | 6fdb75f6128d3a9c8215712d021e39a2 |
|
BLAKE2b-256 | b1a03130c4a5b1cad22e494729db69ce1c4bce3705b544d63f471b2571449ec2 |