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.

https://mxcdevelop.github.io/apidocs/spot_v3_en/#get-rebate-history-records

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.

https://mxcdevelop.github.io/apidocs/spot_v3_en/#get-rebate-records-detail

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.

https://mxcdevelop.github.io/apidocs/spot_v3_en/#get-self-rebate-records-detail

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.

https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-refercode

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 updated