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.
pip install hitbtc-api-brunohenz
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
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)
client.get_currencies()
client.get_orderbook('smartbtc')
get_orders()
create_order({'symbol': 'smartbtc', 'side': 'buy', 'quantity': 1, 'price': '0.000148'})
get_trades_history('smartbtc')