DROP ALERT NOTES
Alert me when the price crosses a level
The drop stream fires on falls, not levels. A level watch on top of it: track the last price per selection and fire once when it crosses your line.
The drop stream answers one question well: this price fell by at least your threshold. A different question, tell me when this selection's price crosses 2.00, is not what the stream is for, and the dedupe guide says so directly: the drop stream only reports falls, checked 2026-10-17. A level watch is a thin layer you build on top, and here is how.
Why the stream cannot do it alone
A level cross is about where the price is, not how far it fell. A selection sitting at 1.99 all morning never drops enough to fire your min_drop, but it crossed your line hours ago. And a selection that rises through your level never fires at all, because rises are not drops. If your rule cares about the level, min_drop is the wrong instrument.
The level watch in code
The stream still does the delivery: every fall tells you the new price. Your layer keeps the last known price per selection and asks the crossing question on each alert:
last = {} # selection key -> last price seen
LEVEL = 2.00
def check(alert):
key = (alert["home"], alert["away"], alert["sect"], alert["outcome"])
prev = last.get(key)
now = alert["to_price"]
last[key] = now
if prev is not None and prev > LEVEL >= now:
notify(alert) # crossed downward through the level
One dictionary, one comparison, one notification per crossing. A watchlist of five selections is five rows of that dictionary, and the whole layer fits in a page. The dedupe habit applies here too: once a crossing has fired, silence that selection until the price crosses back, or you will hear about every tick below the line.
Both directions, if you need them
The stream reports falls, so an upward cross never arrives on it. If your level matters in both directions, the same dictionary works against a slow poll: the drop alerts guide notes that pairing the stream with REST snapshots covers the wider board when a decision needs it. For most watch lists, a slow poll of one board plus the stream's falls covers both directions cheaply.
Set the level from your own log
As with every rule here, the level comes from your data, not from instinct. Log the prices your selections actually visit for a week, and put the line where a crossing means something. A level chosen from a chart you made beats a level chosen from a feeling.
The stream watches falls; your dictionary watches levels. Together, nothing crosses quietly.