piker/ai/prompt-io/opencode/20260828T013057Z_6ca6ab2a_p...

1.1 KiB
Raw Blame History

Prompt

Investigate Pikers clearing, accounting, order-control, and trade-ledger flows in depth while fixing a paper-engine crash where RapidFuzz called len() on a MktPair during ledger persistence.

Response summary

Changed SymbologyCache.search() to fuzzy-match table keys instead of struct values, preserving matched aliases and preventing the paper trade dialog from crashing when qualifying legacy ledger FQMEs. Added an end-to-end regression for the implicated ledger-write path.

Files changed

  • piker/data/_symcache.py - searches string keys and resolves values.
  • tests/test_accounting.py - covers aliases and paper-ledger writes.

Human edits

The human supplied the production traceback, identified the affected subsystems, and directed an implementation-level fix with deep system familiarization. No follow-up correction or direct manual source edit was identified during this interaction.