Skip to main content

A Python package for the cryptocurrency exchange Hotbit that doesn't require an API Key, making it available to everyone

Project description

Python-Hotbit

A Python package for the cryptocurrency exchange Hotbit that doesn't require an API Key, making it available to everyone.

The package also work with official api keys, if you want help getting one, join my Discord.

This is still at the development stage which is why not all endpoints are covered.

Installation

pip install hotbit

or

pip install python-hotbit

Help/Discord

Join click here to join our Discord, we're always happy to help.

Common errors

If you are experiencing errors please try to type this in the terminal:

$ pip install --upgrade requestsWS
$ pip install git+https://github.com/websocket-client/websocket-client.git

Documentation

Auth

Email, Password, 2FA

For this method the either Anti-Captcha or 2Captcha is needed
Please notice the price of login is about $0.0019 on Anti-Captcha and about $0.0029 on 2Captcha, as they charge for the captcha solving.
If you don't want to pay you can use either Key/Secret or Cookie as the authorization method.

import hotbit

email = "myemail@email.com"
password = "MyPassword"
authenticatorCode = "MyAuthenticatorCode"

captchaKey = "My 2Captcha Key or Anti-Captcha Key"

auth = hotbit.auth.login(email=email, password=password, authenticatorCode=authenticatorCode, antiCaptcha=captchaKey) #If you use 2Captcha write twoCaptcha instead of antiCaptcha
Client = hotbit.Hotbit(auth)

Official API (Key/Secret)

If you want help gaining access to the official api, join the Discord.

import hotbit

auth = hotbit.auth.api(api_key="My API Key", api_secret="My API Secret")
client = hotbit.Hotbit(auth)

Cookie

import hotbit

auth = hotbit.auth.cookie(cookies="My Cookie String")
client = hotbit.Hotbit(auth)

Hotbit

Server Time

Get the server time of Hotbit.

client.serverTime()

Place Order

Buy/sell something.

client.order(market="ADA/USDT", side="BUY", amount=10, price=0.6)

Cancel Order

Cancel a select order.

client.cancelOrder(market="ADA/USDT", order_id="4365873")

Balance Query

Query your balance on Hotbit.

client.balanceQuery()

Market Price

Retrieve the instant buy/sell price of a select market.
This function has some logic behind it meaning it does not only use Hotbit's endpoints to calculate.

market = "ADA/USDT"
side = "BUY"
amount = 1000 # USDT (Last part of market)

client.marketPrice(market=market, side=side, amount=amount)

Depth Query

Query ask and bid prices and amount.

market = "ADA/USDT"
client.depthQuery(market)

Market List

Retrieve a list of all markets.

client.marketList()

Allticker

Retreve a list over all tickers.

client.allticker()

Allticker

Get the order history.

client.fetchOrderHistory(since)

HTTP

This only works when using the official API. Endpoints can be found here: https://hotbitex.github.io/slate/docs/spot/v2/en.

urlPath = "/p2/balance.query"
payload = 'assets=[]'

client.http(urlPath, payload).json()

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

hotbit-0.1.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

hotbit-0.1.1-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file hotbit-0.1.1.tar.gz.

File metadata

  • Download URL: hotbit-0.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.7

File hashes

Hashes for hotbit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 20f44743f72511c595b1315104e571f59fe7c097d66dad1ba25e4857fcbf39c4
MD5 f088ef44a051c7e446e291c9ae94286b
BLAKE2b-256 1a48a27c2567edddaf55eb1fea0258541528af33e1721ae5c62f268cbed91e3d

See more details on using hashes here.

File details

Details for the file hotbit-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hotbit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.7

File hashes

Hashes for hotbit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43d3c168f8e14387a398249e3ae904d835cee057df1859fe96c295814f18bf4f
MD5 2f4a0ded55b5288645aa4e609bc6b7ce
BLAKE2b-256 c10e2ede7e4345cfb272e2ec28ed7be1ec47d3c8c83273c56dbea80ed1ad0727

See more details on using hashes here.

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