Futures Account and Trading

Documentation on interacting with Mexc's Futures Account and Trading API functions through the PENDAX Javascript SDK.

Get all informations of user's asset

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-all-informations-of-user-39-s-assetarrow-up-right

Function Name:

getUserAssetInfoFutures()

Usage:

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

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

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

let result = await getUserAssetInfoFutures(myMexcExchanges);

Get the user's single currency asset information

circle-info

Function Name:

Usage:

Get the user's asset transfer records

circle-info

Function Name:

Usage:

Get the user’s history position information

circle-info

Function Name:

Usage:

Get the user's current holding position

circle-info

Function Name:

Usage:

Get details of user‘s funding rate

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-details-of-user-s-funding-ratearrow-up-right

Function Name:

Usage:

Get the user's current pending order

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-the-user-39-s-current-pending-orderarrow-up-right

Function Name:

Usage:

Get all of the user's historical orders

circle-info

Function Name:

Usage:

Query the order based on the external number

circle-info

Function Name:

Usage:

Query the order based on the order number

circle-info

Function Name:

Usage:

Get order transaction details based on the order ID

circle-info

Function Name:

Usage:

Get all transaction details of the user’s order

circle-info

Function Name:

Usage:

Gets the trigger order list

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#gets-the-trigger-order-listarrow-up-right

Function Name:

Usage:

Get the Stop-Limit order list

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-the-stop-limit-order-listarrow-up-right

Function Name:

Usage:

Get risk limits

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-risk-limitsarrow-up-right

Function Name:

Usage:

Increase or decrease margin

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#increase-or-decrease-marginarrow-up-right

Function Name:

Usage:

Get leverage

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-leveragearrow-up-right

Function Name:

Usage:

Get position mode

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-position-modearrow-up-right

Function Name:

Usage:

Last updated