Account (USDT-M)

Query account data

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Query+account+data

Function Name:

getAccountDataUM()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

async function getAccountDataUM(exchange, options) {
    try {
        let result = await exchange.getAccountDataUM(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await getAccountDataUM(myBingxExchange);

Query position data

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Query+position+data

Function Name:

getPositionDataUM()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

async function getPositionDataUM(exchange, options) {
    try {
        let result = await exchange.getPositionDataUM(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await getPositionDataUM(myBingxExchange);

Get Account Profit and Loss Fund Flow

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Get+Account+Profit+and+Loss+Fund+Flow

Function Name:

getAccountPLFundFlowUM()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

async function getAccountPLFundFlowUM(exchange, options) {
    try {
        let result = await exchange.getAccountPLFundFlowUM(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await getAccountPLFundFlowUM(myBingxExchange);

Export fund flow

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Export+fund+flow

Function Name:

exportFundFlowUM()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

async function exportFundFlowUM(exchange, options) {
    try {
        let result = await exchange.exportFundFlowUM(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await exportFundFlowUM(myBingxExchange);

Query Trading Commission Rate

Please refer to the official BingX API Docs for the Required parameters.

https://bingx-api.github.io/docs/#/en-us/swapV2/account-api.html#Query+Trading+Commission+Rate

Function Name:

getTradingCommissionRateUM()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "false",
      label: "bingx"
  });

async function getTradingCommissionRateUM(exchange, options) {
    try {
        let result = await exchange.getTradingCommissionRateUM(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await getTradingCommissionRateUM(myBingxExchange);

Last updated