Market Data (Coin-M)

Contract Information

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

https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Contract+Information

Function Name:

getContractInfoCM()

Usage:

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

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

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

let result = await getContractInfoCM(myBingxExchange);

Price & Current Funding Rate

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

https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Price+&+Current+Funding+Rate

Function Name:

Usage:

Get Swap Open Positions

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

https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Get+Swap+Open+Positions

Function Name:

Usage:

Get K-line Data

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

https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Get+K-line+Data

Function Name:

Usage:

Query Depth Data

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

https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Query+Depth+Data

Function Name:

Usage:

Query 24-Hour Price Change

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

https://bingx-api.github.io/docs/#/en-us/cswap/market-api.html#Query+24-Hour+Price+Change

Function Name:

Usage:

Last updated