Market Data (USDT-M)

USDT-M Perp Futures symbols

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#USDT-M+Perp+Futures+symbols

Function Name:

getSymbolsUM()

Usage:

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

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

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

let result = await getSymbolsUM(myBingxExchange);

Order Book

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Order+Book

Function Name:

getOrderBookUM()

Usage:

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

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

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

let result = await getOrderBookUM(myBingxExchange, {
	symbol: "<string>"
});

Recent Trades List

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Recent+Trades+List

Function Name:

getRecentTradesUM()

Usage:

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

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

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

let result = await getRecentTradesUM(myBingxExchange, {
	symbol: "<string>"
});

Mark Price and Funding Rate

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Mark+Price+and+Funding+Rate

Function Name:

getMarkPriceAndFundingRateUM()

Usage:

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

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

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

let result = await getMarkPriceAndFundingRateUM(myBingxExchange);

Get Funding Rate History

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Get+Funding+Rate+History

Function Name:

getFundingRateHistoryUM()

Usage:

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

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

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

let result = await getFundingRateHistoryUM(myBingxExchange);

Kline/Candlestick Data

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Kline/Candlestick+Data

Function Name:

getKlineCandlestickInfoUM()

Usage:

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

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

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

let result = await getKlineCandlestickInfoUM(myBingxExchange, {
	symbol: "<string>",
	interval: "<string>"
});

Open Interest Statistics

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Open+Interest+Statistics

Function Name:

getOpenInterestStatisticsUM()

Usage:

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

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

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

let result = await getOpenInterestStatisticsUM(myBingxExchange, {
	symbol: "<string>"
});

24hr Ticker Price Change Statistics

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#24hr+Ticker+Price+Change+Statistics

Function Name:

get24HrTickerPriceChangeInfoUM()

Usage:

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

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

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

let result = await get24HrTickerPriceChangeInfoUM(myBingxExchange);

Query historical transaction orders

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Query+historical+transaction+orders

Function Name:

getHistoricalTransactionOrdersUM()

Usage:

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

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

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

let result = await getHistoricalTransactionOrdersUM(myBingxExchange);

Symbol Order Book Ticker

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Symbol+Order+Book+Ticker

Function Name:

getSymbolOrderBookTickerUM()

Usage:

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

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

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

let result = await getSymbolOrderBookTickerUM(myBingxExchange, {
	symbol: "<string>"
});

Mark Price Kline/Candlestick Data

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Mark+Price+Kline/Candlestick+Data

Function Name:

getMarkPriceKlineCandlestickInfoUM()

Usage:

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

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

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

let result = await getMarkPriceKlineCandlestickInfoUM(myBingxExchange, {
	symbol: "<string>",
	interval: "<string>"
});

Symbol Price Ticker

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

https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Symbol+Price+Ticker

Function Name:

getSymbolPriceTickerUM()

Usage:

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

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

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

let result = await getSymbolPriceTickerUM(myBingxExchange);

Last updated