Spot Leverage Token

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

circle-exclamation

Get Leverage Token Info

circle-info

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

https://bybit-exchange.github.io/docs/v5/lt/leverage-token-infoarrow-up-right

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

circle-info

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

https://bybit-exchange.github.io/docs/v5/lt/leverage-token-referencearrow-up-right

Function name:

Usage:

Purchase

circle-exclamation
circle-info

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

https://bybit-exchange.github.io/docs/v5/lt/purchasearrow-up-right

Function name:

Usage:

Redeem

circle-exclamation
circle-info

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

https://bybit-exchange.github.io/docs/v5/lt/redeemarrow-up-right

Function name:

Usage:

Get Purchase/Redemption Records

circle-exclamation
circle-info

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

https://bybit-exchange.github.io/docs/v5/lt/order-recordarrow-up-right

Function name:

Usage:

Last updated