Futures Market

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

Get the server time

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-the-server-timearrow-up-right

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

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-informationarrow-up-right

Function Name:

Usage:

Get the transferable currencies

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-the-transferable-currenciesarrow-up-right

Function Name:

Usage:

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

Function Name:

Usage:

Get contract fair price

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-contract-fair-pricearrow-up-right

Function Name:

Usage:

Get contract 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-contract-funding-ratearrow-up-right

Function Name:

Usage:

K-line data

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#k-line-dataarrow-up-right

Function Name:

Usage:

Get K-line data of the index price

circle-info

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-pricearrow-up-right

Function Name:

Usage:

Get K-line data of the fair price

circle-info

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-pricearrow-up-right

Function Name:

Usage:

Get contract transaction data

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-contract-transaction-dataarrow-up-right

Function Name:

Usage:

Get contract trend data

circle-info

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

https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-contract-trend-dataarrow-up-right

Function Name:

Usage:

Get all contract risk fund balance

circle-info

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-balancearrow-up-right

Function Name:

Usage:

Get contract risk fund balance history

circle-info

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-historyarrow-up-right

Function Name:

Usage:

Get contract funding rate history

circle-info

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

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

Function Name:

Usage:

Last updated