Current section
Files
Jump to
Current section
Files
priv/specs/extracted/luno.exs
# luno Exchange Specification
#
# Auto-generated by: mix ccxt.extract luno
# 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: [
"GB",
"SG",
"ZA"
],
currencies: %{},
currency_aliases: %{
"BCHSV" => "BSV",
"XBT" => "BTC"
},
dex: false,
enable_rate_limit: true,
endpoint_extraction_stats: %{
"capturedMethods" => 23,
"coveragePercent" => 100,
"enabledMethods" => 24,
"excluded" => [
%{
"method" => "editOrder",
"reason" => "emulated (returns cached data, no HTTP call)"
}
],
"excludedMethods" => 1,
"extractableMethods" => 23,
"failures" => []
},
endpoints: [
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :post,
name: :cancel_order,
param_mappings: %{
"id" => "order_id"
},
params: [
:id,
:symbol
],
path: "/stoporder",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :post,
name: :create_deposit_address,
param_mappings: %{
"code" => "asset"
},
params: [
:code
],
path: "/funding_address",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"type" => "BID"
},
expects: :single,
market_type: :spot,
method: :post,
name: :create_limit_order,
param_mappings: %{
"amount" => "volume",
"symbol" => "pair"
},
params: [
:symbol,
:side,
:amount,
:price
],
path: "/postorder",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :post,
name: :create_market_order,
param_mappings: %{
"amount" => "counter_volume",
"side" => "type",
"symbol" => "pair"
},
params: [
:symbol,
:side,
:amount,
:price
],
path: "/marketorder",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"type" => "BID"
},
expects: :single,
market_type: :spot,
method: :post,
name: :create_order,
param_mappings: %{
"amount" => "volume",
"symbol" => "pair"
},
params: [
:symbol,
:type,
:side,
:amount,
:price
],
path: "/postorder",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_accounts,
param_mappings: %{},
params: [],
path: "/balance",
response_transformer: {:extract_path, ["balance"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_balance,
param_mappings: %{},
params: [],
path: "/balance",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"state" => "COMPLETE"
},
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_closed_orders,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:since,
:limit
],
path: "/listorders",
response_transformer: {:extract_path, ["orders"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_currencies,
param_mappings: %{},
params: [],
path: "/send/networks",
response_transformer: {:extract_path, ["data"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_deposit_address,
param_mappings: %{
"code" => "asset"
},
params: [
:code
],
path: "/funding_address",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_l2_order_book,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:limit
],
path: "/orderbook",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_ledger,
param_mappings: %{},
params: [
:code,
:since,
:limit
],
path: "/balance",
response_transformer: {:extract_path, ["transactions"]},
source: :intercepted
},
%{
api_section: "exchange",
auth: false,
base_url: "https://api.luno.com/api/exchange",
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_markets,
param_mappings: %{},
params: [],
path: "/markets",
response_transformer: {:extract_path, ["markets"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_my_trades,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:since,
:limit
],
path: "/listtrades",
response_transformer: {:extract_path, ["trades"]},
source: :intercepted
},
%{
api_section: "exchangePrivate",
auth: true,
base_url: "https://api.luno.com/api/exchange",
cost: 1,
default_params: %{
"duration" => 3600
},
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_ohlcv,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:timeframe,
:since,
:limit
],
path: "/candles",
response_transformer: {:extract_path, ["candles"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"state" => "PENDING"
},
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_open_orders,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:since,
:limit
],
path: "/listorders",
response_transformer: {:extract_path, ["orders"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_order,
param_mappings: %{},
params: [
:id,
:symbol
],
path: "/orders/{id}",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_order_book,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:limit
],
path: "/orderbook_top",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_orders,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:since,
:limit
],
path: "/listorders",
response_transformer: {:extract_path, ["orders"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_ticker,
param_mappings: %{
"symbol" => "pair"
},
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: %{
"symbol" => "pair"
},
params: [
:symbol,
:since,
:limit
],
path: "/trades",
response_transformer: {:extract_path, ["trades"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_trading_fee,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol
],
path: "/fee_info",
source: :intercepted
}
],
error_code_details: %{},
error_codes: %{},
exceptions: nil,
exchange_options: %{
"defaultNetworkCodeReplacements" => %{
"BRC20" => %{
"BRC20" => "BTC"
},
"CRO" => %{
"CRC20" => "CRONOS"
},
"ETH" => %{
"ERC20" => "ETH"
},
"TRX" => %{
"TRC20" => "TRX"
}
},
"networksById" => %{}
},
extended_metadata: %{
limits: %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
logo_url: "https://user-images.githubusercontent.com/1294454/27766607-8c1a69d8-5ede-11e7-930c-540b5eb9be24.jpg",
referral_url: "https://www.luno.com/invite/44893A"
},
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: true,
market_buy_requires_price: false,
self_trade_prevention: false,
stop_loss_price: false,
take_profit_price: false,
time_in_force: %{
fok: true,
gtd: false,
ioc: true,
po: true
},
trailing: false,
trigger_direction: true,
trigger_price: true
},
fetch_closed_orders: %{
days_back: 100000,
days_back_canceled: 1,
limit: 1000,
margin_mode: false,
symbol_required: false,
trailing: false,
trigger: false
},
fetch_currencies: %{
private: true
},
fetch_my_trades: %{
days_back: 100000,
limit: 1000,
margin_mode: false,
symbol_required: true,
until_days: 100000
},
fetch_ohlcv: %{},
fetch_open_orders: %{
limit: 1000,
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: 1000,
margin_mode: false,
symbol_required: false,
trailing: false,
trigger: false
},
sandbox: false
},
swap: %{}
},
fees: %{
trading: %{
maker: 0,
percentage: true,
taker: 0.001,
tier_based: true
}
},
forward_aliases: %{
spot: %{
"BTC" => "XBT"
}
},
handle_content_type_application_zip: nil,
handle_errors_source: "handleErrors(httpCode, reason, url, method, headers, body, response, requestHeaders, requestBody) {\n if (response === undefined) {\n return undefined;\n }\n const error = this.safeValue(response, 'error');\n if (error !== undefined) {\n throw new errors.ExchangeError(this.id + ' ' + this.json(response));\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: true,
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: 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: 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: false,
create_stop_limit_order_ws: false,
create_stop_loss_order: false,
create_stop_loss_order_ws: false,
create_stop_market_order: false,
create_stop_market_order_ws: false,
create_stop_order: false,
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: 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: true,
fetch_currencies_ws: true,
fetch_deposit: false,
fetch_deposit_address: true,
fetch_deposit_addresses: false,
fetch_deposit_addresses_by_network: false,
fetch_deposit_withdraw_fee: false,
fetch_deposit_withdraw_fees: false,
fetch_deposits: false,
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: true,
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: 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_for_symbol_ws: 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: true,
fetch_trading_fees: false,
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: false,
fetch_withdrawal_whitelist: false,
fetch_withdrawals: false,
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: 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: 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: true,
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: true,
watch_trades_for_symbols: false,
withdraw: false,
ws: false
},
http_config: nil,
id: "luno",
markets: nil,
name: "luno",
ohlcv_timestamp_resolution: :milliseconds,
options: %{},
order_mappings: nil,
param_mappings: %{
"amount" => "volume",
"code" => "asset",
"id" => "order_id",
"side" => "type",
"symbol" => "pair"
},
parse_methods: [
%{
"comment" => nil,
"examples" => [],
"line_end" => 546,
"line_start" => 519,
"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 wallets = this.safeValue (response, 'balance', []);\n const result: Dict = {\n 'info': response,\n 'timestamp': undefined,\n 'datetime': undefined,\n };\n for (let i = 0; i < wallets.length; i++) {\n const wallet = wallets[i];\n const currencyId = this.safeString (wallet, 'asset');\n const code = this.safeCurrencyCode (currencyId);\n const reserved = this.safeString (wallet, 'reserved');\n const unconfirmed = this.safeString (wallet, 'unconfirmed');\n const balance = this.safeString (wallet, 'balance');\n const reservedUnconfirmed = Precise.stringAdd (reserved, unconfirmed);\n const balanceUnconfirmed = Precise.stringAdd (balance, unconfirmed);\n if (code in result) {\n result[code]['used'] = Precise.stringAdd (result[code]['used'], reservedUnconfirmed);\n result[code]['total'] = Precise.stringAdd (result[code]['total'], balanceUnconfirmed);\n } else {\n const account = this.account ();\n account['used'] = reservedUnconfirmed;\n account['total'] = balanceUnconfirmed;\n result[code] = account;\n }\n }\n return this.safeBalance (result);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"account_id\": \"string\",\n \"address\": \"string\",\n \"address_meta\": [\n {\n \"label\": \"string\",\n \"value\": \"string\"\n }\n ],\n \"asset\": \"string\",\n \"assigned_at\": 0,\n \"name\": \"string\",\n \"network\": 0,\n \"qr_code_uri\": \"string\",\n \"receive_fee\": \"string\",\n \"total_received\": \"string\",\n \"total_unconfirmed\": \"string\"\n }"
],
"line_end" => 1469,
"line_start" => 1439,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "depositAddress"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "code"
},
%{
"comment" => nil,
"key" => "network",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "address",
"value" => "this.safeString (depositAddress, 'address')"
},
%{
"comment" => nil,
"key" => "tag",
"value" => "this.safeString (depositAddress, 'name')"
}
],
"name" => "parseDepositAddress",
"signature" => "parseDepositAddress (depositAddress, currency: Currency = undefined): DepositAddress",
"source" => "parseDepositAddress (depositAddress, currency: Currency = undefined): DepositAddress {\n //\n // {\n // \"account_id\": \"string\",\n // \"address\": \"string\",\n // \"address_meta\": [\n // {\n // \"label\": \"string\",\n // \"value\": \"string\"\n // }\n // ],\n // \"asset\": \"string\",\n // \"assigned_at\": 0,\n // \"name\": \"string\",\n // \"network\": 0,\n // \"qr_code_uri\": \"string\",\n // \"receive_fee\": \"string\",\n // \"total_received\": \"string\",\n // \"total_unconfirmed\": \"string\"\n // }\n //\n const currencyId = this.safeStringUpper (depositAddress, 'currency');\n const code = this.safeCurrencyCode (currencyId, currency);\n return {\n 'info': depositAddress,\n 'currency': code,\n 'network': undefined,\n 'address': this.safeString (depositAddress, 'address'),\n 'tag': this.safeString (depositAddress, 'name'),\n } as DepositAddress;\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 1302,
"line_start" => 1272,
"mappings" => [
%{
"comment" => nil,
"key" => "type",
"value" => "type"
},
%{
"comment" => nil,
"key" => "referenceId",
"value" => "referenceId"
}
],
"name" => "parseLedgerComment",
"signature" => "parseLedgerComment (comment)",
"source" => "parseLedgerComment (comment) {\n const words = comment.split (' ');\n const types: Dict = {\n 'Withdrawal': 'fee',\n 'Trading': 'fee',\n 'Payment': 'transaction',\n 'Sent': 'transaction',\n 'Deposit': 'transaction',\n 'Received': 'transaction',\n 'Released': 'released',\n 'Reserved': 'reserved',\n 'Sold': 'trade',\n 'Bought': 'trade',\n 'Failure': 'failed',\n };\n let referenceId = undefined;\n const firstWord = this.safeString (words, 0);\n const thirdWord = this.safeString (words, 2);\n const fourthWord = this.safeString (words, 3);\n let type = this.safeString (types, firstWord, undefined);\n if ((type === undefined) && (thirdWord === 'fee')) {\n type = 'fee';\n }\n if ((type === 'reserved') && (fourthWord === 'order')) {\n referenceId = this.safeString (words, 4);\n }\n return {\n 'type': type,\n 'referenceId': referenceId,\n };\n }"
},
%{
"comment" => nil,
"examples" => [
"const details = this.safeValue (entry, 'details', {});"
],
"line_end" => 1356,
"line_start" => 1304,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "entry"
},
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "direction",
"value" => "direction"
},
%{
"comment" => nil,
"key" => "account",
"value" => "account_id"
},
%{
"comment" => nil,
"key" => "referenceId",
"value" => "referenceId"
},
%{
"comment" => nil,
"key" => "referenceAccount",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "type",
"value" => "type"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "code"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "this.parseToNumeric (amount)"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "before",
"value" => "this.parseToNumeric (before)"
},
%{
"comment" => nil,
"key" => "after",
"value" => "this.parseToNumeric (after)"
},
%{
"comment" => nil,
"key" => "status",
"value" => "status"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "undefined"
}
],
"name" => "parseLedgerEntry",
"signature" => "parseLedgerEntry (entry, currency: Currency = undefined): LedgerEntry",
"source" => "parseLedgerEntry (entry, currency: Currency = undefined): LedgerEntry {\n // const details = this.safeValue (entry, 'details', {});\n const id = this.safeString (entry, 'row_index');\n const account_id = this.safeString (entry, 'account_id');\n const timestamp = this.safeInteger (entry, 'timestamp');\n const currencyId = this.safeString (entry, 'currency');\n const code = this.safeCurrencyCode (currencyId, currency);\n currency = this.safeCurrency (currencyId, currency);\n const available_delta = this.safeString (entry, 'available_delta');\n const balance_delta = this.safeString (entry, 'balance_delta');\n const after = this.safeString (entry, 'balance');\n const comment = this.safeString (entry, 'description');\n let before = after;\n let amount = '0.0';\n const result = this.parseLedgerComment (comment);\n const type = result['type'];\n const referenceId = result['referenceId'];\n let direction = undefined;\n let status = undefined;\n if (!Precise.stringEquals (balance_delta, '0.0')) {\n before = Precise.stringSub (after, balance_delta);\n status = 'ok';\n amount = Precise.stringAbs (balance_delta);\n } else if (Precise.stringLt (available_delta, '0.0')) {\n status = 'pending';\n amount = Precise.stringAbs (available_delta);\n } else if (Precise.stringGt (available_delta, '0.0')) {\n status = 'canceled';\n amount = Precise.stringAbs (available_delta);\n }\n if (Precise.stringGt (balance_delta, '0') || Precise.stringGt (available_delta, '0')) {\n direction = 'in';\n } else if (Precise.stringLt (balance_delta, '0') || Precise.stringLt (available_delta, '0')) {\n direction = 'out';\n }\n return this.safeLedgerEntry ({\n 'info': entry,\n 'id': id,\n 'direction': direction,\n 'account': account_id,\n 'referenceId': referenceId,\n 'referenceAccount': undefined,\n 'type': type,\n 'currency': code,\n 'amount': this.parseToNumeric (amount),\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'before': this.parseToNumeric (before),\n 'after': this.parseToNumeric (after),\n 'status': status,\n 'fee': undefined,\n }, currency) as LedgerEntry;\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"timestamp\": 1664055240000,\n \"open\": \"19612.65\",\n \"close\": \"19612.65\",\n \"high\": \"19612.65\",\n \"low\": \"19612.65\",\n \"volume\": \"0.00\"\n }"
],
"line_end" => 1045,
"line_start" => 1028,
"mappings" => [],
"name" => "parseOHLCV",
"signature" => "parseOHLCV (ohlcv, market: Market = undefined): OHLCV",
"source" => "parseOHLCV (ohlcv, market: Market = undefined): OHLCV {\n // {\n // \"timestamp\": 1664055240000,\n // \"open\": \"19612.65\",\n // \"close\": \"19612.65\",\n // \"high\": \"19612.65\",\n // \"low\": \"19612.65\",\n // \"volume\": \"0.00\"\n // }\n return [\n this.safeInteger (ohlcv, 'timestamp'),\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 \"base\": \"string\",\n \"completed_timestamp\": \"string\",\n \"counter\": \"string\",\n \"creation_timestamp\": \"string\",\n \"expiration_timestamp\": \"string\",\n \"fee_base\": \"string\",\n \"fee_counter\": \"string\",\n \"limit_price\": \"string\",\n \"limit_volume\": \"string\",\n \"order_id\": \"string\",\n \"pair\": \"string\",\n \"state\": \"PENDING\",\n \"type\": \"BID\"\n }"
],
"line_end" => 679,
"line_start" => 607,
"mappings" => [
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "clientOrderId",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "lastTradeTimestamp",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "status",
"value" => "status"
},
%{
"comment" => nil,
"key" => "symbol",
"value" => "market['symbol']"
},
%{
"comment" => nil,
"key" => "type",
"value" => "undefined"
},
%{
"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" => "undefined"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "amount"
},
%{
"comment" => nil,
"key" => "filled",
"value" => "filled"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "cost"
},
%{
"comment" => nil,
"key" => "remaining",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "trades",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "fee"
},
%{
"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 // {\n // \"base\": \"string\",\n // \"completed_timestamp\": \"string\",\n // \"counter\": \"string\",\n // \"creation_timestamp\": \"string\",\n // \"expiration_timestamp\": \"string\",\n // \"fee_base\": \"string\",\n // \"fee_counter\": \"string\",\n // \"limit_price\": \"string\",\n // \"limit_volume\": \"string\",\n // \"order_id\": \"string\",\n // \"pair\": \"string\",\n // \"state\": \"PENDING\",\n // \"type\": \"BID\"\n // }\n //\n const timestamp = this.safeInteger (order, 'creation_timestamp');\n let status = this.parseOrderStatus (this.safeString (order, 'state'));\n status = (status === 'open') ? status : status;\n let side = undefined;\n const orderType = this.safeString (order, 'type');\n if ((orderType === 'ASK') || (orderType === 'SELL')) {\n side = 'sell';\n } else if ((orderType === 'BID') || (orderType === 'BUY')) {\n side = 'buy';\n }\n const marketId = this.safeString (order, 'pair');\n market = this.safeMarket (marketId, market);\n const price = this.safeString (order, 'limit_price');\n const amount = this.safeString (order, 'limit_volume');\n const quoteFee = this.safeNumber (order, 'fee_counter');\n const baseFee = this.safeNumber (order, 'fee_base');\n const filled = this.safeString (order, 'base');\n const cost = this.safeString (order, 'counter');\n let fee = undefined;\n if (quoteFee !== undefined) {\n fee = {\n 'cost': quoteFee,\n 'currency': market['quote'],\n };\n } else if (baseFee !== undefined) {\n fee = {\n 'cost': baseFee,\n 'currency': market['base'],\n };\n }\n const id = this.safeString (order, 'order_id');\n return this.safeOrder ({\n 'id': id,\n 'clientOrderId': undefined,\n 'datetime': this.iso8601 (timestamp),\n 'timestamp': timestamp,\n 'lastTradeTimestamp': undefined,\n 'status': status,\n 'symbol': market['symbol'],\n 'type': undefined,\n 'timeInForce': undefined,\n 'postOnly': undefined,\n 'side': side,\n 'price': price,\n 'triggerPrice': undefined,\n 'amount': amount,\n 'filled': filled,\n 'cost': cost,\n 'remaining': undefined,\n 'trades': undefined,\n 'fee': fee,\n 'info': order,\n 'average': undefined,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 605,
"line_start" => 599,
"mappings" => [],
"name" => "parseOrderStatus",
"signature" => "parseOrderStatus (status: Str)",
"source" => "parseOrderStatus (status: Str) {\n const statuses: Dict = {\n // todo add other statuses\n 'PENDING': 'open',\n };\n return this.safeString (statuses, status, status);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"pair\":\"XBTAUD\",\n \"timestamp\":1642201439301,\n \"bid\":\"59972.30000000\",\n \"ask\":\"59997.99000000\",\n \"last_trade\":\"59997.99000000\",\n \"rolling_24_hour_volume\":\"1.89510000\",\n \"status\":\"ACTIVE\"\n }"
],
"line_end" => 797,
"line_start" => 761,
"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" => "undefined"
},
%{
"comment" => nil,
"key" => "low",
"value" => "undefined"
},
%{
"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" => "undefined"
},
%{
"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" => "this.safeString (ticker, 'rolling_24_hour_volume')"
},
%{
"comment" => nil,
"key" => "quoteVolume",
"value" => "undefined"
},
%{
"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 // \"pair\":\"XBTAUD\",\n // \"timestamp\":1642201439301,\n // \"bid\":\"59972.30000000\",\n // \"ask\":\"59997.99000000\",\n // \"last_trade\":\"59997.99000000\",\n // \"rolling_24_hour_volume\":\"1.89510000\",\n // \"status\":\"ACTIVE\"\n // }\n const timestamp = this.safeInteger (ticker, 'timestamp');\n const marketId = this.safeString (ticker, 'pair');\n const symbol = this.safeSymbol (marketId, market);\n const last = this.safeString (ticker, 'last_trade');\n return this.safeTicker ({\n 'symbol': symbol,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'high': undefined,\n 'low': undefined,\n 'bid': this.safeString (ticker, 'bid'),\n 'bidVolume': undefined,\n 'ask': this.safeString (ticker, 'ask'),\n 'askVolume': undefined,\n 'vwap': undefined,\n 'open': undefined,\n 'close': last,\n 'last': last,\n 'previousClose': undefined,\n 'change': undefined,\n 'percentage': undefined,\n 'average': undefined,\n 'baseVolume': this.safeString (ticker, 'rolling_24_hour_volume'),\n 'quoteVolume': undefined,\n 'info': ticker,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"sequence\":276989,\n \"timestamp\":1648651276949,\n \"price\":\"35773.20000000\",\n \"volume\":\"0.00300000\",\n \"is_buy\":false\n }",
"{\n \"pair\":\"LTCXBT\",\n \"sequence\":3256813,\n \"order_id\":\"BXEX6XHHDT5EGW2\",\n \"type\":\"ASK\",\n \"timestamp\":1648652135235,\n \"price\":\"0.002786\",\n \"volume\":\"0.10\",\n \"base\":\"0.10\",\n \"counter\":\"0.0002786\",\n \"fee_base\":\"0.0001\",\n \"fee_counter\":\"0.00\",\n \"is_buy\":false,\n \"client_order_id\":\"\"\n }"
],
"line_end" => 942,
"line_start" => 853,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "trade"
},
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "symbol",
"value" => "market['symbol']"
},
%{
"comment" => nil,
"key" => "order",
"value" => "orderId"
},
%{
"comment" => nil,
"key" => "type",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "side",
"value" => "side"
},
%{
"comment" => nil,
"key" => "takerOrMaker",
"value" => "takerOrMaker"
},
%{
"comment" => nil,
"key" => "price",
"value" => "this.safeString (trade, 'price')"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "this.safeString2 (trade, 'volume', 'base')"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "{\n 'cost': feeCost,\n 'currency': feeCurrency,\n }"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "feeCost"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "feeCurrency"
}
],
"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 // \"sequence\":276989,\n // \"timestamp\":1648651276949,\n // \"price\":\"35773.20000000\",\n // \"volume\":\"0.00300000\",\n // \"is_buy\":false\n // }\n //\n // fetchMyTrades (private)\n //\n // {\n // \"pair\":\"LTCXBT\",\n // \"sequence\":3256813,\n // \"order_id\":\"BXEX6XHHDT5EGW2\",\n // \"type\":\"ASK\",\n // \"timestamp\":1648652135235,\n // \"price\":\"0.002786\",\n // \"volume\":\"0.10\",\n // \"base\":\"0.10\",\n // \"counter\":\"0.0002786\",\n // \"fee_base\":\"0.0001\",\n // \"fee_counter\":\"0.00\",\n // \"is_buy\":false,\n // \"client_order_id\":\"\"\n // }\n //\n // For public trade data (is_buy === True) indicates 'buy' side but for private trade data\n // is_buy indicates maker or taker. The value of \"type\" (ASK/BID) indicate sell/buy side.\n // Private trade data includes ID field which public trade data does not.\n const orderId = this.safeString (trade, 'order_id');\n const id = this.safeString (trade, 'sequence');\n let takerOrMaker = undefined;\n let side = undefined;\n if (orderId !== undefined) {\n const type = this.safeString (trade, 'type');\n if ((type === 'ASK') || (type === 'SELL')) {\n side = 'sell';\n } else if ((type === 'BID') || (type === 'BUY')) {\n side = 'buy';\n }\n if (side === 'sell' && trade['is_buy']) {\n takerOrMaker = 'maker';\n } else if (side === 'buy' && !trade['is_buy']) {\n takerOrMaker = 'maker';\n } else {\n takerOrMaker = 'taker';\n }\n } else {\n side = trade['is_buy'] ? 'buy' : 'sell';\n }\n const feeBaseString = this.safeString (trade, 'fee_base');\n const feeCounterString = this.safeString (trade, 'fee_counter');\n let feeCurrency = undefined;\n let feeCost = undefined;\n if (feeBaseString !== undefined) {\n if (!Precise.stringEquals (feeBaseString, '0.0')) {\n feeCurrency = market['base'];\n feeCost = feeBaseString;\n }\n } else if (feeCounterString !== undefined) {\n if (!Precise.stringEquals (feeCounterString, '0.0')) {\n feeCurrency = market['quote'];\n feeCost = feeCounterString;\n }\n }\n const timestamp = this.safeInteger (trade, 'timestamp');\n return this.safeTrade ({\n 'info': trade,\n 'id': id,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'symbol': market['symbol'],\n 'order': orderId,\n 'type': undefined,\n 'side': side,\n 'takerOrMaker': takerOrMaker,\n 'price': this.safeString (trade, 'price'),\n 'amount': this.safeString2 (trade, 'volume', 'base'),\n // Does not include potential fee costs\n 'cost': this.safeString (trade, 'counter'),\n 'fee': {\n 'cost': feeCost,\n 'currency': feeCurrency,\n },\n }, market);\n }"
}
],
path_prefix: "/1/",
pro: true,
quote_json_numbers: nil,
rate_limits: %{
interval_ms: 200,
period: 1000,
requests: 5,
rolling_window_size: 60000
},
raw_endpoints: %{
private: [
%{
auth: false,
cost: 1,
method: :get,
path: "/accounts/{id}/pending"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/accounts/{id}/transactions"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/balance"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/beneficiaries"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/fee_info"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/funding_address"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/listorders"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/listtrades"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/orders/{id}"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/send/networks"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/send_fee"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/transfers"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/withdrawals"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/withdrawals/{id}"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/accounts"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/address/validate"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/beneficiaries"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/funding_address"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/marketorder"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/oauth2/grant"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/postorder"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/send"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/stoporder"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/withdrawals"
},
%{
auth: false,
cost: 1,
method: :put,
path: "/accounts/{id}/name"
},
%{
auth: false,
cost: 1,
method: :delete,
path: "/beneficiaries/{id}"
},
%{
auth: false,
cost: 1,
method: :delete,
path: "/withdrawals/{id}"
}
],
public: [
%{
auth: false,
cost: 1,
method: :get,
path: "/orderbook"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/orderbook_top"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/ticker"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/tickers"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/trades"
}
]
},
required_credentials: %{
api_key: true,
password: false,
secret: true,
uid: false
},
requires_eddsa: false,
response_error: %{
code_field: [
"error",
"code"
],
field: "error",
message_field: [
"error",
"message"
],
success_values: nil,
type: :error_present
},
signing: %{
confidence: :medium,
pattern: :hmac_sha256_headers
},
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" => 100000,
"min" => 1
},
"cost" => %{},
"price" => %{
"max" => 0.01,
"min" => 1.0e-6
}
},
sample_precision: %{
"amount" => 0.1,
"price" => 1.0e-7
},
spot: %{
base: "SONIC",
base_id: "SONIC",
case: :upper,
contract: false,
id: "SONICXBT",
limits: %{
"amount" => %{
"max" => 100000,
"min" => 1
},
"cost" => %{},
"leverage" => %{},
"price" => %{
"max" => 0.01,
"min" => 1.0e-6
}
},
maker: 0,
precision: %{
"amount" => 0.1,
"price" => 1.0e-7
},
quote: "BTC",
quote_id: "XBT",
separator: "",
symbol: "SONIC/BTC",
taker: 0.001
}
},
symbol_patterns: %{
spot: %{
case: :upper,
component_order: nil,
date_format: nil,
pattern: :no_separator_upper,
prefix: nil,
separator: "",
suffix: nil
}
},
timeframes: %{
"15m" => 900,
"1d" => 86400,
"1h" => 3600,
"1m" => 60,
"1w" => 604800,
"30m" => 1800,
"3d" => 259200,
"3h" => 10800,
"4h" => 14400,
"5m" => 300
},
url_strategy: %{
detected_from: "sign_method",
pattern: :version_slash,
prefix: "/1/"
},
urls: %{
api: "https://api.luno.com/api",
api_sections: %{
"exchange" => "https://api.luno.com/api/exchange",
"exchangePrivate" => "https://api.luno.com/api/exchange",
"private" => "https://api.luno.com/api",
"public" => "https://api.luno.com/api"
},
doc: [
"https://www.luno.com/en/api",
"https://npmjs.org/package/bitx",
"https://github.com/bausmeier/node-bitx"
],
other: nil,
sandbox: nil,
www: "https://www.luno.com"
},
version: "1",
ws: %{
channel_templates: %{
watch_order_book: %{
market_id_format: :native,
params: [
%{
"default" => nil,
"name" => "limit"
}
],
pattern: :custom
},
watch_trades: %{
market_id_format: :native,
params: [
%{
"default" => nil,
"name" => "limit"
}
],
pattern: :custom
}
},
has: %{
watch_balance: nil,
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: nil,
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: :custom,
keys: [
"api_key_id",
"api_key_secret"
],
sources: [
:send,
:watch
]
}
],
subscription_config: %{
market_id_format: :native
},
subscription_pattern: :custom,
urls: "wss://ws.luno.com/api/1",
watch_methods: [
"watchOrderBook",
"watchTrades"
]
}
}