Packages

Elixir client library for cryptocurrency exchanges — generated from CCXT specs via compile-time macros.

Current section

Files

Jump to
ccxt_client priv specs extracted yobit.exs
Raw

priv/specs/extracted/yobit.exs

# YoBit Exchange Specification
#
# Auto-generated by: mix ccxt.extract yobit
# CCXT version: 4.5.34
# Spec format version: 1
#
# Review before use:
# - signing: Detected from sign() method, verify with testnet
# - endpoints: Raw paths extracted, map to unified API as needed
# - exceptions: Extracted (exact, broad, HTTP status codes)
# - features/options: Extracted from describe()
# - classification: Set to :supported initially, promote after validation
#
%{
api_param_requirements: nil,
certified: false,
classification: :supported,
comment: nil,
countries: [
"RU"
],
currencies: %{},
currency_aliases: %{
"AIR" => "AirCoin",
"ANI" => "ANICoin",
"ANT" => "AntsCoin",
"ASN" => "Ascension",
"AST" => "Astral",
"ATM" => "Autumncoin",
"ATMCHA" => "ATM",
"AUR" => "AuroraCoin",
"BAB" => "Babel",
"BAN" => "BANcoin",
"BCC" => "BCH",
"BCHN" => "BSV",
"BCHSV" => "BSV",
"BCS" => "BitcoinStake",
"BITS" => "Bitstar",
"BLN" => "Bulleon",
"BNS" => "Benefit Bonus Coin",
"BON" => "BONES",
"BOT" => "BOTcoin",
"BPC" => "BitcoinPremium",
"BST" => "BitStone",
"BTS" => "Bitshares2",
"CAT" => "BitClave",
"CBC" => "CryptoBossCoin",
"CMT" => "CometCoin",
"COIN" => "Coin.com",
"COV" => "Coven Coin",
"COVX" => "COV",
"CPC" => "Capricoin",
"CREDIT" => "Creditbit",
"CS" => "CryptoSpots",
"DCT" => "Discount",
"DFT" => "DraftCoin",
"DGD" => "DarkGoldCoin",
"DIRT" => "DIRTY",
"DROP" => "FaucetCoin",
"DSH" => "DASH",
"EGC" => "EverGreenCoin",
"EGG" => "EggCoin",
"EKO" => "EkoCoin",
"ENTER" => "ENTRC",
"EPC" => "ExperienceCoin",
"ESC" => "EdwardSnowden",
"EUROPE" => "EUROP",
"EXT" => "LifeExtension",
"FUND" => "FUNDChains",
"FUNK" => "FUNKCoin",
"FX" => "FCoin",
"GCC" => "GlobalCryptocurrency",
"GEN" => "Genstake",
"GENE" => "Genesiscoin",
"GMR" => "Gimmer",
"GOLD" => "GoldMint",
"GOT" => "Giotto Coin",
"GSX" => "GlowShares",
"GT" => "GTcoin",
"HTML5" => "HTML",
"HYPERX" => "HYPER",
"ICN" => "iCoin",
"INSANE" => "INSN",
"JNT" => "JointCoin",
"JPC" => "JupiterCoin",
"JWL" => "Jewels",
"KNC" => "KingN Coin",
"LBTCX" => "LiteBitcoin",
"LIZI" => "LiZi",
"LOC" => "LocoCoin",
"LOCX" => "LOC",
"LUN" => "LunarCoin",
"LUNA" => "Luna Coin",
"LUNYR" => "LUN",
"MASK" => "Yobit MASK",
"MDT" => "Midnight",
"MEME" => "Memez Token",
"MIS" => "MIScoin",
"MM" => "MasterMint",
"NAV" => "NavajoCoin",
"NBT" => "NiceBytes",
"OMG" => "OMGame",
"ONX" => "Onix",
"PAC" => "$PAC",
"PAY" => "EPAY",
"PIVX" => "Darknet",
"PLAY" => "PlayCoin",
"PLC" => "Platin Coin",
"PURE" => "PurePOS",
"PUTIN" => "PutinCoin",
"RAI" => "RaiderCoin",
"RCN" => "RCoin",
"REP" => "Republicoin",
"RUR" => "RUB",
"SBTC" => "Super Bitcoin",
"SMC" => "SmartCoin",
"SOLO" => "SoloCoin",
"SOUL" => "SoulCoin",
"SPACE" => "Spacecoin",
"STAR" => "StarCoin",
"STK" => "StakeCoin",
"SUB" => "Subscriptio",
"SUPER" => "SuperCoin",
"TNS" => "Transcodium",
"TTC" => "TittieCoin",
"UNI" => "Universe",
"UST" => "Uservice",
"VOL" => "VolumeCoin",
"XBT" => "BTC",
"XIN" => "XINCoin",
"XMT" => "SummitCoin",
"XRA" => "Ratecoin"
},
dex: false,
enable_rate_limit: true,
endpoint_extraction_stats: %{
"capturedMethods" => 18,
"coveragePercent" => 100,
"enabledMethods" => 19,
"excluded" => [
%{
"method" => "editOrder",
"reason" => "emulated (returns cached data, no HTTP call)"
}
],
"excludedMethods" => 1,
"extractableMethods" => 18,
"failures" => []
},
endpoints: [
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :post,
name: :cancel_order,
param_mappings: %{
"id" => "order_id"
},
params: [
:id,
:symbol
],
path: "/CancelOrder",
response_transformer: {:extract_path, ["return"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"need_new" => 1
},
market_type: :spot,
method: :post,
name: :create_deposit_address,
param_mappings: %{
"code" => "coinName"
},
params: [
:code
],
path: "/GetDepositAddress",
response_transformer: {:extract_path, ["address"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :post,
name: :create_limit_order,
param_mappings: %{
"price" => "rate",
"side" => "type",
"symbol" => "pair"
},
params: [
:symbol,
:side,
:amount,
:price
],
path: "/Trade",
response_transformer: {:extract_path, ["return"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :post,
name: :create_order,
param_mappings: %{
"price" => "rate",
"side" => "type",
"symbol" => "pair"
},
params: [
:symbol,
:type,
:side,
:amount,
:price
],
path: "/Trade",
response_transformer: {:extract_path, ["return"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :post,
name: :fetch_balance,
param_mappings: %{},
params: [],
path: "/getInfo",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"need_new" => 0
},
market_type: :spot,
method: :post,
name: :fetch_deposit_address,
param_mappings: %{
"code" => "coinName"
},
params: [
:code
],
path: "/GetDepositAddress",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_l2_order_book,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:limit
],
path: "/depth/{pair}",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_markets,
param_mappings: %{},
params: [],
path: "/info",
response_transformer: {:extract_path, ["pairs"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :post,
name: :fetch_my_trades,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:since,
:limit
],
path: "/TradeHistory",
response_transformer: {:extract_path, ["return"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :post,
name: :fetch_open_orders,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:since,
:limit
],
path: "/ActiveOrders",
response_transformer: {:extract_path, ["return"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :post,
name: :fetch_order,
param_mappings: %{
"id" => "order_id"
},
params: [
:id,
:symbol
],
path: "/OrderInfo",
response_transformer: {:extract_path_unwrap, ["return"]},
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_order_book,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:limit
],
path: "/depth/{pair}",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
default_params: %{
"pair" => "BTCUSDT"
},
market_type: :spot,
method: :get,
name: :fetch_order_books,
param_mappings: %{},
params: [
:symbols,
:limit
],
path: "/depth/{pair}",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_ticker,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol
],
path: "/ticker/{pair}",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
default_params: %{
"pair" => "BTCUSDT"
},
market_type: :spot,
method: :get,
name: :fetch_tickers,
param_mappings: %{},
params: [
:symbols
],
path: "/ticker/{pair}",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_trades,
param_mappings: %{
"symbol" => "pair"
},
params: [
:symbol,
:since,
:limit
],
path: "/trades/{pair}",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_trading_fees,
param_mappings: %{},
params: [],
path: "/info",
response_transformer: {:extract_path, ["pairs"]},
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :post,
name: :withdraw,
param_mappings: %{
"code" => "coinName"
},
params: [
:code,
:amount,
:address,
:tag
],
path: "/WithdrawCoinsToAddress",
source: :intercepted
}
],
error_code_details: %{
803 => %{
description: "\"Count could not be less than 0.001.\" (selling below minAmount)",
type: :invalid_order
},
804 => %{
description: "\"Count could not be more than 10000.\" (buying above maxAmount)",
type: :invalid_order
},
805 => %{
description: "\"price could not be less than X.\" (minPrice violation on buy & sell)",
type: :invalid_order
},
806 => %{
description: "\"price could not be more than X.\" (maxPrice violation on buy & sell)",
type: :invalid_order
},
807 => %{
description: "\"cost could not be less than X.\" (minCost violation on buy & sell)",
type: :invalid_order
},
831 => %{
description: "\"Not enougth X to create buy order.\" (buying with balance.quote < order.cost)",
type: :insufficient_balance
},
832 => %{
description: "\"Not enougth X to create sell order.\" (selling with balance.base < order.amount)",
type: :insufficient_balance
},
833 => %{
description: "\"Order with id X was not found.\" (cancelling non-existent, closed and cancelled order)",
type: :order_not_found
},
"Insufficient funds" => %{
description: nil,
type: :insufficient_balance
},
"Invalid pair name" => %{
description: "{\"success\":0,\"error\":\"Invalid pair name: btc_eth\"}",
type: :exchange_error
},
"Rate Limited" => %{
description: nil,
type: :rate_limited
},
"Requests too often" => %{
description: nil,
type: :rate_limited
},
"The given order has already been cancelled" => %{
description: nil,
type: :invalid_order
},
"The given order has already been closed and cannot be cancelled" => %{
description: nil,
type: :invalid_order
},
"Total order amount is less than minimal amount" => %{
description: nil,
type: :invalid_order
},
"Total transaction amount" => %{
description: "{ \"success\": 0, \"error\": \"Total transaction amount is less than minimal total: 0.00010000\"}",
type: :invalid_order
},
"api key dont have trade permission" => %{
description: nil,
type: :invalid_credentials
},
"data unavailable" => %{
description: nil,
type: :network_error
},
"external service unavailable" => %{
description: nil,
type: :network_error
},
"invalid api key" => %{
description: nil,
type: :invalid_credentials
},
"invalid key" => %{
description: nil,
type: :invalid_credentials
},
"invalid nonce" => %{
description: "{\"success\":0,\"error\":\"invalid nonce (has already been used)\"}'",
type: :invalid_credentials
},
"invalid order" => %{
description: nil,
type: :invalid_order
},
"invalid parameter" => %{
description: nil,
type: :invalid_order
},
"invalid sign" => %{
description: nil,
type: :invalid_credentials
},
"not available" => %{
description: nil,
type: :network_error
}
},
error_codes: %{
803 => :invalid_order,
804 => :invalid_order,
805 => :invalid_order,
806 => :invalid_order,
807 => :invalid_order,
831 => :insufficient_balance,
832 => :insufficient_balance,
833 => :order_not_found,
"Insufficient funds" => :insufficient_balance,
"Invalid pair name" => :exchange_error,
"Rate Limited" => :rate_limited,
"Requests too often" => :rate_limited,
"The given order has already been cancelled" => :invalid_order,
"The given order has already been closed and cannot be cancelled" => :invalid_order,
"Total order amount is less than minimal amount" => :invalid_order,
"Total transaction amount" => :invalid_order,
"api key dont have trade permission" => :invalid_credentials,
"data unavailable" => :network_error,
"external service unavailable" => :network_error,
"invalid api key" => :invalid_credentials,
"invalid key" => :invalid_credentials,
"invalid nonce" => :invalid_credentials,
"invalid order" => :invalid_order,
"invalid parameter" => :invalid_order,
"invalid sign" => :invalid_credentials,
"not available" => :network_error
},
exceptions: %{
broad: %{
"Insufficient funds" => :insufficient_funds,
"Invalid pair name" => :exchange_error,
"Rate Limited" => :rate_limit_exceeded,
"Requests too often" => :ddos_protection,
"The given order has already been cancelled" => :invalid_order,
"The given order has already been closed and cannot be cancelled" => :invalid_order,
"Total order amount is less than minimal amount" => :invalid_order,
"Total transaction amount" => :invalid_order,
"api key dont have trade permission" => :authentication_error,
"data unavailable" => :exchange_not_available,
"external service unavailable" => :exchange_not_available,
"invalid api key" => :authentication_error,
"invalid key" => :authentication_error,
"invalid nonce" => :invalid_nonce,
"invalid order" => :invalid_order,
"invalid parameter" => :invalid_order,
"invalid sign" => :authentication_error,
"not available" => :exchange_not_available
},
exact: %{
"803" => :invalid_order,
"804" => :invalid_order,
"805" => :invalid_order,
"806" => :invalid_order,
"807" => :invalid_order,
"831" => :insufficient_funds,
"832" => :insufficient_funds,
"833" => :order_not_found
}
},
exchange_options: %{
"defaultNetworkCodeReplacements" => %{
"BRC20" => %{
"BRC20" => "BTC"
},
"CRO" => %{
"CRC20" => "CRONOS"
},
"ETH" => %{
"ERC20" => "ETH"
},
"TRX" => %{
"TRC20" => "TRX"
}
},
"fetchOrdersRequiresSymbol" => true,
"maxUrlLength" => 2048,
"networks" => %{
"BSC" => "BEP20",
"ETH" => "ERC20",
"TRX" => "TRC20"
},
"networksById" => %{
"BEP20" => "BSC",
"ERC20" => "ETH",
"TRC20" => "TRX"
}
},
extended_metadata: %{
fees_url: "https://www.yobit.net/en/fees/",
limits: %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
logo_url: "https://user-images.githubusercontent.com/1294454/27766910-cdcbfdae-5eea-11e7-9859-03fea873272d.jpg"
},
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: 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,
limit: 1000,
margin_mode: false,
symbol_required: true,
until_days: 100000
},
fetch_open_orders: %{
margin_mode: false,
symbol_required: true,
trailing: false,
trigger: false
},
fetch_order: %{
margin_mode: false,
symbol_required: false,
trailing: false,
trigger: false
},
sandbox: false
},
swap: %{}
},
fees: %{
trading: %{
maker: 0.002,
taker: 0.002
}
},
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; // fallback to default error handler\n }\n if ('success' in response) {\n //\n // 1 - Liqui only returns the integer 'success' key from their private API\n //\n // { \"success\": 1, ... } httpCode === 200\n // { \"success\": 0, ... } httpCode === 200\n //\n // 2 - However, exchanges derived from Liqui, can return non-integers\n //\n // It can be a numeric string\n // { \"sucesss\": \"1\", ... }\n // { \"sucesss\": \"0\", ... }, httpCode >= 200 (can be 403, 502, etc)\n //\n // Or just a string\n // { \"success\": \"true\", ... }\n // { \"success\": \"false\", ... }, httpCode >= 200\n //\n // Or a boolean\n // { \"success\": true, ... }\n // { \"success\": false, ... }, httpCode >= 200\n //\n // 3 - Oversimplified, Python PEP8 forbids comparison operator (===) of different types\n //\n // 4 - We do not want to copy-paste and duplicate the code of this handler to other exchanges derived from Liqui\n //\n // To cover points 1, 2, 3 and 4 combined this handler should work like this:\n //\n let success = this.safeValue(response, 'success'); // don't replace with safeBool here\n if (typeof success === 'string') {\n if ((success === 'true') || (success === '1')) {\n success = true;\n }\n else {\n success = false;\n }\n }\n if (!success) {\n const code = this.safeString(response, 'code');\n const message = this.safeString(response, 'error');\n const feedback = this.id + ' ' + body;\n this.throwExactlyMatchedException(this.exceptions['exact'], code, feedback);\n this.throwExactlyMatchedException(this.exceptions['exact'], message, feedback);\n this.throwBroadlyMatchedException(this.exceptions['broad'], message, feedback);\n throw new errors.ExchangeError(feedback); // unknown message\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: 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: 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_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: 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: false,
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: 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: 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: true,
fetch_open_orders_ws: false,
fetch_option: false,
fetch_option_chain: false,
fetch_order: true,
fetch_order_book: true,
fetch_order_book_ws: false,
fetch_order_books: true,
fetch_order_trades: false,
fetch_order_with_client_order_id: false,
fetch_order_ws: false,
fetch_orders: 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: false,
fetch_trades: true,
fetch_trades_ws: false,
fetch_trading_fee: false,
fetch_trading_fees: true,
fetch_trading_fees_ws: false,
fetch_trading_limits: false,
fetch_transaction_fee: false,
fetch_transaction_fees: false,
fetch_transactions: false,
fetch_transfer: false,
fetch_transfers: false,
fetch_underlying_assets: false,
fetch_volatility_history: false,
fetch_withdraw_addresses: false,
fetch_withdrawal: 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: true,
ws: false
},
http_config: nil,
id: "yobit",
markets: nil,
name: "YoBit",
ohlcv_timestamp_resolution: :unknown,
options: %{
"fetch_orders_requires_symbol" => true,
"max_url_length" => 2048,
:networks => %{
"BSC" => "BEP20",
"ETH" => "ERC20",
"TRX" => "TRC20"
}
},
order_mappings: nil,
param_mappings: %{
"code" => "coinName",
"id" => "order_id",
"price" => "rate",
"side" => "type",
"symbol" => "pair"
},
parse_methods: [
%{
"comment" => nil,
"examples" => [],
"line_end" => 406,
"line_start" => 386,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "response"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
}
],
"name" => "parseBalance",
"signature" => "parseBalance (response): Balances",
"source" => "parseBalance (response): Balances {\n const balances = this.safeDict (response, 'return', {});\n const timestamp = this.safeInteger (balances, 'server_time');\n const result: Dict = {\n 'info': response,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n };\n const free = this.safeDict (balances, 'funds', {});\n const total = this.safeDict (balances, 'funds_incl_orders', {});\n const currencyIds = Object.keys (this.extend (free, total));\n for (let i = 0; i < currencyIds.length; i++) {\n const currencyId = currencyIds[i];\n const code = this.safeCurrencyCode (currencyId);\n const account = this.account ();\n account['free'] = this.safeString (free, currencyId);\n account['total'] = this.safeString (total, currencyId);\n result[code] = account;\n }\n return this.safeBalance (result);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"received\":0,\n \"remains\":10,\n \"order_id\":1101103635125179,\n \"funds\": {\n \"usdt\":27.84756553,\n \"usdttrc20\":0,\n \"doge\":19.98327206\n },\n \"funds_incl_orders\": {\n \"usdt\":30.35256553,\n \"usdttrc20\":0,\n \"doge\":19.98327206\n },\n \"server_time\":1650114256\n }",
"{\n \"id: \"1101103635103335\", // id-field is manually added in fetchOrder () from exchange response id-order dictionary structure\n \"pair\":\"doge_usdt\",\n \"type\":\"buy\",\n \"start_amount\":10,\n \"amount\":10,\n \"rate\":0.05,\n \"timestamp_created\":\"1650112553\",\n \"status\":0\n }",
"{\n \"id\":\"1101103635103335\", // id-field is manually added in fetchOpenOrders () from exchange response id-order dictionary structure\n \"pair\":\"doge_usdt\",\n \"type\":\"buy\",\n \"amount\":10,\n \"rate\":0.05,\n \"timestamp_created\":\"1650112553\",\n \"status\":0\n }",
"{\n \"order_id\":1101103634000197,\n \"funds\": {\n \"usdt\":31.81275443,\n \"usdttrc20\":0,\n \"doge\":9.98327206\n },\n \"funds_incl_orders\": {\n \"usdt\":31.81275443,\n \"usdttrc20\":0,\n \"doge\":9.98327206\n }\n }"
],
"line_end" => 1119,
"line_start" => 1018,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "order"
},
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "clientOrderId",
"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" => "lastTradeTimestamp",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "type",
"value" => "type"
},
%{
"comment" => nil,
"key" => "timeInForce",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "postOnly",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "side",
"value" => "side"
},
%{
"comment" => nil,
"key" => "price",
"value" => "price"
},
%{
"comment" => nil,
"key" => "triggerPrice",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "amount"
},
%{
"comment" => nil,
"key" => "remaining",
"value" => "remaining"
},
%{
"comment" => nil,
"key" => "filled",
"value" => "filled"
},
%{
"comment" => nil,
"key" => "status",
"value" => "status"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "fee"
},
%{
"comment" => nil,
"key" => "average",
"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 // createOrder (private)\n //\n // {\n // \"received\":0,\n // \"remains\":10,\n // \"order_id\":1101103635125179,\n // \"funds\": {\n // \"usdt\":27.84756553,\n // \"usdttrc20\":0,\n // \"doge\":19.98327206\n // },\n // \"funds_incl_orders\": {\n // \"usdt\":30.35256553,\n // \"usdttrc20\":0,\n // \"doge\":19.98327206\n // },\n // \"server_time\":1650114256\n // }\n //\n // fetchOrder (private)\n //\n // {\n // \"id: \"1101103635103335\", // id-field is manually added in fetchOrder () from exchange response id-order dictionary structure\n // \"pair\":\"doge_usdt\",\n // \"type\":\"buy\",\n // \"start_amount\":10,\n // \"amount\":10,\n // \"rate\":0.05,\n // \"timestamp_created\":\"1650112553\",\n // \"status\":0\n // }\n //\n // fetchOpenOrders (private)\n //\n // {\n // \"id\":\"1101103635103335\", // id-field is manually added in fetchOpenOrders () from exchange response id-order dictionary structure\n // \"pair\":\"doge_usdt\",\n // \"type\":\"buy\",\n // \"amount\":10,\n // \"rate\":0.05,\n // \"timestamp_created\":\"1650112553\",\n // \"status\":0\n // }\n //\n // cancelOrder (private)\n //\n // {\n // \"order_id\":1101103634000197,\n // \"funds\": {\n // \"usdt\":31.81275443,\n // \"usdttrc20\":0,\n // \"doge\":9.98327206\n // },\n // \"funds_incl_orders\": {\n // \"usdt\":31.81275443,\n // \"usdttrc20\":0,\n // \"doge\":9.98327206\n // }\n // }\n //\n let id = this.safeString2 (order, 'id', 'order_id');\n let status = this.parseOrderStatus (this.safeString (order, 'status', 'open'));\n if (id === '0') {\n id = this.safeString (order, 'init_order_id');\n status = 'closed';\n }\n const timestamp = this.safeTimestamp2 (order, 'timestamp_created', 'server_time');\n const marketId = this.safeString (order, 'pair');\n const symbol = this.safeSymbol (marketId, market);\n const amount = this.safeString (order, 'start_amount');\n const remaining = this.safeString2 (order, 'amount', 'remains');\n const filled = this.safeString (order, 'received', '0.0');\n const price = this.safeString (order, 'rate');\n const fee = undefined;\n const type = 'limit';\n const side = this.safeString (order, 'type');\n return this.safeOrder ({\n 'info': order,\n 'id': id,\n 'clientOrderId': undefined,\n 'symbol': symbol,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'lastTradeTimestamp': undefined,\n 'type': type,\n 'timeInForce': undefined,\n 'postOnly': undefined,\n 'side': side,\n 'price': price,\n 'triggerPrice': undefined,\n 'cost': undefined,\n 'amount': amount,\n 'remaining': remaining,\n 'filled': filled,\n 'status': status,\n 'fee': fee,\n 'average': undefined,\n 'trades': undefined,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 1016,
"line_start" => 1008,
"mappings" => [],
"name" => "parseOrderStatus",
"signature" => "parseOrderStatus (status: Str)",
"source" => "parseOrderStatus (status: Str) {\n const statuses: Dict = {\n '0': 'open',\n '1': 'closed',\n '2': 'canceled',\n '3': 'open', // or partially-filled and canceled? https://github.com/ccxt/ccxt/issues/1594\n };\n return this.safeString (statuses, status, status);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"high\": 0.03497582,\n \"low\": 0.03248474,\n \"avg\": 0.03373028,\n \"vol\": 120.11485715062999,\n \"vol_cur\": 3572.24914074,\n \"last\": 0.0337611,\n \"buy\": 0.0337442,\n \"sell\": 0.03377798,\n \"updated\": 1537522009\n }"
],
"line_end" => 653,
"line_start" => 615,
"mappings" => [
%{
"comment" => nil,
"key" => "symbol",
"value" => "this.safeSymbol (undefined, market)"
},
%{
"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" => "this.safeString (ticker, 'buy')"
},
%{
"comment" => nil,
"key" => "bidVolume",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "ask",
"value" => "this.safeString (ticker, 'sell')"
},
%{
"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" => "this.safeString (ticker, 'avg')"
},
%{
"comment" => nil,
"key" => "baseVolume",
"value" => "this.safeString (ticker, 'vol_cur')"
},
%{
"comment" => nil,
"key" => "quoteVolume",
"value" => "this.safeString (ticker, 'vol')"
},
%{
"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 // \"high\": 0.03497582,\n // \"low\": 0.03248474,\n // \"avg\": 0.03373028,\n // \"vol\": 120.11485715062999,\n // \"vol_cur\": 3572.24914074,\n // \"last\": 0.0337611,\n // \"buy\": 0.0337442,\n // \"sell\": 0.03377798,\n // \"updated\": 1537522009\n // }\n //\n const timestamp = this.safeTimestamp (ticker, 'updated');\n const last = this.safeString (ticker, 'last');\n return this.safeTicker ({\n 'symbol': this.safeSymbol (undefined, market),\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'high': this.safeString (ticker, 'high'),\n 'low': this.safeString (ticker, 'low'),\n 'bid': this.safeString (ticker, 'buy'),\n 'bidVolume': undefined,\n 'ask': this.safeString (ticker, 'sell'),\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': this.safeString (ticker, 'avg'),\n 'baseVolume': this.safeString (ticker, 'vol_cur'),\n 'quoteVolume': this.safeString (ticker, 'vol'),\n 'info': ticker,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"type\":\"bid\",\n \"price\":0.14046179,\n \"amount\":0.001,\n \"tid\":200256901,\n \"timestamp\":1649861004\n }",
"{\n \"pair\":\"doge_usdt\",\n \"type\":\"sell\",\n \"amount\":139,\n \"rate\":0.139,\n \"order_id\":\"2101103631773172\",\n \"is_your_order\":1,\n \"timestamp\":\"1649861561\"\n }"
],
"line_end" => 819,
"line_start" => 742,
"mappings" => [
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "order",
"value" => "order"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "symbol",
"value" => "symbol"
},
%{
"comment" => nil,
"key" => "type",
"value" => "type"
},
%{
"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" => "info",
"value" => "trade"
},
%{
"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 // \"type\":\"bid\",\n // \"price\":0.14046179,\n // \"amount\":0.001,\n // \"tid\":200256901,\n // \"timestamp\":1649861004\n // }\n //\n // fetchMyTrades (private)\n //\n // {\n // \"pair\":\"doge_usdt\",\n // \"type\":\"sell\",\n // \"amount\":139,\n // \"rate\":0.139,\n // \"order_id\":\"2101103631773172\",\n // \"is_your_order\":1,\n // \"timestamp\":\"1649861561\"\n // }\n //\n const timestamp = this.safeTimestamp (trade, 'timestamp');\n let side = this.safeString (trade, 'type');\n if (side === 'ask') {\n side = 'sell';\n } else if (side === 'bid') {\n side = 'buy';\n }\n const priceString = this.safeString2 (trade, 'rate', 'price');\n const id = this.safeString2 (trade, 'trade_id', 'tid');\n const order = this.safeString (trade, 'order_id');\n const marketId = this.safeString (trade, 'pair');\n const symbol = this.safeSymbol (marketId, market);\n const amountString = this.safeString (trade, 'amount');\n // arguments for calculateFee (need to be numbers)\n const price = this.parseNumber (priceString);\n const amount = this.parseNumber (amountString);\n const type = 'limit'; // all trades are still limit trades\n let fee = undefined;\n const feeCostString = this.safeNumber (trade, 'commission');\n if (feeCostString !== undefined) {\n const feeCurrencyId = this.safeString (trade, 'commissionCurrency');\n const feeCurrencyCode = this.safeCurrencyCode (feeCurrencyId);\n fee = {\n 'cost': feeCostString,\n 'currency': feeCurrencyCode,\n };\n }\n const isYourOrder = this.safeString (trade, 'is_your_order');\n if (isYourOrder !== undefined) {\n if (fee === undefined) {\n const feeInNumbers = this.calculateFee (symbol, type, side, amount, price, 'taker');\n fee = {\n 'currency': this.safeString (feeInNumbers, 'currency'),\n 'cost': this.safeString (feeInNumbers, 'cost'),\n 'rate': this.safeString (feeInNumbers, 'rate'),\n };\n }\n }\n return this.safeTrade ({\n 'id': id,\n 'order': order,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'symbol': symbol,\n 'type': type,\n 'side': side,\n 'takerOrMaker': undefined,\n 'price': priceString,\n 'amount': amountString,\n 'cost': undefined,\n 'fee': fee,\n 'info': trade,\n }, market);\n }"
}
],
path_prefix: "/3/",
pro: false,
quote_json_numbers: nil,
rate_limits: %{
interval_ms: 2000,
period: 1000,
requests: 1,
rolling_window_size: 60000
},
raw_endpoints: %{
private: [
%{
auth: false,
cost: 1,
method: :post,
path: "/ActiveOrders"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/CancelOrder"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/GetDepositAddress"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/OrderInfo"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/Trade"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/TradeHistory"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/WithdrawCoinsToAddress"
},
%{
auth: false,
cost: 1,
method: :post,
path: "/getInfo"
}
],
public: [
%{
auth: false,
cost: 1,
method: :get,
path: "/depth/{pair}"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/info"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/ticker/{pair}"
},
%{
auth: false,
cost: 1,
method: :get,
path: "/trades/{pair}"
}
]
},
required_credentials: %{
api_key: true,
password: false,
secret: true,
uid: false
},
requires_eddsa: false,
response_error: %{
code_field: "error",
field: "success",
message_field: "message",
success_values: nil,
type: :success_bool
},
signing: %{
api_key_header: "Key",
confidence: :medium,
pattern: :hmac_sha512_nonce,
signature_header: "Sign"
},
spec_format_version: 1,
status: %{
"eta" => nil,
"status" => "ok",
"updated" => nil,
"url" => nil
},
symbol_format: nil,
symbol_formats: %{
precision_mode: 4,
sample_limits: %{
"amount" => %{
"min" => 1.0e-5
},
"cost" => %{
"min" => 1.0e-5
},
"price" => %{
"max" => 10000,
"min" => 1.0e-8
}
},
sample_precision: %{
"amount" => 1.0e-8,
"price" => 1.0e-8
},
spot: %{
base: "LTC",
base_id: "ltc",
case: :lower,
contract: false,
id: "ltc_btc",
limits: %{
"amount" => %{
"min" => 1.0e-5
},
"cost" => %{
"min" => 1.0e-5
},
"leverage" => %{},
"price" => %{
"max" => 10000,
"min" => 1.0e-8
}
},
maker: 0.002,
precision: %{
"amount" => 1.0e-8,
"price" => 1.0e-8
},
quote: "BTC",
quote_id: "btc",
separator: "_",
symbol: "LTC/BTC",
taker: 0.002
}
},
symbol_patterns: %{
spot: %{
case: :lower,
component_order: nil,
date_format: nil,
pattern: :underscore_lower,
separator: "_",
suffix: nil
}
},
timeframes: %{},
url_strategy: %{
detected_from: "sign_method",
pattern: :version_slash,
prefix: "/3/"
},
urls: %{
api: "https://yobit.net/api",
api_sections: %{
"private" => "https://yobit.net/tapi",
"public" => "https://yobit.net/api"
},
doc: "https://www.yobit.net/en/api/",
other: nil,
sandbox: nil,
www: "https://www.yobit.net"
},
version: "3",
ws: nil
}