Summary
A price alert with a zero or negative target price is meaningless. The registration endpoint should reject these values with a 400 before writing to the database.
Scope
- POST to
/alerts with target_price: 0 and assert 400
- POST with
target_price: -1 and assert 400
- Assert the error body identifies the
target_price field
- Assert no alert record was created
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
A price alert with a zero or negative target price is meaningless. The registration endpoint should reject these values with a 400 before writing to the database.
Scope
/alertswithtarget_price: 0and assert 400target_price: -1and assert 400target_pricefieldAcceptance Criteria
target_pricefieldETA: 12 hours
Coordinate on Telegram