Current section
Files
Jump to
Current section
Files
priv/specs/extracted/coinspot.exs
# CoinSpot Exchange Specification
#
# Auto-generated by: mix ccxt.extract coinspot
# 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: :supported,
comment: nil,
countries: [
"AU"
],
currencies: %{},
currency_aliases: %{
"BCHSV" => "BSV",
"DRK" => "DASH",
"XBT" => "BTC"
},
dex: false,
enable_rate_limit: true,
endpoint_extraction_stats: %{
"capturedMethods" => 10,
"coveragePercent" => 100,
"enabledMethods" => 13,
"excluded" => [
%{
"method" => "editOrder",
"reason" => "emulated (returns cached data, no HTTP call)"
},
%{
"method" => "fetchCurrencies",
"reason" => "emulated (returns cached data, no HTTP call)"
}
],
"excludedMethods" => 2,
"extractableMethods" => 11,
"failures" => [
%{
"error" => "Cannot convert undefined or null to object",
"method" => "fetchMarkets"
}
]
},
endpoints: [
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :post,
name: :cancel_order,
param_mappings: %{},
params: [
:id,
:symbol
],
path: "/my/buy/cancel",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :post,
name: :create_limit_order,
param_mappings: %{
"price" => "rate",
"symbol" => "cointype"
},
params: [
:symbol,
:side,
:amount,
:price
],
path: "/my/buy",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :post,
name: :create_order,
param_mappings: %{
"price" => "rate",
"symbol" => "cointype"
},
params: [
:symbol,
:type,
:side,
:amount,
:price
],
path: "/my/buy",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :post,
name: :fetch_balance,
param_mappings: %{},
params: [],
path: "/my/balances",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :post,
name: :fetch_l2_order_book,
param_mappings: %{
"symbol" => "cointype"
},
params: [
:symbol,
:limit
],
path: "/orders",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :post,
name: :fetch_my_trades,
param_mappings: %{},
params: [
:symbol,
:since,
:limit
],
path: "/ro/my/transactions",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :single,
market_type: :spot,
method: :post,
name: :fetch_order_book,
param_mappings: %{
"symbol" => "cointype"
},
params: [
:symbol,
:limit
],
path: "/orders",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :single,
market_type: :spot,
method: :get,
name: :fetch_ticker,
param_mappings: %{},
params: [
:symbol
],
path: "/latest",
response_transformer: {:extract_path_unwrap, ["prices"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
expects: :list,
market_type: :spot,
method: :get,
name: :fetch_tickers,
param_mappings: %{},
params: [
:symbols
],
path: "/latest",
response_transformer: {:extract_path, ["prices"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
expects: :list,
market_type: :spot,
method: :post,
name: :fetch_trades,
param_mappings: %{
"symbol" => "cointype"
},
params: [
:symbol,
:since,
:limit
],
path: "/orders/history",
response_transformer: {:extract_path, ["orders"]},
source: :intercepted
}
],
error_code_details: %{},
error_codes: %{},
exceptions: nil,
exchange_options: %{
"defaultNetworkCodeReplacements" => %{
"BRC20" => %{
"BRC20" => "BTC"
},
"CRO" => %{
"CRC20" => "CRONOS"
},
"ETH" => %{
"ERC20" => "ETH"
},
"TRX" => %{
"TRC20" => "TRX"
}
},
"fetchBalance" => "private_post_my_balances",
"networksById" => %{}
},
extended_metadata: %{
limits: %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
logo_url: "https://user-images.githubusercontent.com/1294454/28208429-3cacdf9a-6896-11e7-854e-4c79a772a30f.jpg",
referral_url: "https://www.coinspot.com.au/register?code=PJURCU"
},
extracted_metadata: %{
ccxt_version: "4.5.42"
},
features: %{
future: %{},
spot: %{
create_order: %{
hedged: false,
iceberg: false,
leverage: false,
margin_mode: false,
market_buy_by_cost: false,
market_buy_requires_price: false,
self_trade_prevention: false,
stop_loss_price: false,
take_profit_price: false,
time_in_force: %{
fok: false,
gtd: false,
ioc: false,
po: false
},
trailing: false,
trigger_direction: false,
trigger_price: false
},
fetch_my_trades: %{
days_back: 100000,
margin_mode: false,
symbol_required: false,
until_days: 100000
},
sandbox: false
},
swap: %{}
},
fees: nil,
forward_aliases: %{
spot: %{
"A" => "eos",
"NEO" => "ans"
}
},
handle_content_type_application_zip: nil,
handle_errors_source: "handleErrors(statusCode, statusText, url, method, responseHeaders, responseBody, response, requestHeaders, requestBody) {\n // it is a stub method that must be overrided in the derived exchange classes\n // throw new NotSupported (this.id + ' handleErrors() not implemented yet');\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: false,
create_market_buy_order_with_cost_ws: false,
create_market_buy_order_ws: false,
create_market_order: false,
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: 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: false,
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: false,
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: false,
fetch_ledger_entry: false,
fetch_leverage: false,
fetch_leverage_tiers: false,
fetch_leverages: false,
fetch_liquidations: false,
fetch_long_short_ratio: false,
fetch_long_short_ratio_history: false,
fetch_margin_adjustment_history: false,
fetch_margin_mode: false,
fetch_margin_modes: false,
fetch_mark_ohlcv: false,
fetch_mark_prices: false,
fetch_market_leverage_tiers: false,
fetch_markets: true,
fetch_markets_ws: false,
fetch_my_liquidations: false,
fetch_my_settlement_history: false,
fetch_my_trades: true,
fetch_my_trades_ws: false,
fetch_ohlcv: false,
fetch_ohlcv_ws: false,
fetch_open_interest: false,
fetch_open_interest_history: false,
fetch_open_interests: false,
fetch_open_order: false,
fetch_open_orders: false,
fetch_open_orders_ws: false,
fetch_option: false,
fetch_option_chain: false,
fetch_order: false,
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: false,
fetch_orders_by_status: false,
fetch_orders_ws: false,
fetch_position: false,
fetch_position_a_d_l_rank: false,
fetch_position_history: false,
fetch_position_mode: false,
fetch_position_ws: false,
fetch_positions: false,
fetch_positions_a_d_l_rank: false,
fetch_positions_for_symbol: false,
fetch_positions_for_symbol_ws: false,
fetch_positions_history: false,
fetch_positions_risk: false,
fetch_positions_ws: false,
fetch_premium_index_ohlcv: false,
fetch_settlement_history: false,
fetch_status: false,
fetch_ticker: true,
fetch_ticker_ws: false,
fetch_tickers: true,
fetch_tickers_ws: false,
fetch_time: false,
fetch_trades: true,
fetch_trades_ws: false,
fetch_trading_fee: false,
fetch_trading_fees: 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,
repay_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: 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: false,
ws: false
},
http_config: nil,
id: "coinspot",
markets: %{
"A/AUD" => %{
"base" => "A",
"baseId" => "eos",
"contract" => false,
"future" => false,
"id" => "eos",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "A/AUD",
"type" => "spot"
},
"ADA/AUD" => %{
"base" => "ADA",
"baseId" => "ada",
"contract" => false,
"future" => false,
"id" => "ada",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "ADA/AUD",
"type" => "spot"
},
"BTC/AUD" => %{
"base" => "BTC",
"baseId" => "btc",
"contract" => false,
"future" => false,
"id" => "btc",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "BTC/AUD",
"type" => "spot"
},
"BTC/USDT" => %{
"base" => "BTC",
"baseId" => "btc",
"contract" => false,
"future" => false,
"id" => "btc",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "USDT",
"quoteId" => "usdt",
"spot" => true,
"swap" => false,
"symbol" => "BTC/USDT",
"type" => "spot"
},
"DOGE/AUD" => %{
"base" => "DOGE",
"baseId" => "doge",
"contract" => false,
"future" => false,
"id" => "doge",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "DOGE/AUD",
"type" => "spot"
},
"EOS/AUD" => %{
"base" => "EOS",
"baseId" => "eos",
"contract" => false,
"future" => false,
"id" => "eos",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "EOS/AUD",
"type" => "spot"
},
"ETH/AUD" => %{
"base" => "ETH",
"baseId" => "eth",
"contract" => false,
"future" => false,
"id" => "eth",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "ETH/AUD",
"type" => "spot"
},
"GAS/AUD" => %{
"base" => "GAS",
"baseId" => "gas",
"contract" => false,
"future" => false,
"id" => "gas",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "GAS/AUD",
"type" => "spot"
},
"LTC/AUD" => %{
"base" => "LTC",
"baseId" => "ltc",
"contract" => false,
"future" => false,
"id" => "ltc",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "LTC/AUD",
"type" => "spot"
},
"NEO/AUD" => %{
"base" => "NEO",
"baseId" => "ans",
"contract" => false,
"future" => false,
"id" => "neo",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "NEO/AUD",
"type" => "spot"
},
"POWR/AUD" => %{
"base" => "POWR",
"baseId" => "powr",
"contract" => false,
"future" => false,
"id" => "powr",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "POWR/AUD",
"type" => "spot"
},
"RHOC/AUD" => %{
"base" => "RHOC",
"baseId" => "rhoc",
"contract" => false,
"future" => false,
"id" => "rhoc",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "RHOC/AUD",
"type" => "spot"
},
"SOL/AUD" => %{
"base" => "SOL",
"baseId" => "sol",
"contract" => false,
"future" => false,
"id" => "sol",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "SOL/AUD",
"type" => "spot"
},
"TRX/AUD" => %{
"base" => "TRX",
"baseId" => "trx",
"contract" => false,
"future" => false,
"id" => "trx",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "TRX/AUD",
"type" => "spot"
},
"USDT/AUD" => %{
"base" => "USDT",
"baseId" => "usdt",
"contract" => false,
"future" => false,
"id" => "usdt",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "USDT/AUD",
"type" => "spot"
},
"XLM/AUD" => %{
"base" => "XLM",
"baseId" => "xlm",
"contract" => false,
"future" => false,
"id" => "xlm",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "XLM/AUD",
"type" => "spot"
},
"XRP/AUD" => %{
"base" => "XRP",
"baseId" => "xrp",
"contract" => false,
"future" => false,
"id" => "xrp",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "AUD",
"quoteId" => "aud",
"spot" => true,
"swap" => false,
"symbol" => "XRP/AUD",
"type" => "spot"
}
},
name: "CoinSpot",
ohlcv_timestamp_resolution: :unknown,
options: %{
fetch_balance: "private_post_my_balances"
},
order_mappings: nil,
param_mappings: %{
"price" => "rate",
"symbol" => "cointype"
},
parse_methods: [
%{
"comment" => nil,
"examples" => [],
"line_end" => 329,
"line_start" => 302,
"mappings" => [],
"name" => "parseBalance",
"signature" => "parseBalance (response): Balances",
"source" => "parseBalance (response): Balances {\n const result: Dict = { 'info': response };\n const balances = this.safeValue2 (response, 'balance', 'balances');\n if (Array.isArray (balances)) {\n for (let i = 0; i < balances.length; i++) {\n const currencies = balances[i];\n const currencyIds = Object.keys (currencies);\n for (let j = 0; j < currencyIds.length; j++) {\n const currencyId = currencyIds[j];\n const balance = currencies[currencyId];\n const code = this.safeCurrencyCode (currencyId);\n const account = this.account ();\n account['total'] = this.safeString (balance, 'balance');\n result[code] = account;\n }\n }\n } else {\n const currencyIds = Object.keys (balances);\n for (let i = 0; i < currencyIds.length; i++) {\n const currencyId = currencyIds[i];\n const code = this.safeCurrencyCode (currencyId);\n const account = this.account ();\n account['total'] = this.safeString (balances, currencyId);\n result[code] = account;\n }\n }\n return this.safeBalance (result);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"btc\":{\n \"bid\":\"51970\",\n \"ask\":\"53000\",\n \"last\":\"52806.47\"\n }\n }"
],
"line_end" => 416,
"line_start" => 382,
"mappings" => [
%{
"comment" => nil,
"key" => "symbol",
"value" => "symbol"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "undefined"
},
%{
"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" => "undefined"
},
%{
"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 // {\n // \"btc\":{\n // \"bid\":\"51970\",\n // \"ask\":\"53000\",\n // \"last\":\"52806.47\"\n // }\n // }\n //\n const symbol = this.safeSymbol (undefined, market);\n const last = this.safeString (ticker, 'last');\n return this.safeTicker ({\n 'symbol': symbol,\n 'timestamp': undefined,\n 'datetime': undefined,\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': undefined,\n 'quoteVolume': undefined,\n 'info': ticker,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"amount\":0.00102091,\n \"rate\":21549.09999991,\n \"total\":21.99969168,\n \"coin\":\"BTC\",\n \"solddate\":1604890646143,\n \"market\":\"BTC/AUD\"\n }",
"{\n \"otc\": false,\n \"market\": \"ALGO/AUD\",\n \"amount\": 386.95197925,\n \"created\": \"2022-10-20T09:56:44.502Z\",\n \"audfeeExGst\": 1.80018002,\n \"audGst\": 0.180018,\n \"audtotal\": 200,\n \"total\": 200,\n \"side\": \"buy\",\n \"price\": 0.5168600000125209\n }"
],
"line_end" => 652,
"line_start" => 584,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "trade"
},
%{
"comment" => nil,
"key" => "id",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "symbol",
"value" => "symbol"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "order",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "type",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "side",
"value" => "side"
},
%{
"comment" => nil,
"key" => "takerOrMaker",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "price",
"value" => "this.parseNumber (priceString)"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "this.parseNumber (amountString)"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "this.parseNumber (costString)"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "fee"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "this.parseNumber (feeCost)"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "this.safeCurrencyCode (feeCurrencyId)"
}
],
"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.00102091,\n // \"rate\":21549.09999991,\n // \"total\":21.99969168,\n // \"coin\":\"BTC\",\n // \"solddate\":1604890646143,\n // \"market\":\"BTC/AUD\"\n // }\n //\n // private fetchMyTrades\n // {\n // \"otc\": false,\n // \"market\": \"ALGO/AUD\",\n // \"amount\": 386.95197925,\n // \"created\": \"2022-10-20T09:56:44.502Z\",\n // \"audfeeExGst\": 1.80018002,\n // \"audGst\": 0.180018,\n // \"audtotal\": 200,\n // \"total\": 200,\n // \"side\": \"buy\",\n // \"price\": 0.5168600000125209\n // }\n let timestamp = undefined;\n let priceString = undefined;\n let fee = undefined;\n const audTotal = this.safeString (trade, 'audtotal');\n const costString = this.safeString (trade, 'total', audTotal);\n const side = this.safeString (trade, 'side');\n const amountString = this.safeString (trade, 'amount');\n const marketId = this.safeString (trade, 'market');\n const symbol = this.safeSymbol (marketId, market, '/');\n const solddate = this.safeInteger (trade, 'solddate');\n if (solddate !== undefined) {\n priceString = this.safeString (trade, 'rate');\n timestamp = solddate;\n } else {\n priceString = Precise.stringDiv (costString, amountString);\n const createdString = this.safeString (trade, 'created');\n timestamp = this.parse8601 (createdString);\n const audfeeExGst = this.safeString (trade, 'audfeeExGst');\n const audGst = this.safeString (trade, 'audGst');\n // The transaction fee which consumers pay is inclusive of GST by default\n const feeCost = Precise.stringAdd (audfeeExGst, audGst);\n const feeCurrencyId = 'AUD';\n fee = {\n 'cost': this.parseNumber (feeCost),\n 'currency': this.safeCurrencyCode (feeCurrencyId),\n };\n }\n return this.safeTrade ({\n 'info': trade,\n 'id': undefined,\n 'symbol': symbol,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'order': undefined,\n 'type': undefined,\n 'side': side,\n 'takerOrMaker': undefined,\n 'price': this.parseNumber (priceString),\n 'amount': this.parseNumber (amountString),\n 'cost': this.parseNumber (costString),\n 'fee': fee,\n }, market);\n }"
}
],
path_prefix: "",
pro: false,
quote_json_numbers: nil,
rate_limits: %{
interval_ms: 1000,
period: 1000,
requests: 1,
rolling_window_size: 60000
},
raw_endpoints: %{
private: [],
public: []
},
required_credentials: %{
api_key: true,
password: false,
secret: true,
uid: false
},
requires_eddsa: false,
response_error: nil,
signing: %{
confidence: :medium,
pattern: :hmac_sha512_nonce
},
spec_format_version: 2,
status: %{
"eta" => nil,
"status" => "ok",
"updated" => nil,
"url" => nil
},
symbol_format: nil,
symbol_formats: %{
precision_mode: 4,
sample_limits: %{
"amount" => %{},
"cost" => %{},
"price" => %{}
},
sample_precision: %{},
spot: %{
base: "BTC",
base_id: "btc",
case: :lower,
contract: false,
id: "btc",
limits: %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
precision: %{},
quote: "AUD",
quote_id: "aud",
separator: "",
symbol: "BTC/AUD"
}
},
symbol_patterns: %{
spot: %{
case: :lower,
component_order: nil,
date_format: nil,
pattern: :no_separator_lower,
prefix: nil,
separator: "",
suffix: nil
}
},
timeframes: %{},
url_strategy: %{
detected_from: "fallback",
pattern: :no_prefix,
prefix: nil
},
urls: %{
api: "https://www.coinspot.com.au/pubapi",
api_sections: %{
"private" => "https://www.coinspot.com.au/api",
"public" => "https://www.coinspot.com.au/pubapi"
},
doc: "https://www.coinspot.com.au/api",
other: nil,
sandbox: nil,
www: "https://www.coinspot.com.au"
},
version: nil,
ws: nil
}