15 lines
295 B
JavaScript
15 lines
295 B
JavaScript
const { RestClientV5 } = require('bybit-api');
|
|
|
|
const client = new RestClientV5({
|
|
testnet: true,
|
|
});
|
|
|
|
client
|
|
.getDeliveryPrice({ category: 'option', symbol: 'ETH-26DEC22-1400-C' })
|
|
.then((response) => {
|
|
console.log(response);
|
|
})
|
|
.catch((error) => {
|
|
console.error(error);
|
|
});
|