ohlc's
This commit is contained in:
@@ -8,6 +8,7 @@ import {subPrices, unsubPrices, WIDE_PRICE_FORMAT} from "@/blockchain/prices.js"
|
||||
import {computed, onBeforeUnmount} from "vue";
|
||||
import {FixedNumber} from "ethers";
|
||||
import {routeInverted} from "@/misc.js";
|
||||
import {subOHLCs} from "@/blockchain/ohlcs.js";
|
||||
|
||||
const s = useStore()
|
||||
const os = useOrderStore()
|
||||
@@ -37,8 +38,10 @@ const price = computed(()=>{
|
||||
return p.toPrecision(props.precision)
|
||||
})
|
||||
|
||||
if( route.value )
|
||||
if( route.value ) {
|
||||
subPrices([route.value])
|
||||
subOHLCs( s.chainId.value, [[route.value.pool,'1D']])
|
||||
}
|
||||
else
|
||||
console.log('route is empty: no price')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user