Compendium Trading Tools Documentation
CompendiumPENDAXCompendexOfficial Links
  • ⭐Platform Overview
  • ⚫PENDAX
    • 🌐What is PENDAX?
    • 🖱️PENDAX Capabilities
    • 💾Installing PENDAX modules
    • 💡Using PENDAX SDK
      • 💻Common Functions
      • 💻OKX Functions
        • Trading & Orders
        • Funding
        • Convert
        • Account & Subaccount
        • Grid Trading
        • Market Data
        • Public Data
        • Trading Data
      • 💻Bitget Functions
        • Public (Spot)
        • Market (Spot)
        • Wallet (Spot)
        • Account (Spot)
        • Trade (Spot)
        • Market (Futures)
        • Account (Futures)
        • Trade (Futures)
        • CopyTrade (Futures)
        • Sub Account Interface (Broker)
        • Sub API Interface (Broker)
      • 💻ByBit Functions
        • Market
        • Trading
        • Position
        • Account
        • Asset
        • User
        • Spot Leverage Token
        • Spot Margin Trade (UTA)
        • Spot Margin Trade (Normal)
        • Institutional Lending
      • 💻Mexc Functions
        • Market
        • Sub-Account
        • Spot Account/Trade
        • Wallet
        • ETF
        • Rebate
        • Futures Market
        • Futures Account and Trading
      • 💻Phemex Functions
        • Contract
        • Hedged Contract
        • Spot
        • Margin Trading
        • Transfer
        • Convert
        • Deposit And Withdraw
      • 💻BloFin Functions
        • Websocket
        • Account
        • Affiliate
        • Public Data
        • Trading
        • User
      • 💻BingX Functions
        • Fund Account
        • Wallet Deposits and Withdrawals
        • Sub-Account Managenent
        • Market Data (USDT-M)
        • Account (USDT-M)
        • Trades (USDT-M)
        • Market Data (Coin-M)
        • Trades (Coin-M)
        • Market Data (Spot)
        • Fund Account (Spot)
        • Trades (Spot)
        • CopyTrader
      • ⚠️FTX Functions
    • 📜License Agreement
  • 🟣Compendium App
    • 📈Compendium Trading Tools
    • 🔗Connect An Exchange Account
      • 🗝️OKX.com API Keys
    • 🤖Verified Trading Bots
      • Explore The Marketplace
      • For Algo & Strategy Authors
        • Get Listed & Verified
        • Strategy Monetization
        • Sending Trading Signals
        • Simplified Signal Program
      • For Users & Subscribers
        • Subscribing To Bots
        • Managing A Subscription
    • 💫Copy Trading Groups
      • For Copy Group Leaders
        • Creating A Copy Group
        • Linking Leader Account
        • Important Trading Notes
        • Manage A Copy Group
        • Discord Webhooks Setup
      • For Users & Subscribers
        • Subscribe To Copy Group
        • Link Account To Group
    • 📶Signal Provider Groups
      • For Group Leaders
        • Creating A Signal Group
        • Managing A Signal Group
        • Sending Trading Signals
      • For Users & Subscribers
        • Subscribing To Signal Groups
        • Manage Signal Group Subscription
  • 🔵Compendex Suite
    • 🔮DeFi With Compendex
    • ☀️Solana Integrations
      • Supported Solana Wallets
      • Overview And News
      • Openbook Spot Markets
      • Smart Swap Aggregator
      • NFT Metaverse Markets
      • Solana DeFi Analytics Portal
      • Community Tools List
  • 🪙The CMFI Token Ecosystem
    • 📊Tokenomics Breakdown
    • 🍎Trade Incentive Program
    • 🌊Staking And Liquidity Pools
      • ✨Raydium Liquidity Pools
      • 🐳Orca Liquidity Whirlpools
      • 🐋Orca Liquidity Pools
    • 🐷Compendi-Pigs NFT
  • 👥Community Info
    • ✅Links And Social Pages
    • 🎨Branding Guidelines
Powered by GitBook
On this page
  • USDT-M Perp Futures symbols
  • Order Book
  • Recent Trades List
  • Mark Price and Funding Rate
  • Get Funding Rate History
  • Kline/Candlestick Data
  • Open Interest Statistics
  • 24hr Ticker Price Change Statistics
  • Query historical transaction orders
  • Symbol Order Book Ticker
  • Mark Price Kline/Candlestick Data
  • Symbol Price Ticker
  1. PENDAX
  2. Using PENDAX SDK
  3. BingX Functions

Market Data (USDT-M)

PreviousSub-Account ManagenentNextAccount (USDT-M)

Last updated 7 months ago

USDT-M Perp Futures symbols

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

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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);

⚫
💡
💻
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#USDT-M+Perp+Futures+symbols
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Order+Book
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Recent+Trades+List
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Mark+Price+and+Funding+Rate
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Get+Funding+Rate+History
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Kline/Candlestick+Data
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Open+Interest+Statistics
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#24hr+Ticker+Price+Change+Statistics
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Query+historical+transaction+orders
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Symbol+Order+Book+Ticker
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Mark+Price+Kline/Candlestick+Data
https://bingx-api.github.io/docs/#/en-us/swapV2/market-api.html#Symbol+Price+Ticker