We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ib
1 parent 52ce878 commit 3fa212fCopy full SHA for 3fa212f
piker/brokers/ib/broker.py
@@ -1153,7 +1153,7 @@ def norm_trade_records(
1153
1154
# special handling of symbol extraction from
1155
# flex records using some ad-hoc schema parsing.
1156
- asset_type: str = record.get('assetCategory') or record['secType']
+ asset_type: str = record.get('assetCategory') or record.get('secType', 'STK')
1157
1158
# TODO: XXX: WOA this is kinda hacky.. probably
1159
# should figure out the correct future pair key more
0 commit comments