- Quadrat
- Binance-Konto-Freigabe-Tool
Binance-Konto-Freigabe-Tool
Schriftsteller:
wenzhang., Datum: 2024-03-28
Tags:
function userUniversalTransfer(type, amount) {
let ret = null;
const param =
"type=" +
type +
"&asset=USDT" +
"&amount=" +
amount.toString() +
"×tamp=" +
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("资金划转失败!");
}
}
Mehr