Skip to content

v0.2.3-beta.2

Pre-release
Pre-release

Choose a tag to compare

@derspe derspe released this 23 Feb 23:58

Bug Fixes

  • 1D chart: fix flat line for crypto at midnight — BTC and other 24/7 assets were showing a flat line and 0.00% change around local midnight. Root cause: Yahoo Finance briefly reports market_state: CLOSED for crypto at UTC midnight despite continuous trading, and previous_close in the sensor attribute could be off by one day due to a UTC/local timezone boundary in the coordinator.

    Fixes applied:

    • priceIsLive now relies solely on price_is_live from the coordinator (which is correctly set based on whether the asset traded today). ETFs on weekends/holidays remain flat because the coordinator sets price_is_live = False for non-trading days.
    • 1D baseline (prev) now uses the last Yahoo daily history entry when it is from a previous day — always the correct last confirmed close, independent of timezone quirks.
    • Removed the recorder movement threshold check that caused the flat line when only a few minutes of data existed at local midnight.