Margin Trading
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);Place order
Function Name:
Usage:
Cancel order
Function Name:
Usage:
Cancel all order by symbol
Function Name:
Usage:
Query open order by order ID or client order ID
Function Name:
Usage:
Query all open orders by symbol
Function Name:
Usage:
Query margin orders details
Function Name:
Usage:
Query margin order trades details
Function Name:
Usage:
Query margin borrow interest history
Function Name:
Usage:
Query margin borrow history records
Function Name:
Usage:
Query margin payback history
Function Name:
Usage:
Post margin borrow request
Function Name:
Usage:
Post margin payback history
Function Name:
Usage:
Query wallets
Function Name:
Usage:
Last updated