Convert

RFQ quote

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

https://phemex-docs.github.io#rfq-quote

Function Name:

rfqQuote()

Usage:

import { createExchange } from "./exchanges/exchange.js";

   let myPhemexExchange  = createExchange({
      exchange: "phemex",
      authenticate: "true",
      key: "myKey",
      secret: "mySecret",
      label: "phemex"
  });

async function rfqQuote(exchange, options) {
    try {
        let result = await exchange.rfqQuote(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

let result = await rfqQuote(myMainPhemexExchange, {
        fromCurrency: "BTC",
        toCurrency: "USD",
        fromAmountEv: "1"
     });

Convert

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

https://phemex-docs.github.io#convert

Function Name:

Usage:

Query convert history

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

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

Function Name:

Usage:

Last updated