Make search work with ib backend

its_happening
Tyler Goodlet 2020-07-02 16:02:58 -04:00
parent f216d1f922
commit 4ca4ced6e8
1 changed files with 5 additions and 2 deletions

View File

@ -130,7 +130,6 @@ def bars(config, symbol, count, df_output):
click.echo(colorize_json(bars)) click.echo(colorize_json(bars))
@cli.command() @cli.command()
@click.option('--rate', '-r', default=5, help='Logging level') @click.option('--rate', '-r', default=5, help='Logging level')
@click.option('--filename', '-f', default='quotestream.jsonstream', @click.option('--filename', '-f', default='quotestream.jsonstream',
@ -259,7 +258,11 @@ def search(config, pattern):
# global opts # global opts
brokermod = config['brokermod'] brokermod = config['brokermod']
quotes = trio.run(partial(core.symbol_search, brokermod, pattern)) quotes = tractor.run(
partial(core.symbol_search, brokermod, pattern),
start_method='forkserver',
loglevel='info',
)
if not quotes: if not quotes:
log.error(f"No matches could be found for {pattern}?") log.error(f"No matches could be found for {pattern}?")
return return