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
  • Query Assets
  • Asset Transfer
  • Asset transfer records
  • Main Accoun internal transfer
  • Main account internal transfer records
  • Query Assets
  • Asset Transfer
  • Asset transfer records
  1. PENDAX
  2. Using PENDAX SDK
  3. BingX Functions

Fund Account

PreviousBingX FunctionsNextWallet Deposits and Withdrawals

Last updated 7 months ago

Query Assets

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

Function Name:

getAssets()

Usage:

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

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

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

let result = await getAssets(myBingxExchange);

Asset Transfer

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

Function Name:

transferAssets()

Usage:

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

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

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

let result = await transferAssets(myBingxExchange, {
	type: "<ENUM>",
	asset: "<string>",
	amount: "<DECIMAL>"
});

Asset transfer records

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

Function Name:

getAssetTransferRecords()

Usage:

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

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

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

let result = await getAssetTransferRecords(myBingxExchange, {
	type: "<ENUM>"
});

Main Accoun internal transfer

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

Function Name:

mainAccountInternalTransfer()

Usage:

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

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

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

let result = await mainAccountInternalTransfer(myBingxExchange);

Main account internal transfer records

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

Function Name:

getMainAccountInternalTransferRecords()

Usage:

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

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

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

let result = await getMainAccountInternalTransferRecords(myBingxExchange);

Query Assets

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

Function Name:

getAssetsSpot()

Usage:

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

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

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

let result = await getAssetsSpot(myBingxExchange);

Asset Transfer

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

Function Name:

assetTransferSpot()

Usage:

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

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

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

let result = await assetTransferSpot(myBingxExchange, {
	type: "<ENUM>",
	asset: "<string>",
	amount: "<DECIMAL>"
});

Asset transfer records

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

Function Name:

getAssetTransferRecordsSpot()

Usage:

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

   let myBingxExchange  = createExchange({
      exchange: "bingx",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "bingx"
  });

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

let result = await getAssetTransferRecordsSpot(myBingxExchange, {
	type: "<ENUM>"
});

⚫
💡
💻
https://bingx-api.github.io/docs/#/en-us/common/account-api.html#Query+Assets
https://bingx-api.github.io/docs/#/en-us/common/account-api.html#Asset+Transfer
https://bingx-api.github.io/docs/#/en-us/common/account-api.html#Asset+transfer+records
https://bingx-api.github.io/docs/#/en-us/common/account-api.html#Main+Accoun+internal+transfer
https://bingx-api.github.io/docs/#/en-us/common/account-api.html#Main+account+internal+transfer+records
https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Query+Assets
https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Asset+Transfer
https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Asset+transfer+records