refactor: Remove debug output lines from trading journal page
This commit is contained in:
parent
a37b70d88d
commit
b3ac7c1705
@ -365,12 +365,6 @@ def trading_journal_page():
|
|||||||
|
|
||||||
# Display trades grouped by position
|
# Display trades grouped by position
|
||||||
for position_id, trades in positions.items():
|
for position_id, trades in positions.items():
|
||||||
# Debug logging
|
|
||||||
st.write(f"Processing position {position_id}")
|
|
||||||
st.write(f"Number of trades: {len(trades)}")
|
|
||||||
for trade in trades:
|
|
||||||
st.write(f"Trade: {trade['direction']} {trade['shares']} shares at {trade['entry_price']}")
|
|
||||||
|
|
||||||
# Sort trades chronologically
|
# Sort trades chronologically
|
||||||
trades.sort(key=lambda x: x['entry_date'])
|
trades.sort(key=lambda x: x['entry_date'])
|
||||||
first_trade = trades[0]
|
first_trade = trades[0]
|
||||||
@ -395,16 +389,6 @@ def trading_journal_page():
|
|||||||
|
|
||||||
st.markdown("---")
|
st.markdown("---")
|
||||||
|
|
||||||
# Debug output
|
|
||||||
st.write("Raw trade ")
|
|
||||||
for trade in trades:
|
|
||||||
st.write({
|
|
||||||
'direction': trade.get('direction', 'unknown'), # Add default value
|
|
||||||
'shares': trade.get('shares'),
|
|
||||||
'entry_price': trade.get('entry_price'),
|
|
||||||
'entry_date': trade.get('entry_date')
|
|
||||||
})
|
|
||||||
|
|
||||||
# Show buy trades
|
# Show buy trades
|
||||||
st.subheader("Buy Orders")
|
st.subheader("Buy Orders")
|
||||||
for trade in trades:
|
for trade in trades:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user