fix: Add default value for trade direction in debug output
This commit is contained in:
parent
f162cdb91b
commit
9493f5d7ac
@ -395,10 +395,10 @@ def trading_journal_page():
|
||||
st.markdown("---")
|
||||
|
||||
# Debug output
|
||||
st.write("Raw trade data:")
|
||||
st.write("Raw trade ")
|
||||
for trade in trades:
|
||||
st.write({
|
||||
'direction': trade.get('direction'),
|
||||
'direction': trade.get('direction', 'unknown'), # Add default value
|
||||
'shares': trade.get('shares'),
|
||||
'entry_price': trade.get('entry_price'),
|
||||
'entry_date': trade.get('entry_date')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user