Sub-Account

Documentation on interacting with Mexc's Sub-Account API functions through the PENDAX Javascript SDK.

Create a Sub-account(For Master Account)

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

https://mxcdevelop.github.io/apidocs/spot_v3_en/#create-a-sub-account-for-master-account

Function Name:

createSubAccountSpot()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myMexcExchanges  = createExchange({
      exchange: "mexc",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "mexc"
  });

async function createSubAccountSpot(exchange, options) {
    try {
        let result = await exchange.createSubAccountSpot(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await createSubAccountSpot(myMexcExchanges,
     {
         subAccount: "mikwdn443ksnsadasd",
         note: "1"
     });

Query Sub-account List (For Master Account)

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

https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-sub-account-list-for-master-account

Function Name:

Usage:

Create an APIKey for a sub-account (For Master Account)

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

https://mxcdevelop.github.io/apidocs/spot_v3_en/#create-an-apikey-for-a-sub-account-for-master-account

Function Name:

Usage:

Query the APIKey of a sub-account (For Master Account)

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

https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-apikey-of-a-sub-account-for-master-account

Function Name:

Usage:

Delete the APIKey of a sub-account (For Master Account)

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

https://mxcdevelop.github.io/apidocs/spot_v3_en/#delete-the-apikey-of-a-sub-account-for-master-account

Function Name:

Usage:

Universal Transfer (For Master Account)

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

https://mxcdevelop.github.io/apidocs/spot_v3_en/#universal-transfer-for-master-account

Function Name:

Usage:

Query Universal Transfer History (For Master Account)

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

https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-universal-transfer-history-for-master-account

Function Name:

Usage:

Last updated