Current section
Files
Jump to
Current section
Files
priv/specs/extracted/novadax.exs
# NovaDAX Exchange Specification
#
# Auto-generated by: mix ccxt.extract novadax
# CCXT version: 4.5.34
# Spec format version: 1
#
# 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: :supported,
comment: nil,
countries: [
"BR"
],
currencies: %{},
currency_aliases: %{
"BCHSV" => "BSV",
"XBT" => "BTC"
},
dex: false,
enable_rate_limit: true,
endpoint_extraction_stats: %{
"capturedMethods" => 26,
"coveragePercent" => 100,
"enabledMethods" => 31,
"excluded" => [
%{
"method" => "editOrder",
"reason" => "emulated (returns cached data, no HTTP call)"
},
%{
"method" => "fetchTransactions",
"reason" => "emulated (returns cached data, no HTTP call)"
}
],
"excludedMethods" => 2,
"extractableMethods" => 29,
"failures" => [
%{
"error" => "novadax createOrder() requires the price argument for market buy orders to calculate the total cost to spend (amount * price), alternatively set the createMarketBuyOrderRequiresPrice option or param to false and pass the cost to spend (quote quantity) in the amount argument",
"method" => "createMarketOrder"
},
%{
"error" => "novadax createOrder() requires the price argument for market buy orders to calculate the total cost to spend (amount * price), alternatively set the createMarketBuyOrderRequiresPrice option or param to false and pass the cost to spend (quote quantity) in the amount argument",
"method" => "createStopMarketOrder"
},
%{
"error" => "novadax transfer() supports transfers between main account and subaccounts only",
"method" => "transfer"
}
]
},
endpoints: [
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :post,
name: :cancel_order,
param_mappings: %{},
params: [
:id,
:symbol
],
path: "/orders/cancel",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 5,
default_params: %{
"type" => "LIMIT"
},
market_type: :spot,
method: :post,
name: :create_limit_order,
param_mappings: %{},
params: [
:symbol,
:side,
:amount,
:price
],
path: "/orders/create",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 5,
default_params: %{
"side" => "BUY",
"type" => "MARKET"
},
market_type: :spot,
method: :post,
name: :create_market_buy_order_with_cost,
param_mappings: %{
"cost" => "value"
},
params: [
:symbol,
:cost
],
path: "/orders/create",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 5,
market_type: :spot,
method: :post,
name: :create_order,
param_mappings: %{},
params: [
:symbol,
:type,
:side,
:amount,
:price
],
path: "/orders/create",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 5,
default_params: %{
"operator" => "LTE",
"triggerDirection" => "below",
"type" => "STOP_LIMIT"
},
market_type: :swap,
method: :post,
name: :create_stop_limit_order,
param_mappings: %{
"triggerPrice" => "stopPrice"
},
params: [
:symbol,
:side,
:amount,
:price,
:triggerPrice
],
path: "/orders/create",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 5,
default_params: %{
"operator" => "LTE",
"triggerDirection" => "below",
"type" => "STOP_LIMIT"
},
market_type: :swap,
method: :post,
name: :create_stop_order,
param_mappings: %{
"triggerPrice" => "stopPrice"
},
params: [
:symbol,
:type,
:side,
:amount,
:price,
:triggerPrice
],
path: "/orders/create",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_accounts,
param_mappings: %{},
params: [],
path: "/account/subs",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_balance,
param_mappings: %{},
params: [],
path: "/account/getBalance",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 10,
default_params: %{
"status" => "FILLED,CANCELED,REJECTED"
},
market_type: :spot,
method: :get,
name: :fetch_closed_orders,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/orders/list",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 3,
default_params: %{
"type" => "coin_in"
},
market_type: :spot,
method: :get,
name: :fetch_deposits,
param_mappings: %{
"code" => "currency"
},
params: [
:code,
:since,
:limit
],
path: "/wallet/query/deposit-withdraw",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 3,
market_type: :spot,
method: :get,
name: :fetch_deposits_withdrawals,
param_mappings: %{
"code" => "currency"
},
params: [
:code,
:since,
:limit
],
path: "/wallet/query/deposit-withdraw",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_l2_order_book,
param_mappings: %{},
params: [
:symbol,
:limit
],
path: "/market/depth",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_markets,
param_mappings: %{},
params: [],
path: "/common/symbols",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 10,
market_type: :spot,
method: :get,
name: :fetch_my_trades,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/orders/fills",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 5,
default_params: %{
"to" => "<generated>",
"unit" => "ONE_HOU"
},
market_type: :spot,
method: :get,
name: :fetch_ohlcv,
param_mappings: %{
"since" => "from"
},
params: [
:symbol,
:timeframe,
:since,
:limit
],
path: "/market/kline/history",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 10,
default_params: %{
"status" => "SUBMITTED,PROCESSING,PARTIAL_FILLED,CANCELING"
},
market_type: :spot,
method: :get,
name: :fetch_open_orders,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/orders/list",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_order,
param_mappings: %{},
params: [
:id,
:symbol
],
path: "/orders/get",
response_transformer: {:extract_path_unwrap, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_order_book,
param_mappings: %{},
params: [
:symbol,
:limit
],
path: "/market/depth",
response_transformer: {:extract_path_unwrap, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 3,
market_type: :spot,
method: :get,
name: :fetch_order_trades,
param_mappings: %{},
params: [
:id,
:symbol,
:since,
:limit
],
path: "/orders/fill",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 10,
market_type: :spot,
method: :get,
name: :fetch_orders,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/orders/list",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_ticker,
param_mappings: %{},
params: [
:symbol
],
path: "/market/ticker",
response_transformer: {:extract_path_unwrap, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 5,
market_type: :spot,
method: :get,
name: :fetch_tickers,
param_mappings: %{},
params: [
:symbols
],
path: "/market/tickers",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_time,
param_mappings: %{},
params: [],
path: "/common/timestamp",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 5,
market_type: :spot,
method: :get,
name: :fetch_trades,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/market/trades",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 3,
default_params: %{
"type" => "coin_out"
},
market_type: :spot,
method: :get,
name: :fetch_withdrawals,
param_mappings: %{
"code" => "currency"
},
params: [
:code,
:since,
:limit
],
path: "/wallet/query/deposit-withdraw",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 3,
market_type: :spot,
method: :post,
name: :withdraw,
param_mappings: %{
"address" => "wallet"
},
params: [
:code,
:amount,
:address,
:tag
],
path: "/account/withdraw/coin",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
}
],
error_code_details: %{
"A10001" => %{
description: "400 Params error Parameter is invalid",
type: :invalid_parameters
},
"A10002" => %{
description: "404 Api not found API used is irrelevant",
type: :exchange_error
},
"A10003" => %{
description: "403 Authentication failed Authentication is failed",
type: :invalid_credentials
},
"A10004" => %{
description: "429 Too many requests Too many requests are made",
type: :rate_limited
},
"A10005" => %{
description: "403 Kyc required Need to complete KYC firstly",
type: :access_restricted
},
"A10006" => %{
description: "403 Customer canceled Account is canceled",
type: :access_restricted
},
"A10007" => %{
description: "400 Account not exist Sub account does not exist",
type: :access_restricted
},
"A10011" => %{
description: "400 Symbol not exist Trading symbol does not exist",
type: :invalid_order
},
"A10012" => %{
description: "400 Symbol not trading Trading symbol is temporarily not available",
type: :invalid_order
},
"A10013" => %{
description: "503 Symbol maintain Trading symbol is in maintain",
type: :network_error
},
"A30001" => %{
description: "400 Order not found Queried order is not found",
type: :order_not_found
},
"A30002" => %{
description: "400 Order amount is too small Order amount is too small",
type: :invalid_order
},
"A30003" => %{
description: "400 Order amount is invalid Order amount is invalid",
type: :invalid_order
},
"A30004" => %{
description: "400 Order value is too small Order value is too small",
type: :invalid_order
},
"A30005" => %{
description: "400 Order value is invalid Order value is invalid",
type: :invalid_order
},
"A30006" => %{
description: "400 Order price is invalid Order price is invalid",
type: :invalid_order
},
"A30007" => %{
description: "400 Insufficient balance The balance is insufficient",
type: :insufficient_balance
},
"A30008" => %{
description: "400 Order was closed The order has been executed",
type: :invalid_order
},
"A30009" => %{
description: "400 Order canceled The order has been cancelled",
type: :invalid_order
},
"A30010" => %{
description: "400 Order cancelling The order is being cancelled",
type: :exchange_error
},
"A30011" => %{
description: "400 Order price too high The order price is too high",
type: :invalid_order
},
"A30012" => %{
description: "400 Order price too low The order price is too low",
type: :invalid_order
},
"A40004" => %{
description: "sub account balance Insufficient",
type: :insufficient_balance
},
"A99999" => %{
description: "500 Failed Internal error",
type: :exchange_error
}
},
error_codes: %{
"A10001" => :invalid_parameters,
"A10002" => :exchange_error,
"A10003" => :invalid_credentials,
"A10004" => :rate_limited,
"A10005" => :access_restricted,
"A10006" => :access_restricted,
"A10007" => :access_restricted,
"A10011" => :invalid_order,
"A10012" => :invalid_order,
"A10013" => :network_error,
"A30001" => :order_not_found,
"A30002" => :invalid_order,
"A30003" => :invalid_order,
"A30004" => :invalid_order,
"A30005" => :invalid_order,
"A30006" => :invalid_order,
"A30007" => :insufficient_balance,
"A30008" => :invalid_order,
"A30009" => :invalid_order,
"A30010" => :exchange_error,
"A30011" => :invalid_order,
"A30012" => :invalid_order,
"A40004" => :insufficient_balance,
"A99999" => :exchange_error
},
exceptions: %{
exact: %{
"A10001" => :bad_request,
"A10002" => :exchange_error,
"A10003" => :authentication_error,
"A10004" => :rate_limit_exceeded,
"A10005" => :permission_denied,
"A10006" => :account_suspended,
"A10007" => :account_not_enabled,
"A10011" => :bad_symbol,
"A10012" => :bad_symbol,
"A10013" => :on_maintenance,
"A30001" => :order_not_found,
"A30002" => :invalid_order,
"A30003" => :invalid_order,
"A30004" => :invalid_order,
"A30005" => :invalid_order,
"A30006" => :invalid_order,
"A30007" => :insufficient_funds,
"A30008" => :invalid_order,
"A30009" => :invalid_order,
"A30010" => :cancel_pending,
"A30011" => :invalid_order,
"A30012" => :invalid_order,
"A40004" => :insufficient_funds,
"A99999" => :exchange_error
}
},
exchange_options: %{
"defaultNetworkCodeReplacements" => %{
"BRC20" => %{
"BRC20" => "BTC"
},
"CRO" => %{
"CRC20" => "CRONOS"
},
"ETH" => %{
"ERC20" => "ETH"
},
"TRX" => %{
"TRC20" => "TRX"
}
},
"fetchOHLCV" => %{
"volume" => "amount"
},
"networksById" => %{},
"transfer" => %{
"fillResponseFromRequest" => true
}
},
extended_metadata: %{
fees_url: "https://www.novadax.com.br/fees-and-limits",
limits: %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
logo_url: "https://user-images.githubusercontent.com/1294454/92337550-2b085500-f0b3-11ea-98e7-5794fb07dd3b.jpg",
referral_url: "https://www.novadax.com.br/?s=ccxt"
},
extracted_metadata: %{
ccxt_version: "4.5.34"
},
features: %{
future: %{},
spot: %{
create_order: %{
hedged: false,
iceberg: true,
leverage: false,
margin_mode: false,
market_buy_by_cost: true,
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: false
},
trailing: false,
trigger_direction: true,
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: %{},
fetch_open_orders: %{
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: false
},
swap: %{}
},
fees: %{
trading: %{
maker: 0.0025,
percentage: true,
taker: 0.005,
tier_based: false
}
},
handle_content_type_application_zip: nil,
handle_errors_source: "handleErrors(code, reason, url, method, headers, body, response, requestHeaders, requestBody) {\n if (response === undefined) {\n return undefined;\n }\n //\n // {\"code\":\"A10003\",\"data\":[],\"message\":\"Authentication failed, Invalid accessKey.\"}\n //\n const errorCode = this.safeString(response, 'code');\n if (errorCode !== 'A10000') {\n const message = this.safeString(response, 'message');\n const feedback = this.id + ' ' + body;\n this.throwExactlyMatchedException(this.exceptions['exact'], errorCode, feedback);\n this.throwBroadlyMatchedException(this.exceptions['broad'], message, feedback);\n throw new errors.ExchangeError(feedback); // unknown message\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: false,
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: false,
create_limit_buy_order_ws: false,
create_limit_order: true,
create_limit_order_ws: false,
create_limit_sell_order: false,
create_limit_sell_order_ws: false,
create_market_buy_order: false,
create_market_buy_order_with_cost: true,
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: false,
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: false,
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_accounts: true,
fetch_all_greeks: 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: false,
fetch_currencies_ws: true,
fetch_deposit: false,
fetch_deposit_address: false,
fetch_deposit_addresses: false,
fetch_deposit_addresses_by_network: false,
fetch_deposit_withdraw_fee: false,
fetch_deposit_withdraw_fees: false,
fetch_deposits: true,
fetch_deposits_withdrawals: true,
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_price: 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: false,
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: false,
fetch_order_trades: true,
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_history: false,
fetch_position_mode: false,
fetch_position_ws: false,
fetch_positions: 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: true,
fetch_trades: true,
fetch_trades_ws: false,
fetch_trading_fee: false,
fetch_trading_fees: false,
fetch_trading_fees_ws: false,
fetch_trading_limits: false,
fetch_transaction_fee: false,
fetch_transaction_fees: false,
fetch_transactions: true,
fetch_transfer: false,
fetch_transfers: false,
fetch_underlying_assets: false,
fetch_volatility_history: false,
fetch_withdraw_addresses: false,
fetch_withdrawal: false,
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: false,
set_leverage: false,
set_margin: false,
set_margin_mode: false,
set_position_mode: false,
sign_in: false,
spot: true,
swap: false,
transfer: true,
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: false,
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: false,
watch_order_book_for_symbols: false,
watch_orders: false,
watch_orders_for_symbols: false,
watch_position: false,
watch_positions: false,
watch_status: false,
watch_ticker: false,
watch_tickers: false,
watch_trades: false,
watch_trades_for_symbols: false,
withdraw: true,
ws: false
},
http_config: nil,
id: "novadax",
markets: nil,
name: "NovaDAX",
ohlcv_timestamp_resolution: :seconds,
options: %{
fetch_o_h_l_c_v: %{
"volume" => "amount"
},
transfer: %{
"fillResponseFromRequest" => true
}
},
order_mappings: %{
side_format: :uppercase,
side_key: "side",
type_format: :uppercase,
type_key: "type"
},
param_mappings: %{
"address" => "wallet",
"code" => "currency",
"cost" => "value",
"since" => "from",
"triggerPrice" => "stopPrice"
},
parse_methods: [
%{
"comment" => nil,
"examples" => [],
"line_end" => 831,
"line_start" => 813,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "response"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "undefined"
}
],
"name" => "parseBalance",
"signature" => "parseBalance (response): Balances",
"source" => "parseBalance (response): Balances {\n const data = this.safeValue (response, 'data', []);\n const result: Dict = {\n 'info': response,\n 'timestamp': undefined,\n 'datetime': undefined,\n };\n for (let i = 0; i < data.length; i++) {\n const balance = data[i];\n const currencyId = this.safeString (balance, 'currency');\n const code = this.safeCurrencyCode (currencyId);\n const account = this.account ();\n account['total'] = this.safeString (balance, 'balance');\n account['free'] = this.safeString (balance, 'available');\n account['used'] = this.safeString (balance, 'hold');\n result[code] = account;\n }\n return this.safeBalance (result);\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 441,
"line_start" => 384,
"mappings" => [
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "symbol",
"value" => "base + '/' + quote"
},
%{
"comment" => nil,
"key" => "base",
"value" => "base"
},
%{
"comment" => nil,
"key" => "quote",
"value" => "quote"
},
%{
"comment" => nil,
"key" => "settle",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "baseId",
"value" => "baseId"
},
%{
"comment" => nil,
"key" => "quoteId",
"value" => "quoteId"
},
%{
"comment" => nil,
"key" => "settleId",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "type",
"value" => "'spot'"
},
%{
"comment" => nil,
"key" => "spot",
"value" => "true"
},
%{
"comment" => nil,
"key" => "margin",
"value" => "false"
},
%{
"comment" => nil,
"key" => "swap",
"value" => "false"
},
%{
"comment" => nil,
"key" => "future",
"value" => "false"
},
%{
"comment" => nil,
"key" => "option",
"value" => "false"
},
%{
"comment" => nil,
"key" => "active",
"value" => "(status === 'ONLINE')"
},
%{
"comment" => nil,
"key" => "contract",
"value" => "false"
},
%{
"comment" => nil,
"key" => "linear",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "inverse",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "contractSize",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "expiry",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "expiryDatetime",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "strike",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "optionType",
"value" => "undefined"
},
%{
"comment" => "'cost': this.parseNumber (this.parsePrecision (this.safeString (market, 'valuePrecision'))),\n }",
"key" => "precision",
"value" => "{\n 'amount': this.parseNumber (this.parsePrecision (this.safeString (market, 'amountPrecision'))),\n 'price': this.parseNumber (this.parsePrecision (this.safeString (market, 'pricePrecision')))"
},
%{
"comment" => nil,
"key" => "limits",
"value" => "{\n 'leverage': {\n 'min': undefined,\n 'max': undefined,\n },\n 'amount': {\n 'min': this.safeNumber (market, 'minOrderAmount'),\n 'max': undefined,\n },\n 'price': {\n 'min': undefined,\n 'max': undefined,\n },\n 'cost': {\n 'min': this.safeNumber (market, 'minOrderValue'),\n 'max': undefined,\n },\n }"
},
%{
"comment" => nil,
"key" => "created",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "info",
"value" => "market"
},
%{
"comment" => nil,
"key" => "leverage",
"value" => "{\n 'min': undefined,\n 'max': undefined,\n }"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "{\n 'min': this.safeNumber (market, 'minOrderAmount'),\n 'max': undefined,\n }"
},
%{
"comment" => nil,
"key" => "price",
"value" => "{\n 'min': undefined,\n 'max': undefined,\n }"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "{\n 'min': this.safeNumber (market, 'minOrderValue'),\n 'max': undefined,\n }"
},
%{
"comment" => nil,
"key" => "min",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "max",
"value" => "undefined"
}
],
"name" => "parseMarket",
"signature" => "parseMarket (market: Dict): Market",
"source" => "parseMarket (market: Dict): Market {\n const baseId = this.safeString (market, 'baseCurrency');\n const quoteId = this.safeString (market, 'quoteCurrency');\n const id = this.safeString (market, 'symbol');\n const base = this.safeCurrencyCode (baseId);\n const quote = this.safeCurrencyCode (quoteId);\n const status = this.safeString (market, 'status');\n return {\n 'id': id,\n 'symbol': base + '/' + quote,\n 'base': base,\n 'quote': quote,\n 'settle': undefined,\n 'baseId': baseId,\n 'quoteId': quoteId,\n 'settleId': undefined,\n 'type': 'spot',\n 'spot': true,\n 'margin': false,\n 'swap': false,\n 'future': false,\n 'option': false,\n 'active': (status === 'ONLINE'),\n 'contract': false,\n 'linear': undefined,\n 'inverse': undefined,\n 'contractSize': undefined,\n 'expiry': undefined,\n 'expiryDatetime': undefined,\n 'strike': undefined,\n 'optionType': undefined,\n 'precision': {\n 'amount': this.parseNumber (this.parsePrecision (this.safeString (market, 'amountPrecision'))),\n 'price': this.parseNumber (this.parsePrecision (this.safeString (market, 'pricePrecision'))),\n // 'cost': this.parseNumber (this.parsePrecision (this.safeString (market, 'valuePrecision'))),\n },\n 'limits': {\n 'leverage': {\n 'min': undefined,\n 'max': undefined,\n },\n 'amount': {\n 'min': this.safeNumber (market, 'minOrderAmount'),\n 'max': undefined,\n },\n 'price': {\n 'min': undefined,\n 'max': undefined,\n },\n 'cost': {\n 'min': this.safeNumber (market, 'minOrderValue'),\n 'max': undefined,\n },\n },\n 'created': undefined,\n 'info': market,\n };\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"amount\": 8.25709100,\n \"closePrice\": 62553.20,\n \"count\": 29,\n \"highPrice\": 62592.87,\n \"lowPrice\": 62553.20,\n \"openPrice\": 62554.23,\n \"score\": 1602501480,\n \"symbol\": \"BTC_BRL\",\n \"vol\": 516784.2504067500\n }"
],
"line_end" => 811,
"line_start" => 787,
"mappings" => [],
"name" => "parseOHLCV",
"signature" => "parseOHLCV (ohlcv, market: Market = undefined): OHLCV",
"source" => "parseOHLCV (ohlcv, market: Market = undefined): OHLCV {\n //\n // {\n // \"amount\": 8.25709100,\n // \"closePrice\": 62553.20,\n // \"count\": 29,\n // \"highPrice\": 62592.87,\n // \"lowPrice\": 62553.20,\n // \"openPrice\": 62554.23,\n // \"score\": 1602501480,\n // \"symbol\": \"BTC_BRL\",\n // \"vol\": 516784.2504067500\n // }\n //\n const options = this.safeValue (this.options, 'fetchOHLCV', {});\n const volumeField = this.safeString (options, 'volume', 'amount'); // or vol\n return [\n this.safeTimestamp (ohlcv, 'score'),\n this.safeNumber (ohlcv, 'openPrice'),\n this.safeNumber (ohlcv, 'highPrice'),\n this.safeNumber (ohlcv, 'lowPrice'),\n this.safeNumber (ohlcv, 'closePrice'),\n this.safeNumber (ohlcv, volumeField),\n ];\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"amount\": \"0.001\",\n \"averagePrice\": null,\n \"filledAmount\": \"0\",\n \"filledFee\": \"0\",\n \"filledValue\": \"0\",\n \"id\": \"870613508008464384\",\n \"operator\": \"GTE\",\n \"price\": \"210000\",\n \"side\": \"BUY\",\n \"status\": \"SUBMITTED\",\n \"stopPrice\": \"211000\",\n \"symbol\": \"BTC_BRL\",\n \"timestamp\": 1627612035528,\n \"type\": \"STOP_LIMIT\",\n \"value\": \"210\"\n }",
"{\n \"result\": true\n }"
],
"line_end" => 1261,
"line_start" => 1190,
"mappings" => [
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "clientOrderId",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "info",
"value" => "order"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "lastTradeTimestamp",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "symbol",
"value" => "symbol"
},
%{
"comment" => nil,
"key" => "type",
"value" => "type"
},
%{
"comment" => nil,
"key" => "timeInForce",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "postOnly",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "side",
"value" => "side"
},
%{
"comment" => nil,
"key" => "price",
"value" => "price"
},
%{
"comment" => nil,
"key" => "triggerPrice",
"value" => "this.safeNumber (order, 'stopPrice')"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "amount"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "cost"
},
%{
"comment" => nil,
"key" => "average",
"value" => "average"
},
%{
"comment" => nil,
"key" => "filled",
"value" => "filled"
},
%{
"comment" => nil,
"key" => "remaining",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "status",
"value" => "status"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "fee"
},
%{
"comment" => nil,
"key" => "trades",
"value" => "undefined"
}
],
"name" => "parseOrder",
"signature" => "parseOrder (order: Dict, market: Market = undefined): Order",
"source" => "parseOrder (order: Dict, market: Market = undefined): Order {\n //\n // createOrder, fetchOrders, fetchOrder\n //\n // {\n // \"amount\": \"0.001\",\n // \"averagePrice\": null,\n // \"filledAmount\": \"0\",\n // \"filledFee\": \"0\",\n // \"filledValue\": \"0\",\n // \"id\": \"870613508008464384\",\n // \"operator\": \"GTE\",\n // \"price\": \"210000\",\n // \"side\": \"BUY\",\n // \"status\": \"SUBMITTED\",\n // \"stopPrice\": \"211000\",\n // \"symbol\": \"BTC_BRL\",\n // \"timestamp\": 1627612035528,\n // \"type\": \"STOP_LIMIT\",\n // \"value\": \"210\"\n // }\n //\n // cancelOrder\n //\n // {\n // \"result\": true\n // }\n //\n const id = this.safeString (order, 'id');\n const amount = this.safeString (order, 'amount');\n const price = this.safeString (order, 'price');\n const cost = this.safeString2 (order, 'filledValue', 'value');\n const type = this.safeStringLower (order, 'type');\n const side = this.safeStringLower (order, 'side');\n const status = this.parseOrderStatus (this.safeString (order, 'status'));\n const timestamp = this.safeInteger (order, 'timestamp');\n const average = this.safeString (order, 'averagePrice');\n const filled = this.safeString (order, 'filledAmount');\n let fee = undefined;\n const feeCost = this.safeNumber (order, 'filledFee');\n if (feeCost !== undefined) {\n fee = {\n 'cost': feeCost,\n 'currency': undefined,\n };\n }\n const marketId = this.safeString (order, 'symbol');\n const symbol = this.safeSymbol (marketId, market, '_');\n return this.safeOrder ({\n 'id': id,\n 'clientOrderId': undefined,\n 'info': order,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'lastTradeTimestamp': undefined,\n 'symbol': symbol,\n 'type': type,\n 'timeInForce': undefined,\n 'postOnly': undefined,\n 'side': side,\n 'price': price,\n 'triggerPrice': this.safeNumber (order, 'stopPrice'),\n 'amount': amount,\n 'cost': cost,\n 'average': average,\n 'filled': filled,\n 'remaining': undefined,\n 'status': status,\n 'fee': fee,\n 'trades': undefined,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 1188,
"line_start" => 1177,
"mappings" => [],
"name" => "parseOrderStatus",
"signature" => "parseOrderStatus (status: Str)",
"source" => "parseOrderStatus (status: Str) {\n const statuses: Dict = {\n 'SUBMITTED': 'open',\n 'PROCESSING': 'open',\n 'PARTIAL_FILLED': 'open',\n 'CANCELING': 'open',\n 'FILLED': 'closed',\n 'CANCELED': 'canceled',\n 'REJECTED': 'rejected',\n };\n return this.safeString (statuses, status, status);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"ask\":\"61946.1\",\n \"baseVolume24h\":\"164.41930186\",\n \"bid\":\"61815\",\n \"high24h\":\"64930.72\",\n \"lastPrice\":\"61928.41\",\n \"low24h\":\"61156.32\",\n \"open24h\":\"64512.46\",\n \"quoteVolume24h\":\"10308157.95\",\n \"symbol\":\"BTC_BRL\",\n \"timestamp\":1599091115090\n }"
],
"line_end" => 489,
"line_start" => 443,
"mappings" => [
%{
"comment" => nil,
"key" => "symbol",
"value" => "symbol"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "high",
"value" => "this.safeString (ticker, 'high24h')"
},
%{
"comment" => nil,
"key" => "low",
"value" => "this.safeString (ticker, 'low24h')"
},
%{
"comment" => nil,
"key" => "bid",
"value" => "this.safeString (ticker, 'bid')"
},
%{
"comment" => nil,
"key" => "bidVolume",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "ask",
"value" => "this.safeString (ticker, 'ask')"
},
%{
"comment" => nil,
"key" => "askVolume",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "vwap",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "open",
"value" => "open"
},
%{
"comment" => nil,
"key" => "close",
"value" => "last"
},
%{
"comment" => nil,
"key" => "last",
"value" => "last"
},
%{
"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" => "baseVolume"
},
%{
"comment" => nil,
"key" => "quoteVolume",
"value" => "quoteVolume"
},
%{
"comment" => nil,
"key" => "info",
"value" => "ticker"
}
],
"name" => "parseTicker",
"signature" => "parseTicker (ticker: Dict, market: Market = undefined): Ticker",
"source" => "parseTicker (ticker: Dict, market: Market = undefined): Ticker {\n //\n // fetchTicker, fetchTickers\n //\n // {\n // \"ask\":\"61946.1\",\n // \"baseVolume24h\":\"164.41930186\",\n // \"bid\":\"61815\",\n // \"high24h\":\"64930.72\",\n // \"lastPrice\":\"61928.41\",\n // \"low24h\":\"61156.32\",\n // \"open24h\":\"64512.46\",\n // \"quoteVolume24h\":\"10308157.95\",\n // \"symbol\":\"BTC_BRL\",\n // \"timestamp\":1599091115090\n // }\n //\n const timestamp = this.safeInteger (ticker, 'timestamp');\n const marketId = this.safeString (ticker, 'symbol');\n const symbol = this.safeSymbol (marketId, market, '_');\n const open = this.safeString (ticker, 'open24h');\n const last = this.safeString (ticker, 'lastPrice');\n const baseVolume = this.safeString (ticker, 'baseVolume24h');\n const quoteVolume = this.safeString (ticker, 'quoteVolume24h');\n return this.safeTicker ({\n 'symbol': symbol,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'high': this.safeString (ticker, 'high24h'),\n 'low': this.safeString (ticker, 'low24h'),\n 'bid': this.safeString (ticker, 'bid'),\n 'bidVolume': undefined,\n 'ask': this.safeString (ticker, 'ask'),\n 'askVolume': undefined,\n 'vwap': undefined,\n 'open': open,\n 'close': last,\n 'last': last,\n 'previousClose': undefined,\n 'change': undefined,\n 'percentage': undefined,\n 'average': undefined,\n 'baseVolume': baseVolume,\n 'quoteVolume': quoteVolume,\n 'info': ticker,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"amount\":\"0.0632\",\n \"price\":\"0.037288\",\n \"side\":\"BUY\",\n \"timestamp\":1599279694576\n }",
"{\n \"id\": \"608717046691139584\",\n \"orderId\": \"608716957545402368\",\n \"symbol\": \"BTC_BRL\",\n \"side\": \"BUY\",\n \"amount\": \"0.0988\",\n \"price\": \"45514.76\",\n \"fee\": \"0.0000988 BTC\",\n \"feeAmount\": \"0.0000988\",\n \"feeCurrency\": \"BTC\",\n \"role\": \"MAKER\",\n \"timestamp\": 1565171053345\n }"
],
"line_end" => 693,
"line_start" => 616,
"mappings" => [
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "order",
"value" => "orderId"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "symbol",
"value" => "symbol"
},
%{
"comment" => nil,
"key" => "type",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "side",
"value" => "side"
},
%{
"comment" => nil,
"key" => "price",
"value" => "priceString"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "amountString"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "takerOrMaker",
"value" => "takerOrMaker"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "fee"
},
%{
"comment" => nil,
"key" => "info",
"value" => "trade"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "this.safeString (trade, 'feeAmount')"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "feeCurrencyCode"
}
],
"name" => "parseTrade",
"signature" => "parseTrade (trade: Dict, market: Market = undefined): Trade",
"source" => "parseTrade (trade: Dict, market: Market = undefined): Trade {\n //\n // public fetchTrades\n //\n // {\n // \"amount\":\"0.0632\",\n // \"price\":\"0.037288\",\n // \"side\":\"BUY\",\n // \"timestamp\":1599279694576\n // }\n //\n // private fetchOrderTrades\n //\n // {\n // \"id\": \"608717046691139584\",\n // \"orderId\": \"608716957545402368\",\n // \"symbol\": \"BTC_BRL\",\n // \"side\": \"BUY\",\n // \"amount\": \"0.0988\",\n // \"price\": \"45514.76\",\n // \"fee\": \"0.0000988 BTC\",\n // \"feeAmount\": \"0.0000988\",\n // \"feeCurrency\": \"BTC\",\n // \"role\": \"MAKER\",\n // \"timestamp\": 1565171053345\n // }\n //\n // private fetchMyTrades (same endpoint as fetchOrderTrades)\n //\n // {\n // \"id\": \"608717046691139584\",\n // \"orderId\": \"608716957545402368\",\n // \"symbol\": \"BTC_BRL\",\n // \"side\": \"BUY\",\n // \"amount\": \"0.0988\",\n // \"price\": \"45514.76\",\n // \"fee\": \"0.0000988 BTC\",\n // \"feeAmount\": \"0.0000988\",\n // \"feeCurrency\": \"BTC\",\n // \"role\": \"MAKER\",\n // \"timestamp\": 1565171053345\n // }\n //\n const id = this.safeString (trade, 'id');\n const orderId = this.safeString (trade, 'orderId');\n const timestamp = this.safeInteger (trade, 'timestamp');\n const side = this.safeStringLower (trade, 'side');\n const priceString = this.safeString (trade, 'price');\n const amountString = this.safeString (trade, 'amount');\n const marketId = this.safeString (trade, 'symbol');\n const symbol = this.safeSymbol (marketId, market, '_');\n const takerOrMaker = this.safeStringLower (trade, 'role');\n const feeString = this.safeString (trade, 'fee');\n let fee = undefined;\n if (feeString !== undefined) {\n const feeCurrencyId = this.safeString (trade, 'feeCurrency');\n const feeCurrencyCode = this.safeCurrencyCode (feeCurrencyId);\n fee = {\n 'cost': this.safeString (trade, 'feeAmount'),\n 'currency': feeCurrencyCode,\n };\n }\n return this.safeTrade ({\n 'id': id,\n 'order': orderId,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'symbol': symbol,\n 'type': undefined,\n 'side': side,\n 'price': priceString,\n 'amount': amountString,\n 'cost': undefined,\n 'takerOrMaker': takerOrMaker,\n 'fee': fee,\n 'info': trade,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"code\":\"A10000\",\n \"data\": \"DR123\",\n \"message\":\"Success\"\n }",
"{\n \"id\": \"DR562339304588709888\",\n \"type\": \"COIN_IN\",\n \"currency\": \"XLM\",\n \"chain\": \"XLM\",\n \"address\": \"GCUTK7KHPJC3ZQJ3OMWWFHAK2OXIBRD4LNZQRCCOVE7A2XOPP2K5PU5Q\",\n \"addressTag\": \"1000009\",\n \"amount\": 1.0,\n \"state\": \"SUCCESS\",\n \"txHash\": \"39210645748822f8d4ce673c7559aa6622e6e9cdd7073bc0fcae14b1edfda5f4\",\n \"createdAt\": 1554113737000,\n \"updatedAt\": 1601371273000\n }"
],
"line_end" => 1590,
"line_start" => 1521,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "transaction"
},
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "code"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "amount"
},
%{
"comment" => nil,
"key" => "network",
"value" => "network"
},
%{
"comment" => nil,
"key" => "address",
"value" => "address"
},
%{
"comment" => nil,
"key" => "addressTo",
"value" => "address"
},
%{
"comment" => nil,
"key" => "addressFrom",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "tag",
"value" => "tag"
},
%{
"comment" => nil,
"key" => "tagTo",
"value" => "tag"
},
%{
"comment" => nil,
"key" => "tagFrom",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "status",
"value" => "status"
},
%{
"comment" => nil,
"key" => "type",
"value" => "type"
},
%{
"comment" => nil,
"key" => "updated",
"value" => "updated"
},
%{
"comment" => nil,
"key" => "txid",
"value" => "txid"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "comment",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "internal",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "{\n 'currency': undefined,\n 'cost': undefined,\n 'rate': undefined,\n }"
}
],
"name" => "parseTransaction",
"signature" => "parseTransaction (transaction: Dict, currency: Currency = undefined): Transaction",
"source" => "parseTransaction (transaction: Dict, currency: Currency = undefined): Transaction {\n //\n // withdraw\n //\n // {\n // \"code\":\"A10000\",\n // \"data\": \"DR123\",\n // \"message\":\"Success\"\n // }\n //\n // fetchDepositsWithdrawals\n //\n // {\n // \"id\": \"DR562339304588709888\",\n // \"type\": \"COIN_IN\",\n // \"currency\": \"XLM\",\n // \"chain\": \"XLM\",\n // \"address\": \"GCUTK7KHPJC3ZQJ3OMWWFHAK2OXIBRD4LNZQRCCOVE7A2XOPP2K5PU5Q\",\n // \"addressTag\": \"1000009\",\n // \"amount\": 1.0,\n // \"state\": \"SUCCESS\",\n // \"txHash\": \"39210645748822f8d4ce673c7559aa6622e6e9cdd7073bc0fcae14b1edfda5f4\",\n // \"createdAt\": 1554113737000,\n // \"updatedAt\": 1601371273000\n // }\n //\n const id = this.safeString2 (transaction, 'id', 'data');\n let type = this.safeString (transaction, 'type');\n if (type === 'COIN_IN') {\n type = 'deposit';\n } else if (type === 'COIN_OUT') {\n type = 'withdraw';\n }\n const amount = this.safeNumber (transaction, 'amount');\n const address = this.safeString (transaction, 'address');\n const tag = this.safeString (transaction, 'addressTag');\n const txid = this.safeString (transaction, 'txHash');\n const timestamp = this.safeInteger (transaction, 'createdAt');\n const updated = this.safeInteger (transaction, 'updatedAt');\n const currencyId = this.safeString (transaction, 'currency');\n const code = this.safeCurrencyCode (currencyId, currency);\n const status = this.parseTransactionStatus (this.safeString (transaction, 'state'));\n const network = this.safeString (transaction, 'chain');\n return {\n 'info': transaction,\n 'id': id,\n 'currency': code,\n 'amount': amount,\n 'network': network,\n 'address': address,\n 'addressTo': address,\n 'addressFrom': undefined,\n 'tag': tag,\n 'tagTo': tag,\n 'tagFrom': undefined,\n 'status': status,\n 'type': type,\n 'updated': updated,\n 'txid': txid,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'comment': undefined,\n 'internal': undefined,\n 'fee': {\n 'currency': undefined,\n 'cost': undefined,\n 'rate': undefined,\n },\n } as Transaction;\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 1519,
"line_start" => 1505,
"mappings" => [
%{
"comment" => nil,
"key" => "Pending",
"value" => "'pending'"
},
%{
"comment" => nil,
"key" => "confirming",
"value" => "'pending'"
},
%{
"comment" => nil,
"key" => "SUCCESS",
"value" => "'ok'"
},
%{
"comment" => nil,
"key" => "FAIL",
"value" => "'failed'"
}
],
"name" => "parseTransactionStatus",
"signature" => "parseTransactionStatus (status: Str)",
"source" => "parseTransactionStatus (status: Str) {\n // Pending the record is wait broadcast to chain\n // x/M confirming the comfirming state of tx, the M is total confirmings needed\n // SUCCESS the record is success full\n // FAIL the record failed\n const parts = status.split (' ');\n status = this.safeString (parts, 1, status);\n const statuses: Dict = {\n 'Pending': 'pending',\n 'confirming': 'pending',\n 'SUCCESS': 'ok',\n 'FAIL': 'failed',\n };\n return this.safeString (statuses, status, status);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"code\":\"A10000\",\n \"message\":\"Success\",\n \"data\":40\n }"
],
"line_end" => 1331,
"line_start" => 1309,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "transfer"
},
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "currencyCode"
},
%{
"comment" => nil,
"key" => "fromAccount",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "toAccount",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "status",
"value" => "status"
}
],
"name" => "parseTransfer",
"signature" => "parseTransfer (transfer: Dict, currency: Currency = undefined): TransferEntry",
"source" => "parseTransfer (transfer: Dict, currency: Currency = undefined): TransferEntry {\n //\n // {\n // \"code\":\"A10000\",\n // \"message\":\"Success\",\n // \"data\":40\n // }\n //\n const id = this.safeString (transfer, 'data');\n const status = this.safeString (transfer, 'message');\n const currencyCode = this.safeCurrencyCode (undefined, currency);\n return {\n 'info': transfer,\n 'id': id,\n 'amount': undefined,\n 'currency': currencyCode,\n 'fromAccount': undefined,\n 'toAccount': undefined,\n 'timestamp': undefined,\n 'datetime': undefined,\n 'status': status,\n };\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 1338,
"line_start" => 1333,
"mappings" => [],
"name" => "parseTransferStatus",
"signature" => "parseTransferStatus (status: Str): Str",
"source" => "parseTransferStatus (status: Str): Str {\n const statuses: Dict = {\n 'SUCCESS': 'pending',\n };\n return this.safeString (statuses, status, 'failed');\n }"
}
],
path_prefix: "/v1/",
pro: false,
quote_json_numbers: nil,
rate_limits: %{
interval_ms: 10,
period: 1000,
requests: 100,
rolling_window_size: 60000
},
raw_endpoints: %{
private: [
%{
auth: false,
cost: 1,
method: :get,
path: "/account/getBalance"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/account/subs"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/account/subs/balance"
},
%{
auth: false,
cost: 10,
method: :get,
path: "/account/subs/transfer/record"
},
%{
auth: false,
cost: 3,
method: :get,
path: "/orders/fill"
},
%{
auth: false,
cost: 10,
method: :get,
path: "/orders/fills"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/orders/get"
},
%{
auth: false,
cost: 10,
method: :get,
path: "/orders/list"
},
%{
auth: false,
cost: 3,
method: :get,
path: "/wallet/query/deposit-withdraw"
},
%{
auth: false,
cost: 5,
method: :post,
path: "/account/subs/transfer"
},
%{
auth: false,
cost: 3,
method: :post,
path: "/account/withdraw/coin"
},
%{
auth: false,
cost: 10,
method: :post,
path: "/orders/batch-cancel"
},
%{
auth: false,
cost: 50,
method: :post,
path: "/orders/batch-create"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/orders/cancel"
},
%{
auth: false,
cost: 10,
method: :post,
path: "/orders/cancel-by-symbol"
},
%{
auth: false,
cost: 5,
method: :post,
path: "/orders/create"
},
%{
auth: false,
cost: 3,
method: :post,
path: "/wallet/withdraw/coin"
}
],
public: [
%{
auth: false,
cost: 1,
method: :get,
path: "/common/symbol"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/common/symbols"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/common/timestamp"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/market/depth"
},
%{
auth: false,
cost: 5,
method: :get,
path: "/market/kline/history"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/market/ticker"
},
%{
auth: false,
cost: 5,
method: :get,
path: "/market/tickers"
},
%{
auth: false,
cost: 5,
method: :get,
path: "/market/trades"
}
]
},
required_credentials: %{
api_key: true,
password: false,
secret: true,
uid: false
},
requires_eddsa: false,
response_error: nil,
signing: %{
api_key_header: "X-Nova-Access-Key",
confidence: :medium,
pattern: :hmac_sha256_headers,
signature_header: "X-Nova-Signature",
timestamp_header: "X-Nova-Timestamp"
},
spec_format_version: 1,
status: %{
"eta" => nil,
"status" => "ok",
"updated" => nil,
"url" => nil
},
symbol_format: nil,
symbol_formats: %{
precision_mode: 4,
sample_limits: %{
"amount" => %{
"min" => 121.37681159
},
"cost" => %{
"min" => 25
},
"price" => %{}
},
sample_precision: %{
"amount" => 0.01,
"price" => 1.0e-5
},
spot: %{
base: "ODOS",
base_id: "ODOS",
case: :upper,
contract: false,
id: "ODOS_BRL",
limits: %{
"amount" => %{
"min" => 121.37681159
},
"cost" => %{
"min" => 25
},
"leverage" => %{},
"price" => %{}
},
maker: 0.0025,
precision: %{
"amount" => 0.01,
"price" => 1.0e-5
},
quote: "BRL",
quote_id: "BRL",
separator: "_",
symbol: "ODOS/BRL",
taker: 0.005
}
},
symbol_patterns: %{
spot: %{
case: :upper,
component_order: nil,
date_format: nil,
pattern: :underscore_upper,
separator: "_",
suffix: nil
}
},
timeframes: %{
"15m" => "FIFTEEN_MIN",
"1M" => "ONE_MON",
"1d" => "ONE_DAY",
"1h" => "ONE_HOU",
"1m" => "ONE_MIN",
"1w" => "ONE_WEE",
"30m" => "HALF_HOU",
"5m" => "FIVE_MIN"
},
url_strategy: %{
detected_from: "sign_method",
pattern: :version_slash,
prefix: "/v1/"
},
urls: %{
api: "https://api.novadax.com",
api_sections: %{
"private" => "https://api.novadax.com",
"public" => "https://api.novadax.com"
},
doc: [
"https://doc.novadax.com/pt-BR/"
],
other: nil,
sandbox: nil,
www: "https://www.novadax.com.br"
},
version: "v1",
ws: nil
}