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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hitbtc-api-brunohenz-0.0.5.tar.gz.
File metadata
- Download URL: hitbtc-api-brunohenz-0.0.5.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd429c1118ed5dbded51c22ba0a229c980bcacd6a6a479f2945adb3d967eacbd
|
|
| MD5 |
9a215318755157dde773cddd2c18b653
|
|
| BLAKE2b-256 |
f0de054973ed9cd2ce8d27fdd431ebd6efbff1e40a97b026bbb3df0b0f7beb1e
|
File details
Details for the file hitbtc_api_brunohenz-0.0.5-py3-none-any.whl.
File metadata
- Download URL: hitbtc_api_brunohenz-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c681361a4c6521230e04a059e71764b1b5d477dd32429fd6d08cc78d66d633b4
|
|
| MD5 |
6fdb75f6128d3a9c8215712d021e39a2
|
|
| BLAKE2b-256 |
b1a03130c4a5b1cad22e494729db69ce1c4bce3705b544d63f471b2571449ec2
|