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

25 lines
462 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.submitStakeRedeem({
category: 'FlexibleSaving',
orderType: 'Stake',
accountType: 'FUND',
amount: '0.35',
coin: 'BTC',
productId: '430',
orderLinkId: 'btc-earn-001',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});