Market

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

circle-exclamation

Get Kline

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/klinearrow-up-right

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

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/mark-klinearrow-up-right

Function name:

Usage:

Get Index Price Kleine

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/index-klinearrow-up-right

Function name:

Usage:

Get Premium Index Price Kline

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/preimum-index-klinearrow-up-right

Function name:

Usage:

Get Instruments Info

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/instrumentarrow-up-right

Function name:

Usage:

Get Orderbook

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/orderbookarrow-up-right

Function name:

Usage:

Get Tickers

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/tickersarrow-up-right

Function name:

Usage:

Get Funding Rate History

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/history-fund-ratearrow-up-right

Function name:

Usage:

Get Public Trading History

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/recent-tradearrow-up-right

Function name:

Usage:

Get Open Interest

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/open-interestarrow-up-right

Function name:

Usage:

Get Historical Volatility

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/ivarrow-up-right

Function name:

Usage:

Get Insurance

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/insurancearrow-up-right

Function name:

Usage:

Get Risk Limit

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/risk-limitarrow-up-right

Function name:

Usage:

Get Delivery Price

circle-info

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

https://bybit-exchange.github.io/docs/v5/market/delivery-pricearrow-up-right

Function name:

Usage:

Last updated