trading_agent.doctor.checks.ownership_conflict_check
¶
Checks that the risk engine has refused a desk because another desk owned the stock, outside the tests.
Typical usage example:
result = OwnershipConflictCheck(search).run()
OwnershipConflictCheck
¶
Bases: DoctorCheck
Looks in the journals for a refusal over stock ownership.
Creates the check.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
search
|
JournalSearch
|
Searches the desks' journals. |
required |
Source code in src/trading_agent/doctor/checks/ownership_conflict_check.py
run
¶
Finds the latest ownership refusal.
Returns:
| Type | Description |
|---|---|
CheckResult
|
OK when one was seen; a warning otherwise, because the unit tests cover it but it has not been seen with UBI. |