Type/to search
0
Follow
0
Followers
کیا ایسی کوئی چیز ہے جس پر مجھے ایکسچینج ڈاٹ آئی او سے POST پیکج بھیجتے وقت توجہ دینی چاہیے؟ میں ہمیشہ صحیح پیکیج حاصل کرنے میں ناکام رہتا ہوں۔
Help
Created 2021-04-25 13:50:54  
 1
 1103

کوڈ میں نیچے ، یہ محسوس ہوتا ہے کہ یہ ٹھیک ہونا چاہئے ، لیکن انٹرفیس ہمیشہ یہ کہتا ہے کہ کوئی متضاد پیرامیٹرز نہیں ہیں:

function main() {
exchange.IO("base", "https://api.btcgateway.pro")
//var obj = {"contract_code":"TRX-USDT","volume":10000,"direction":"sell","offset":"open","lever_rate":3,"order_price_type":"optimal_5"}
var obj = {"contract_code":"TRX-USDT"}
var str = JSON.stringify(obj)
Log(obj)
Log(str)
var hy_order_id = exchange.IO("api","POST", "/linear-swap-api/v1/swap_order_info", "", str)
Log(hy_order_id)
return hy_order_id
}

کال کرنے کے بعد واپس کیے گئے پیکٹ مندرجہ ذیل ہیں:
{"ts":1619326307135,"status":"error","err_code":1066,"err_msg":"The contractCode field cannot be empty. Please re-enter."}

میں نے کہا کہ میں نے معاہدہ کوڈ نہیں بھیجا، لیکن میں نے ایسا ہی کیا۔

Related Recommendations
Comment
All comments (1)

    exchange.IO("api","POST", "/linear-swap-api/v1/swap_order_info", “contract_code=TRX-USDT”)
    直接传入json不是每个交易所都能用

    5 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)