Skip to main content

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')

Metadata

Release files for hitbtc-api-brunohenz 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hitbtc-api-brunohenz 0.0.5
File Size Uploaded
hitbtc-api-brunohenz-0.0.5.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hitbtc-api-brunohenz 0.0.5
File Interpreter ABI Platform
hitbtc_api_brunohenz-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / hitbtc-api-brunohenz-0.0.5.tar.gz

Download URL hitbtc-api-brunohenz-0.0.5.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bd429c1118ed5dbded51c22ba0a229c980bcacd6a6a479f2945adb3d967eacbd
BLAKE2b-256 checksum
How to use checksums
f0de054973ed9cd2ce8d27fdd431ebd6efbff1e40a97b026bbb3df0b0f7beb1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / hitbtc_api_brunohenz-0.0.5-py3-none-any.whl

Download URL hitbtc_api_brunohenz-0.0.5-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c681361a4c6521230e04a059e71764b1b5d477dd32429fd6d08cc78d66d633b4
BLAKE2b-256 checksum
How to use checksums
b1a03130c4a5b1cad22e494729db69ce1c4bce3705b544d63f471b2571449ec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page