Benjamin Consolvo commited on
Commit
9ac7c93
·
1 Parent(s): 448dc2f

remove one detailed holdings table that is extra

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -429,17 +429,6 @@ class TradingApp:
429
  refresh_portfolio()
430
  st.button("Refresh Portfolio", on_click=refresh_portfolio)
431
 
432
- # Add an expandable section for detailed holdings
433
- with st.expander("View Detailed Holdings"):
434
- holdings = self.alpaca.getHoldings() # Use self.alpaca instead of app.alpaca
435
- if holdings:
436
- detailed_holdings = pd.DataFrame(
437
- [{"Ticker": ticker, "Amount (USD)": round(value)} for ticker, value in holdings.items()]
438
- )
439
- st.table(detailed_holdings)
440
- else:
441
- st.info("No holdings to display.")
442
-
443
  def auto_trade_based_on_sentiment(self, sentiment):
444
  actions = []
445
  symbol_to_name = self.analyzer.symbol_to_name
 
429
  refresh_portfolio()
430
  st.button("Refresh Portfolio", on_click=refresh_portfolio)
431
 
 
 
 
 
 
 
 
 
 
 
 
432
  def auto_trade_based_on_sentiment(self, sentiment):
433
  actions = []
434
  symbol_to_name = self.analyzer.symbol_to_name