Tucsky / aggr

Cryptocurrency trades aggregator
https://charts.aggr.trade/
GNU General Public License v3.0
871 stars 249 forks source link

wrong price chart #287

Closed wafer5 closed 1 year ago

wafer5 commented 1 year ago

hi, my chart price it's not correct. aggr

Tucsky commented 1 year ago

Hi! My guess is that you have more than btc on that chart You can see which markets it is watching by clicking the 🔍 icon or export the template and drop it here so I can take a look

wafer5 commented 1 year ago

no. it's just btc. it's was ok until few hours ago. i sent you email.

Tucsky commented 1 year ago

Oh ok so that price is correct, just that you added a whole lot of usdc quoted btc markets on that chart, and due to the depegging event on the USDC, markets quoted in USDC are pumping.

wafer5 commented 1 year ago

i have another question on price script said "plotcandlestick(avg_ohlc(bar))" . can i have just binance price and not average?

Tucsky commented 1 year ago

You can recreate that bar variable with only BINANCE:btcusdt inside

candlestick(avg_ohlc({
  localTimestamp: time,
  sources: {
    'BINANCE:btcusdt': BINANCE:btcusdt,
  }
}))