Files
bybit-api/examples/apidoc/V5/Earn/get-product-info.js
2025-02-20 11:48:54 +01:00

20 lines
335 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getEarnProduct({
category: 'FlexibleSaving',
coin: 'BTC',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});