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
  • Transfer
  • Sub Transfer
  • Get Coin Address
  • Withdraw
  • Inner Withdraw
  • Get Withdraw List
  • Get Deposit List
  1. PENDAX
  2. Using PENDAX SDK
  3. Bitget Functions

Wallet (Spot)

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

PreviousMarket (Spot)NextAccount (Spot)

Last updated 2 years ago

All Spot Market Wallet API endpoints require authentication. Please create Bitget API keys to interact with these functions successfully. Accounts must be funded or collateralized for any trades to successfully post.

Transfer

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

Function name:

spotWalletTransfer()

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

const result = await spotWalletTransfer(myBitgetAccount, 
    {
        fromType: "spot",
        toType: "mix_usdt",
        amount: "0.1",
        coin: "USDT"
    })

Sub Transfer

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

Function name:

subaccountTransfer()

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

const result = await subaccountTransfer(myBitgetAccount, {
 fromType: "spot",
 toType: "spot",
 amount: "5",
 coin: "USDT",
 clientOid: "12345",
 fromUserId: "1",
 toUserId: "2"});

Get Coin Address

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

Function name:

getCoinDepositAddress()

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

const result = await getCoinDepositAddress(myBitgetAccount, 
    {
        coin: "USDT",
        chain: "trc20"
    });

Withdraw

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

This function is under construction

Function name:

spotWalletWithdraw()

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

const result = await spotWalletWithdraw(myBitgetAccount)

Inner Withdraw

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

Function name:

innerWithdraw()

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

const result = await innerWithdraw(myBitgetAccount, {
    coin: "USDT",
    toUid: "234567",
    amount: "5"
  });

Get Withdraw List

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

Function name:

getWithdrawalList()

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

const result = await getWithdrawalList(myBitgetAccount, {
    coin: "USDT",
    startTime: "1659036670000",
    endTime: "1659076670000",
    pageNo: "1",
    pageSize: "20"
    });

Get Deposit List

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

Function name:

getDepositList()

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

const result = await getDepositList(myBitgetAccount, {
    coin: "USDT",
    startTime: "1659036670000",
    endTime: "1659076670000",
    pageNo: "1",
    pageSize: "20"
    })

⚫
💡
💻
https://bitgetlimited.github.io/apidoc/en/spot/#transfer
https://bitgetlimited.github.io/apidoc/en/spot/#sub-transfer
https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-address
https://bitgetlimited.github.io/apidoc/en/spot/#withdraw
https://bitgetlimited.github.io/apidoc/en/spot/#inner-withdraw
https://bitgetlimited.github.io/apidoc/en/spot/#get-withdraw-list
https://bitgetlimited.github.io/apidoc/en/spot/#get-deposit-list