26/8/1404
This commit is contained in:
+4
-4
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user