Market Data (Spot)

Spot trading symbols

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

https://bingx-api.github.io/docs/#/en-us/spot/market-api.html#Spot+trading+symbols

Function Name:

getTradingSymbolsSpot()

Usage:

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

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

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

let result = await getTradingSymbolsSpot(myBingxExchange);

Recent Trades List

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

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

Function Name:

getRecentTradesListSpot()

Usage:

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

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

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

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

Order Book

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

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

Function Name:

getOrderBookSpot()

Usage:

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

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

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

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

Kline/Candlestick Data

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

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

Function Name:

getKlineCandlestickInfoSpot()

Usage:

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

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

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

let result = await getKlineCandlestickInfoSpot(myBingxExchange);

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/spot/market-api.html#24hr+Ticker+Price+Change+Statistics

Function Name:

get24HrPriceChangeInfoSpot()

Usage:

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

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

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

let result = await get24HrPriceChangeInfoSpot(myBingxExchange);

Order Book aggregation

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

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

Function Name:

getOrderBookAggregationSpot()

Usage:

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

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

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

let result = await getOrderBookAggregationSpot(myBingxExchange);

Symbol Price Ticker

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

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

Function Name:

getSymbolPriceTickerSpot()

Usage:

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

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

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

let result = await getSymbolPriceTickerSpot(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/spot/market-api.html#Symbol+Order+Book+Ticker

Function Name:

getSymbolOrderBookTickerSpot()

Usage:

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

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

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

let result = await getSymbolOrderBookTickerSpot(myBingxExchange);

Historical K-line

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

https://bingx-api.github.io/docs/#/en-us/spot/market-api.html#Historical+K-line

Function Name:

getHistoricalKlineSpot()

Usage:

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

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

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

let result = await getHistoricalKlineSpot(myBingxExchange);

Old Trade Lookup

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

https://bingx-api.github.io/docs/#/en-us/spot/market-api.html#Old+Trade+Lookup

Function Name:

getOldTradeSpot()

Usage:

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

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

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

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

Last updated