Skip to content

Commit

Permalink
Update AL - this will get replaced soon
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaKhalili committed Nov 16, 2024
1 parent 6f1e532 commit 25e74c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/page/asset_liability.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def asset_liab_matrix_page():
)
st.query_params.update({"perp_market_index": perp_market_index})

min_leverage = st.slider(
"Filter by minimum leverage", 0.0, 50.0, 0.0, 0.5, key="min_leverage"
)

try:
result = api(
"asset-liability",
Expand Down Expand Up @@ -74,7 +78,6 @@ def asset_liab_matrix_page():

# Add leverage filter to FULL tab
with tabs[0]:
min_leverage = st.slider("Filter by minimum leverage", 0.0, 50.0, 0.0, 0.5)
filtered_df = df[df["leverage"] >= min_leverage].sort_values(
"leverage", ascending=False
)
Expand Down

0 comments on commit 25e74c6

Please sign in to comment.