Futures Market

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

Get the server time

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-the-server-time

Function Name:

getServerTimeFutures()

Usage:

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

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

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

let result = await getServerTimeFutures(myMexcExchanges);

Get the contract information

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-information

Function Name:

Usage:

Get the transferable currencies

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-the-transferable-currencies

Function Name:

Usage:

Get a snapshot of the latest N depth information of the contract

Function Name:

Usage:

Get contract fair price

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-contract-fair-price

Function Name:

Usage:

Get contract funding rate

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-contract-funding-rate

Function Name:

Usage:

K-line data

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#k-line-data

Function Name:

Usage:

Get K-line data of the index price

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-k-line-data-of-the-index-price

Function Name:

Usage:

Get K-line data of the fair price

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-k-line-data-of-the-fair-price

Function Name:

Usage:

Get contract transaction data

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-contract-transaction-data

Function Name:

Usage:

Get contract trend data

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-contract-trend-data

Function Name:

Usage:

Get all contract risk fund balance

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-all-contract-risk-fund-balance

Function Name:

Usage:

Get contract risk fund balance history

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-contract-risk-fund-balance-history

Function Name:

Usage:

Get contract funding rate history

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-contract-funding-rate-history

Function Name:

Usage:

Last updated