mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 14:02:06 +00:00
formatting fixes round 3
This commit is contained in:
@@ -242,6 +242,10 @@ def balance(coin: str):
|
||||
print("Check loaded coin")
|
||||
return
|
||||
print("")
|
||||
amounts = [current_balance["free"], current_balance["locked"]]
|
||||
df.columns = ["Amount"]
|
||||
df.index = ["Free", "Locked"]
|
||||
df["Percent"] = df.div(df.sum(axis=0), axis=1).round(3)
|
||||
print(
|
||||
f"You currently have {current_balance['free']} free and {current_balance['locked']} locked"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user