Python library for HollaEx Kit enabled exchanges.
This library is specifically for end users and traders to connect to HollaEx Kit exchanges. It connects to HollaEx Pro by default.
import hollaex
client = hollaex.HollaEx()
You can pass the api-url
and base_url
of the HollaEx-Enabled exchange to connect to. You can also pass your api_key
and api_secret
generated from the HollaEx-Enabled exchange.
from hollaex import HollaExAPI
client = HollaExAPI(api_url='<EXCHANGE_API_URL>',
base_url='<EXCHANGE_BASE_URL>',
api_key='<MY_API_KEY>',
api_secret='<MY_API_SECRET>')
You can also pass the field api_expires
which is the length of time in seconds each request is valid for. The default value is 60
.
import hollaex
client = hollaex.HollaExAPI(api_url='<EXCHANGE_API_URL>',
base_url_='<EXCHANGE_BASE_URL>',
api_key='<MY_API_KEY>',
api_secret ='<MY_API_SECRET>')
try:
ticker = client.get_ticker(market='xht-usdt')
print('The volume is: ', ticker)
except Exception as e:
print(e)
try:
trades = client.get_trades(symbol='xht-usdt')
print('Public trades: ', trades)
except Exception as e:
print(e)
Command | Parameters | Description |
---|---|---|
get_kit |
Get exchange information e.g. name, valid languages, description, etc. | |
get_constants |
Tick size, min price, max price, min size and max size of each symbol pair and coin | |
get_ticker |
|
Last, high, low, open and close price and volume within the last 24 hours |
get_tickers |
Last, high, low, open and close price and volume within the last 24 hours for all symbols | |
get_rderbook |
|
Orderbook containing list of bids and asks |
get_orderbooks |
Orderbook containing list of bids and asks for all symbols | |
get_trades |
|
List of last trades |
get_user |
User's personal information | |
get_balance |
User's wallet balance | |
get_deposits |
|
User's list of all deposits |
get_withdrawals |
|
User's list of all withdrawals |
make_withdrawal |
|
Create a new withdrawal request |
get_user_trades |
|
User's list of all trades |
get_order |
|
Get specific information about a certain order |
get_orders |
|
Get the list of all user orders. It can be filter by passing the symbol |
create_order |
|
Create a new order |
cancel_order |
|
Cancel a specific order with its ID |
cancel_all_orders |
|
Cancel all the active orders of a user, filtered by currency pair symbol |