Contract
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
Function Name:
Usage:
Place order
Function Name:
Usage:
Cancel order by order ID or client order ID
Function Name:
Usage:
Bulk cancel orders
Function Name:
Usage:
Cancel all orders
Function Name:
Usage:
Query trading account and positions
Function Name:
Usage:
Query trading account and positions with realtime unPnL
Function Name:
Usage:
Set leverage
Function Name:
Usage:
Set position risklimit
Function Name:
Usage:
Assign position balance in isolated marign mode
Function Name:
Usage:
Query open orders by symbol
Function Name:
Usage:
Query closed orders by symbol
Function Name:
Usage:
Query user order by order ID or client order ID
Function Name:
Usage:
Query user trade
Function Name:
Usage:
Query order book
Function Name:
Usage:
Query full order book
Function Name:
Usage:
Query kline
Function Name:
Usage:
Query recent trades
Function Name:
Usage:
Query 24 hours ticker
Function Name:
Usage:
Query 24 hours ticker for all symbols
Function Name:
Usage:
Query history trades by symbol
Function Name:
Usage:
Query funding rate history
Function Name:
Usage:
Query funding fee history
Function Name:
Usage:
Query contract fee rate
Function Name:
Usage:
Query Funds Detail
Function Name:
Usage:
Last updated