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
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
Function Name:
Usage:
Get the user's asset transfer records
Function Name:
Usage:
Get the user’s history position information
Function Name:
Usage:
Get the user's current holding position
Function Name:
Usage:
Get details of user‘s funding rate
Function Name:
Usage:
Get the user's current pending order
Function Name:
Usage:
Get all of the user's historical orders
Function Name:
Usage:
Query the order based on the external number
Function Name:
Usage:
Query the order based on the order number
Function Name:
Usage:
Get order transaction details based on the order ID
Function Name:
Usage:
Get all transaction details of the user’s order
Function Name:
Usage:
Gets the trigger order list
Function Name:
Usage:
Get the Stop-Limit order list
Function Name:
Usage:
Get risk limits
Function Name:
Usage:
Increase or decrease margin
Function Name:
Usage:
Get leverage
Function Name:
Usage:
Get position mode
Function Name:
Usage:
Last updated