Spot Leverage Token
Documentation on interacting with ByBit's Spot Leverage Token API functions through the PENDAX Javascript SDK.
All parameters of type INTEGER listed in the Bybit API docs need to be passed in as a string.
Get Leverage Token Info
Function name:
getLeverageTokenInfo(options)Usage:
import { createExchange } from "./exchanges/exchange.js";
let myByBitAccount = createExchange({
exchange: "bybit",
authenticate: "true",
key: "myKeys",
secret: "mySecret",
label: "bybit",
testnet: "false"
});
async function getLeverageTokenInfo(exchange, options) {
try {
let result = await exchange.getLeverageTokenInfo(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
const result = await getLeverageTokenInfo(myByBitAccount);Get Leveraged Token Market
Function name:
Usage:
Purchase
This function is under construction and may not behave as expected
Function name:
Usage:
Redeem
This function is under construction and may not behave as expected
Function name:
Usage:
Get Purchase/Redemption Records
This function is under construction and may not behave as expected
Function name:
Usage:
Last updated