Market
Documentation on interacting with ByBit's Market API functions through the PENDAX Javascript SDK.
All parameters of type INTEGER listed in the Bybit API docs need to be passed in as a string.
Get 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
Function name:
Usage:
Get Index Price Kleine
Function name:
Usage:
Get Premium Index Price Kline
Function name:
Usage:
Get Instruments Info
Function name:
Usage:
Get Orderbook
Function name:
Usage:
Get Tickers
Function name:
Usage:
Get Funding Rate History
Function name:
Usage:
Get Public Trading History
Function name:
Usage:
Get Open Interest
Function name:
Usage:
Get Historical Volatility
Function name:
Usage:
Get Insurance
Function name:
Usage:
Get Risk Limit
Function name:
Usage:
Get Delivery Price
Function name:
Usage:
Last updated