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
  • Get All Symbols
  • Get Depth
  • Get Single Symbol Tracker
  • Get All Symbol Tracker
  • Get Fills
  • Get Candle Data
  • Get Symbol Index Price
  • Get Symbol Next Funding Time
  • Get History Funding Rate
  • Get Current Funding Rate
  • Get Open Interest
  • Get Symbol Mark Price
  • Get Symbol Leverage
  1. PENDAX
  2. Using PENDAX SDK
  3. Bitget Functions

Market (Futures)

Documentation on interacting with Bitget's Futures Market Data API functions through the PENDAX Javascript SDK.

PreviousTrade (Spot)NextAccount (Futures)

Last updated 1 year ago

Get All Symbols

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getAllFuturesSymbols(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt",
      testnet: "false"
});

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

const result = await getAllFuturesSymbols(myBitgetAccount, {productType: "umcbl"})

Get Depth

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getDepthFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getDepthFutures(myBitgetAccount,
{ symbol: "BTCUSDT_UMCBL" });

Get Single Symbol Tracker

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getSingleTickerFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getSingleTickerFutures(myBitgetAccount, 
{ symbol: "BTCUSDT_UMCBL" });

Get All Symbol Tracker

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getAllTickersFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getAllTickersFutures(myBitgetAccount 
    {
        productType: umcbl
    });

Get Fills

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getFillsFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getFillsFutures(myBitgetAccount, 
    {
        symbol: "BTCUSDT_UMCBL"
    });

Get Candle Data

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getCandlesFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getCandlesFutures(myBitgetAccount, 
    {
        symbol: "BTCUSDT_UMCBL",
        granularity: "300",
        startTime: "1659406928000",
        endTime: "1659410528000"
    });

Get Symbol Index Price

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getSymbolIndexPriceFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getSymbolIndexPriceFutures(myBitgetAccount,
    {
        symbol: "BTCUSDT_UMCBL"
    });

Get Symbol Next Funding Time

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getNextFundingTimeFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getNextFundingTimeFutures(myBitgetAccount, 
    { 
        symbol: "BTCUSDT_UMCBL"
    });

Get History Funding Rate

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getHistoricFundingRateFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getHistoricFundingRateFutures(myBitgetAccount, 
    { 
        symbol: "BTCUSDT_UMCBL"
    });

Get Current Funding Rate

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getCurrentFundingRateFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getCurrentFundingRateFutures(myBitgetAccount, 
    { 
        symbol: "BTCUSDT_UMCBL"
    });

Get Open Interest

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getOpenInterestFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getOpenInterestFutures(myBitgetAccount, 
    { 
        symbol: "BTCUSDT_UMCBL"
    });

Get Symbol Mark Price

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getMarkPriceFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getMarkPriceFutures(myBitgetAccount, 
    { 
        symbol: "BTCUSDT_UMCBL"
    });

Get Symbol Leverage

Please refer to the official Bitget API Docs for the required parameters.

Function name:

getSymbolLeverageFutures(options)

Usage:

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

  let myBitgetAccount = createExchange({
      exchange: "bitget",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "bitget",
      marginType: "usdt"
});

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

const result = await getSymbolLeverageFutures(myBitgetAccount, 
    { 
        symbol: "BTCUSDT_UMCBL"
    });

⚫
💡
💻
https://bitgetlimited.github.io/apidoc/en/mix/#get-all-symbols
https://bitgetlimited.github.io/apidoc/en/mix/#get-depth
https://bitgetlimited.github.io/apidoc/en/mix/#get-single-symbol-ticker
https://bitgetlimited.github.io/apidoc/en/mix/#get-all-symbol-ticker
https://bitgetlimited.github.io/apidoc/en/mix/#get-fills
https://bitgetlimited.github.io/apidoc/en/mix/#get-candle-data
https://bitgetlimited.github.io/apidoc/en/mix/#get-symbol-index-price
https://bitgetlimited.github.io/apidoc/en/mix/#get-symbol-next-funding-time
https://bitgetlimited.github.io/apidoc/en/mix/#get-history-funding-rate
https://bitgetlimited.github.io/apidoc/en/mix/#get-current-funding-rate
https://bitgetlimited.github.io/apidoc/en/mix/#get-open-interest
https://bitgetlimited.github.io/apidoc/en/mix/#get-symbol-mark-price
https://bitgetlimited.github.io/apidoc/en/mix/#get-symbol-leverage