OKEXの口座 (契約,コイン,財布) は,コインを切り替える例コードがありますか?

作者: リン・ハーンライトアップ投資01作成日: 2018-09-27 05:55:53 更新日:

OKEXの口座 (契約,コイン,財布) は,コインを切り替える例コードがありますか?

取引所によって子口座設定が異なります.


もっと

マルチナッシュコイン口座から契約口座への転送はAPIで可能ですか?

ライトアップ投資01ありがとうございました!

小さな夢取引所がトランスコイン,ティコインなどのAPIインターフェースを提供している限り,これらのインターフェースを直接 exchange.IO で呼び出すことができます. デジタル通貨取引のカテゴリー テンプレートでは,関連するコードを参照してください: `` $.withdraw = function ((e,currency, address, amount, fee, password) { 削除する var withdraw_id = null; 変数値が 0 になる場合 currency = currency.toLowerCase ((() コメントする switch (e.GetName)) { "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 } { ほかに } if (err && err.indexOf('10031')!== -1) { Log (("OKCoin_ENは6つのネットワーク確認が必要です. ありがとうございました. ありがとうございました. ブロンクス: "Huobi"のケース: if (currency == "bch") { 通貨 = "bcc" ありがとうございました. 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') { ret.data を削除する. ありがとうございました. ブロンクス: Bithumbのケース: ret = e.IO (("api", "POST", "/trade/btc_withdrawal", "currency="+currency.toUpperCase() +"&address=" + address + "&units=" + amount); if (ret && parseInt ((ret.status) == 0) { 返信する. ありがとうございました. ブロンクス: "GateIO"のケース: ret = e.IO (("api", "POST", "/api2/1/private/withdraw", "currency="+currency+"&address=" + address + "&amount=" + amount"); if (ret && parseInt ((ret.code) == 0) { 返信する. ありがとうございました. ブロンクス: "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) { ret.id を削除する. ありがとうございました. ブロンクス: "Bitfinex"のケース: 変数 cMap = { "BTC"は"ビットコイン"です. LTC: "ライトコイン" "eth": "イーサリアム" "etc": "ethereumc", "ethereumc", "ethereumc", "ethereumc" "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", "monero" "monero" "monero"で" "omni": "mastercoin"は, "usd": "wire", "usd": "usd": "usd": "usd": "usd": "dash": "dash" "dash" "dash" "dash" "dash" "dash" "dash" "dash" "dash" "dash" "dash" "xrp": "リップル" "eos": "eos"}; if (typeof(cMap[currency]) == 'undefined') { "bitfinex not support" + currency を投げる ありがとうございました. 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; ありがとうございました. ブロンクス: "Poloniex"のケース: 変数から変数に変換する この2つの項目は, /ext = '&paymentId=' + PXRPLabel; ありがとうございました. if (currency.toLowerCase() == 'bts' && address.indexOf('_') == -1) { アドレス = "poloniexwallet_" + アドレス ありがとうございました. ret = e.IO (("api", "POST", "withdraw", "amount=" + amount + "¤cy="+currency.toUpperCase() +"&address=" + address+ext); if (ret && ret.response.indexOf('With')!== -1) { 返信する. ありがとうございました. ブレイク "Bittrex"のケース: ret = e.IO (("api", "GET", "/api/v1.1/account/withdraw", "quantity=" + amount + "¤cy="+currency.toUpperCase() +"&address=" + address); if (ret && ret.success) { と表示されます. 返信する場合は, ありがとうございました. ブレイク "Binance"のケース: ret = e.IO (("api", "POST", "/wapi/v1/withdraw.html", "amount=" + amount + "&asset=" + currency + "&address=" + address"); if (ret && ret.success) { は,次の式で表示される. 返信する. ありがとうございました. ブレイク "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; ありがとうございました. ブレイク デフォルト: 投げる "サポートされていない操作"; ありがとうございました. return {info: ret, withdraw_id: withdraw_id} 返信する ありがとうございました. ``