Links

Rebate

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

Get Rebate History Records

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

Function Name:

getRebateHistoryRecords()

Usage:

import { createExchange } from "./exchanges/exchange.js";
let myMexcExchanges = createExchange({
exchange: "mexc",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "mexc"
});
async function getRebateHistoryRecords(exchange, options) {
try {
let result = await exchange.getRebateHistoryRecords(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getRebateHistoryRecords(myMexcExchanges);

Get Rebate Records Detail

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

Function Name:

getRebateRecordsDetail()

Usage:

import { createExchange } from "./exchanges/exchange.js";
let myMexcExchanges = createExchange({
exchange: "mexc",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "mexc"
});
async function getRebateRecordsDetail(exchange, options) {
try {
let result = await exchange.getRebateRecordsDetail(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getRebateRecordsDetail(myMexcExchanges);

Get Self Rebate Records Detail

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

Function Name:

getSelfRebateRecordsDetail()

Usage:

import { createExchange } from "./exchanges/exchange.js";
let myMexcExchanges = createExchange({
exchange: "mexc",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "mexc"
});
async function getSelfRebateRecordsDetail(exchange, options) {
try {
let result = await exchange.getSelfRebateRecordsDetail(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getSelfRebateRecordsDetail(myMexcExchanges);

Query ReferCode

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

Function Name:

getReferCode()

Usage:

import { createExchange } from "./exchanges/exchange.js";
let myMexcExchanges = createExchange({
exchange: "mexc",
authenticate: "true",
key: "myKey",
secret: "mySecret",
label: "mexc"
});
async function getReferCode(exchange, options) {
try {
let result = await exchange.getReferCode(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getReferCode(myMexcExchanges);
Last modified 7mo ago