Build Your Own
Call restart_publisher() to reset publishing if data goes stale. Build it step by step:
Step 1 — Import the library
import icepython as iceStep 2 — Restart the publisher:
ice.restart_publisher()Step 3 — Re-request data to confirm it is updating again:
data = ice.get_quotes(['BRN 1!-ICE'], ['last'])
print(data)
Output:
restart_publisher() returns nothing. Confirm by re-requesting data afterwards.