Current section
Files
Jump to
Current section
Files
priv/specs/extracted/hollaex.exs
# HollaEx Exchange Specification
#
# Auto-generated by: mix ccxt.extract hollaex
# CCXT version: 4.5.42
# Spec format version: 2
#
# Review before use:
# - signing: Detected from sign() method, verify with testnet
# - endpoints: Raw paths extracted, map to unified API as needed
# - exceptions: Extracted (exact, broad, HTTP status codes)
# - features/options: Extracted from describe()
# - classification: Set to :supported initially, promote after validation
#
%{
api_param_requirements: nil,
certified: false,
classification: :pro,
comment: nil,
countries: [
"KR"
],
currencies: %{},
currency_aliases: %{
"BCHSV" => "BSV",
"XBT" => "BTC"
},
dex: false,
enable_rate_limit: true,
endpoint_extraction_stats: %{
"capturedMethods" => 34,
"coveragePercent" => 100,
"enabledMethods" => 37,
"excluded" => [
%{
"method" => "editOrder",
"reason" => "emulated (returns cached data, no HTTP call)"
},
%{
"method" => "fetchDepositAddress",
"reason" => "emulated (returns cached data, no HTTP call)"
}
],
"excludedMethods" => 2,
"extractableMethods" => 35,
"failures" => [
%{
"error" => "hollaex withdraw() requires a network parameter",
"method" => "withdraw"
}
]
},
endpoints: [
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :delete,
name: :cancel_all_orders,
param_mappings: %{},
params: [
:symbol
],
path: "/order/all",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :delete,
name: :cancel_order,
param_mappings: %{
"id" => "order_id"
},
params: [
:id,
:symbol
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"side" => "buy",
"type" => "limit"
},
expects: :single,
market_type: :spot,
method: :post,
name: :create_limit_buy_order,
param_mappings: %{
"amount" => "size"
},
params: [
:symbol,
:amount,
:price
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"type" => "limit"
},
expects: :single,
market_type: :spot,
method: :post,
name: :create_limit_order,
param_mappings: %{
"amount" => "size"
},
params: [
:symbol,
:side,
:amount,
:price
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"side" => "sell",
"type" => "limit"
},
expects: :single,
market_type: :spot,
method: :post,
name: :create_limit_sell_order,
param_mappings: %{
"amount" => "size"
},
params: [
:symbol,
:amount,
:price
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"side" => "buy",
"type" => "market"
},
expects: :single,
market_type: :spot,
method: :post,
name: :create_market_buy_order,
param_mappings: %{
"amount" => "size"
},
params: [
:symbol,
:amount
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"type" => "market"
},
expects: :single,
market_type: :spot,
method: :post,
name: :create_market_order,
param_mappings: %{
"amount" => "size"
},
params: [
:symbol,
:side,
:amount,
:price
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"side" => "sell",
"type" => "market"
},
expects: :single,
market_type: :spot,
method: :post,
name: :create_market_sell_order,
param_mappings: %{
"amount" => "size"
},
params: [
:symbol,
:amount
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :post,
name: :create_order,
param_mappings: %{
"amount" => "size"
},
params: [
:symbol,
:type,
:side,
:amount,
:price
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"meta" => %{
"post_only" => true
}
},
expects: :single,
market_type: :spot,
method: :post,
name: :create_post_only_order,
param_mappings: %{
"amount" => "size"
},
params: [
:symbol,
:type,
:side,
:amount,
:price
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"triggerDirection" => "below",
"type" => "limit"
},
expects: :single,
market_type: :swap,
method: :post,
name: :create_stop_limit_order,
param_mappings: %{
"amount" => "size",
"triggerPrice" => "stop"
},
params: [
:symbol,
:side,
:amount,
:price,
:triggerPrice
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"triggerDirection" => "below",
"type" => "market"
},
expects: :single,
market_type: :swap,
method: :post,
name: :create_stop_market_order,
param_mappings: %{
"amount" => "size",
"triggerPrice" => "stop"
},
params: [
:symbol,
:side,
:amount,
:triggerPrice
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"triggerDirection" => "below"
},
expects: :single,
market_type: :swap,
method: :post,
name: :create_stop_order,
param_mappings: %{
"amount" => "size",
"triggerPrice" => "stop"
},
params: [
:symbol,
:type,
:side,
:amount,
:price,
:triggerPrice
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_balance,
param_mappings: %{},
params: [],
path: "/user/balance",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"open" => false
},
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_closed_orders,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/orders",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_currencies,
param_mappings: %{},
params: [],
path: "/constants",
response_transformer: {:extract_path, ["coins"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_deposit_addresses,
param_mappings: %{},
params: [
:codes
],
path: "/user",
response_transformer: {:extract_path, ["wallet"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_deposits,
param_mappings: %{
"code" => "currency"
},
params: [
:code,
:since,
:limit
],
path: "/user/deposits",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_l2_order_book,
param_mappings: %{},
params: [
:symbol,
:limit
],
path: "/orderbook",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_markets,
param_mappings: %{},
params: [],
path: "/constants",
response_transformer: {:extract_path, ["pairs"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_my_trades,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/user/trades",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
default_params: %{
"to" => "<generated>"
},
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_ohlcv,
pagination: %{
style: :time_window
},
param_mappings: %{
"since" => "from",
"timeframe" => "resolution"
},
params: [
:symbol,
:timeframe,
:since,
:limit
],
path: "/chart",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_open_order,
param_mappings: %{
"id" => "order_id"
},
params: [
:id,
:symbol
],
path: "/order",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"open" => true
},
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_open_orders,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/orders",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_order,
param_mappings: %{
"id" => "order_id"
},
params: [
:id,
:symbol
],
path: "/order",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_order_book,
param_mappings: %{},
params: [
:symbol,
:limit
],
path: "/orderbook",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_order_books,
param_mappings: %{},
params: [
:symbols,
:limit
],
path: "/orderbooks",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_orders,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/orders",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_ticker,
param_mappings: %{},
params: [
:symbol
],
path: "/ticker",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_tickers,
param_mappings: %{},
params: [
:symbols
],
path: "/tickers",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_trades,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/trades",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_trading_fees,
param_mappings: %{},
params: [],
path: "/tiers",
response_transformer: {:extract_path, ["1", "fees"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_withdrawal,
param_mappings: %{
"id" => "transaction_id"
},
params: [
:id,
:code
],
path: "/user/withdrawals",
response_transformer: {:extract_path_unwrap, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_withdrawals,
param_mappings: %{
"code" => "currency"
},
params: [
:code,
:since,
:limit
],
path: "/user/withdrawals",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
}
],
error_code_details: %{
400 => %{
description: nil,
type: :invalid_parameters
},
403 => %{
description: nil,
type: :invalid_credentials
},
404 => %{
description: nil,
type: :invalid_parameters
},
405 => %{
description: nil,
type: :invalid_parameters
},
410 => %{
description: nil,
type: :invalid_parameters
},
429 => %{
description: nil,
type: :invalid_parameters
},
500 => %{
description: nil,
type: :network_error
},
503 => %{
description: nil,
type: :network_error
},
"API request is expired" => %{
description: nil,
type: :invalid_credentials
},
"Error 1001 - Order rejected. Order could not be submitted as this order was set to a post only order." => %{
description: nil,
type: :invalid_order
},
"Insufficient balance" => %{
description: nil,
type: :insufficient_balance
},
"Invalid token" => %{
description: nil,
type: :invalid_credentials
},
"Order not found" => %{
description: nil,
type: :order_not_found
}
},
error_codes: %{
400 => :invalid_parameters,
403 => :invalid_credentials,
404 => :invalid_parameters,
405 => :invalid_parameters,
410 => :invalid_parameters,
429 => :invalid_parameters,
500 => :network_error,
503 => :network_error,
"API request is expired" => :invalid_credentials,
"Error 1001 - Order rejected. Order could not be submitted as this order was set to a post only order." => :invalid_order,
"Insufficient balance" => :insufficient_balance,
"Invalid token" => :invalid_credentials,
"Order not found" => :order_not_found
},
exceptions: %{
broad: %{
"API request is expired" => :invalid_nonce,
"Error 1001 - Order rejected. Order could not be submitted as this order was set to a post only order." => :order_immediately_fillable,
"Insufficient balance" => :insufficient_funds,
"Invalid token" => :authentication_error,
"Order not found" => :order_not_found
},
exact: %{
"400" => :bad_request,
"403" => :authentication_error,
"404" => :bad_request,
"405" => :bad_request,
"410" => :bad_request,
"429" => :bad_request,
"500" => :network_error,
"503" => :network_error
}
},
exchange_options: %{
"api-expires" => 10,
"defaultNetworkCodeReplacements" => %{
"BRC20" => %{
"BRC20" => "BTC"
},
"CRO" => %{
"CRC20" => "CRONOS"
},
"ETH" => %{
"ERC20" => "ETH"
},
"TRX" => %{
"TRC20" => "TRX"
}
},
"networks" => %{
"BNB" => "bnb",
"BTC" => "btc",
"ERC20" => "eth",
"ETH" => "eth",
"MATIC" => "matic",
"TRC20" => "trx",
"TRX" => "trx",
"XLM" => "xlm",
"XRP" => "xrp"
},
"networksById" => %{
"ERC20" => "ERC20",
"ETH" => "ERC20",
"TRC20" => "TRC20",
"TRX" => "TRC20",
"bnb" => "BNB",
"btc" => "BTC",
"eth" => "ERC20",
"matic" => "MATIC",
"trx" => "TRC20",
"xlm" => "XLM",
"xrp" => "XRP"
}
},
extended_metadata: %{
limits: %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
logo_url: "https://user-images.githubusercontent.com/1294454/75841031-ca375180-5ddd-11ea-8417-b975674c23cb.jpg",
referral_url: "https://pro.hollaex.com/signup?affiliation_code=QSWA6G"
},
extracted_metadata: %{
ccxt_version: "4.5.42"
},
features: %{
future: %{},
spot: %{
create_order: %{
hedged: false,
iceberg: false,
leverage: false,
margin_mode: false,
market_buy_by_cost: false,
market_buy_requires_price: false,
self_trade_prevention: false,
stop_loss_price: false,
take_profit_price: false,
time_in_force: %{
fok: false,
gtd: false,
ioc: false,
po: true
},
trailing: false,
trigger_direction: false,
trigger_price: true
},
fetch_closed_orders: %{
days_back: 100000,
days_back_canceled: 1,
limit: 100,
margin_mode: false,
symbol_required: false,
trailing: false,
trigger: false,
until_days: 100000
},
fetch_my_trades: %{
days_back: 100000,
limit: 100,
margin_mode: false,
symbol_required: false,
until_days: 100000
},
fetch_ohlcv: %{
limit: 1000
},
fetch_open_orders: %{
limit: 100,
margin_mode: false,
symbol_required: false,
trailing: false,
trigger: false
},
fetch_order: %{
margin_mode: false,
symbol_required: false,
trailing: false,
trigger: false
},
fetch_orders: %{
days_back: 100000,
limit: 100,
margin_mode: false,
symbol_required: false,
trailing: false,
trigger: false,
until_days: 100000
},
sandbox: true
},
swap: %{}
},
fees: %{
trading: %{
maker: 0.001,
percentage: true,
taker: 0.001,
tier_based: true
}
},
forward_aliases: nil,
handle_content_type_application_zip: nil,
handle_errors_source: "handleErrors(code, reason, url, method, headers, body, response, requestHeaders, requestBody) {\n // { \"message\": \"Invalid token\" }\n if (response === undefined) {\n return undefined;\n }\n if ((code >= 400) && (code <= 503)) {\n //\n // { \"message\": \"Invalid token\" }\n //\n // different errors return the same code eg\n //\n // { \"message\":\"Error 1001 - Order rejected. Order could not be submitted as this order was set to a post only order.\" }\n //\n // { \"message\":\"Error 1001 - POST ONLY order can not be of type market\" }\n //\n const feedback = this.id + ' ' + body;\n const message = this.safeString(response, 'message');\n this.throwBroadlyMatchedException(this.exceptions['broad'], message, feedback);\n const status = code.toString();\n this.throwExactlyMatchedException(this.exceptions['exact'], status, feedback);\n }\n return undefined;\n }",
has: %{
add_margin: false,
borrow_cross_margin: false,
borrow_isolated_margin: false,
borrow_margin: false,
c_o_r_s: false,
cancel_all_orders: true,
cancel_all_orders_ws: false,
cancel_order: true,
cancel_order_with_client_order_id: false,
cancel_order_ws: false,
cancel_orders: false,
cancel_orders_with_client_order_id: false,
cancel_orders_ws: false,
close_all_positions: false,
close_position: false,
create_deposit_address: false,
create_limit_buy_order: true,
create_limit_buy_order_ws: false,
create_limit_order: true,
create_limit_order_ws: false,
create_limit_sell_order: true,
create_limit_sell_order_ws: false,
create_market_buy_order: true,
create_market_buy_order_with_cost: false,
create_market_buy_order_with_cost_ws: false,
create_market_buy_order_ws: false,
create_market_order: true,
create_market_order_with_cost: false,
create_market_order_with_cost_ws: false,
create_market_order_ws: true,
create_market_sell_order: true,
create_market_sell_order_with_cost: false,
create_market_sell_order_with_cost_ws: false,
create_market_sell_order_ws: false,
create_order: true,
create_order_with_take_profit_and_stop_loss: false,
create_order_with_take_profit_and_stop_loss_ws: false,
create_order_ws: false,
create_orders: false,
create_post_only_order: true,
create_post_only_order_ws: false,
create_reduce_only_order: false,
create_reduce_only_order_ws: false,
create_stop_limit_order: true,
create_stop_limit_order_ws: false,
create_stop_loss_order: false,
create_stop_loss_order_ws: false,
create_stop_market_order: true,
create_stop_market_order_ws: false,
create_stop_order: true,
create_stop_order_ws: false,
create_take_profit_order: false,
create_take_profit_order_ws: false,
create_trailing_amount_order: false,
create_trailing_amount_order_ws: false,
create_trailing_percent_order: false,
create_trailing_percent_order_ws: false,
create_trigger_order: false,
create_trigger_order_ws: false,
deposit: false,
edit_order: true,
edit_order_with_client_order_id: false,
edit_order_ws: false,
edit_orders: false,
fetch_a_d_l_rank: false,
fetch_accounts: false,
fetch_balance: true,
fetch_balance_ws: false,
fetch_bids_asks: false,
fetch_borrow_interest: false,
fetch_borrow_rate: false,
fetch_borrow_rate_histories: false,
fetch_borrow_rate_history: false,
fetch_borrow_rates: false,
fetch_borrow_rates_per_symbol: false,
fetch_canceled_and_closed_orders: false,
fetch_canceled_orders: false,
fetch_closed_order: false,
fetch_closed_orders: true,
fetch_closed_orders_ws: false,
fetch_convert_currencies: false,
fetch_convert_quote: false,
fetch_convert_trade: false,
fetch_convert_trade_history: false,
fetch_cross_borrow_rate: false,
fetch_cross_borrow_rates: false,
fetch_currencies: true,
fetch_currencies_ws: true,
fetch_deposit: false,
fetch_deposit_address: true,
fetch_deposit_addresses: true,
fetch_deposit_addresses_by_network: false,
fetch_deposit_withdraw_fee: false,
fetch_deposit_withdraw_fees: false,
fetch_deposits: true,
fetch_deposits_withdrawals: false,
fetch_deposits_ws: false,
fetch_funding_history: false,
fetch_funding_interval: false,
fetch_funding_intervals: false,
fetch_funding_rate: false,
fetch_funding_rate_history: false,
fetch_funding_rates: false,
fetch_greeks: false,
fetch_index_ohlcv: false,
fetch_isolated_borrow_rate: false,
fetch_isolated_borrow_rates: false,
fetch_isolated_positions: false,
fetch_l2_order_book: true,
fetch_l3_order_book: false,
fetch_last_prices: false,
fetch_ledger: false,
fetch_ledger_entry: false,
fetch_leverage: false,
fetch_leverage_tiers: false,
fetch_leverages: false,
fetch_liquidations: false,
fetch_long_short_ratio: false,
fetch_long_short_ratio_history: false,
fetch_margin_adjustment_history: false,
fetch_margin_mode: false,
fetch_margin_modes: false,
fetch_mark_ohlcv: false,
fetch_mark_prices: false,
fetch_market_leverage_tiers: false,
fetch_markets: true,
fetch_markets_ws: false,
fetch_my_liquidations: false,
fetch_my_settlement_history: false,
fetch_my_trades: true,
fetch_my_trades_ws: false,
fetch_ohlcv: true,
fetch_ohlcv_ws: false,
fetch_open_interest: false,
fetch_open_interest_history: false,
fetch_open_interests: false,
fetch_open_order: true,
fetch_open_orders: true,
fetch_open_orders_ws: false,
fetch_option: false,
fetch_option_chain: false,
fetch_order: true,
fetch_order_book: true,
fetch_order_book_ws: false,
fetch_order_books: true,
fetch_order_trades: false,
fetch_order_with_client_order_id: false,
fetch_order_ws: false,
fetch_orders: true,
fetch_orders_by_status: false,
fetch_orders_ws: false,
fetch_position: false,
fetch_position_a_d_l_rank: false,
fetch_position_history: false,
fetch_position_mode: false,
fetch_position_ws: false,
fetch_positions: false,
fetch_positions_a_d_l_rank: false,
fetch_positions_for_symbol: false,
fetch_positions_for_symbol_ws: false,
fetch_positions_history: false,
fetch_positions_risk: false,
fetch_positions_ws: false,
fetch_premium_index_ohlcv: false,
fetch_settlement_history: false,
fetch_status: false,
fetch_ticker: true,
fetch_ticker_ws: false,
fetch_tickers: true,
fetch_tickers_ws: false,
fetch_time: false,
fetch_trades: true,
fetch_trades_ws: false,
fetch_trading_fee: false,
fetch_trading_fees: true,
fetch_trading_fees_ws: false,
fetch_trading_limits: false,
fetch_transaction_fee: false,
fetch_transaction_fees: false,
fetch_transactions: false,
fetch_transfer: false,
fetch_transfers: false,
fetch_underlying_assets: false,
fetch_volatility_history: false,
fetch_withdraw_addresses: false,
fetch_withdrawal: true,
fetch_withdrawal_whitelist: false,
fetch_withdrawals: true,
fetch_withdrawals_ws: false,
future: false,
margin: false,
option: false,
private_api: true,
public_api: true,
reduce_margin: false,
repay_cross_margin: false,
repay_isolated_margin: false,
sandbox: true,
set_leverage: false,
set_margin: false,
set_margin_mode: false,
set_position_mode: false,
sign_in: false,
spot: true,
swap: false,
transfer: false,
un_watch_my_trades: false,
un_watch_ohlcv: false,
un_watch_ohlcv_for_symbols: false,
un_watch_order_book: false,
un_watch_order_book_for_symbols: false,
un_watch_orders: false,
un_watch_positions: false,
un_watch_ticker: false,
un_watch_tickers: false,
un_watch_trades: false,
un_watch_trades_for_symbols: false,
watch_balance: true,
watch_bids_asks: false,
watch_liquidations: false,
watch_liquidations_for_symbols: false,
watch_my_liquidations: false,
watch_my_liquidations_for_symbols: false,
watch_my_trades: false,
watch_ohlcv: false,
watch_ohlcv_for_symbols: false,
watch_order_book: true,
watch_order_book_for_symbols: false,
watch_orders: true,
watch_orders_for_symbols: false,
watch_position: false,
watch_positions: false,
watch_status: false,
watch_ticker: false,
watch_tickers: false,
watch_trades: true,
watch_trades_for_symbols: false,
withdraw: true,
ws: false
},
http_config: nil,
id: "hollaex",
markets: nil,
name: "HollaEx",
ohlcv_timestamp_resolution: :seconds,
options: %{
"api-expires" => 10,
:networks => %{
"BNB" => "bnb",
"BTC" => "btc",
"ERC20" => "eth",
"ETH" => "eth",
"MATIC" => "matic",
"TRC20" => "trx",
"TRX" => "trx",
"XLM" => "xlm",
"XRP" => "xrp"
},
:networks_by_id => %{
"ERC20" => "ERC20",
"ETH" => "ERC20",
"TRC20" => "TRC20",
"TRX" => "TRC20",
"eth" => "ERC20",
"trx" => "TRC20"
}
},
order_mappings: %{
side_format: :lowercase,
side_key: "side",
type_format: :lowercase,
type_key: "type"
},
param_mappings: %{
"amount" => "size",
"code" => "currency",
"id" => "transaction_id",
"since" => "from",
"timeframe" => "resolution",
"triggerPrice" => "stop"
},
parse_methods: [
%{
"comment" => nil,
"examples" => [],
"line_end" => 1006,
"line_start" => 989,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "response"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
}
],
"name" => "parseBalance",
"signature" => "parseBalance (response): Balances",
"source" => "parseBalance (response): Balances {\n const timestamp = this.parse8601 (this.safeString (response, 'updated_at'));\n const result: Dict = {\n 'info': response,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n };\n const currencyIds = Object.keys (this.currencies_by_id);\n for (let i = 0; i < currencyIds.length; i++) {\n const currencyId = currencyIds[i];\n const code = this.safeCurrencyCode (currencyId);\n const account = this.account ();\n account['free'] = this.safeString (response, currencyId + '_available');\n account['total'] = this.safeString (response, currencyId + '_balance');\n result[code] = account;\n }\n return this.safeBalance (result);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"currency\":\"usdt\",\n \"address\":\"TECLD9XBH31XpyykdHU3uEAeUK7E6Lrmik\",\n \"network\":\"trx\",\n \"standard\":null,\n \"is_valid\":true,\n \"created_at\":\"2021-05-12T02:43:05.446Z\"\n }"
],
"line_end" => 1523,
"line_start" => 1494,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "depositAddress"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "currency['code']"
},
%{
"comment" => nil,
"key" => "network",
"value" => "network"
},
%{
"comment" => nil,
"key" => "address",
"value" => "address"
},
%{
"comment" => nil,
"key" => "tag",
"value" => "tag"
}
],
"name" => "parseDepositAddress",
"signature" => "parseDepositAddress (depositAddress, currency: Currency = undefined): DepositAddress",
"source" => "parseDepositAddress (depositAddress, currency: Currency = undefined): DepositAddress {\n //\n // {\n // \"currency\":\"usdt\",\n // \"address\":\"TECLD9XBH31XpyykdHU3uEAeUK7E6Lrmik\",\n // \"network\":\"trx\",\n // \"standard\":null,\n // \"is_valid\":true,\n // \"created_at\":\"2021-05-12T02:43:05.446Z\"\n // }\n //\n let address = this.safeString (depositAddress, 'address');\n let tag = undefined;\n if (address !== undefined) {\n const parts = address.split (':');\n address = this.safeString (parts, 0);\n tag = this.safeString (parts, 1);\n }\n this.checkAddress (address);\n const currencyId = this.safeString (depositAddress, 'currency');\n currency = this.safeCurrency (currencyId, currency);\n const network = this.safeString (depositAddress, 'network');\n return {\n 'info': depositAddress,\n 'currency': currency['code'],\n 'network': network,\n 'address': address,\n 'tag': tag,\n } as DepositAddress;\n }"
},
%{
"comment" => nil,
"examples" => [
"\"bch\":{\n \"id\":4,\n \"fullname\":\"Bitcoin Cash\",\n \"symbol\":\"bch\",\n \"active\":true,\n \"verified\":true,\n \"allow_deposit\":true,\n \"allow_withdrawal\":true,\n \"withdrawal_fee\":0.0001,\n \"min\":0.001,\n \"max\":100000,\n \"increment_unit\":0.001,\n \"logo\":\"https://bitholla.s3.ap-northeast-2.amazonaws.com/icon/BCH-hollaex-asset-01.svg\",\n \"code\":\"bch\",\n \"is_public\":true,\n \"meta\":{},\n \"estimated_price\":null,\n \"description\":null,\n \"type\":\"blockchain\",\n \"network\":null,\n \"standard\":null,\n \"issuer\":\"HollaEx\",\n \"withdrawal_fees\":null,\n \"created_at\":\"2019-08-09T10:45:43.367Z\",\n \"updated_at\":\"2021-12-13T03:08:32.372Z\",\n \"created_by\":1,\n \"owner_id\":1\n }"
],
"line_end" => 1970,
"line_start" => 1904,
"mappings" => [
%{
"comment" => nil,
"key" => "deposit",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "withdraw",
"value" => "withdrawalFee"
}
],
"name" => "parseDepositWithdrawFee",
"signature" => "parseDepositWithdrawFee (fee, currency: Currency = undefined)",
"source" => "parseDepositWithdrawFee (fee, currency: Currency = undefined) {\n //\n // \"bch\":{\n // \"id\":4,\n // \"fullname\":\"Bitcoin Cash\",\n // \"symbol\":\"bch\",\n // \"active\":true,\n // \"verified\":true,\n // \"allow_deposit\":true,\n // \"allow_withdrawal\":true,\n // \"withdrawal_fee\":0.0001,\n // \"min\":0.001,\n // \"max\":100000,\n // \"increment_unit\":0.001,\n // \"logo\":\"https://bitholla.s3.ap-northeast-2.amazonaws.com/icon/BCH-hollaex-asset-01.svg\",\n // \"code\":\"bch\",\n // \"is_public\":true,\n // \"meta\":{},\n // \"estimated_price\":null,\n // \"description\":null,\n // \"type\":\"blockchain\",\n // \"network\":null,\n // \"standard\":null,\n // \"issuer\":\"HollaEx\",\n // \"withdrawal_fees\":null,\n // \"created_at\":\"2019-08-09T10:45:43.367Z\",\n // \"updated_at\":\"2021-12-13T03:08:32.372Z\",\n // \"created_by\":1,\n // \"owner_id\":1\n // }\n //\n const result: Dict = {\n 'info': fee,\n 'withdraw': {\n 'fee': undefined,\n 'percentage': undefined,\n },\n 'deposit': {\n 'fee': undefined,\n 'percentage': undefined,\n },\n 'networks': {},\n };\n const allowWithdrawal = this.safeValue (fee, 'allow_withdrawal');\n if (allowWithdrawal) {\n result['withdraw'] = { 'fee': this.safeNumber (fee, 'withdrawal_fee'), 'percentage': false };\n }\n const withdrawalFees = this.safeValue (fee, 'withdrawal_fees');\n if (withdrawalFees !== undefined) {\n const keys = Object.keys (withdrawalFees);\n const keysLength = keys.length;\n for (let i = 0; i < keysLength; i++) {\n const key = keys[i];\n const value = withdrawalFees[key];\n const currencyId = this.safeString (value, 'symbol');\n const currencyCode = this.safeCurrencyCode (currencyId);\n const networkCode = this.networkIdToCode (key, currencyCode);\n const networkCodeUpper = networkCode.toUpperCase (); // default to the upper case network code\n const withdrawalFee = this.safeNumber (value, 'value');\n result['networks'][networkCodeUpper] = {\n 'deposit': undefined,\n 'withdraw': withdrawalFee,\n };\n }\n }\n return result;\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"time\":\"2020-03-02T20:00:00.000Z\",\n \"close\":8872.1,\n \"high\":8872.1,\n \"low\":8858.6,\n \"open\":8858.6,\n \"symbol\":\"btc-usdt\",\n \"volume\":1.2922\n }"
],
"line_end" => 987,
"line_start" => 967,
"mappings" => [],
"name" => "parseOHLCV",
"signature" => "parseOHLCV (ohlcv, market: Market = undefined): OHLCV",
"source" => "parseOHLCV (ohlcv, market: Market = undefined): OHLCV {\n //\n // {\n // \"time\":\"2020-03-02T20:00:00.000Z\",\n // \"close\":8872.1,\n // \"high\":8872.1,\n // \"low\":8858.6,\n // \"open\":8858.6,\n // \"symbol\":\"btc-usdt\",\n // \"volume\":1.2922\n // }\n //\n return [\n this.parse8601 (this.safeString (ohlcv, 'time')),\n this.safeNumber (ohlcv, 'open'),\n this.safeNumber (ohlcv, 'high'),\n this.safeNumber (ohlcv, 'low'),\n this.safeNumber (ohlcv, 'close'),\n this.safeNumber (ohlcv, 'volume'),\n ];\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"id\":\"10644b7e-3c90-4ba9-bc3b-188f3a4e9cfd\",\n \"created_by\":140093,\n \"exchange_id\":22,\n \"side\":\"buy\",\n \"symbol\":\"doge-usdt\",\n \"type\":\"limit\",\n \"price\":0.05,\n \"size\":10,\n \"stop\":null,\n \"filled\":0,\n \"status\":\"canceled\",\n \"fee\":0,\n \"fee_coin\":\"doge\",\n \"meta\": { // optional field only returned for postOnly orders\n \"post_only\":true\n },\n \"fee_structure\": {\n \"maker\":0.1,\n \"taker\":0.1\n },\n \"created_at\":\"2022-05-31T08:14:14.747Z\",\n \"updated_at\":\"2022-05-31T08:14:23.727Z\"\n }"
],
"line_end" => 1302,
"line_start" => 1238,
"mappings" => [
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "clientOrderId",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "lastTradeTimestamp",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "status",
"value" => "status"
},
%{
"comment" => nil,
"key" => "symbol",
"value" => "symbol"
},
%{
"comment" => nil,
"key" => "type",
"value" => "type"
},
%{
"comment" => nil,
"key" => "timeInForce",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "postOnly",
"value" => "postOnly"
},
%{
"comment" => nil,
"key" => "side",
"value" => "side"
},
%{
"comment" => nil,
"key" => "price",
"value" => "price"
},
%{
"comment" => nil,
"key" => "triggerPrice",
"value" => "this.safeString (order, 'stop')"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "amount"
},
%{
"comment" => nil,
"key" => "filled",
"value" => "filled"
},
%{
"comment" => nil,
"key" => "remaining",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "trades",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "info",
"value" => "order"
},
%{
"comment" => nil,
"key" => "average",
"value" => "undefined"
}
],
"name" => "parseOrder",
"signature" => "parseOrder (order: Dict, market: Market = undefined): Order",
"source" => "parseOrder (order: Dict, market: Market = undefined): Order {\n //\n // createOrder, fetchOpenOrder, fetchOpenOrders\n //\n // {\n // \"id\":\"10644b7e-3c90-4ba9-bc3b-188f3a4e9cfd\",\n // \"created_by\":140093,\n // \"exchange_id\":22,\n // \"side\":\"buy\",\n // \"symbol\":\"doge-usdt\",\n // \"type\":\"limit\",\n // \"price\":0.05,\n // \"size\":10,\n // \"stop\":null,\n // \"filled\":0,\n // \"status\":\"canceled\",\n // \"fee\":0,\n // \"fee_coin\":\"doge\",\n // \"meta\": { // optional field only returned for postOnly orders\n // \"post_only\":true\n // },\n // \"fee_structure\": {\n // \"maker\":0.1,\n // \"taker\":0.1\n // },\n // \"created_at\":\"2022-05-31T08:14:14.747Z\",\n // \"updated_at\":\"2022-05-31T08:14:23.727Z\"\n // }\n //\n const marketId = this.safeString (order, 'symbol');\n const symbol = this.safeSymbol (marketId, market, '-');\n const id = this.safeString (order, 'id');\n const timestamp = this.parse8601 (this.safeString (order, 'created_at'));\n const type = this.safeString (order, 'type');\n const side = this.safeString (order, 'side');\n const price = this.safeString (order, 'price');\n const amount = this.safeString (order, 'size');\n const filled = this.safeString (order, 'filled');\n const status = this.parseOrderStatus (this.safeString (order, 'status'));\n const meta = this.safeValue (order, 'meta', {});\n const postOnly = this.safeBool (meta, 'post_only', false);\n return this.safeOrder ({\n 'id': id,\n 'clientOrderId': undefined,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'lastTradeTimestamp': undefined,\n 'status': status,\n 'symbol': symbol,\n 'type': type,\n 'timeInForce': undefined,\n 'postOnly': postOnly,\n 'side': side,\n 'price': price,\n 'triggerPrice': this.safeString (order, 'stop'),\n 'amount': amount,\n 'filled': filled,\n 'remaining': undefined,\n 'cost': undefined,\n 'trades': undefined,\n 'fee': undefined,\n 'info': order,\n 'average': undefined,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 1236,
"line_start" => 1228,
"mappings" => [],
"name" => "parseOrderStatus",
"signature" => "parseOrderStatus (status: Str)",
"source" => "parseOrderStatus (status: Str) {\n const statuses: Dict = {\n 'new': 'open',\n 'pfilled': 'open',\n 'filled': 'closed',\n 'canceled': 'canceled',\n };\n return this.safeString (statuses, status, status);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"open\": 8615.55,\n \"close\": 8841.05,\n \"high\": 8921.1,\n \"low\": 8607,\n \"last\": 8841.05,\n \"volume\": 20.2802,\n \"timestamp\": \"2020-03-03T03:11:18.964Z\",\n }",
"{\n \"time\": \"2020-03-02T04:29:45.011Z\",\n \"open\": 341.65,\n \"close\": 337.9,\n \"high\": 341.65,\n \"low\": 337.3,\n \"last\": 337.9,\n \"volume\": 0.054,\n \"symbol\": \"bch-usdt\"\n }"
],
"line_end" => 753,
"line_start" => 699,
"mappings" => [
%{
"comment" => nil,
"key" => "symbol",
"value" => "symbol"
},
%{
"comment" => nil,
"key" => "info",
"value" => "ticker"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "high",
"value" => "this.safeString (ticker, 'high')"
},
%{
"comment" => nil,
"key" => "low",
"value" => "this.safeString (ticker, 'low')"
},
%{
"comment" => nil,
"key" => "bid",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "bidVolume",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "ask",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "askVolume",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "vwap",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "open",
"value" => "this.safeString (ticker, 'open')"
},
%{
"comment" => nil,
"key" => "close",
"value" => "close"
},
%{
"comment" => nil,
"key" => "last",
"value" => "this.safeString (ticker, 'last', close)"
},
%{
"comment" => nil,
"key" => "previousClose",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "change",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "percentage",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "average",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "baseVolume",
"value" => "this.safeString (ticker, 'volume')"
},
%{
"comment" => nil,
"key" => "quoteVolume",
"value" => "undefined"
}
],
"name" => "parseTicker",
"signature" => "parseTicker (ticker: Dict, market: Market = undefined): Ticker",
"source" => "parseTicker (ticker: Dict, market: Market = undefined): Ticker {\n //\n // fetchTicker\n //\n // {\n // \"open\": 8615.55,\n // \"close\": 8841.05,\n // \"high\": 8921.1,\n // \"low\": 8607,\n // \"last\": 8841.05,\n // \"volume\": 20.2802,\n // \"timestamp\": \"2020-03-03T03:11:18.964Z\",\n // }\n //\n // fetchTickers\n //\n // {\n // \"time\": \"2020-03-02T04:29:45.011Z\",\n // \"open\": 341.65,\n // \"close\": 337.9,\n // \"high\": 341.65,\n // \"low\": 337.3,\n // \"last\": 337.9,\n // \"volume\": 0.054,\n // \"symbol\": \"bch-usdt\"\n // }\n //\n const marketId = this.safeString (ticker, 'symbol');\n market = this.safeMarket (marketId, market, '-');\n const symbol = market['symbol'];\n const timestamp = this.parse8601 (this.safeString2 (ticker, 'time', 'timestamp'));\n const close = this.safeString (ticker, 'close');\n return this.safeTicker ({\n 'symbol': symbol,\n 'info': ticker,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'high': this.safeString (ticker, 'high'),\n 'low': this.safeString (ticker, 'low'),\n 'bid': undefined,\n 'bidVolume': undefined,\n 'ask': undefined,\n 'askVolume': undefined,\n 'vwap': undefined,\n 'open': this.safeString (ticker, 'open'),\n 'close': close,\n 'last': this.safeString (ticker, 'last', close),\n 'previousClose': undefined,\n 'change': undefined,\n 'percentage': undefined,\n 'average': undefined,\n 'baseVolume': this.safeString (ticker, 'volume'),\n 'quoteVolume': undefined,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 697,
"line_start" => 685,
"mappings" => [],
"name" => "parseTickers",
"signature" => "parseTickers (tickers, symbols: Strings = undefined, params = {}): Tickers",
"source" => "parseTickers (tickers, symbols: Strings = undefined, params = {}): Tickers {\n const result: Dict = {};\n const keys = Object.keys (tickers);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const ticker = tickers[key];\n const marketId = this.safeString (ticker, 'symbol', key);\n const market = this.safeMarket (marketId, undefined, '-');\n const symbol = market['symbol'];\n result[symbol] = this.extend (this.parseTicker (ticker, market), params);\n }\n return this.filterByArrayTickers (result, 'symbol', symbols);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"size\": 0.5,\n \"price\": 8830,\n \"side\": \"buy\",\n \"timestamp\": \"2020-03-03T04:44:33.034Z\"\n }",
"{\n \"side\":\"sell\",\n \"symbol\":\"doge-usdt\",\n \"size\":70,\n \"price\":0.147411,\n \"timestamp\":\"2022-01-26T17:53:34.650Z\",\n \"order_id\":\"cba78ecb-4187-4da2-9d2f-c259aa693b5a\",\n \"fee\":0.01031877,\n \"fee_coin\":\"usdt\"\n }"
],
"line_end" => 846,
"line_start" => 790,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "trade"
},
%{
"comment" => nil,
"key" => "id",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "datetime"
},
%{
"comment" => nil,
"key" => "symbol",
"value" => "symbol"
},
%{
"comment" => nil,
"key" => "order",
"value" => "orderId"
},
%{
"comment" => nil,
"key" => "type",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "side",
"value" => "side"
},
%{
"comment" => nil,
"key" => "takerOrMaker",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "price",
"value" => "priceString"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "amountString"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "fee"
}
],
"name" => "parseTrade",
"signature" => "parseTrade (trade: Dict, market: Market = undefined): Trade",
"source" => "parseTrade (trade: Dict, market: Market = undefined): Trade {\n //\n // fetchTrades (public)\n //\n // {\n // \"size\": 0.5,\n // \"price\": 8830,\n // \"side\": \"buy\",\n // \"timestamp\": \"2020-03-03T04:44:33.034Z\"\n // }\n //\n // fetchMyTrades (private)\n // {\n // \"side\":\"sell\",\n // \"symbol\":\"doge-usdt\",\n // \"size\":70,\n // \"price\":0.147411,\n // \"timestamp\":\"2022-01-26T17:53:34.650Z\",\n // \"order_id\":\"cba78ecb-4187-4da2-9d2f-c259aa693b5a\",\n // \"fee\":0.01031877,\n // \"fee_coin\":\"usdt\"\n // }\n //\n const marketId = this.safeString (trade, 'symbol');\n market = this.safeMarket (marketId, market, '-');\n const symbol = market['symbol'];\n const datetime = this.safeString (trade, 'timestamp');\n const timestamp = this.parse8601 (datetime);\n const side = this.safeString (trade, 'side');\n const orderId = this.safeString (trade, 'order_id');\n const priceString = this.safeString (trade, 'price');\n const amountString = this.safeString (trade, 'size');\n const feeCostString = this.safeString (trade, 'fee');\n const feeCoin = this.safeString (trade, 'fee_coin');\n let fee = undefined;\n if (feeCostString !== undefined) {\n fee = {\n 'cost': feeCostString,\n 'currency': this.safeCurrencyCode (feeCoin),\n };\n }\n return this.safeTrade ({\n 'info': trade,\n 'id': undefined,\n 'timestamp': timestamp,\n 'datetime': datetime,\n 'symbol': symbol,\n 'order': orderId,\n 'type': undefined,\n 'side': side,\n 'takerOrMaker': undefined,\n 'price': priceString,\n 'amount': amountString,\n 'cost': undefined,\n 'fee': fee,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"id\": 539,\n \"amount\": 20,\n \"fee\": 0,\n \"address\": \"0x5c0cc98270d7089408fcbcc8e2131287f5be2306\",\n \"transaction_id\": \"0xd4006327a5ec2c41adbdcf566eaaba6597c3d45906abe78ea1a4a022647c2e28\",\n \"status\": true,\n \"dismissed\": false,\n \"rejected\": false,\n \"description\": \"\",\n \"type\": \"withdrawal\",\n \"currency\": \"usdt\",\n \"created_at\": \"2020-03-03T07:56:36.198Z\",\n \"updated_at\": \"2020-03-03T08:00:05.674Z\",\n \"user_id\": 620\n }",
"{\n \"message\": \"Withdrawal request is in the queue and will be processed.\",\n \"transaction_id\": \"1d1683c3-576a-4d53-8ff5-27c93fd9758a\",\n \"amount\": 1,\n \"currency\": \"xht\",\n \"fee\": 0,\n \"fee_coin\": \"xht\"\n }"
],
"line_end" => 1857,
"line_start" => 1760,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "transaction"
},
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "txid",
"value" => "txid"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "network",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "addressFrom",
"value" => "addressFrom"
},
%{
"comment" => nil,
"key" => "address",
"value" => "address"
},
%{
"comment" => nil,
"key" => "addressTo",
"value" => "addressTo"
},
%{
"comment" => nil,
"key" => "tagFrom",
"value" => "tagFrom"
},
%{
"comment" => nil,
"key" => "tag",
"value" => "tag"
},
%{
"comment" => nil,
"key" => "tagTo",
"value" => "tagTo"
},
%{
"comment" => nil,
"key" => "type",
"value" => "type"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "amount"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "currency['code']"
},
%{
"comment" => nil,
"key" => "status",
"value" => "status"
},
%{
"comment" => nil,
"key" => "updated",
"value" => "updated"
},
%{
"comment" => nil,
"key" => "comment",
"value" => "this.safeString (transaction, 'message')"
},
%{
"comment" => nil,
"key" => "internal",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "fee"
}
],
"name" => "parseTransaction",
"signature" => "parseTransaction (transaction: Dict, currency: Currency = undefined): Transaction",
"source" => "parseTransaction (transaction: Dict, currency: Currency = undefined): Transaction {\n //\n // fetchWithdrawals, fetchDeposits\n //\n // {\n // \"id\": 539,\n // \"amount\": 20,\n // \"fee\": 0,\n // \"address\": \"0x5c0cc98270d7089408fcbcc8e2131287f5be2306\",\n // \"transaction_id\": \"0xd4006327a5ec2c41adbdcf566eaaba6597c3d45906abe78ea1a4a022647c2e28\",\n // \"status\": true,\n // \"dismissed\": false,\n // \"rejected\": false,\n // \"description\": \"\",\n // \"type\": \"withdrawal\",\n // \"currency\": \"usdt\",\n // \"created_at\": \"2020-03-03T07:56:36.198Z\",\n // \"updated_at\": \"2020-03-03T08:00:05.674Z\",\n // \"user_id\": 620\n // }\n //\n // withdraw\n //\n // {\n // \"message\": \"Withdrawal request is in the queue and will be processed.\",\n // \"transaction_id\": \"1d1683c3-576a-4d53-8ff5-27c93fd9758a\",\n // \"amount\": 1,\n // \"currency\": \"xht\",\n // \"fee\": 0,\n // \"fee_coin\": \"xht\"\n // }\n //\n const id = this.safeString (transaction, 'id');\n const txid = this.safeString (transaction, 'transaction_id');\n const timestamp = this.parse8601 (this.safeString (transaction, 'created_at'));\n const updated = this.parse8601 (this.safeString (transaction, 'updated_at'));\n const type = this.safeString (transaction, 'type');\n const amount = this.safeNumber (transaction, 'amount');\n let address = this.safeString (transaction, 'address');\n let addressTo = undefined;\n const addressFrom = undefined;\n let tag = undefined;\n let tagTo = undefined;\n const tagFrom = undefined;\n if (address !== undefined) {\n const parts = address.split (':');\n address = this.safeString (parts, 0);\n tag = this.safeString (parts, 1);\n addressTo = address;\n tagTo = tag;\n }\n const currencyId = this.safeString (transaction, 'currency');\n currency = this.safeCurrency (currencyId, currency);\n let status = this.safeValue (transaction, 'status');\n const dismissed = this.safeValue (transaction, 'dismissed');\n const rejected = this.safeValue (transaction, 'rejected');\n if (status) {\n status = 'ok';\n } else if (dismissed) {\n status = 'canceled';\n } else if (rejected) {\n status = 'failed';\n } else {\n status = 'pending';\n }\n const feeCurrencyId = this.safeString (transaction, 'fee_coin');\n const feeCurrencyCode = this.safeCurrencyCode (feeCurrencyId, currency);\n const feeCost = this.safeNumber (transaction, 'fee');\n let fee = undefined;\n if (feeCost !== undefined) {\n fee = {\n 'currency': feeCurrencyCode,\n 'cost': feeCost,\n };\n }\n return {\n 'info': transaction,\n 'id': id,\n 'txid': txid,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'network': undefined,\n 'addressFrom': addressFrom,\n 'address': address,\n 'addressTo': addressTo,\n 'tagFrom': tagFrom,\n 'tag': tag,\n 'tagTo': tagTo,\n 'type': type,\n 'amount': amount,\n 'currency': currency['code'],\n 'status': status,\n 'updated': updated,\n 'comment': this.safeString (transaction, 'message'),\n 'internal': undefined,\n 'fee': fee,\n } as Transaction;\n }"
}
],
path_prefix: "/v2/",
pro: true,
quote_json_numbers: nil,
rate_limits: %{
interval_ms: 250,
period: 1000,
requests: 4,
rolling_window_size: 60000
},
raw_endpoints: %{
private: [
%{
auth: false,
cost: 1,
method: :get,
path: "/order"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/orders"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/user"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/user/balance"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/user/deposits"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/user/trades"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/user/withdrawal/fee"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/user/withdrawals"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/order"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/user/withdrawal"
},
%{
auth: false,
cost: 1,
method: :delete,
path: "/order"
},
%{
auth: false,
cost: 1,
method: :delete,
path: "/order/all"
}
],
public: [
%{
auth: false,
cost: 1,
method: :get,
path: "/chart"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/charts"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/constants"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/health"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/kit"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/minicharts"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/oracle/prices"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/orderbook"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/orderbooks"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/quick-trade"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/ticker"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/tickers"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/tiers"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/trades"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/udf/config"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/udf/history"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/udf/symbols"
}
]
},
required_credentials: %{
api_key: true,
password: false,
secret: true,
uid: false
},
requires_eddsa: false,
response_error: nil,
signing: %{
api_key_header: "api-key",
confidence: :high,
pattern: :hmac_sha256_headers,
signature_header: "api-signature"
},
spec_format_version: 2,
status: %{
"eta" => nil,
"status" => "ok",
"updated" => nil,
"url" => nil
},
symbol_format: nil,
symbol_formats: %{
precision_mode: 4,
sample_limits: %{
"amount" => %{
"max" => 10000000,
"min" => 0.1
},
"cost" => %{},
"price" => %{
"max" => 1,
"min" => 0.1
}
},
sample_precision: %{
"amount" => 0.1,
"price" => 0.0001
},
spot: %{
base: "XHT",
base_id: "xht",
case: :lower,
contract: false,
id: "xht-usdt",
limits: %{
"amount" => %{
"max" => 10000000,
"min" => 0.1
},
"cost" => %{},
"leverage" => %{},
"price" => %{
"max" => 1,
"min" => 0.1
}
},
maker: 0.001,
precision: %{
"amount" => 0.1,
"price" => 0.0001
},
quote: "USDT",
quote_id: "usdt",
separator: "-",
symbol: "XHT/USDT",
taker: 0.001
}
},
symbol_patterns: %{
spot: %{
case: :lower,
component_order: nil,
date_format: nil,
pattern: :dash_lower,
prefix: nil,
separator: "-",
suffix: nil
}
},
timeframes: %{
"15m" => "15m",
"1d" => "1d",
"1h" => "1h",
"1m" => "1m",
"1w" => "1w",
"4h" => "4h",
"5m" => "5m"
},
url_strategy: %{
detected_from: "sign_method",
pattern: :version_slash,
prefix: "/v2/"
},
urls: %{
api: "https://api.hollaex.com",
api_sections: %{
"rest" => "https://api.hollaex.com"
},
doc: "https://apidocs.hollaex.com",
other: nil,
sandbox: %{
"rest" => "https://api.sandbox.hollaex.com"
},
www: "https://hollaex.com"
},
version: "v2",
ws: %{
channel_templates: %{
watch_balance: %{
market_id_format: :native,
params: [],
pattern: :topic_based,
separator: "."
},
watch_my_trades: %{
market_id_format: :native,
params: [
%{
"default" => nil,
"name" => "limit"
}
],
pattern: :topic_based,
separator: "."
},
watch_order_book: %{
market_id_format: :native,
params: [
%{
"default" => nil,
"name" => "limit"
}
],
pattern: :topic_based,
separator: "."
},
watch_orders: %{
market_id_format: :native,
params: [
%{
"default" => nil,
"name" => "limit"
}
],
pattern: :topic_based,
separator: "."
},
watch_private: %{
market_id_format: :native,
params: [],
pattern: :topic_based,
separator: "."
},
watch_public: %{
market_id_format: :native,
params: [],
pattern: :topic_based,
separator: "."
},
watch_trades: %{
market_id_format: :native,
params: [
%{
"default" => nil,
"name" => "limit"
}
],
pattern: :topic_based,
separator: "."
}
},
has: %{
watch_balance: true,
watch_bids_asks: nil,
watch_liquidations: nil,
watch_liquidations_for_symbols: nil,
watch_my_liquidations: nil,
watch_my_liquidations_for_symbols: nil,
watch_my_trades: false,
watch_ohlcv: false,
watch_ohlcv_for_symbols: nil,
watch_order_book: true,
watch_order_book_for_symbols: nil,
watch_orders: true,
watch_orders_for_symbols: nil,
watch_position: nil,
watch_positions: nil,
watch_status: nil,
watch_ticker: false,
watch_tickers: false,
watch_trades: true,
watch_trades_for_symbols: false
},
message_patterns: [
%{
format: :op,
keys: [
"op"
],
kind_field: "op",
kind_value: "ping",
sources: [
:ping
]
},
%{
args_field: "args",
format: :op,
keys: [
"args",
"op"
],
kind_field: "op",
kind_value: "subscribe",
sources: [
:send,
:watch
]
}
],
options: %{
"watchBalance" => %{},
"watchOrders" => %{}
},
subscription_config: %{
args_field: "args",
args_format: :string_list,
market_id_format: :native,
op_field: "op",
separator: "."
},
subscription_pattern: :op_subscribe,
test_urls: "wss://api.sandbox.hollaex.com/stream",
urls: "wss://api.hollaex.com/stream",
watch_methods: [
"watchBalance",
"watchMyTrades",
"watchOrderBook",
"watchOrders",
"watchPrivate",
"watchPublic",
"watchTrades"
]
}
}