fix: fixed the chart description
This commit is contained in:
parent
8bd912c520
commit
ecb75e5261
@ -83,7 +83,7 @@ export class DataFeed implements IDatafeedChartApi {
|
|||||||
const denom2 = pairName.split(PAIR_SEPARATOR)[1]
|
const denom2 = pairName.split(PAIR_SEPARATOR)[1]
|
||||||
const asset1 = ASSETS.find(byDenom(denom1))
|
const asset1 = ASSETS.find(byDenom(denom1))
|
||||||
const asset2 = ASSETS.find(byDenom(denom2))
|
const asset2 = ASSETS.find(byDenom(denom2))
|
||||||
return `${asset1?.symbol}/${asset2?.symbol}`
|
return `${asset2?.symbol}/${asset1?.symbol}`
|
||||||
}
|
}
|
||||||
|
|
||||||
async getPairsWithData() {
|
async getPairsWithData() {
|
||||||
@ -432,10 +432,10 @@ export class DataFeed implements IDatafeedChartApi {
|
|||||||
|
|
||||||
bars.push({
|
bars.push({
|
||||||
time: pair1Bar.time,
|
time: pair1Bar.time,
|
||||||
open: devideByPotentiallyZero(pair2Bar.open, pair1Bar.open),
|
open: devideByPotentiallyZero(pair1Bar.open, pair2Bar.open),
|
||||||
close: devideByPotentiallyZero(pair2Bar.close, pair1Bar.close),
|
close: devideByPotentiallyZero(pair1Bar.close, pair2Bar.close),
|
||||||
high: devideByPotentiallyZero(pair2Bar.high, pair1Bar.high),
|
high: devideByPotentiallyZero(pair1Bar.high, pair2Bar.high),
|
||||||
low: devideByPotentiallyZero(pair2Bar.low, pair1Bar.low),
|
low: devideByPotentiallyZero(pair1Bar.low, pair2Bar.low),
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
return bars
|
return bars
|
||||||
|
Loading…
Reference in New Issue
Block a user