All shell commands are CURL. You can read more about CURL here.
HollaEx provides a complete RESTful API for developers which allows full access to all the functionalities on the exchange. HollaEx also support websocket for real-time updates.
These endpoints are categorized into public and private. Public endpoints allow you to access public information such as price ticker, orderbook etc while private endpoints require authentication and allow you to get your balance, active orders as well as placing orders.
We have language bindings in Shell with CURL and you can view code examples in the dark area on the right.
Authentication
To authorize, use this code:
# With shell, you can just pass the correct header with each request
curl -X POST
-H"api-key: $API_KEY"-H"api-signature: $API_SIGNATURE"-H"api-expires: $API_EXPIRES""api_endpoint_here"
Make sure to replace $API_KEY, $API_SIGNATURE, and $API_EXPIRES with your own key, signature, and expires values.
HollaEx uses HMAC-SHA256 authentication for private user access to the API. HMAC-SHA256 takes a string and secret key (your api-secret) and outputs an encoded signature (your api-signature). The string being encoded should follow the format ${METHOD}${PATH}${api-expires}, where METHOD is the HTTP method of the request, PATH is the path of the request, and api-expires is a unix timestamp indicating when the request expires. If the request includes a body, the JSON body object should be appended to the string being encoded e.g. ${METHOD}${PATH}${api-expires}${JSON_BODY}. You can use an online HMAC generator to generate the signature.
Examples of strings being encoded:
GET request to https://api.hollaex.com/v2/user/balance that expires at 1575516146
GET/v2/user/balance1575516146
POST request to https://api.hollaex.com/v2/order that expires at 1575516146 with body {"symbol":"btc-usdt","side":"buy","size":0.001,"type":"market"}
You can register for a new HollaEx api-key and api-secret in the security section of hollaex.com.
HollaEx expects api-key, api-signature, and api-expires to be included in all Private API requests to the server in the request header with the following format:
This endpoint retrieves system information for coins and pairs.
HTTP Request
GET https://api.hollaex.com/v2/constants
Kit
Request
curl -X GET "https://api.hollaex.com/v2/kit"
Response
{"meta":{...},"color":{...},"icons":{...},"links":{...},"title":"HollaEx","captcha":{"site_key":""},"strings":{...},"api_name":"HollaEx","defaults":{"theme":"dark","language":"en"},"features":{...},"interface":{"type":"full"},"user_meta":{...},"logo_image":"","description":"HollaEx is a crypto exchange whitelabel","injected_html":{...},"injected_values":[...],"native_currency":"usdt","setup_completed":true,"valid_languages":"en,ko,ar,pt,ja,ru,fr","new_user_is_activated":true,"email_verification_required":true,"info":{"name":"HollaEx","active":true,"url":"https://api.hollaex.com","is_trial":false,"created_at":"2020-10-05T06:46:27.272Z","expiry":"2021-02-04T06:46:27.000Z","collateral_level":"member","type":"Cloud","plan":"crypto","period":"year","status":true,"initialized":true}}
This endpoint retrieves system kit configurations for the client.
curl -X GET "https://api.hollaex.com/v2/oracle/prices?&assets=xht"e=usdt&amount=1"
Response
{"xht":0.19}
Retrieve price conversion
HTTP Request
GET https://api.hollaex.com/v2/oracle/prices
PARAMETERS
Parameter
Type
Required/Optional
Description
assets
array
Required
Assets to convert in array
quote
string
Optional
Quote coin to convert to
amount
number
Optional
Amount to convert
Private
Get User
Request
curl -X GET
-H"api-key: $API_KEY"-H"api-signature: $API_SIGNATURE"-H"api-expires: $API_EXPIRES""https://api.hollaex.com/v2/user"
Response
{"id":1,"email":"[email protected]","full_name":"Tyler Durden","gender":true,"nationality":"USA","dob":"2017-07-21T17:32:28.000Z","phone_number":"","address":{"city":"Bradford","address":"537 Paper Street","country":"USA","postal_code":"19808"},"id_data":{"type":"passport","number":"999","issued_date":"2017-07-21T17:32:28.000Z","expiration_date":"2017-07-21T17:32:28.000Z"},"bank_account":[...],"crypto_wallet":{},"verification_level":2,"email_verified":true,"otp_enabled":false,"activated":true,"username":"narrator","affiliation_code":"STRING","settings":{"chat":{"set_username":true},"risk":{"popup_warning":true,"order_portfolio_percentage":90},"audio":{"all":true,"order_placed":true,"public_trade":true,"click_amounts":true,"order_canceled":true,"order_completed":true,"quick_trade_success":true,"quick_trade_timeout":true,"get_quote_quick_trade":true,"order_partially_completed":true},"language":"en","interface":{"theme":"dark","order_book_levels":20},"notification":{"popup_order_completed":false,"popup_order_confirmation":false,"popup_order_partially_filled":false}},"affiliation_rate":0,"network_id":90,"created_at":"2020-10-06T11:01:46.715Z","updated_at":"2021-02-16T07:48:03.108Z","balance":{"usdt_balance":0,"usdt_available":0,"xht_balance":0,"xht_available":0,...,"updated_at":"2021-02-16T05:48:28.014Z"},"wallet":[{"currency":"xht","address":"0xb9b424250b1d5025f69d5c099b7a90f0a0a9c275","network":"eth","standard":null,"is_valid":true,"created_at":"2021-04-07T07:23:33.212Z"},{"currency":"usdt","address":"0xb9b424250b1d5025f69d5c099b7a90f0a0a9c275","network":"eth","standard":null,"is_valid":true,"created_at":"2021-04-22T13:46:54.014Z"},...]}
This endpoint gets user's information, wallet address as well as his balance.
HTTP Request
GET https://api.hollaex.com/v2/user
Get Balance
Request
curl -X GET
-H"api-key: $API_KEY"-H"api-signature: $API_SIGNATURE"-H"api-expires: $API_EXPIRES""https://api.hollaex.com/v2/user/balance"
Number of elements to return. Default: 50. Maximun: 100
page
number
Optional
Page of data to retrieve
order_by
string
Optional
Field to order data
order
string
Optional
asc or desc
transaction_id
string
Optional
Get withdrawals with this transaction ID
address
string
Optional
Get withdrawals made to this address
status
boolean
Optional
Completed status of withdrawals to get
dismissed
boolean
Optional
Dismissed status of withdrawals to get
rejected
boolean
Optional
Rejected status of withdrawals to get
processing
boolean
Optional
Processing status of withdrawals to get
waiting
boolean
Optional
Waiting status of withdrawals to get
start_date
date-time
Optional
Starting date of queried data in ISO 8601 format
end_date
date-time
Optional
Ending date of queried data i ISO 8601 format
format
string
Optional
Pass value csv to download csv file
Get Withdrawal Fee
Request
curl -X GET
-H"api-key: $API_KEY"-H"api-signature: $API_SIGNATURE"-H"api-expires: $API_EXPIRES""https://api.hollaex.com/v2/user/withdrawal/fee?symbol=$symbol"
Response
{"fee":0.001}
This endpoint gets the withdrawal fee for a certain currency
HTTP Request
GET https://api.hollaex.com/v2/user/withdrawal/fee?currency=${currency}
PARAMETERS
Parameter
Type
Required/Optional
Description
currency
string
Required
The desired currency e.g. xht
Withdrawal
Request
curl -X POST
-H"api-key: $API_KEY"-H"api-signature: $API_SIGNATURE"-H"api-expires: $API_EXPIRES"-H"Content-Type: application/json"-d'{"currency":$currency,"amount":$amount,"address":$address}'"https://api.hollaex.com/v2/user/withdrawal"
Response
{"message":"Withdrawal request is in the queue and will be processed.","id":1000,"transaction_id":"d696dd5d-3226-4662-8d86-3da3d8eb68ff","amount":1,"currency":"xht","fee":20,"fee_coin":"xht"}
This endpoint directly creates a withdrawal for the user, only available via
HMAC tokens with the withdrawal permission.
HTTP Request
POST https://api.hollaex.com/v2/user/withdrawal
PARAMETERS
Parameter
Type
Required/Optional
Description
currency
string
Required
The desired currency e.g. xht
amount
number
Required
The amount to withdrawal e.g. 5
address
string
Required
The recipient wallet's address
network
string
Optional
Network of currency being withdrawn if there are multiple networks for currency
Get User Subaccounts
Request
curl -X GET
-H"api-key: $API_KEY"-H"api-signature: $API_SIGNATURE"-H"api-expires: $API_EXPIRES""https://api.hollaex.com/v2/subaccounts"
Get list of subaccounts for the authenticated master user. Not available for subaccounts.
HTTP Request
GET https://api.hollaex.com/v2/subaccounts
Subaccount Transfer
Request
curl -X POST
-H"api-key: $API_KEY"-H"api-signature: $API_SIGNATURE"-H"api-expires: $API_EXPIRES"-H"Content-Type: application/json"-d'{"subaccount_id":$subaccount_id,"currency":$currency,"amount":$amount,"direction":$direction}'"https://api.hollaex.com/v2/subaccount/transfer"
Response
{"message":"Success"}
Transfer an asset to or from a subaccount. Only master users can initiate, and the subaccount must belong to the master. This endpoint is only available via HMAC tokens with the withdrawal permission.
HTTP Request
POST https://api.hollaex.com/v2/subaccount/transfer
PARAMETERS
Parameter
Type
Required/Optional
Description
subaccount_id
number
Required
The user id of the subaccount
currency
string
Required
The currency to transfer
amount
number
Required
The amount to transfer
direction
string
Required
Transfer direction. Enum: ['to_sub', 'to_master']
Get Trades
Request
curl -X GET
-H"api-key: $API_KEY"-H"api-signature: $API_SIGNATURE"-H"api-expires: $API_EXPIRES""https://api.hollaex.com/v2/user/trades"
Amount of referrals per page. Maximum: 50. Default: 50
side
string
Optional
The order side (buy or side)
symbol
string
Optional
The symbol-pair to filter by, pass undefined to receive data on all currencies
page
number
Optional
Page of referral data. Default: 1
order_by
string
Optional
The field to order data by e.g. amount, id.
order
string
Optional
Ascending (asc) or descending (desc).
start_date
date
Optional
Start date of query in ISO8601 format.
end_date
date
Optional
End date of query in ISO8601 format.
format
string
Optional
Custom format of data set. Enum: ['all', 'csv']
Transfer Assets
Request
curl -X POST "https://api.hollaex.com/v2/admin/transfer"
Response
{"message":"Success"}
Transfer an asset between two users by admin
HTTP Request
POST https://api.hollaex.com/v2/admin/transfer
PARAMETERS
Parameter
Type
Required/Optional
Description
sender_id
number
Required
The identifier of the sender
receiver_id
number
Required
The identifier of the receiver
currency
string
Required
The currency to specify
amount
number
Required
The amount to specify
description
string
Optional
The description field
email
boolean
Optional
The email field
Crypto Withdrawal
Request
curl -X POST
-H"api-key: $API_KEY"-H"api-signature: $API_SIGNATURE"-H"api-expires: $API_EXPIRES"-H"Content-Type: application/json"-d'{"user_id":$user_id,"currency":$currency,"amount":$amount,"address":$address}'"https://api.hollaex.com/v2/admin/withdrawal"
Response
{"message":"Withdrawal request is in the queue and will be processed.","id":1000,"transaction_id":"d696dd5d-3226-4662-8d86-3da3d8eb68ff","amount":1,"currency":"xht","fee":20,"fee_coin":"xht"}
This endpoint directly creates a withdrawal on behalf of a user, only available via
HMAC tokens with the withdrawal permission.
HTTP Request
POST https://api.hollaex.com/v2/admin/withdrawal
PARAMETERS
Parameter
Type
Required/Optional
Description
user_id
number
Required
user id for the withdrawal process
currency
string
Required
The desired currency e.g. xht
amount
number
Required
The amount to withdrawal e.g. 5
address
string
Required
The recipient wallet's address
network
string
Optional
Network of currency being withdrawn if there are multiple networks for currency
Check Deposit status
Request
curl -X GET "https://api.hollaex.com/v2/admin/check-transaction"
Response
{}
Check the status of a transaction on the blockchain. This is useful for when a deposit is missing or its left as pending on the blockchain
HTTP Request
GET https://api.hollaex.com/v2/admin/check-transaction
PARAMETERS
Parameter
Type
Required/Optional
Description
currency
string
Required
The currency to filter by, pass undefined to receive data on all currencies
transaction_id
string
Required
Deposits with specific transaction ID.
address
string
Required
Deposits with specific address.
network
string
Required
The network info
is_testnet
boolean
Optional
The info on whether it's a testnet or not
Create Manual Deposit
Request
curl -X POST "https://api.hollaex.com/v2/admin/mint"
Response
{"message":"Success"}
Create a manual deposit for a user by admin. This is called minting assets and can only be done for fiat assets and assets you have created in the system.
HTTP Request
POST https://api.hollaex.com/v2/admin/mint
PARAMETERS
Parameter
Type
Required/Optional
Description
user_id
number
Required
The identifier of the user to filter by
currency
string
Required
The currency to specify
amount
number
Required
The amount to specify
transaction_id
string
Optional
Withdrawal with specific transaction ID.
status
boolean
Optional
The status field to confirm the withdrawal
email
boolean
Optional
The email field
fee
number
Optional
The fee to specify
Update Deposit
Request
curl -X PUT "https://api.hollaex.com/v2/admin/mint"
Response
{"message":"Success"}
Update the status of a manually created deposit on the exchange
HTTP Request
PUT https://api.hollaex.com/v2/admin/mint
PARAMETERS
Parameter
Type
Required/Optional
Description
transaction_id
string
Required
Withdrawals with specific transaction ID.
updated_transactionId
string
Optional
Withdrawals with updated transaction id
updated_address
string
Optional
Withdrawals with updated address
status
boolean
Optional
Confirmed status of the withdrawals to set.
dismissed
boolean
Optional
Dismissed status of the withdrawals to set.
rejected
boolean
Optional
Rejected status of the withdrawals to set.
processing
boolean
Optional
Processing status of the withdrawals to set.
waiting
boolean
Optional
Waiting status of the withdrawals to set.
email
boolean
Optional
Email
description
string
Optional
The description field
Create Manual Withdrawal
Request
curl -X POST "https://api.hollaex.com/v2/admin/burn"
Response
{"message":"Success"}
Create a manual withdrawal for a user by admin. This is called burning assets and can only be done for fiat assets and assets you have created in the system.
HTTP Request
POST https://api.hollaex.com/v2/admin/burn
PARAMETERS
Parameter
Type
Required/Optional
Description
user_id
number
Required
The identifier of the user to filter by
currency
string
Required
The currency to specify
amount
number
Required
The amount to specify
transaction_id
string
Optional
Withdrawal with specific transaction ID.
status
boolean
Optional
The status field to confirm the withdrawal
email
boolean
Optional
The email field
fee
number
Optional
The fee to specify
Update Withdrawal
Request
curl -X PUT "https://api.hollaex.com/v2/admin/burn"
Response
{"message":"Success"}
Update the status of a manually created withdrawal on the exchange
HTTP Request
PUT https://api.hollaex.com/v2/admin/burn
PARAMETERS
Parameter
Type
Required/Optional
Description
transaction_id
string
Required
Withdrawals with specific transaction ID.
updated_transactionId
string
Optional
Withdrawals with updated transaction id
updated_address
string
Optional
Withdrawals with updated address
status
boolean
Optional
Confirmed status of the withdrawals to set.
dismissed
boolean
Optional
Dismissed status of the withdrawals to set.
rejected
boolean
Optional
Rejected status of the withdrawals to set.
processing
boolean
Optional
Processing status of the withdrawals to set.
waiting
boolean
Optional
Waiting status of the withdrawals to set.
email
boolean
Optional
Email
description
string
Optional
The description field
Deposits List
Request
curl -X GET "https://api.hollaex.com/v2/admin/deposits"
GET https://api.hollaex.com/v2/admin/stake/analytics
PARAMETERS
Parameter
Type
Required/Optional
Description
Websocket
Connection to public and private channels are available through the path https://api.hollaex.com/stream. HollaEx Exchanges can be connected to using any websocket libraries. For this documentation, we will use the library ws.
Connecting
Connection
constWebSocket=require('ws');// Publicconstclient=newWebSocket('wss://api.hollaex.com/stream');// Private HMACconstclient=newWebSocket(`wss://api.hollaex.com/stream?api-key=${API-KEY}&api-signature=${API-SIGNATURE}&api-expires=${API-EXPIRES}`);client.on('open',()=>{// Ping message to keep connection alivesetInterval(()=>{client.send(JSON.stringify({op:'ping'}))})},30000);
Connection for public events does not require authentication while private events do. Users can use Bearer or HMAC authentication.
For HMAC, the method is CONNECT and the path is /stream. Refer to the Authentication section for more information on HMAC-SHA256.
Websocket connections will disconnect if a message is not sent within one minute. To keep a connection alive, you can sent a ping message every ~30 seconds.
client.on('open',()=>{// Subscribeclient.send(JSON.stringify({op:'subscribe',args:['orderbook','trades']}));// On messageclient.on('message',(data)=>{console.log(JSON.parse(data));});// Unsubscribeclient.send(JSON.stringify({op:'unsubscribe',args:['orderbook','trade']}));})
EVENTS
The public events you can subscribe to are:
Event
Description
orderbook
Notification with orderbook symbol and data update. To subscribe to a specific pair, you can pass the pair after a colon. Ex: orderbook:xht-usdt.
trade
Notification with trade data. To subscribe to a specific pair, you can pass the pair after a colon. Ex: trade:xht-usdt.
price
Notification with the latest prices (quoted in USDT) per currency and live price updates.
client.on('open',()=>{// Subscribeclient.send(JSON.stringify({op:'subscribe',args:['order','wallet']}));// On messageclient.on('message',(data)=>{console.log(JSON.parse(data));});// Unsubscribeclient.send(JSON.stringify({op:'unsubscribe',args:['order','wallet']}));})
EVENTS
The private events you can subscribe to are:
Event
Description
order
Notifications for newly created orders and order updates.
usertrade
Notifications for user trades (recent trades snapshot and updates).
When subscribed to admin, the server will send deposit/withdrawal/stake messages in the same payload format as the private user events shown above, but covering all users.
You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.