trading_agent.doctor.checks.desk_loss_limits_check
¶
Lists each desk's own daily loss limit, or says plainly that only the account's limits apply.
Typical usage example:
result = DeskLossLimitsCheck(layout.trading_rules_file, ['intraday']).run()
DeskLossLimitsCheck
¶
Bases: DoctorCheck
Reports the desks' daily loss limits.
Creates the check.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rules_file
|
Path
|
TradingRules.md. |
required |
desk_names
|
Sequence[str]
|
The desks. |
required |
Source code in src/trading_agent/doctor/checks/desk_loss_limits_check.py
run
¶
Reads the limits.
Returns:
| Type | Description |
|---|---|
CheckResult
|
OK with each desk's limit or the note that none is set; failed when the limits cannot be read. |