All parameters of type INTEGER listed in the Bybit API docs need to be passed in as a string.
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);
This function is under construction and may not behave as expected
getInstMarginCoinInfo(options)
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);
This function is under construction and may not behave as expected
getInstLoanOrders(options)
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);
This function is under construction and may not behave as expected
getInstRepayOrders(options)
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);
This function is under construction and may not behave as expected
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);