Skip to content

Markets-widget fails to show daily change for some symbols #865

@Joppeur

Description

@Joppeur

Markets widget doesn't show day change properly for all symbols.
Glance version: 0.8.4

In this screenshot, ASWC.DE should display -2.29%
Image

Actual day change of ASWC.DE from Yahoo Finance:
Image

I speculate it might have to do with Yahoo Finance sometimes returning null values in response at: result.Indicators.Quote[0].Close, for example:

ASWC.DE Yahoo API reponse with null values:
https://query1.finance.yahoo.com/v8/finance/chart/aswc.de?range=1mo&interval=1d
Image

DFEN.DE Yahoo API response with no null values:
https://query1.finance.yahoo.com/v8/finance/chart/dfen.de?range=1mo&interval=1d
Image

Steps to reproduce:

Can be unreliable, depending if Yahoo API returns null values or not.

  1. Add markets widget to glance.yml with these symbols:
- type: markets
  markets:
    - symbol: SPYI.DE
      name: SPYI
    - symbol: QDVE.DE
      name: S&P IT
    - symbol: ASWC.DE
      name: Future of Defence
    - symbol: DFEN.DE
      name: VanEck Defense
  1. Check whether Glance dashboard incorrectly displays +0.00% for any of the symbols.

Full JSONs for ASWC.DE and DFEN.DE:

dfen.de.json
qdve.de.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions