Spot Leverage Token

Documentation on interacting with ByBit's Spot Leverage Token API functions through the PENDAX Javascript SDK.

Get Leverage Token Info

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/lt/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

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/lt/leverage-token-reference

Function name:

Usage:

Purchase

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/lt/purchase

Function name:

Usage:

Redeem

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/lt/redeem

Function name:

Usage:

Get Purchase/Redemption Records

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/lt/order-record

Function name:

Usage:

Last updated