Fund Account
Query Assets
Function Name:
getAssets()Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function getAssets(exchange, options) {
try {
let result = await exchange.getAssets(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getAssets(myBingxExchange);Asset Transfer
Function Name:
transferAssets()Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function transferAssets(exchange, options) {
try {
let result = await exchange.transferAssets(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await transferAssets(myBingxExchange, {
type: "<ENUM>",
asset: "<string>",
amount: "<DECIMAL>"
});Asset transfer records
Function Name:
getAssetTransferRecords()Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function getAssetTransferRecords(exchange, options) {
try {
let result = await exchange.getAssetTransferRecords(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getAssetTransferRecords(myBingxExchange, {
type: "<ENUM>"
});Main Accoun internal transfer
Function Name:
mainAccountInternalTransfer()Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function mainAccountInternalTransfer(exchange, options) {
try {
let result = await exchange.mainAccountInternalTransfer(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await mainAccountInternalTransfer(myBingxExchange);Main account internal transfer records
Function Name:
getMainAccountInternalTransferRecords()Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function getMainAccountInternalTransferRecords(exchange, options) {
try {
let result = await exchange.getMainAccountInternalTransferRecords(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getMainAccountInternalTransferRecords(myBingxExchange);Query Assets
Function Name:
getAssetsSpot()Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function getAssetsSpot(exchange, options) {
try {
let result = await exchange.getAssetsSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getAssetsSpot(myBingxExchange);Asset Transfer
Function Name:
assetTransferSpot()Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function assetTransferSpot(exchange, options) {
try {
let result = await exchange.assetTransferSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await assetTransferSpot(myBingxExchange, {
type: "<ENUM>",
asset: "<string>",
amount: "<DECIMAL>"
});Asset transfer records
Function Name:
getAssetTransferRecordsSpot()Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "bingx"
});
async function getAssetTransferRecordsSpot(exchange, options) {
try {
let result = await exchange.getAssetTransferRecordsSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getAssetTransferRecordsSpot(myBingxExchange, {
type: "<ENUM>"
});Last updated