Hedged Contract

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

Function Name:

Usage:

Amend order by orderID

circle-info

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

https://phemex-docs.github.io#amend-order-by-orderidarrow-up-right

Function Name:

Usage:

Cancel Single Order by orderID

circle-info

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

https://phemex-docs.github.io#cancel-single-order-by-orderidarrow-up-right

Function Name:

Usage:

Bulk Cancel Orders

circle-info

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

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

Function Name:

Usage:

Cancel All Orders

circle-info

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

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

Function Name:

Usage:

Query Account Positions

circle-info

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

https://phemex-docs.github.io#query-account-positionsarrow-up-right

Function Name:

Usage:

Query Account Positions with unrealized PNL

circle-info

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

https://phemex-docs.github.io#query-account-positions-with-unrealized-pnlarrow-up-right

Function Name:

Usage:

Switch Position Mode Synchronously

circle-info

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

https://phemex-docs.github.io#switch-position-mode-synchronouslyarrow-up-right

Function Name:

Usage:

Set Leverage

circle-info

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

https://phemex-docs.github.io#set-leverage-2arrow-up-right

Function Name:

Usage:

Set RiskLimit

circle-info

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

https://phemex-docs.github.io#set-risklimitarrow-up-right

Function Name:

Usage:

Query open orders by symbol

circle-info

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

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

Function Name:

Usage:

Query closed orders by symbol

circle-info

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

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

Function Name:

Usage:

Query user trade

circle-info

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

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

Function Name:

Usage:

Query Order Book

circle-info

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

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

Function Name:

Usage:

Query kline

circle-info

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

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

Function Name:

Usage:

Query Trade

circle-info

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

https://phemex-docs.github.io#query-tradearrow-up-right

Function Name:

Usage:

Query 24 ticker

circle-info

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

https://phemex-docs.github.io#query-24-tickerarrow-up-right

Function Name:

Usage:

Query 24 ticker for all symbols

circle-info

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

https://phemex-docs.github.io#query-24-ticker-for-all-symbolsarrow-up-right

Function Name:

Usage:

Query Orders History

circle-info

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

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

Function Name:

Usage:

Query Orders By Ids

circle-info

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

https://phemex-docs.github.io#query-orders-by-idsarrow-up-right

Function Name:

Usage:

Query Trades History

circle-info

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

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

Function Name:

Usage:

Query funding rate history

circle-info

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

https://phemex-docs.github.io#query-funding-rate-history-2arrow-up-right

Function Name:

Usage:

Query funding fee history

circle-info

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

https://phemex-docs.github.io#query-funding-fee-history-2arrow-up-right

Function Name:

Usage:

Last updated