Build Your Own
set_timeout() tunes how long the publisher stays awake when idle. Build it step by step:
Step 1 — Import the library
import icepython as iceStep 2 — Keep the publisher awake for 15 minutes after the last request:
ice.set_timeout(900)Step 3 — Continue with your data requests as normal:
data = ice.get_quotes(['BRN 1!-ICE'], ['last'])
print(data)
Output:
set_timeout() returns nothing.