Skip to main content

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

hitbtc-api-brunohenz-0.0.5.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

hitbtc_api_brunohenz-0.0.5-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page