GET Token Price Change in the Last 24 hours
Get Token Price Change in the last 24 hours
- Web
- Flutter
const tokenAddress = "TOKEN_ADDRESS";
const priceChange = await fuseSDK.tradeModule.priceChange(tokenAddress);
console.log(`Token: ${tokenAddress}, Price Change: ${priceChange}`);
final tokenAddress = 'TOKEN_ADDRESS';
final priceChangeData = await fuseSDK.tradeModule.priceChange(tokenAddress);
priceChangeData.pick(
onData: (String priceInfo) {
// Do you magic here
},
onError: (err) {
// Handle errors
},
);