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

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-asset

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

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-single-currency-asset-information

Function Name:

Usage:

Get the user's asset transfer records

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-asset-transfer-records

Function Name:

Usage:

Get the user’s history position information

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-the-user-s-history-position-information

Function Name:

Usage:

Get the user's current holding position

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-holding-position

Function Name:

Usage:

Get details of user‘s funding rate

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-rate

Function Name:

Usage:

Get the user's current pending order

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-order

Function Name:

Usage:

Get all of the user's historical orders

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-all-of-the-user-39-s-historical-orders

Function Name:

Usage:

Query the order based on the external number

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#query-the-order-based-on-the-external-number

Function Name:

Usage:

Query the order based on the order number

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#query-the-order-based-on-the-order-number

Function Name:

Usage:

Get order transaction details based on the order ID

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-order-transaction-details-based-on-the-order-id

Function Name:

Usage:

Get all transaction details of the user’s order

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-all-transaction-details-of-the-user-s-order

Function Name:

Usage:

Gets the trigger order list

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#gets-the-trigger-order-list

Function Name:

Usage:

Get the Stop-Limit order list

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-list

Function Name:

Usage:

Get risk limits

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-risk-limits

Function Name:

Usage:

Increase or decrease margin

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#increase-or-decrease-margin

Function Name:

Usage:

Get leverage

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-leverage

Function Name:

Usage:

Get position mode

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-position-mode

Function Name:

Usage:

Last updated