mirror of
https://github.com/aljazceru/hummingbot-dashboard.git
synced 2026-01-15 11:24:22 +01:00
(feat) improve formatting
This commit is contained in:
@@ -10,10 +10,12 @@ initialize_st_page(title="Portfolio", icon="💰")
|
||||
client = get_backend_api_client()
|
||||
NUM_COLUMNS = 4
|
||||
|
||||
|
||||
@st.cache_data
|
||||
def get_all_balances():
|
||||
return client.get_all_balances()
|
||||
|
||||
|
||||
# Fetch all balances
|
||||
balances = get_all_balances()
|
||||
|
||||
@@ -26,6 +28,7 @@ def balances_to_df(balances):
|
||||
data.append({"Account": account, "Exchange": exchange, "Token": token, "Amount": amount})
|
||||
return pd.DataFrame(data)
|
||||
|
||||
|
||||
df_balances = balances_to_df(balances)
|
||||
c1, c2 = st.columns([1, 1])
|
||||
with c1:
|
||||
|
||||
Reference in New Issue
Block a user