Skip to content

Commit 8b7eebd

Browse files
committed
Don't send tick at market open (ticker)
1 parent f74b0ec commit 8b7eebd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/ticker/plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ def tick(self):
169169
self.config["channels"] and self.config["stocks"]
170170

171171
if should_send_ticker:
172-
yield self.send_ticker()
172+
# if the market is just opening, ignore the tick. this API sucks
173+
if not is_open:
174+
yield self.send_ticker()
173175

174176
if should_do_predictions:
175177
# Try to avoid hitting rate limiting (5 calls per minute) by giving

0 commit comments

Comments
 (0)