রিসোর্স লোড হচ্ছে... লোডিং...

বিএনএ অ্যাকাউন্টের জন্য টুলটিপ

লেখক:wenzhang., তারিখঃ ২০২৪-০৩-২৮
ট্যাগঃ


function userUniversalTransfer(type, amount) {
    let ret = null;
    const param =
      "type=" +
      type +
      "&asset=USDT" +
      "&amount=" +
      amount.toString() +
      "&timestamp=" +
      new Date().getTime().toString();

    exchange.SetBase("https://api.binance.com");
    ret = exchange.IO("api", "POST", "/sapi/v1/asset/transfer", param);
    exchange.SetBase("https://fapi.binance.com");

    if (ret) {
      switch (type) {
        case "MAIN_UMFUTURE":
          Log(`已将 ${amount.toFixed(3)} USDT 从现货钱包划至U本位合约钱包`);
          break;

        case "UMFUTURE_MAIN":
          Log(`已将 ${amount.toFixed(3)} USDT 从U本位合约钱包划至现货钱包`);
          break;
      }
    } else {
      Log("资金划转失败!");
    }
  }

আরো