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 Broker Info
  • Create Sub Account
  • Get Sub List
  • Modify Sub Account
  • Modify Sub Email
  • Get Sub Email
  • Get Sub Spot Assets
  • Get Sub Future Assets
  • Get Sub Deposit Address
  • Sub Withdrawal
  • Sub Deposit Auto Transfer
  1. PENDAX
  2. Using PENDAX SDK
  3. Bitget Functions

Sub Account Interface (Broker)

PreviousCopyTrade (Futures)NextSub API Interface (Broker)

Last updated 1 year ago

This section is under construction. Some functions may not work correctly.

Get Broker Info

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

Function name:

getBrokerInfo()

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

const result = await getBrokerInfo(myBitgetAccount);

Create Sub Account

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

Function name:

createSubaccount()

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

const result = await createSubaccount(myBitgetAccount

Get Sub List

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

Function name:

getSubList()

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

const result = await getSubList(myBitgetAccount

Modify Sub Account

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

Function name:

modifySubaccount()

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

const result = await modifySubaccount(myBitgetAccount

Modify Sub Email

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

Function name:

modifySubaccountEmail()

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

const result = await modifySubaccountEmail(myBitgetAccount

Get Sub Email

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

Function name:

getSubId()

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

const result = await getSubId(myBitgetAccount

Get Sub Spot Assets

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

Function name:

getSubSpotAssets()

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

const result = await getSubSpotAssets(myBitgetAccount

Get Sub Future Assets

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

Function name:

getSubFuturesAssets()

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

const result = await getSubFuturesAssets(myBitgetAccount

Get Sub Deposit Address

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

Function name:

getSubDepositAddressBrokerOnly()

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

const result = await getSubDepositAddressBrokerOnly(myBitgetAccount

Sub Withdrawal

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

Function name:

subWithdrawalBrokerOnly()

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

const result = await subWithdrawalBrokerOnly(myBitgetAccount

Sub Deposit Auto Transfer

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

Function name:

subDepositAutoTransferBrokerOnly()

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

const result = await subDepositAutoTransferBrokerOnly(myBitgetAccount

⚫
💡
💻
https://bitgetlimited.github.io/apidoc/en/broker/#get-broker-info
https://bitgetlimited.github.io/apidoc/en/broker/#create-sub-account
https://bitgetlimited.github.io/apidoc/en/broker/#get-sub-list
https://bitgetlimited.github.io/apidoc/en/broker/#modify-sub-account
https://bitgetlimited.github.io/apidoc/en/broker/#modify-sub-email
https://bitgetlimited.github.io/apidoc/en/broker/#get-sub-email
https://bitgetlimited.github.io/apidoc/en/broker/#get-sub-spot-assets
https://bitgetlimited.github.io/apidoc/en/broker/#get-sub-future-assets
https://bitgetlimited.github.io/apidoc/en/broker/#get-sub-deposit-address-only-broker
https://bitgetlimited.github.io/apidoc/en/broker/#sub-withdrawal-only-broker
https://bitgetlimited.github.io/apidoc/en/broker/#sub-deposit-auto-transfer-only-broker