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 the currency information
  • Withdraw
  • Cancel withdraw
  • Deposit History(supporting network)
  • Withdraw History (supporting network)
  • Generate deposit address (supporting network)
  • Deposit Address (supporting network)
  • Withdraw Address (supporting network)
  • User Universal Transfer
  • Query User Universal Transfer History
  • Query User Universal Transfer History (by tranId)
  • Get Assets That Can Be Converted Into MX
  • Dust Transfer
  • DustLog
  1. PENDAX
  2. Using PENDAX SDK
  3. Mexc Functions

Wallet

Documentation on interacting with Mexc's Wallet API functions through the PENDAX Javascript SDK.

PreviousSpot Account/TradeNextETF

Last updated 1 year ago

Query the currency information

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

Function Name:

getCurrencyInformationSpot()

Usage:

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

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

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

let result = await getCurrencyInformationSpot(myMexcExchanges);

Withdraw

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

Function Name:

withdrawSpot()

Usage:

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

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

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

let result = await withdrawSpot(myMexcExchanges, 
    {
        coin: "EOS",
        address: "zzqqqqqqqqqq",
        amount: "10"
    );

Cancel withdraw

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

Function Name:

cancelWithdrawSpot()

Usage:

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

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

async function cancelWithdrawSpot(exchange, options) {
    try {
        let result = await exchange.cancelWithdrawSpot(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}
let result = await cancelWithdrawSpot(myMexcExchanges, 
    {
        id: "ca7bd51895134fb5bd749f1cf875b8af"
    );

Deposit History(supporting network)

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

Function Name:

getDepositHistorySpot()

Usage:

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

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

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

let result = await getDepositHistorySpot(myMexcExchanges);

Withdraw History (supporting network)

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

Function Name:

getWithdrawHistorySpot()

Usage:

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

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

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

let result = await getWithdrawHistorySpot(myMexcExchanges);

Generate deposit address (supporting network)

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

Function Name:

generateDepositAddressSpot()

Usage:

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

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

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

let result = await generateDepositAddressSpot(myMexcExchanges,
         {
             coin: "USDT",
             network: "TRC20"
         });

Deposit Address (supporting network)

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

Function Name:

getDepositAddressSpot()

Usage:

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

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

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

let result = await getDepositAddressSpot(myMexcExchanges,
         {
             coin: "USDT"
         });

Withdraw Address (supporting network)

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

Function Name:

getWithdrawAddressSpot()

Usage:

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

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

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

let result = await getWithdrawAddressSpot(myMexcExchanges);

User Universal Transfer

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

Function Name:

userUniversalTransferSpot()

Usage:

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

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

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

let result = await userUniversalTransferSpot(myMexcExchanges,
         {
             fromAccountType: "SPOT",
             toAccountType: "FUTURES",
             asset: "USDT",
             amount: "10"
         });

Query User Universal Transfer History

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

Function Name:

getUniversalTransferHistorySpot()

Usage:

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

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

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

let result = await getUniversalTransferHistorySpot(myMexcExchanges,
         {
             toAccount: "mikwdn443ksnsadasd",
             fromAccountType: "SPOT",
             toAccountType: "SPOT"
         });

Query User Universal Transfer History (by tranId)

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

Function Name:

getUniversalTransferHistoryTranIdSpot()

Usage:

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

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

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

let result = await getUniversalTransferHistoryTranIdSpot(myMexcExchanges,
         {
             tranId: "fedfdd5d23f94582a117a67118323db9"
         });

Get Assets That Can Be Converted Into MX

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

Function Name:

getMxConvertableAssetsSpot()

Usage:

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

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

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

let result = await getMxConvertableAssetsSpot(myMexcExchanges);

Dust Transfer

This function is currently under construction and may fail or give unexpected behavior

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

Function Name:

dustTransferSpot()

Usage:

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

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

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

DustLog

This function is currently under construction and may fail or give unexpected behavior

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

Function Name:

getDustLogSpot()

Usage:

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

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

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

let result = await getDustLogSpot(myMexcExchanges);

⚫
💡
💻
https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
https://mxcdevelop.github.io/apidocs/spot_v3_en/#withdraw
https://mxcdevelop.github.io/apidocs/spot_v3_en/#cancel-withdraw
https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-history-supporting-network
https://mxcdevelop.github.io/apidocs/spot_v3_en/#withdraw-history-supporting-network
https://mxcdevelop.github.io/apidocs/spot_v3_en/#generate-deposit-address-supporting-network
https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
https://mxcdevelop.github.io/apidocs/spot_v3_en/#withdraw-address-supporting-network
https://mxcdevelop.github.io/apidocs/spot_v3_en/#user-universal-transfer
https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-user-universal-transfer-history
https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-user-universal-transfer-history-by-tranid
https://mxcdevelop.github.io/apidocs/spot_v3_en/#get-assets-that-can-be-converted-into-mx
https://mxcdevelop.github.io/apidocs/spot_v3_en/#dust-transfer
https://mxcdevelop.github.io/apidocs/spot_v3_en/#dustlog