# ProBit Exchange Specification # # Auto-generated by: mix ccxt.extract probit # 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: :pro, comment: nil, countries: [ "SC", "KR" ], currencies: %{}, currency_aliases: %{ "BB" => "Baby Bali", "BCHSV" => "BSV", "CBC" => "CryptoBharatCoin", "CTK" => "Cryptyk", "CTT" => "Castweet", "DKT" => "DAKOTA", "EGC" => "EcoG9coin", "EPS" => "Epanus", "FX" => "Fanzy", "GM" => "GM Holding", "GOGOL" => "GOL", "GOL" => "Goldofir", "HUSL" => "The Hustle App", "LAND" => "Landbox", "SST" => "SocialSwap", "TCT" => "Top Coin Token", "TOR" => "Torex", "UNI" => "UNICORN Token", "UNISWAP" => "UNI", "XBT" => "BTC" }, dex: false, enable_rate_limit: true, endpoint_extraction_stats: %{ "capturedMethods" => 23, "coveragePercent" => 100, "enabledMethods" => 27, "excluded" => [ %{ "method" => "editOrder", "reason" => "emulated (returns cached data, no HTTP call)" }, %{ "method" => "fetchTransactions", "reason" => "emulated (returns cached data, no HTTP call)" } ], "excludedMethods" => 2, "extractableMethods" => 25, "failures" => [ %{ "error" => "probit 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 in the amount argument", "method" => "createMarketOrder" }, %{ "error" => "probit does not have currency code B", "method" => "fetchDepositAddresses" } ] }, endpoints: [ %{ api_section: "private", auth: true, cost: 1.0, market_type: :spot, method: :post, name: :cancel_order, param_mappings: %{ "id" => "order_id", "symbol" => "market_id" }, params: [ :id, :symbol ], path: "/cancel_order", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, default_params: %{ "time_in_force" => "gtc", "type" => "limit" }, market_type: :spot, method: :post, name: :create_limit_order, param_mappings: %{ "amount" => "quantity", "price" => "limit_price", "symbol" => "market_id" }, params: [ :symbol, :side, :amount, :price ], path: "/new_order", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, default_params: %{ "side" => "buy", "time_in_force" => "ioc", "type" => "market" }, market_type: :spot, method: :post, name: :create_market_buy_order_with_cost, param_mappings: %{ "symbol" => "market_id" }, params: [ :symbol, :cost ], path: "/new_order", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, default_params: %{ "time_in_force" => "gtc" }, market_type: :spot, method: :post, name: :create_order, param_mappings: %{ "amount" => "quantity", "price" => "limit_price", "symbol" => "market_id" }, params: [ :symbol, :type, :side, :amount, :price ], path: "/new_order", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, market_type: :spot, method: :get, name: :fetch_balance, param_mappings: %{}, params: [], path: "/balance", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, default_params: %{ "end_time" => "2026-02-10T22:11:32.434Z", "limit" => 100, "start_time" => "1970-01-01T00:00:00.000Z" }, market_type: :spot, method: :get, name: :fetch_closed_orders, param_mappings: %{ "symbol" => "market_id" }, params: [ :symbol, :since, :limit ], path: "/order_history", source: :intercepted }, %{ api_section: "public", auth: false, cost: 1.0, market_type: :spot, method: :get, name: :fetch_currencies, param_mappings: %{}, params: [], path: "/currency_with_platform", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, market_type: :spot, method: :get, name: :fetch_deposit_address, param_mappings: %{ "code" => "currency_id" }, params: [ :code ], path: "/deposit_address", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, default_params: %{ "end_time" => "2026-02-10T22:11:32.434Z", "limit" => 100, "start_time" => "1970-01-01T00:00:00.001Z", "type" => "deposit" }, market_type: :spot, method: :get, name: :fetch_deposits, param_mappings: %{ "code" => "currency_id" }, params: [ :code, :since, :limit ], path: "/transfer/payment", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, default_params: %{ "end_time" => "2026-02-10T22:11:32.434Z", "limit" => 100, "start_time" => "1970-01-01T00:00:00.001Z" }, market_type: :spot, method: :get, name: :fetch_deposits_withdrawals, param_mappings: %{ "code" => "currency_id" }, params: [ :code, :since, :limit ], path: "/transfer/payment", source: :intercepted }, %{ api_section: "public", auth: false, cost: 1.0, market_type: :spot, method: :get, name: :fetch_l2_order_book, param_mappings: %{ "symbol" => "market_id" }, params: [ :symbol, :limit ], path: "/order_book", source: :intercepted }, %{ api_section: "public", auth: false, cost: 1.0, market_type: :spot, method: :get, name: :fetch_markets, param_mappings: %{}, params: [], path: "/market", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, default_params: %{ "end_time" => "2026-02-10T22:11:32.434Z", "limit" => 100, "start_time" => "2025-02-10T22:11:32.434Z" }, market_type: :spot, method: :get, name: :fetch_my_trades, param_mappings: %{ "symbol" => "market_id" }, params: [ :symbol, :since, :limit ], path: "/trade_history", source: :intercepted }, %{ api_section: "public", auth: false, cost: 1.0, default_params: %{ "end_time" => "2024-01-05T05:00:00.000Z", "limit" => 101, "sort" => "asc", "start_time" => "2024-01-01T00:00:00.000Z" }, market_type: :spot, method: :get, name: :fetch_ohlcv, param_mappings: %{ "symbol" => "market_ids", "timeframe" => "interval" }, params: [ :symbol, :timeframe, :since, :limit ], path: "/candle", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, market_type: :spot, method: :get, name: :fetch_open_orders, param_mappings: %{ "symbol" => "market_id" }, params: [ :symbol, :since, :limit ], path: "/open_order", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, market_type: :spot, method: :get, name: :fetch_order, param_mappings: %{ "id" => "order_id", "symbol" => "market_id" }, params: [ :id, :symbol ], path: "/order", source: :intercepted }, %{ api_section: "public", auth: false, cost: 1.0, market_type: :spot, method: :get, name: :fetch_order_book, param_mappings: %{ "symbol" => "market_id" }, params: [ :symbol, :limit ], path: "/order_book", source: :intercepted }, %{ api_section: "public", auth: false, cost: 1.0, market_type: :spot, method: :get, name: :fetch_ticker, param_mappings: %{ "symbol" => "market_ids" }, params: [ :symbol ], path: "/ticker", source: :intercepted }, %{ api_section: "public", auth: false, cost: 1.0, default_params: %{ "market_ids" => "BTCUSDT" }, market_type: :spot, method: :get, name: :fetch_tickers, param_mappings: %{}, params: [ :symbols ], path: "/ticker", source: :intercepted }, %{ api_section: "public", auth: false, cost: 1.0, market_type: :spot, method: :get, name: :fetch_time, param_mappings: %{}, params: [], path: "/time", source: :intercepted }, %{ api_section: "public", auth: false, cost: 1.0, default_params: %{ "end_time" => "2026-02-10T22:11:32.435Z", "start_time" => "2024-01-01T00:00:00.000Z" }, market_type: :spot, method: :get, name: :fetch_trades, param_mappings: %{ "symbol" => "market_id" }, params: [ :symbol, :since, :limit ], path: "/trade", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, default_params: %{ "end_time" => "2026-02-10T22:11:32.435Z", "limit" => 100, "start_time" => "1970-01-01T00:00:00.001Z", "type" => "withdrawal" }, market_type: :spot, method: :get, name: :fetch_withdrawals, param_mappings: %{ "code" => "currency_id" }, params: [ :code, :since, :limit ], path: "/transfer/payment", source: :intercepted }, %{ api_section: "private", auth: true, cost: 1.0, default_params: %{ "destination_tag" => "" }, market_type: :spot, method: :post, name: :withdraw, param_mappings: %{ "code" => "currency_id" }, params: [ :code, :amount, :address, :tag ], path: "/withdrawal", source: :intercepted } ], error_code_details: %{ "DUPLICATE_ADDRESS" => %{ description: "Address already exists in withdrawal address list", type: :invalid_parameters }, "INVALID_ARGUMENT" => %{ description: "Parameters are not a valid format, parameters are empty, or out of range, or a parameter was sent when not required.", type: :invalid_parameters }, "INVALID_CURRENCY" => %{ description: "Requested currency is not exist on ProBit system", type: :invalid_parameters }, "INVALID_MARKET" => %{ description: "Requested market is not exist", type: :invalid_order }, "INVALID_ORDER" => %{ description: "Requested order does not exist, or it is not your order", type: :invalid_order }, "MARKET_CLOSED" => %{ description: "{\"errorCode\":\"MARKET_CLOSED\"}", type: :market_closed }, "MARKET_NOT_FOUND" => %{ description: "8e2b8496-0a1e-5beb-b990-a205b902eabe", type: :invalid_order }, "MARKET_UNAVAILABLE" => %{ description: "Market is closed today", type: :network_error }, "NOT_ALLOWED_COMBINATION" => %{ description: nil, type: :invalid_parameters }, "NOT_ENOUGH_BALANCE" => %{ description: nil, type: :insufficient_balance }, "RATE_LIMIT_EXCEEDED" => %{ description: "You are sending requests too frequently. Please try it later.", type: :rate_limited }, "TOO_MANY_OPEN_ORDERS" => %{ description: "Too many open orders", type: :rate_limited }, "TRADING_UNAVAILABLE" => %{ description: nil, type: :network_error }, "UNAUTHORIZED" => %{ description: nil, type: :invalid_credentials }, "invalid_grant" => %{ description: "{\"error\":\"invalid_grant\"}", type: :invalid_credentials } }, error_codes: %{ "DUPLICATE_ADDRESS" => :invalid_parameters, "INVALID_ARGUMENT" => :invalid_parameters, "INVALID_CURRENCY" => :invalid_parameters, "INVALID_MARKET" => :invalid_order, "INVALID_ORDER" => :invalid_order, "MARKET_CLOSED" => :market_closed, "MARKET_NOT_FOUND" => :invalid_order, "MARKET_UNAVAILABLE" => :network_error, "NOT_ALLOWED_COMBINATION" => :invalid_parameters, "NOT_ENOUGH_BALANCE" => :insufficient_balance, "RATE_LIMIT_EXCEEDED" => :rate_limited, "TOO_MANY_OPEN_ORDERS" => :rate_limited, "TRADING_UNAVAILABLE" => :network_error, "UNAUTHORIZED" => :invalid_credentials, "invalid_grant" => :invalid_credentials }, exceptions: %{ exact: %{ "DUPLICATE_ADDRESS" => :invalid_address, "INVALID_ARGUMENT" => :bad_request, "INVALID_CURRENCY" => :bad_request, "INVALID_MARKET" => :bad_symbol, "INVALID_ORDER" => :invalid_order, "MARKET_CLOSED" => :market_closed, "MARKET_NOT_FOUND" => :bad_symbol, "MARKET_UNAVAILABLE" => :exchange_not_available, "NOT_ALLOWED_COMBINATION" => :bad_request, "NOT_ENOUGH_BALANCE" => :insufficient_funds, "RATE_LIMIT_EXCEEDED" => :rate_limit_exceeded, "TOO_MANY_OPEN_ORDERS" => :ddos_protection, "TRADING_UNAVAILABLE" => :exchange_not_available, "UNAUTHORIZED" => :authentication_error, "invalid_grant" => :authentication_error } }, exchange_options: %{ "createMarketBuyOrderRequiresPrice" => true, "defaultNetworkCodeReplacements" => %{ "BRC20" => %{ "BRC20" => "BTC" }, "CRO" => %{ "CRC20" => "CRONOS" }, "ETH" => %{ "ERC20" => "ETH" }, "TRX" => %{ "TRC20" => "TRX" } }, "networks" => %{ "BEP20" => "BSC", "ERC20" => "ETH", "TRC20" => "TRON" }, "networksById" => %{ "BSC" => "BEP20", "ETH" => "ERC20", "TRON" => "TRC20" }, "timeInForce" => %{ "limit" => "gtc", "market" => "ioc" } }, extended_metadata: %{ fees_url: "https://support.probit.com/hc/en-us/articles/360020968611-Trading-Fees", limits: %{ "amount" => %{}, "cost" => %{}, "leverage" => %{}, "price" => %{} }, logo_url: "https://user-images.githubusercontent.com/51840849/79268032-c4379480-7ea2-11ea-80b3-dd96bb29fd0d.jpg", referral_url: "https://www.probit.com/r/34608773" }, extracted_metadata: %{ ccxt_version: "4.5.34" }, 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: false }, trailing: false, trigger_direction: false, trigger_price: false }, fetch_closed_orders: %{ days_back: 100000, days_back_canceled: 1, limit: 1000, margin_mode: false, symbol_required: false, trailing: false, trigger: false, until_days: 90 }, fetch_my_trades: %{ days_back: 100000, limit: 1000, margin_mode: false, symbol_required: false, until_days: 100000 }, fetch_ohlcv: %{ limit: 4000 }, fetch_open_orders: %{ margin_mode: false, symbol_required: false, trailing: false, trigger: false }, fetch_order: %{ margin_mode: false, symbol_required: true, trailing: false, trigger: false }, sandbox: false }, swap: %{} }, fees: %{ trading: %{ maker: 0.002, percentage: true, taker: 0.002, 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; // fallback to default error handler\n }\n if ('errorCode' in response) {\n const errorCode = this.safeString(response, 'errorCode');\n if (errorCode !== undefined) {\n const errMessage = this.safeString(response, 'message', '');\n const details = this.safeValue(response, 'details');\n const feedback = this.id + ' ' + errorCode + ' ' + errMessage + ' ' + this.json(details);\n if ('exact' in this.exceptions) {\n this.throwExactlyMatchedException(this.exceptions['exact'], errorCode, feedback);\n }\n if ('broad' in this.exceptions) {\n this.throwBroadlyMatchedException(this.exceptions['broad'], errMessage, feedback);\n }\n throw new errors.ExchangeError(feedback);\n }\n }\n return undefined;\n }", has: %{ add_margin: false, borrow_cross_margin: false, borrow_isolated_margin: false, borrow_margin: false, c_o_r_s: true, 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: 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_accounts: false, 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: true, 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: 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_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: true, spot: true, swap: false, transfer: false, un_watch_my_trades: false, un_watch_ohlcv: false, un_watch_ohlcv_for_symbols: false, un_watch_order_book: false, un_watch_order_book_for_symbols: false, un_watch_orders: false, un_watch_positions: false, un_watch_ticker: false, un_watch_tickers: false, un_watch_trades: false, un_watch_trades_for_symbols: false, watch_balance: true, watch_bids_asks: false, watch_liquidations: false, watch_liquidations_for_symbols: false, watch_my_liquidations: false, watch_my_liquidations_for_symbols: false, watch_my_trades: true, watch_ohlcv: false, watch_ohlcv_for_symbols: false, watch_order_book: true, watch_order_book_for_symbols: false, watch_orders: true, watch_orders_for_symbols: false, watch_position: false, watch_positions: false, watch_status: false, watch_ticker: true, watch_tickers: false, watch_trades: true, watch_trades_for_symbols: false, withdraw: true, ws: false }, http_config: nil, id: "probit", markets: nil, name: "ProBit", ohlcv_timestamp_resolution: :unknown, options: %{ create_market_buy_order_requires_price: true, networks: %{ "BEP20" => "BSC", "ERC20" => "ETH", "TRC20" => "TRON" }, time_in_force: %{ "limit" => "gtc", "market" => "ioc" } }, order_mappings: %{ side_format: :lowercase, side_key: "side", type_format: :lowercase, type_key: "type" }, param_mappings: %{ "amount" => "quantity", "code" => "currency_id", "id" => "order_id", "price" => "limit_price", "symbol" => "market_id", "timeframe" => "interval" }, parse_methods: [ %{ "comment" => nil, "examples" => [], "line_end" => 604, "line_start" => 587, "mappings" => [], "name" => "parseBalance", "signature" => "parseBalance (response): Balances", "source" => "parseBalance (response): Balances {\n const result: Dict = {\n 'info': response,\n 'timestamp': undefined,\n 'datetime': undefined,\n };\n const data = this.safeValue (response, 'data', []);\n for (let i = 0; i < data.length; i++) {\n const balance = data[i];\n const currencyId = this.safeString (balance, 'currency_id');\n const code = this.safeCurrencyCode (currencyId);\n const account = this.account ();\n account['total'] = this.safeString (balance, 'total');\n account['free'] = this.safeString (balance, 'available');\n result[code] = account;\n }\n return this.safeBalance (result);\n }" }, %{ "comment" => nil, "examples" => [], "line_end" => 1410, "line_start" => 1395, "mappings" => [ %{ "comment" => nil, "key" => "info", "value" => "depositAddress" }, %{ "comment" => nil, "key" => "currency", "value" => "code" }, %{ "comment" => nil, "key" => "network", "value" => "network" }, %{ "comment" => nil, "key" => "address", "value" => "address" }, %{ "comment" => nil, "key" => "tag", "value" => "tag" } ], "name" => "parseDepositAddress", "signature" => "parseDepositAddress (depositAddress, currency: Currency = undefined): DepositAddress", "source" => "parseDepositAddress (depositAddress, currency: Currency = undefined): DepositAddress {\n const address = this.safeString (depositAddress, 'address');\n const tag = this.safeString (depositAddress, 'destination_tag');\n const currencyId = this.safeString (depositAddress, 'currency_id');\n currency = this.safeCurrency (currencyId, currency);\n const code = currency['code'];\n const network = this.safeString (depositAddress, 'platform_id');\n this.checkAddress (address);\n return {\n 'info': depositAddress,\n 'currency': code,\n 'network': network,\n 'address': address,\n 'tag': tag,\n } as DepositAddress;\n }" }, %{ "comment" => nil, "examples" => [ "{\n \"id\": \"USDT\",\n \"display_name\": { \"ko-kr\": '테더', \"en-us\": \"Tether\" },\n \"show_in_ui\": true,\n \"platform\": [\n {\n \"id\": \"ETH\",\n \"priority\": \"1\",\n \"deposit\": true,\n \"withdrawal\": true,\n \"currency_id\": \"USDT\",\n \"precision\": \"6\",\n \"min_confirmation_count\": \"15\",\n \"require_destination_tag\": false,\n \"allow_withdrawal_destination_tag\": false,\n \"display_name\": [Object],\n \"min_deposit_amount\": \"0\",\n \"min_withdrawal_amount\": \"1\",\n \"withdrawal_fee\": [Array],\n \"deposit_fee\": {},\n \"suspended_reason\": '',\n \"deposit_suspended\": false,\n \"withdrawal_suspended\": false,\n \"platform_currency_display_name\": [Object]\n },\n ],\n \"internal_transfer\": { suspended_reason: null, suspended: false },\n \"stakeable\": false,\n \"unstakeable\": false,\n \"auto_stake\": false,\n \"auto_stake_amount\": \"0\"\n }" ], "line_end" => 1855, "line_start" => 1792, "mappings" => [ %{ "comment" => nil, "key" => "fee", "value" => "undefined" }, %{ "comment" => nil, "key" => "percentage", "value" => "undefined" } ], "name" => "parseDepositWithdrawFee", "signature" => "parseDepositWithdrawFee (fee, currency: Currency = undefined)", "source" => "parseDepositWithdrawFee (fee, currency: Currency = undefined) {\n //\n // {\n // \"id\": \"USDT\",\n // \"display_name\": { \"ko-kr\": '테더', \"en-us\": \"Tether\" },\n // \"show_in_ui\": true,\n // \"platform\": [\n // {\n // \"id\": \"ETH\",\n // \"priority\": \"1\",\n // \"deposit\": true,\n // \"withdrawal\": true,\n // \"currency_id\": \"USDT\",\n // \"precision\": \"6\",\n // \"min_confirmation_count\": \"15\",\n // \"require_destination_tag\": false,\n // \"allow_withdrawal_destination_tag\": false,\n // \"display_name\": [Object],\n // \"min_deposit_amount\": \"0\",\n // \"min_withdrawal_amount\": \"1\",\n // \"withdrawal_fee\": [Array],\n // \"deposit_fee\": {},\n // \"suspended_reason\": '',\n // \"deposit_suspended\": false,\n // \"withdrawal_suspended\": false,\n // \"platform_currency_display_name\": [Object]\n // },\n // ],\n // \"internal_transfer\": { suspended_reason: null, suspended: false },\n // \"stakeable\": false,\n // \"unstakeable\": false,\n // \"auto_stake\": false,\n // \"auto_stake_amount\": \"0\"\n // }\n //\n const depositWithdrawFee = this.depositWithdrawFee ({});\n const platforms = this.safeValue (fee, 'platform', []);\n const depositResult: Dict = {\n 'fee': undefined,\n 'percentage': undefined,\n };\n for (let i = 0; i < platforms.length; i++) {\n const network = platforms[i];\n const networkId = this.safeString (network, 'id');\n const networkCode = this.networkIdToCode (networkId, currency['code']);\n const withdrawalFees = this.safeValue (network, 'withdrawal_fee', {});\n const withdrawFee = this.safeNumber (withdrawalFees[0], 'amount');\n if (withdrawalFees.length) {\n const withdrawResult: Dict = {\n 'fee': withdrawFee,\n 'percentage': (withdrawFee !== undefined) ? false : undefined,\n };\n if (i === 0) {\n depositWithdrawFee['withdraw'] = withdrawResult;\n }\n depositWithdrawFee['networks'][networkCode] = {\n 'withdraw': withdrawResult,\n 'deposit': depositResult,\n };\n }\n }\n depositWithdrawFee['info'] = fee;\n return depositWithdrawFee;\n }" }, %{ "comment" => nil, "examples" => [], "line_end" => 442, "line_start" => 377, "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" => "active" }, %{ "comment" => nil, "key" => "contract", "value" => "false" }, %{ "comment" => nil, "key" => "linear", "value" => "undefined" }, %{ "comment" => nil, "key" => "inverse", "value" => "undefined" }, %{ "comment" => nil, "key" => "taker", "value" => "this.parseNumber (taker)" }, %{ "comment" => nil, "key" => "maker", "value" => "this.parseNumber (maker)" }, %{ "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" => nil, "key" => "precision", "value" => "{\n 'amount': this.parseNumber (this.parsePrecision (this.safeString (market, 'quantity_precision'))),\n 'price': this.safeNumber (market, 'price_increment'),\n 'cost': this.parseNumber (this.parsePrecision (this.safeString (market, 'cost_precision'))),\n }" }, %{ "comment" => nil, "key" => "limits", "value" => "{\n 'leverage': {\n 'min': undefined,\n 'max': undefined,\n },\n 'amount': {\n 'min': this.safeNumber (market, 'min_quantity'),\n 'max': this.safeNumber (market, 'max_quantity'),\n },\n 'price': {\n 'min': this.safeNumber (market, 'min_price'),\n 'max': this.safeNumber (market, 'max_price'),\n },\n 'cost': {\n 'min': this.safeNumber (market, 'min_cost'),\n 'max': this.safeNumber (market, 'max_cost'),\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, 'min_quantity'),\n 'max': this.safeNumber (market, 'max_quantity'),\n }" }, %{ "comment" => nil, "key" => "price", "value" => "{\n 'min': this.safeNumber (market, 'min_price'),\n 'max': this.safeNumber (market, 'max_price'),\n }" }, %{ "comment" => nil, "key" => "cost", "value" => "{\n 'min': this.safeNumber (market, 'min_cost'),\n 'max': this.safeNumber (market, 'max_cost'),\n }" }, %{ "comment" => nil, "key" => "min", "value" => "this.safeNumber (market, 'min_price')" }, %{ "comment" => nil, "key" => "max", "value" => "this.safeNumber (market, 'max_price')" }, %{ "comment" => nil, "key" => "min", "value" => "this.safeNumber (market, 'min_cost')" }, %{ "comment" => nil, "key" => "max", "value" => "this.safeNumber (market, 'max_cost')" } ], "name" => "parseMarket", "signature" => "parseMarket (market: Dict): Market", "source" => "parseMarket (market: Dict): Market {\n const id = this.safeString (market, 'id');\n const baseId = this.safeString (market, 'base_currency_id');\n const quoteId = this.safeString (market, 'quote_currency_id');\n const base = this.safeCurrencyCode (baseId);\n const quote = this.safeCurrencyCode (quoteId);\n const closed = this.safeBool (market, 'closed', false);\n const showInUI = this.safeBool (market, 'show_in_ui', true);\n const active = !closed && showInUI;\n const takerFeeRate = this.safeString (market, 'taker_fee_rate');\n const taker = Precise.stringDiv (takerFeeRate, '100');\n const makerFeeRate = this.safeString (market, 'maker_fee_rate');\n const maker = Precise.stringDiv (makerFeeRate, '100');\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': active,\n 'contract': false,\n 'linear': undefined,\n 'inverse': undefined,\n 'taker': this.parseNumber (taker),\n 'maker': this.parseNumber (maker),\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, 'quantity_precision'))),\n 'price': this.safeNumber (market, 'price_increment'),\n 'cost': this.parseNumber (this.parsePrecision (this.safeString (market, 'cost_precision'))),\n },\n 'limits': {\n 'leverage': {\n 'min': undefined,\n 'max': undefined,\n },\n 'amount': {\n 'min': this.safeNumber (market, 'min_quantity'),\n 'max': this.safeNumber (market, 'max_quantity'),\n },\n 'price': {\n 'min': this.safeNumber (market, 'min_price'),\n 'max': this.safeNumber (market, 'max_price'),\n },\n 'cost': {\n 'min': this.safeNumber (market, 'min_cost'),\n 'max': this.safeNumber (market, 'max_cost'),\n },\n },\n 'created': undefined,\n 'info': market,\n };\n }" }, %{ "comment" => nil, "examples" => [ "{\n \"market_id\":\"ETH-BTC\",\n \"open\":\"0.02811\",\n \"close\":\"0.02811\",\n \"low\":\"0.02811\",\n \"high\":\"0.02811\",\n \"base_volume\":\"0.0005\",\n \"quote_volume\":\"0.000014055\",\n \"start_time\":\"2018-11-30T18:19:00.000Z\",\n \"end_time\":\"2018-11-30T18:20:00.000Z\"\n }" ], "line_end" => 1104, "line_start" => 1082, "mappings" => [], "name" => "parseOHLCV", "signature" => "parseOHLCV (ohlcv, market: Market = undefined): OHLCV", "source" => "parseOHLCV (ohlcv, market: Market = undefined): OHLCV {\n //\n // {\n // \"market_id\":\"ETH-BTC\",\n // \"open\":\"0.02811\",\n // \"close\":\"0.02811\",\n // \"low\":\"0.02811\",\n // \"high\":\"0.02811\",\n // \"base_volume\":\"0.0005\",\n // \"quote_volume\":\"0.000014055\",\n // \"start_time\":\"2018-11-30T18:19:00.000Z\",\n // \"end_time\":\"2018-11-30T18:20:00.000Z\"\n // }\n //\n return [\n this.parse8601 (this.safeString (ohlcv, 'start_time')),\n this.safeNumber (ohlcv, 'open'),\n this.safeNumber (ohlcv, 'high'),\n this.safeNumber (ohlcv, 'low'),\n this.safeNumber (ohlcv, 'close'),\n this.safeNumber (ohlcv, 'base_volume'),\n ];\n }" }, %{ "comment" => nil, "examples" => [ "{\n id,\n user_id,\n market_id,\n \"type\": \"orderType\",\n \"side\": \"side\",\n quantity,\n limit_price,\n \"time_in_force\": \"timeInForce\",\n filled_cost,\n filled_quantity,\n open_quantity,\n cancelled_quantity,\n \"status\": \"orderStatus\",\n \"time\": \"date\",\n client_order_id,\n }" ], "line_end" => 1269, "line_start" => 1206, "mappings" => [ %{ "comment" => nil, "key" => "id", "value" => "id" }, %{ "comment" => nil, "key" => "info", "value" => "order" }, %{ "comment" => nil, "key" => "clientOrderId", "value" => "clientOrderId" }, %{ "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" => "timeInForce" }, %{ "comment" => nil, "key" => "side", "value" => "side" }, %{ "comment" => nil, "key" => "status", "value" => "status" }, %{ "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" => "remaining", "value" => "remaining" }, %{ "comment" => nil, "key" => "average", "value" => "undefined" }, %{ "comment" => nil, "key" => "cost", "value" => "cost" }, %{ "comment" => nil, "key" => "fee", "value" => "undefined" }, %{ "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 // {\n // id,\n // user_id,\n // market_id,\n // \"type\": \"orderType\",\n // \"side\": \"side\",\n // quantity,\n // limit_price,\n // \"time_in_force\": \"timeInForce\",\n // filled_cost,\n // filled_quantity,\n // open_quantity,\n // cancelled_quantity,\n // \"status\": \"orderStatus\",\n // \"time\": \"date\",\n // client_order_id,\n // }\n //\n const status = this.parseOrderStatus (this.safeString (order, 'status'));\n const id = this.safeString (order, 'id');\n const type = this.safeString (order, 'type');\n const side = this.safeString (order, 'side');\n const marketId = this.safeString (order, 'market_id');\n const symbol = this.safeSymbol (marketId, market, '-');\n const timestamp = this.parse8601 (this.safeString (order, 'time'));\n let price = this.safeString (order, 'limit_price');\n const filled = this.safeString (order, 'filled_quantity');\n let remaining = this.safeString (order, 'open_quantity');\n const canceledAmount = this.safeString (order, 'cancelled_quantity');\n if (canceledAmount !== undefined) {\n remaining = Precise.stringAdd (remaining, canceledAmount);\n }\n const amount = this.safeString (order, 'quantity', Precise.stringAdd (filled, remaining));\n const cost = this.safeString2 (order, 'filled_cost', 'cost');\n if (type === 'market') {\n price = undefined;\n }\n const clientOrderId = this.safeString (order, 'client_order_id');\n const timeInForce = this.safeStringUpper (order, 'time_in_force');\n return this.safeOrder ({\n 'id': id,\n 'info': order,\n 'clientOrderId': clientOrderId,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'lastTradeTimestamp': undefined,\n 'symbol': symbol,\n 'type': type,\n 'timeInForce': timeInForce,\n 'side': side,\n 'status': status,\n 'price': price,\n 'triggerPrice': undefined,\n 'amount': amount,\n 'filled': filled,\n 'remaining': remaining,\n 'average': undefined,\n 'cost': cost,\n 'fee': undefined,\n 'trades': undefined,\n }, market);\n }" }, %{ "comment" => nil, "examples" => [], "line_end" => 1204, "line_start" => 1197, "mappings" => [], "name" => "parseOrderStatus", "signature" => "parseOrderStatus (status: Str)", "source" => "parseOrderStatus (status: Str) {\n const statuses: Dict = {\n 'open': 'open',\n 'cancelled': 'canceled',\n 'filled': 'closed',\n };\n return this.safeString (statuses, status, status);\n }" }, %{ "comment" => nil, "examples" => [ "{\n \"last\":\"0.022902\",\n \"low\":\"0.021693\",\n \"high\":\"0.024093\",\n \"change\":\"-0.000047\",\n \"base_volume\":\"15681.986\",\n \"quote_volume\":\"360.514403624\",\n \"market_id\":\"ETH-BTC\",\n \"time\":\"2020-04-12T18:43:38.000Z\"\n }" ], "line_end" => 781, "line_start" => 739, "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, 'high')" }, %{ "comment" => nil, "key" => "low", "value" => "this.safeString (ticker, 'low')" }, %{ "comment" => nil, "key" => "bid", "value" => "undefined" }, %{ "comment" => nil, "key" => "bidVolume", "value" => "undefined" }, %{ "comment" => nil, "key" => "ask", "value" => "undefined" }, %{ "comment" => nil, "key" => "askVolume", "value" => "undefined" }, %{ "comment" => nil, "key" => "vwap", "value" => "undefined" }, %{ "comment" => nil, "key" => "open", "value" => "undefined" }, %{ "comment" => nil, "key" => "close", "value" => "close" }, %{ "comment" => nil, "key" => "last", "value" => "close" }, %{ "comment" => nil, "key" => "previousClose", "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 // {\n // \"last\":\"0.022902\",\n // \"low\":\"0.021693\",\n // \"high\":\"0.024093\",\n // \"change\":\"-0.000047\",\n // \"base_volume\":\"15681.986\",\n // \"quote_volume\":\"360.514403624\",\n // \"market_id\":\"ETH-BTC\",\n // \"time\":\"2020-04-12T18:43:38.000Z\"\n // }\n //\n const timestamp = this.parse8601 (this.safeString (ticker, 'time'));\n const marketId = this.safeString (ticker, 'market_id');\n const symbol = this.safeSymbol (marketId, market, '-');\n const close = this.safeString (ticker, 'last');\n const change = this.safeString (ticker, 'change');\n const baseVolume = this.safeString (ticker, 'base_volume');\n const quoteVolume = this.safeString (ticker, 'quote_volume');\n return this.safeTicker ({\n 'symbol': symbol,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'high': this.safeString (ticker, 'high'),\n 'low': this.safeString (ticker, 'low'),\n 'bid': undefined,\n 'bidVolume': undefined,\n 'ask': undefined,\n 'askVolume': undefined,\n 'vwap': undefined,\n 'open': undefined,\n 'close': close,\n 'last': close,\n 'previousClose': undefined, // previous day close\n 'change': change,\n 'percentage': undefined,\n 'average': undefined,\n 'baseVolume': baseVolume,\n 'quoteVolume': quoteVolume,\n 'info': ticker,\n }, market);\n }" }, %{ "comment" => nil, "examples" => [ "{\n \"id\":\"ETH-BTC:3331886\",\n \"price\":\"0.022981\",\n \"quantity\":\"12.337\",\n \"time\":\"2020-04-12T20:55:42.371Z\",\n \"side\":\"sell\",\n \"tick_direction\":\"down\"\n }", "{\n \"id\":\"BTC-USDT:183566\",\n \"order_id\":\"17209376\",\n \"side\":\"sell\",\n \"fee_amount\":\"0.657396569175\",\n \"fee_currency_id\":\"USDT\",\n \"status\":\"settled\",\n \"price\":\"6573.96569175\",\n \"quantity\":\"0.1\",\n \"cost\":\"657.396569175\",\n \"time\":\"2018-08-10T06:06:46.000Z\",\n \"market_id\":\"BTC-USDT\"\n }" ], "line_end" => 959, "line_start" => 892, "mappings" => [ %{ "comment" => nil, "key" => "id", "value" => "id" }, %{ "comment" => nil, "key" => "info", "value" => "trade" }, %{ "comment" => nil, "key" => "timestamp", "value" => "timestamp" }, %{ "comment" => nil, "key" => "datetime", "value" => "this.iso8601 (timestamp)" }, %{ "comment" => nil, "key" => "symbol", "value" => "symbol" }, %{ "comment" => nil, "key" => "order", "value" => "orderId" }, %{ "comment" => nil, "key" => "type", "value" => "undefined" }, %{ "comment" => nil, "key" => "side", "value" => "side" }, %{ "comment" => nil, "key" => "takerOrMaker", "value" => "undefined" }, %{ "comment" => nil, "key" => "price", "value" => "priceString" }, %{ "comment" => nil, "key" => "amount", "value" => "amountString" }, %{ "comment" => nil, "key" => "cost", "value" => "undefined" }, %{ "comment" => nil, "key" => "fee", "value" => "fee" }, %{ "comment" => nil, "key" => "cost", "value" => "feeCostString" }, %{ "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 // fetchTrades (public)\n //\n // {\n // \"id\":\"ETH-BTC:3331886\",\n // \"price\":\"0.022981\",\n // \"quantity\":\"12.337\",\n // \"time\":\"2020-04-12T20:55:42.371Z\",\n // \"side\":\"sell\",\n // \"tick_direction\":\"down\"\n // }\n //\n // fetchMyTrades (private)\n //\n // {\n // \"id\":\"BTC-USDT:183566\",\n // \"order_id\":\"17209376\",\n // \"side\":\"sell\",\n // \"fee_amount\":\"0.657396569175\",\n // \"fee_currency_id\":\"USDT\",\n // \"status\":\"settled\",\n // \"price\":\"6573.96569175\",\n // \"quantity\":\"0.1\",\n // \"cost\":\"657.396569175\",\n // \"time\":\"2018-08-10T06:06:46.000Z\",\n // \"market_id\":\"BTC-USDT\"\n // }\n //\n const timestamp = this.parse8601 (this.safeString (trade, 'time'));\n const id = this.safeString (trade, 'id');\n let marketId: Str = undefined;\n if (id !== undefined) {\n const parts = id.split (':');\n marketId = this.safeString (parts, 0);\n }\n marketId = this.safeString (trade, 'market_id', marketId);\n const symbol = this.safeSymbol (marketId, market, '-');\n const side = this.safeString (trade, 'side');\n const priceString = this.safeString (trade, 'price');\n const amountString = this.safeString (trade, 'quantity');\n const orderId = this.safeString (trade, 'order_id');\n const feeCostString = this.safeString (trade, 'fee_amount');\n let fee = undefined;\n if (feeCostString !== undefined) {\n const feeCurrencyId = this.safeString (trade, 'fee_currency_id');\n const feeCurrencyCode = this.safeCurrencyCode (feeCurrencyId);\n fee = {\n 'cost': feeCostString,\n 'currency': feeCurrencyCode,\n };\n }\n return this.safeTrade ({\n 'id': id,\n 'info': trade,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'symbol': symbol,\n 'order': orderId,\n 'type': undefined,\n 'side': side,\n 'takerOrMaker': undefined,\n 'price': priceString,\n 'amount': amountString,\n 'cost': undefined,\n 'fee': fee,\n }, market);\n }" }, %{ "comment" => nil, "examples" => [ "{\n \"id\": \"01211d4b-0e68-41d6-97cb-298bfe2cab67\",\n \"type\": \"deposit\",\n \"status\": \"done\",\n \"amount\": \"0.01\",\n \"address\": \"0x9e7430fc0bdd14745bd00a1b92ed25133a7c765f\",\n \"time\": \"2023-06-14T12:03:11.000Z\",\n \"hash\": \"0x0ff5bedc9e378f9529acc6b9840fa8c2ef00fd0275e0bac7fa0589a9b5d1712e\",\n \"currency_id\": \"ETH\",\n \"confirmations\":0,\n \"fee\": \"0\",\n \"destination_tag\": null,\n \"platform_id\": \"ETH\",\n \"fee_currency_id\": \"ETH\",\n \"payment_service_name\":null,\n \"payment_service_display_name\":null,\n \"crypto\":null\n }" ], "line_end" => 1705, "line_start" => 1642, "mappings" => [ %{ "comment" => nil, "key" => "id", "value" => "id" }, %{ "comment" => nil, "key" => "currency", "value" => "code" }, %{ "comment" => nil, "key" => "amount", "value" => "amount" }, %{ "comment" => nil, "key" => "network", "value" => "networkCode" }, %{ "comment" => nil, "key" => "addressFrom", "value" => "undefined" }, %{ "comment" => nil, "key" => "address", "value" => "address" }, %{ "comment" => nil, "key" => "addressTo", "value" => "address" }, %{ "comment" => nil, "key" => "tagFrom", "value" => "undefined" }, %{ "comment" => nil, "key" => "tag", "value" => "tag" }, %{ "comment" => nil, "key" => "tagTo", "value" => "tag" }, %{ "comment" => nil, "key" => "status", "value" => "status" }, %{ "comment" => nil, "key" => "type", "value" => "type" }, %{ "comment" => nil, "key" => "txid", "value" => "txid" }, %{ "comment" => nil, "key" => "timestamp", "value" => "timestamp" }, %{ "comment" => nil, "key" => "datetime", "value" => "this.iso8601 (timestamp)" }, %{ "comment" => nil, "key" => "updated", "value" => "undefined" }, %{ "comment" => nil, "key" => "internal", "value" => "undefined" }, %{ "comment" => nil, "key" => "comment", "value" => "undefined" }, %{ "comment" => nil, "key" => "fee", "value" => "fee" }, %{ "comment" => nil, "key" => "info", "value" => "transaction" } ], "name" => "parseTransaction", "signature" => "parseTransaction (transaction: Dict, currency: Currency = undefined): Transaction", "source" => "parseTransaction (transaction: Dict, currency: Currency = undefined): Transaction {\n //\n // {\n // \"id\": \"01211d4b-0e68-41d6-97cb-298bfe2cab67\",\n // \"type\": \"deposit\",\n // \"status\": \"done\",\n // \"amount\": \"0.01\",\n // \"address\": \"0x9e7430fc0bdd14745bd00a1b92ed25133a7c765f\",\n // \"time\": \"2023-06-14T12:03:11.000Z\",\n // \"hash\": \"0x0ff5bedc9e378f9529acc6b9840fa8c2ef00fd0275e0bac7fa0589a9b5d1712e\",\n // \"currency_id\": \"ETH\",\n // \"confirmations\":0,\n // \"fee\": \"0\",\n // \"destination_tag\": null,\n // \"platform_id\": \"ETH\",\n // \"fee_currency_id\": \"ETH\",\n // \"payment_service_name\":null,\n // \"payment_service_display_name\":null,\n // \"crypto\":null\n // }\n //\n const id = this.safeString (transaction, 'id');\n const networkId = this.safeString (transaction, 'platform_id');\n const networkCode = this.networkIdToCode (networkId);\n const amount = this.safeNumber (transaction, 'amount');\n const address = this.safeString (transaction, 'address');\n const tag = this.safeString (transaction, 'destination_tag');\n const txid = this.safeString (transaction, 'hash');\n const timestamp = this.parse8601 (this.safeString (transaction, 'time'));\n const type = this.safeString (transaction, 'type');\n const currencyId = this.safeString (transaction, 'currency_id');\n const code = this.safeCurrencyCode (currencyId);\n const status = this.parseTransactionStatus (this.safeString (transaction, 'status'));\n const feeCostString = this.safeString (transaction, 'fee');\n let fee = undefined;\n if (feeCostString !== undefined && feeCostString !== '0') {\n fee = {\n 'currency': code,\n 'cost': this.parseNumber (feeCostString),\n };\n }\n return {\n 'id': id,\n 'currency': code,\n 'amount': amount,\n 'network': networkCode,\n 'addressFrom': undefined,\n 'address': address,\n 'addressTo': address,\n 'tagFrom': undefined,\n 'tag': tag,\n 'tagTo': tag,\n 'status': status,\n 'type': type,\n 'txid': txid,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'updated': undefined,\n 'internal': undefined,\n 'comment': undefined,\n 'fee': fee,\n 'info': transaction,\n } as Transaction;\n }" }, %{ "comment" => nil, "examples" => [], "line_end" => 1719, "line_start" => 1707, "mappings" => [], "name" => "parseTransactionStatus", "signature" => "parseTransactionStatus (status: Str)", "source" => "parseTransactionStatus (status: Str) {\n const statuses: Dict = {\n 'requested': 'pending',\n 'pending': 'pending',\n 'confirming': 'pending',\n 'confirmed': 'pending',\n 'applying': 'pending',\n 'done': 'ok',\n 'cancelled': 'canceled',\n 'cancelling': 'canceled',\n };\n return this.safeString (statuses, status, status);\n }" } ], path_prefix: "/v1/", pro: true, quote_json_numbers: nil, rate_limits: %{ interval_ms: 50, period: 1000, requests: 20, rolling_window_size: 60000 }, raw_endpoints: %{ private: [ %{ auth: false, cost: 1, method: :get, path: "/balance" }, %{ auth: false, cost: 1, method: :get, path: "/deposit_address" }, %{ auth: false, cost: 1, method: :get, path: "/open_order" }, %{ auth: false, cost: 1, method: :get, path: "/order" }, %{ auth: false, cost: 1, method: :get, path: "/order_history" }, %{ auth: false, cost: 1, method: :get, path: "/trade_history" }, %{ auth: false, cost: 1, method: :get, path: "/transfer/payment" }, %{ auth: false, cost: 1, method: :post, path: "/cancel_order" }, %{ auth: false, cost: 2, method: :post, path: "/new_order" }, %{ auth: false, cost: 2, method: :post, path: "/withdrawal" } ], public: [ %{ auth: false, cost: 1, method: :get, path: "/candle" }, %{ auth: false, cost: 1, method: :get, path: "/currency" }, %{ auth: false, cost: 1, method: :get, path: "/currency_with_platform" }, %{ auth: false, cost: 1, method: :get, path: "/market" }, %{ auth: false, cost: 1, method: :get, path: "/order_book" }, %{ auth: false, cost: 1, method: :get, path: "/ticker" }, %{ auth: false, cost: 1, method: :get, path: "/time" }, %{ auth: false, cost: 1, method: :get, path: "/trade" } ] }, required_credentials: %{ api_key: true, password: false, secret: true, uid: false }, requires_eddsa: false, response_error: nil, signing: %{ confidence: :medium, pattern: :hmac_sha256_headers }, spec_format_version: 1, status: %{ "eta" => nil, "status" => "ok", "updated" => nil, "url" => nil }, symbol_format: nil, symbol_formats: %{ precision_mode: 4, sample_limits: %{ "amount" => %{ "max" => 10000000000000000, "min" => 0.0001 }, "cost" => %{ "max" => 10000000000000000, "min" => 1 }, "price" => %{ "max" => 10000000000000000, "min" => 0.0001 } }, sample_precision: %{ "amount" => 0.0001, "price" => 0.0001 }, spot: %{ base: "USDQ", base_id: "USDQ", case: :upper, contract: false, id: "USDQ-USDC", limits: %{ "amount" => %{ "max" => 10000000000000000, "min" => 0.0001 }, "cost" => %{ "max" => 10000000000000000, "min" => 1 }, "leverage" => %{}, "price" => %{ "max" => 10000000000000000, "min" => 0.0001 } }, maker: 0.002, precision: %{ "amount" => 0.0001, "cost" => 1.0e-6, "price" => 0.0001 }, quote: "USDC", quote_id: "USDC", separator: "-", symbol: "USDQ/USDC", taker: 0.002 } }, symbol_patterns: %{ spot: %{ case: :upper, component_order: nil, date_format: nil, pattern: :dash_upper, separator: "-", suffix: nil } }, timeframes: %{ "10m" => "10m", "12h" => "12h", "15m" => "15m", "1M" => "1M", "1d" => "1D", "1h" => "1h", "1m" => "1m", "1w" => "1W", "30m" => "30m", "3m" => "3m", "4h" => "4h", "5m" => "5m", "6h" => "6h" }, url_strategy: %{ detected_from: "sign_method", pattern: :version_slash, prefix: "/v1/" }, urls: %{ api: "https://api.probit.com/api/exchange", doc: [ "https://docs-en.probit.com", "https://docs-ko.probit.com" ], other: nil, sandbox: nil, www: "https://www.probit.com" }, version: "v1", ws: %{ channel_templates: %{ watch_balance: %{ market_id_format: :native, params: [], pattern: :type_topic, separator: ":" }, watch_my_trades: %{ market_id_format: :native, params: [ %{ "default" => nil, "name" => "limit" } ], pattern: :type_topic, separator: ":" }, watch_order_book: %{ channel_name: "order_books", market_id_format: :native, params: [ %{ "default" => nil, "name" => "limit" } ], pattern: :type_topic, separator: ":" }, watch_orders: %{ market_id_format: :native, params: [ %{ "default" => nil, "name" => "limit" } ], pattern: :type_topic, separator: ":" }, watch_ticker: %{ market_id_format: :native, params: [], pattern: :type_topic, separator: ":" }, watch_trades: %{ market_id_format: :native, params: [ %{ "default" => nil, "name" => "limit" } ], pattern: :type_topic, separator: ":" } }, has: %{ watch_balance: true, watch_bids_asks: nil, watch_liquidations: nil, watch_liquidations_for_symbols: nil, watch_my_liquidations: nil, watch_my_liquidations_for_symbols: nil, watch_my_trades: true, watch_ohlcv: false, watch_ohlcv_for_symbols: nil, watch_order_book: true, watch_order_book_for_symbols: nil, watch_orders: true, watch_orders_for_symbols: nil, watch_position: nil, watch_positions: nil, watch_status: nil, watch_ticker: true, watch_tickers: false, watch_trades: true, watch_trades_for_symbols: false }, message_patterns: [ %{ format: :type, keys: [ "type" ], kind_field: "type", kind_value: "authorization", sources: [ :send, :watch ] }, %{ args_field: "channel", format: :type, keys: [ "channel", "filter", "interval", "market_id", "type" ], kind_field: "type", kind_value: "subscribe", sources: [ :send, :watch ] }, %{ args_field: "channel", format: :type, keys: [ "channel", "type" ], kind_field: "type", kind_value: "subscribe", sources: [ :send, :watch ] } ], options: %{ "watchOrderBook" => %{ "filter" => "order_books_l2", "interval" => 100 } }, subscription_config: %{ args_field: "topic", args_format: :string, market_id_format: :native, op_field: "type", separator: ":" }, subscription_pattern: :type_subscribe, test_urls: "wss://demo-api.probit.com/api/exchange/v1/ws", urls: "wss://api.probit.com/api/exchange/v1/ws", watch_methods: [ "watchBalance", "watchMyTrades", "watchOrderBook", "watchOrders", "watchTicker", "watchTrades" ] } }