В процессе загрузки ресурсов... загрузка...

Окей, есть примеры кодов для всех счетов (контракты, монеты, кошельки)?

Автор:Число инвестиций 01, Создано: 2018-09-27 05:55:53, Обновлено:

Окей, есть примеры кодов для всех счетов (контракты, монеты, кошельки)?

Различные биржи устанавливают разные подсчета.


Больше

МартинашиСпросите, можно ли через API переводить деньги из монетного счета в контрактный.

Число инвестиций 01Спасибо, Джимми!

Изобретатели количественного измерения - мечтыЕсли биржа предоставляет API-интерфейсы, такие как Coinbase, Coinbase и т.д., вы можете использовать exchange.IO для прямого вызова этих интерфейсов. В каталоге цифровых валют можно найти соответствующие коды в шаблонах: `` $.withdraw = function ((e, currency, address, amount, fee, password) { var withdraw_id = null; var ret = null; currency = currency.toLowerCase ((() switch (e.GetName)) { case "OKCoin_EN": ret = e.IO (("api", "POST", "/api/v1/withdraw.do", "symbol="+currency.toLowerCase() +"_usd&chargefee=" + fee + "&trade_pwd=" + password + "&withdraw_address=" + address + "&withdraw_amount=" + amount); if (ret && typeof(ret.withdraw_id)!== 'undefined') { withdraw_id = ret.withdraw_id; } else { var err = GetLastError (((); if (err && err.indexOf('10031')!== -1) { Log (("OKCoin_EN требует 6 сетевых подтверждений, чтобы получить вывод"); {y:bi} {y:bi} Брейк; case "Huobi": if (currency == "bch") { currency = "bcc" {y:bi} ret = e.IO (("api", "POST", "/v1/dw/withdraw-virtual/create", "currency="+currency+" &fee=" + fee + "&address=" + address + "&amount=" + amount); if (ret && typeof(ret.withdraw_id)!== 'undefined') { снять_id = ret.data; {y:bi} Брейк; case "Bithumb": ret = e.IO (("api", "POST", "/trade/btc_withdrawal", "currency="+currency.toUpperCase() +"&address=" + address + "&units=" + amount); if (ret && parseInt ((ret.status) == 0) { withdraw_id = 9999; {y:bi} Брейк; case "GateIO": ret = e.IO (("api", "POST", "/api2/1/private/withdraw", "currency="+currency+"&address=" + address + "&amount=" + amount); if (ret && parseInt ((ret.code) == 0) { withdraw_id = 9999; {y:bi} Брейк; В случае "ZB": ret = e.IO (("api", "POST", "/api/withdraw", "method=withdraw&itransfer=0¤cy="+currency+"&receiveAddr=" + address + "&amount=" + amount+"&fees="+fee+"&safePwd="+password); if (ret && parseInt ((ret.code) == 0) { withdraw_id = ret.id; {y:bi} Брейк; case "Bitfinex": var cMap = { "btc": "Bitcoin", "ltc": "Лайткоин", "eth": "эфириум", "etc": "Ethereum c", "Ethereum c", "Ethereum c", "Ethereum c", "Ethereum c" "zec": "zcash", "xmr": "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero", "Monero" "omni": "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin", "mastercoin" "usd": "wire", "Dash": "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash", "Dash" "xrp": "Риппл", "eos": "eos"}; if (typeof ((cMap[currency]) == 'undefined') { throw "bitfinex not support " + currency; {y:bi} var withdraw_type = cMap[currency]; ret = e.IO (("api", "POST", "/v1/withdraw", "withdraw_type=" + withdraw_type + "&walletselected=exchange&address=" + address + "&amount='" + amount + "'"); if (ret && ret.length == 1 && typeof(ret[0].withdrawal_id)!== 'undefined') { withdraw_id = ret[0].withdrawal_id; {y:bi} Брейк; case "Poloniex": var ext = ""; if (currency == 'xrp') { //ext = '&paymentId=' + PXRPLabel; {y:bi} if (currency.toLowerCase() == 'bts' && address.indexOf('_') == -1) { address = "poloniexwallet_" + address; {y:bi} ret = e.IO (("api", "POST", "withdraw", "amount=" + amount + "¤cy="+currency.toUpperCase() +"&address=" + address+ext); if (ret && ret.response.indexOf (('With')!== -1) { withdraw_id = 9999; {y:bi} break case "Bittrex": ret = e.IO (("api", "GET", "/api/v1.1/account/withdraw", "quantity=" + amount + "¤cy="+currency.toUpperCase() +"&address=" + address); if (ret && ret.success) { снять_id = ret.result.uuid; {y:bi} break case "Binance": ret = e.IO (("api", "POST", "/wapi/v1/withdraw.html", "amount=" + amount + "&asset=" + currency + "&address=" + address); if (ret && ret.success) { withdraw_id = 9999; {y:bi} break case "OKEX": ret = e.IO (("api", "POST", "/api/v1/withdraw.do", "target=address&withdraw_amount=" + amount + "&symbol="+currency+"_usd&withdraw_address=" + address+"&chargefee="+fee+"&trade_pwd="+password); if (ret && ret.result) { withdraw_id = ret.withdraw_id; {y:bi} break По умолчанию: throw "неподдерживаемая операция"; {y:bi} return {info: ret, withdraw_id: withdraw_id} {y:bi} ``