For the complete documentation index, see llms.txt. This page is also available as Markdown.

Market

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

Get Kline

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

https://bybit-exchange.github.io/docs/v5/market/kline

Function name:

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

const result = await getKline(myByBitAccount , 
    {
       category: 'linear',
       symbol: 'BTCUSD',
       interval: '60'
     });

Get Mark Price Kline

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

https://bybit-exchange.github.io/docs/v5/market/mark-kline

Function name:

Usage:

Get Index Price Kleine

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

https://bybit-exchange.github.io/docs/v5/market/index-kline

Function name:

Usage:

Get Premium Index Price Kline

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

https://bybit-exchange.github.io/docs/v5/market/preimum-index-kline

Function name:

Usage:

Get Instruments Info

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

https://bybit-exchange.github.io/docs/v5/market/instrument

Function name:

Usage:

Get Orderbook

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

https://bybit-exchange.github.io/docs/v5/market/orderbook

Function name:

Usage:

Get Tickers

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

https://bybit-exchange.github.io/docs/v5/market/tickers

Function name:

Usage:

Get Funding Rate History

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

https://bybit-exchange.github.io/docs/v5/market/history-fund-rate

Function name:

Usage:

Get Public Trading History

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

https://bybit-exchange.github.io/docs/v5/market/recent-trade

Function name:

Usage:

Get Open Interest

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

https://bybit-exchange.github.io/docs/v5/market/open-interest

Function name:

Usage:

Get Historical Volatility

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

https://bybit-exchange.github.io/docs/v5/market/iv

Function name:

Usage:

Get Insurance

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

https://bybit-exchange.github.io/docs/v5/market/insurance

Function name:

Usage:

Get Risk Limit

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

https://bybit-exchange.github.io/docs/v5/market/risk-limit

Function name:

Usage:

Get Delivery Price

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

https://bybit-exchange.github.io/docs/v5/market/delivery-price

Function name:

Usage:

Last updated