Skip to content

Ideas info panel: pre-market data #127

Description

@binarypath

Context

v1 of the ideas company info panel (introduced in the upcoming "pin company to idea" feature) shows only the day change vs previous close. There's no pre-market data.

What's missing

Pre-market price and pre-market % change for US equities. Useful because it's the most recent quote before regular hours and is what most retail traders look at first thing.

Why deferred from v1

FMP doesn't return pre-market in /stable/quote or /stable/batch-quote. We'd need:

  • /stable/historical-chart/5min/{symbol} with date filters to capture the pre-market session (04:00-09:30 ET)
  • Parsing logic to extract just the pre-market bars
  • A separate field on the info panel JSON for preMarketPrice + preMarketChange

This is its own ~half-day of work; v1 already shipped enough.

Definition of done

  • Each company info panel shows pre-market price (if a pre-market session is active or recently closed)
  • Shows pre-market % change vs prev close
  • Falls back gracefully when market is in regular hours / closed and no pre-market data exists
  • Cached briefly (~60s) to avoid hammering FMP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions