trading_agent.doctor.checks.dry_run_order_check
¶
Checks that at least one desk order has gone all the way through UBI's dry run.
UBI refuses even dry-run orders when the market's instrument list is not loaded, such as at weekends, so this can only pass after a trading day.
Typical usage example:
result = DryRunOrderCheck(search).run()
DryRunOrderCheck
¶
Bases: DoctorCheck
Looks in the journals for a placed dry-run order.
Creates the check.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
search
|
JournalSearch
|
Searches the desks' journals. |
required |
Source code in src/trading_agent/doctor/checks/dry_run_order_check.py
run
¶
Finds the latest placed order.
Returns:
| Type | Description |
|---|---|
CheckResult
|
OK naming the latest placed dry-run order; failed when no order has been placed yet. |