trading_agent.terminal.widgets.funds_card
¶
The side panel's Funds card: the balance and the margin in use, with a meter.
Typical usage example:
card = FundsCard() card.show(account, None)
FundsCard
¶
Bases: SideCard
The Funds card.
Creates the card.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
collapsed
|
bool
|
Whether it starts folded. |
False
|
Source code in src/trading_agent/terminal/widgets/funds_card.py
show
¶
Shows the account's funds.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account
|
dict[str, Any] | None
|
The account, or None when it could not be read. |
required |
error
|
str | None
|
Why it could not be read, or None while loading. |
required |