import { SimpleEarn, SimpleEarnRestAPI } from '@binance/simple-earn';
const configurationRestAPI = {
apiKey: 'your-api-key',
apiSecret: 'your-api-secret',
compression: false, // Disable compression
};
const client = new SimpleEarn({ configurationRestAPI });
client.restAPI
.getSimpleEarnFlexibleProductList()
.then((res) => res.data())
.then((data: SimpleEarnRestAPI.GetSimpleEarnFlexibleProductListResponse) => console.log(data))
.catch((err) => console.error(err));