Summary
If the alert threshold check fails after a trade is indexed — for example due to a database error reading the alerts table — that failure should be logged with enough context to replay the check manually without losing the triggering trade event details.
Scope
- Emit a structured error log when the alert check fails with fields:
creator_id, ledger_sequence, new_price, error_message, failed_at
- Log should be emitted even if the trade write itself succeeded
- Include enough context that an operator can manually re-run the check for the same creator and price
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
If the alert threshold check fails after a trade is indexed — for example due to a database error reading the alerts table — that failure should be logged with enough context to replay the check manually without losing the triggering trade event details.
Scope
creator_id,ledger_sequence,new_price,error_message,failed_atAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram