संसाधन लोड हो रहा है... लोड करना...

ओकेएक्स के सभी खातों (अनुबंध, सिक्के, पर्स) में सिक्का परिवर्तित करें, क्या कोई उदाहरण कोड है?

लेखक:निवेश संख्या 01, बनाया गयाः 2018-09-27 05:55:53, अद्यतन किया गयाः

ओकेएक्स के सभी खातों (अनुबंध, सिक्के, पर्स) में सिक्का परिवर्तित करें, क्या कोई उदाहरण कोड है?

प्रत्येक एक्सचेंज में उप खाते की सेटिंग अलग-अलग होती है, कृपया ओकेएक्स उदाहरण कोड देखें।


अधिक

मार्टिनेशक्या सिक्का खाते से अनुबंध खाते में स्थानांतरण एपीआई के माध्यम से किया जा सकता है?

निवेश संख्या 01बहुत बहुत धन्यवाद!

आविष्कारक मात्रा - छोटे सपनेजब तक एक्सचेंज में एपीआई इंटरफेस उपलब्ध हैं, तो एक्सचेंज.आईओ का उपयोग करके सीधे इन इंटरफेस को कॉल किया जा सकता है। डिजिटल मुद्रा लेनदेन श्रेणी सूची में संबंधित कोड के लिए, आप देख सकते हैंः `` $.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) { लॉग (("OKCoin_EN को 6 नेटवर्क पुष्टि की आवश्यकता है ताकि पीछे की ओर निकाला जा सके"); } } ब्रेक; case "Huobi": if (currency == "bch") { currency = "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') { withdraw_id = ret.data; } ब्रेक; 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; } ब्रेक; 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; } ब्रेक; case "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; } ब्रेक; case "Bitfinex": var cMap = { "बीटीसी": "बिटकॉइन", "ltc": "Litecoin", "eth": "एथेरियम", "etc": "एथेरियम सी", "zec": "zcash", "xmr": "मोनरो", Omni: मास्टरकॉइन, "usd": "वायर", "डैश": "डैश", "xrp": "रिपल", "eos": "eos"}; if (typeof(cMap[currency]) == 'undefined') { throw "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; } ब्रेक; case "Poloniex": var ext = ""; if (currency == 'xrp') { //ext = '&paymentId=' + PXRPLabel; } if (currency.toLowerCase() == 'bts' && address.indexOf('_') == -1) { address = "poloniexwallet_" + address; } ret = e.IO (("api", "POST", "withdraw", "amount=" + amount + "¤cy="+currency.toUpperCase() +"&address=" + address+ext); if (ret && ret.response.indexOf (('With')!== -1) { withdraw_id = 9999; } ब्रेक case "Bittrex": ret = e.IO (("api", "GET", "/api/v1.1/account/withdraw", "quantity=" + amount + "¤cy="+currency.toUpperCase() +"&address=" + address); if (ret && ret.success) { withdraw_id = ret.result.uuid; } ब्रेक case "Binance": ret = e.IO (("api", "POST", "/wapi/v1/withdraw.html", "amount=" + amount + "&asset=" + currency + "&address=" + address"); if (ret && ret.success) { withdraw_id = 9999; } ब्रेक 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; } ब्रेक default: throw "असमर्थित ऑपरेशन"; } return {info: ret, withdraw_id: withdraw_id} } ``