trading_agent.doctor.checks.trading_mode_check
¶
Says whether orders are dry runs or live.
Typical usage example:
result = TradingModeCheck('dry_run').run()
TradingModeCheck
¶
Bases: DoctorCheck
Reports trading_agent.toml's mode.
Creates the check.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode
|
str
|
"dry_run" or "live". |
required |
Source code in src/trading_agent/doctor/checks/trading_mode_check.py
run
¶
Reports the mode.
Returns:
| Type | Description |
|---|---|
CheckResult
|
OK when live; a warning in dry_run, which is the last switch to throw once everything else passes. |