Margin Trading

Query product information

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

https://phemex-docs.github.io#query-product-information-4

Function Name:

getProductInfo()

Usage:

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

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

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

let result = await getProductInfo(myMainPhemexExchange);

Place order

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

https://phemex-docs.github.io/#place-order-http-put-prefered-4

Function Name:

Usage:

Cancel order

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

https://phemex-docs.github.io#cancel-order-2

Function Name:

Usage:

Cancel all order by symbol

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

https://phemex-docs.github.io#cancel-all-order-by-symbol-2

Function Name:

Usage:

Query open order by order ID or client order ID

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

https://phemex-docs.github.io#query-open-order-by-order-id-or-client-order-id-2

Function Name:

Usage:

Query all open orders by symbol

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

https://phemex-docs.github.io#query-all-open-orders-by-symbol-2

Function Name:

Usage:

Query margin orders details

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

https://phemex-docs.github.io#query-margin-orders-details

Function Name:

Usage:

Query margin order trades details

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

https://phemex-docs.github.io#query-margin-order-trades-details

Function Name:

Usage:

Query margin borrow interest history

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

https://phemex-docs.github.io#query-margin-borrow-interest-history

Function Name:

Usage:

Query margin borrow history records

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

https://phemex-docs.github.io#query-margin-borrow-history-records

Function Name:

Usage:

Query margin payback history

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

https://phemex-docs.github.io#query-margin-payback-history

Function Name:

Usage:

Post margin borrow request

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

https://phemex-docs.github.io#post-margin-borrow-request

Function Name:

Usage:

Post margin payback history

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

https://phemex-docs.github.io#post-margin-payback-history

Function Name:

Usage:

Query wallets

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

https://phemex-docs.github.io#query-wallets-2

Function Name:

Usage:

Last updated