26/8/1404

This commit is contained in:
2025-11-17 09:34:35 +03:30
parent 080f6428d2
commit 9c4391be42
7 changed files with 32 additions and 17 deletions
+4 -4
View File
@@ -55,6 +55,7 @@ export async function getUpPrice() {
}
}
export async function getLastPrices() {
try {
// loading.value = true
@@ -74,7 +75,7 @@ export async function getLastPrices() {
export function stopPriceInterval() {
// console.log('stop')
clearInterval(interval);
clearInterval(interval)
}
export function percentPriceChanged() {
@@ -82,6 +83,5 @@ export function percentPriceChanged() {
// console.log(lastPrice.value?.price_last)
if (!olderPrice.value)
return 0
return ((lastPrice.value?.price_last-olderPrice.value) *100)/olderPrice.value
}
return ((lastPrice.value?.price_last-olderPrice.value) *100)/olderPrice.value
}