GET Token Price
Get Token Price
- Web
- Flutter
const tokenAddress = "TOKEN_ADDRESS";
const price = await fuseSDK.tradeModule.price(tokenAddress);
console.log(`Token: ${tokenAddress} price: ${price}`);
final tokenAddress = 'TOKEN_ADDRESS';
final priceData = await fuseSDK.tradeModule.price(tokenAddress);
priceData.pick(
onData: (String tokenPrice) {
// Do you magic here
},
onError: (err) {
// Handle errors
},
);