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

Spot

Query product information

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

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

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

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

Function Name:

Usage:

Amend order

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

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

Function Name:

Usage:

Cancel order

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

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

Function Name:

Usage:

Cancel all order by symbol

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

https://phemex-docs.github.io#cancel-all-order-by-symbol

Function Name:

Usage:

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

Function Name:

Usage:

Query all open orders by symbol

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

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

Function Name:

Usage:

Query wallets

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

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

Function Name:

Usage:

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

Function Name:

Usage:

Query order history

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

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

Function Name:

Usage:

Query trade history

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

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

Function Name:

Usage:

Query PnL

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

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

Function Name:

Usage:

Query chain information

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

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

Function Name:

Usage:

Query deposit address by currency

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

https://phemex-docs.github.io#query-deposit-address-by-currency

Function Name:

Usage:

Query recent deposit history

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

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

Function Name:

Usage:

Query recent withdraw history

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

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

Function Name:

Usage:

Query funds history

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

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

Function Name:

Usage:

Query fee rate by quote currency

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

https://phemex-docs.github.io#query-fee-rate-by-quote-currency

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

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

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

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

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

Function Name:

Usage:

Last updated