Hedged Contract

Query product information

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

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

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-2

Function Name:

Usage:

Amend order by orderID

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

https://phemex-docs.github.io#amend-order-by-orderid

Function Name:

Usage:

Cancel Single Order by orderID

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

https://phemex-docs.github.io#cancel-single-order-by-orderid

Function Name:

Usage:

Bulk Cancel Orders

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

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

Function Name:

Usage:

Cancel All Orders

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

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

Function Name:

Usage:

Query Account Positions

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

https://phemex-docs.github.io#query-account-positions

Function Name:

Usage:

Query Account Positions with unrealized PNL

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

https://phemex-docs.github.io#query-account-positions-with-unrealized-pnl

Function Name:

Usage:

Switch Position Mode Synchronously

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

https://phemex-docs.github.io#switch-position-mode-synchronously

Function Name:

Usage:

Set Leverage

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

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

Function Name:

Usage:

Set RiskLimit

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

https://phemex-docs.github.io#set-risklimit

Function Name:

Usage:

Query open orders by symbol

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

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

Function Name:

Usage:

Query closed orders by symbol

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

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

Function Name:

Usage:

Query user trade

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

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

Function Name:

Usage:

Query Order Book

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

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

Function Name:

Usage:

Query kline

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

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

Function Name:

Usage:

Query Trade

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

https://phemex-docs.github.io#query-trade

Function Name:

Usage:

Query 24 ticker

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

https://phemex-docs.github.io#query-24-ticker

Function Name:

Usage:

Query 24 ticker for all symbols

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

https://phemex-docs.github.io#query-24-ticker-for-all-symbols

Function Name:

Usage:

Query Orders History

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

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

Function Name:

Usage:

Query Orders By Ids

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

https://phemex-docs.github.io#query-orders-by-ids

Function Name:

Usage:

Query Trades History

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

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

Function Name:

Usage:

Query funding rate history

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

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

Function Name:

Usage:

Query funding fee history

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

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

Function Name:

Usage:

Last updated