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-informationarrow-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);

Query server time

circle-info

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

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

Function Name:

Usage:

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-preferedarrow-up-right

Function Name:

Usage:

Cancel 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#cancel-order-by-order-id-or-client-order-idarrow-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-ordersarrow-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-ordersarrow-up-right

Function Name:

Usage:

Query trading account and positions

circle-info

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

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

Function Name:

Usage:

Query trading account and positions with realtime unPnL

circle-info

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

https://phemex-docs.github.io#query-trading-account-and-positions-with-realtime-unpnlarrow-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-leveragearrow-up-right

Function Name:

Usage:

Set position risklimit

circle-info

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

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

Function Name:

Usage:

Assign position balance in isolated marign mode

circle-info

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

https://phemex-docs.github.io#assign-position-balance-in-isolated-marign-modearrow-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-symbolarrow-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-symbolarrow-up-right

Function Name:

Usage:

Query user 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-user-order-by-order-id-or-client-order-idarrow-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-tradearrow-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-bookarrow-up-right

Function Name:

Usage:

Query full order book

circle-info

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

https://phemex-docs.github.io#query-full-order-bookarrow-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-klinearrow-up-right

Function Name:

Usage:

Query recent trades

circle-info

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

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

Function Name:

Usage:

Query 24 hours ticker

circle-info

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

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

Function Name:

Usage:

Query 24 hours 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-hours-ticker-for-all-symbolsarrow-up-right

Function Name:

Usage:

Query history trades by symbol

circle-info

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

https://phemex-docs.github.io#query-history-trades-by-symbolarrow-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-historyarrow-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-historyarrow-up-right

Function Name:

Usage:

Query contract fee rate

circle-info

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

https://phemex-docs.github.io#query-contract-fee-ratearrow-up-right

Function Name:

Usage:

Query Funds Detail

circle-info

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

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

Function Name:

Usage:

Last updated