Institutional Lending

Documentation on interacting with ByBit's Institutional Lending API functions through the PENDAX Javascript SDK.

Get Product Info

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

https://bybit-exchange.github.io/docs/v5/otc/margin-product-info

Function name:

getProductInfo(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 getProductInfo(exchange, options) {
    try {
        let result = await exchange.getProductInfo(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getProductInfo(myByBitAccount);

Get Margin Coin Info

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

https://bybit-exchange.github.io/docs/v5/otc/margin-coin-info

Function name:

getInstMarginCoinInfo(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 getInstMarginCoinInfo(exchange, options) {
    try {
        let result = await exchange.getInstMarginCoinInfo(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getInstMarginCoinInfo(myByBitAccount);

Get Loan Orders

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

https://bybit-exchange.github.io/docs/v5/otc/loan-info

Function name:

getInstLoanOrders(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 getInstLoanOrders(exchange, options) {
    try {
        let result = await exchange.getInstLoanOrders(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getInstLoanOrders(myByBitAccount);

Get Repay Orders

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

https://bybit-exchange.github.io/docs/v5/otc/repay-info

Function name:

getInstRepayOrders(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 getInstRepayOrders(exchange, options) {
    try {
        let result = await exchange.getInstRepayOrders(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getInstRepayOrders(myByBitAccount);

Get LTV

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

https://bybit-exchange.github.io/docs/v5/otc/ltv

Function name:

getInstLtv(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 getInstLtv(exchange, options) {
    try {
        let result = await exchange.getInstLtv(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getInstLtv(myByBitAccount);

Last updated