For the complete documentation index, see llms.txt. This page is also available as Markdown.

Contract

Query product information

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

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

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

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

https://phemex-docs.github.io#query-server-time

Function Name:

Usage:

Place order

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

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

Function Name:

Usage:

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

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

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

Function Name:

Usage:

Query trading account and positions

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

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

Function Name:

Usage:

Query trading account and positions with realtime unPnL

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

https://phemex-docs.github.io#query-trading-account-and-positions-with-realtime-unpnl

Function Name:

Usage:

Set leverage

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

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

Function Name:

Usage:

Set position risklimit

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

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

Function Name:

Usage:

Assign position balance in isolated marign mode

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

https://phemex-docs.github.io#assign-position-balance-in-isolated-marign-mode

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

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

Function Name:

Usage:

Query user 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-user-order-by-order-id-or-client-order-id

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

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

Function Name:

Usage:

Query full order book

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

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

Function Name:

Usage:

Query kline

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

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

Function Name:

Usage:

Query recent trades

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

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

Function Name:

Usage:

Query 24 hours ticker

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

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

Function Name:

Usage:

Query 24 hours ticker for all symbols

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

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

Function Name:

Usage:

Query history trades by symbol

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

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

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

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

Function Name:

Usage:

Query contract fee rate

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

https://phemex-docs.github.io#query-contract-fee-rate

Function Name:

Usage:

Query Funds Detail

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

https://phemex-docs.github.io#query-funds-detail

Function Name:

Usage:

Last updated