diff --git a/src/price-watchers/api-price-watcher.ts b/src/price-watchers/api-price-watcher.ts index 9521625..227bbba 100644 --- a/src/price-watchers/api-price-watcher.ts +++ b/src/price-watchers/api-price-watcher.ts @@ -15,7 +15,7 @@ export class ApiPriceWatcher { } private async watchApiPrice() { - const { data: price } = await axios.get(tokenPriceUrl); - await this.cacheStorage.set("apiPrice", price.data.PriceUSD); + const { data: { data: { price_usd: price } } } = await axios.get(tokenPriceUrl); + await this.cacheStorage.set("apiPrice", Number(price)); } } \ No newline at end of file