Futures Market
Documentation on interacting with Mexc's Futures Market API functions through the PENDAX Javascript SDK.
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
Function Name:
Usage:
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
Function Name:
Usage:
Get contract funding rate
Function Name:
Usage:
K-line data
Function Name:
Usage:
Get K-line data of the index price
Function Name:
Usage:
Get K-line data of the fair price
Function Name:
Usage:
Get contract transaction data
Function Name:
Usage:
Get contract trend data
Function Name:
Usage:
Get all contract risk fund balance
Function Name:
Usage:
Get contract risk fund balance history
Function Name:
Usage:
Get contract funding rate history
Function Name:
Usage:
Last updated