Fix `.ib` pattern match

ib_dedicated_data_client
Tyler Goodlet 2022-05-18 08:45:10 -04:00
parent b357a120b9
commit 26f47227d2
1 changed files with 2 additions and 6 deletions

View File

@ -520,7 +520,7 @@ class Client:
# XXX UPDATE: we can probably do the tick/trades scraping
# inside our eventkit handler instead to bypass this entirely?
if 'ib' in pattern:
if '.ib' in pattern:
from ..data._source import unpack_fqsn
broker, symbol, expiry = unpack_fqsn(pattern)
else:
@ -536,11 +536,7 @@ class Client:
symbol, _, expiry = symbol.rpartition('.')
# use heuristics to figure out contract "type"
try:
sym, exch = symbol.upper().rsplit('.', maxsplit=1)
except ValueError:
# likely there's an embedded `.` for a forex pair
breakpoint()
qualify: bool = True