From e7378538f69e1e78f05940046fbdf8f7626c2a82 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 11 Dec 2018 15:21:45 -0500 Subject: [PATCH] Limit option chain to 1 rps --- piker/cli.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/piker/cli.py b/piker/cli.py index e282f669..8e4db81e 100644 --- a/piker/cli.py +++ b/piker/cli.py @@ -148,7 +148,7 @@ async def maybe_spawn_brokerd_as_subactor(sleep=0.5, tries=10, loglevel=None): help='Broker backend to use') @click.option('--loglevel', '-l', default='warning', help='Logging level') @click.option('--tl', is_flag=True, help='Enable tractor logging') -@click.option('--rate', '-r', default=4, help='Quote rate limit') +@click.option('--rate', '-r', default=3, help='Quote rate limit') @click.option('--test', '-t', help='Test quote stream file') @click.option('--dhost', '-dh', default='127.0.0.1', help='Daemon host address to connect to') @@ -371,7 +371,7 @@ def optsquote(loglevel, broker, symbol, df_output, date): @click.option('--tl', is_flag=True, help='Enable tractor logging') @click.option('--date', '-d', help='Contracts expiry date') @click.option('--test', '-t', help='Test quote stream file') -@click.option('--rate', '-r', default=4, help='Logging level') +@click.option('--rate', '-r', default=1, help='Logging level') @click.argument('symbol', required=True) def optschain(loglevel, broker, symbol, date, tl, rate, test): """Start the real-time option chain UI. @@ -387,7 +387,9 @@ def optschain(loglevel, broker, symbol, date, tl, rate, test): # run app "main" await _async_main( symbol, portal, - brokermod, rate=rate, test=test, + brokermod, + rate=rate, + test=test, ) tractor.run(