Margin Trading

Query product information

circle-info

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

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

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

circle-info

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

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

Function Name:

Usage:

Cancel order

circle-info

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

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

Function Name:

Usage:

Cancel all order by symbol

circle-info

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

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

Function Name:

Usage:

Query open order by order ID or client order ID

circle-info

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-2arrow-up-right

Function Name:

Usage:

Query all open orders by symbol

circle-info

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

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

Function Name:

Usage:

Query margin orders details

circle-info

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

https://phemex-docs.github.io#query-margin-orders-detailsarrow-up-right

Function Name:

Usage:

Query margin order trades details

circle-info

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

https://phemex-docs.github.io#query-margin-order-trades-detailsarrow-up-right

Function Name:

Usage:

Query margin borrow interest history

circle-info

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

https://phemex-docs.github.io#query-margin-borrow-interest-historyarrow-up-right

Function Name:

Usage:

Query margin borrow history records

circle-info

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

https://phemex-docs.github.io#query-margin-borrow-history-recordsarrow-up-right

Function Name:

Usage:

Query margin payback history

circle-info

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

https://phemex-docs.github.io#query-margin-payback-historyarrow-up-right

Function Name:

Usage:

Post margin borrow request

circle-info

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

https://phemex-docs.github.io#post-margin-borrow-requestarrow-up-right

Function Name:

Usage:

Post margin payback history

circle-info

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

https://phemex-docs.github.io#post-margin-payback-historyarrow-up-right

Function Name:

Usage:

Query wallets

circle-info

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

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

Function Name:

Usage:

Last updated