Skip to content

Commit 3fa212f

Browse files
committed
ib: (cukcit) just presume a stonk if we can read type from existing ledger..
1 parent 52ce878 commit 3fa212f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

piker/brokers/ib/broker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ def norm_trade_records(
11531153

11541154
# special handling of symbol extraction from
11551155
# flex records using some ad-hoc schema parsing.
1156-
asset_type: str = record.get('assetCategory') or record['secType']
1156+
asset_type: str = record.get('assetCategory') or record.get('secType', 'STK')
11571157

11581158
# TODO: XXX: WOA this is kinda hacky.. probably
11591159
# should figure out the correct future pair key more

0 commit comments

Comments
 (0)