Skip to content

1461.0.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 17:54
0d223cb

@metamask/advanced-chart-core 2.1.0

Fixed

  • Fix out-of-order bars after rapid interval switches (e.g. 1m → 5m → 1h → 1m) (#11790)
    • REALTIME_UPDATE bars older than the last stored bar are dropped instead of being appended after newer bars
    • Realtime ticks are only forwarded to TradingView listeners subscribed for the current resolution
    • The TradingView datafeed cache is reset before setResolution, so switching back to a previously loaded interval uses the bars from the latest SET_OHLCV_DATA
  • Fix low-liquidity tokens rendering at the wrong interval (e.g. 5m candles shown as 30m) and the resulting backward pagination storm (#11790)
    • SET_OHLCV_DATA accepts an optional resolution (TradingView format, e.g. '5', '60', '1D'), used instead of inferring the resolution from irregular bar spacing
    • Absent or unsupported values fall back to inference, so existing consumers are unaffected