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

20 lines
337 B
JavaScript

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