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 ApiKey Info
  • Get Account Assets
  • Get sub Account Spot Assets
  • Get Bills
  • Get Transfer List
  1. PENDAX
  2. Using PENDAX SDK
  3. Bitget Functions

Account (Spot)

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

PreviousWallet (Spot)NextTrade (Spot)

Last updated 1 year ago

All Spot Market Account & Account Data API endpoints require authentication. Please create Bitget API keys to interact with these functions successfully.

Get ApiKey Info

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

Function name:

getApiKeyInfo()

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 getApiKeyInfo(exchange) {
    try {
        let result = await exchange.getApiKeyInfo();
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getApiKeyInfo(myBitgetAccount)

Get Account Assets

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

Function name:

getAccountAssets()

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 getAccountAssets(exchange) {
    try {
        let result = await exchange.getAccountAssets();
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getAccountAssets(myBitgetAccount)

Get sub Account Spot Assets

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

Function name:

getSubaccountSpotAssets()

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 getSubaccountSpotAssets(exchange) {
    try {
        let result = await exchange.getSubaccountSpotAssets();
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getSubaccountSpotAssets(myBitgetAccount)

Get Bills

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

Function name:

getBills()

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 getBills(exchange) {
    try {
        let result = await exchange.getBills();
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getBills(myBitgetAccount)

Get Transfer List

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

Function name:

getTransferList()

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 getTransferList(exchange) {
    try {
        let result = await exchange.getTransferList();
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getTransferList(myBitgetAccount)

⚫
💡
💻
https://bitgetlimited.github.io/apidoc/en/spot/#get-apikey-info
https://bitgetlimited.github.io/apidoc/en/spot/#get-account-asset
https://bitgetlimited.github.io/apidoc/en/spot/#get-sub-account-spot-assets
https://bitgetlimited.github.io/apidoc/en/spot/#get-bills
https://bitgetlimited.github.io/apidoc/en/spot/#get-transfer-list