Skip to content

Commit 87eec2f

Browse files
committed
Update Sorting Logic in High Leverage Page for Accurate Data Representation
- Changed the sorting criterion in the high leverage page from 'Position Leverage' to 'Account Leverage', ensuring that the displayed data reflects the correct prioritization of account leverage. - This adjustment enhances the accuracy of the information presented to users, aligning with the intended functionality of the high leverage feature. These changes contribute to a more reliable user experience by ensuring that the most relevant data is prioritized in the display.
1 parent 0c90922 commit 87eec2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/page/high_leverage_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def high_leverage_page():
101101
df_positions['Account Leverage'] = pd.to_numeric(df_positions['Account Leverage'], errors='coerce')
102102

103103
# Default sort by Position Leverage (descending)
104-
df_positions = df_positions.sort_values(by='Position Leverage', ascending=False)
104+
df_positions = df_positions.sort_values(by='Account Leverage', ascending=False)
105105

106106
# Select and order columns for display
107107
display_df = df_positions[[

0 commit comments

Comments
 (0)