Skip to content

Wheeler: harden live price feed against one bad ticker #125

Description

@heyitsStylez

Wheeler's finnhubPrices (src/js/tradfi/18-price-feed.js) uses Promise.all, so a single held ticker Finnhub can't price throws the whole batch and falls back to a multi-symbol Twelve Data call — which the free plan can reject, blanking every holding's spot at once.

Make it resilient: price tickers independently and fall back per-ticker (Finnhub → Twelve Data) instead of wholesale, so one unpriceable symbol never blanks the rest.

Not urgent — surfaced while fixing the refetch-on-add bug. Left as a follow-up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions