GOKULSINGHSHAH123 commited on
Commit
1500a29
1 Parent(s): 510a7ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -72,12 +72,18 @@ df2 = df2.apply(lambda col: col.map(convert_str_to_list_or_keep))
72
 
73
  df['positionClosed'] = False
74
 
75
- if option =="copyLeaderboard":
76
- uid_input = int(st.text_input("Enter U_IDs to filter"))
 
77
  if option =="buybit":
78
  uid_input = (st.text_input("Enter U_IDs to filter"))
 
 
 
 
79
  else:
80
- uid_input = str.upper(st.text_input("Enter U_IDs to filter"))
 
81
 
82
 
83
  option2 = st.radio("Choose an option:", ["Show Position History", "Show Live Positions"])
@@ -510,7 +516,7 @@ if df is not None and uid_input:
510
  ):
511
  show_position_history(row['i'])
512
 
513
- if option =="okx":
514
  if st.button(
515
  f"{row['symbol']} : Long: {side}, Entry Price: {row['entryPrice']}, "
516
  f"Market Price: {row['markPrice']}, Amount: {row['usdAmount']}, "
 
72
 
73
  df['positionClosed'] = False
74
 
75
+
76
+
77
+
78
  if option =="buybit":
79
  uid_input = (st.text_input("Enter U_IDs to filter"))
80
+
81
+ elif option =="copyLeaderboard":
82
+ uid_input = int(st.text_input("Enter U_IDs to filter"))
83
+
84
  else:
85
+ uid_input = str.upper(st.text_input("Enter U_IDs to filter"))
86
+
87
 
88
 
89
  option2 = st.radio("Choose an option:", ["Show Position History", "Show Live Positions"])
 
516
  ):
517
  show_position_history(row['i'])
518
 
519
+ elif option =="okx":
520
  if st.button(
521
  f"{row['symbol']} : Long: {side}, Entry Price: {row['entryPrice']}, "
522
  f"Market Price: {row['markPrice']}, Amount: {row['usdAmount']}, "