Skip to content

Price Charts #8

Description

@jayrav13

Summary

Add terminal-based price charts for the underlying stock with intraday and historical views.

Details

Chart Library

  • Use plotext or Textual's canvas for rendering charts as text/braille characters
  • Evaluate both and choose based on rendering quality and Textual integration

Intraday Chart

  • Default view during market hours
  • 1-minute or 5-minute bars for current session
  • Sparkline (compact) or candlestick (expanded) modes

Historical Chart

  • Timeframe selector: 1D, 5D, 1M, 3M, 6M, 1Y, 5Y
  • Candlestick or line chart
  • Overlay 50-day and 200-day moving averages

Data Source

  • Yahoo Finance historical price API via yfinance Ticker.history()
  • Always uses Yahoo regardless of provider selection

Navigation

  • c to toggle chart pane
  • [ / ] to cycle timeframes
  • + / - to zoom

Success Criteria

  • Chart pane toggles with c
  • Intraday chart displays during market hours
  • Historical chart supports all timeframes (1D through 5Y)
  • Moving average overlays (50d, 200d) displayed
  • Timeframe cycling with [/] works
  • Charts render cleanly in standard terminal sizes
  • All existing tests pass
  • New tests added for chart data fetching and rendering

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestvisualizationCharts and visual features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions