import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function getDepositRecords(exchange, options) {
try {
let result = await exchange.getDepositRecords(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getDepositRecords(myBingxExchange);
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function getWithdrawRecords(exchange, options) {
try {
let result = await exchange.getWithdrawRecords(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getWithdrawRecords(myBingxExchange);
Query currency deposit and withdrawal data
getCurrencyDepositAndWithdrawalData()
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function getCurrencyDepositAndWithdrawalData(exchange, options) {
try {
let result = await exchange.getCurrencyDepositAndWithdrawalData(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getCurrencyDepositAndWithdrawalData(myBingxExchange);
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function withdraw(exchange, options) {
try {
let result = await exchange.withdraw(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await withdraw(myBingxExchange, {
coin: "<string>",
address: "<string>",
amount: "<float64>",
walletType: "<int64>"
});
Main Account Deposit Address
getMainAccountDepositAddress()
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function getMainAccountDepositAddress(exchange, options) {
try {
let result = await exchange.getMainAccountDepositAddress(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getMainAccountDepositAddress(myBingxExchange);
Deposit risk control records
getDepositRiskControlRecords()
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function getDepositRiskControlRecords(exchange, options) {
try {
let result = await exchange.getDepositRiskControlRecords(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getDepositRiskControlRecords(myBingxExchange);