(feat) improve formatting

This commit is contained in:
cardosofede
2024-06-12 11:35:29 +02:00
parent 400e14ebe0
commit 36165440b8

View File

@@ -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: