package templates import ( "fmt" "portfolio-tracker/internal/model" "portfolio-tracker/internal/web/templates/components" ) templ StockDetailsContent(stock string, data model.YahooChartResponse, portfolios []model.Portfolio) {

Kursentwicklung

Dividenden

Details

  • Name: { data.Chart.Result[0].Meta.LongName }
  • Symbol: { data.Chart.Result[0].Meta.Symbol }
  • Währung: { data.Chart.Result[0].Meta.Currency }
  • Börse: { data.Chart.Result[0].Meta.Exchange }
  • Zeitzone: { data.Chart.Result[0].Meta.Timezone }
  • Aktueller Preis: { data.Chart.Result[0].Meta.RegularMarketPrice }
  • Instrumenttyp: { data.Chart.Result[0].Meta.Instrument }
} templ StockDetails(authenticated bool, username string, stock string, data model.YahooChartResponse, portfolios []model.Portfolio) { @components.PageLayout(authenticated, username, data.Chart.Result[0].Meta.LongName, StockDetailsContent(stock, data, portfolios), portfolios) }