Skip to content

Commit

Permalink
ib: (cukcit) just presume a stonk if we can read type from existing…
Browse files Browse the repository at this point in the history
… ledger..
  • Loading branch information
goodboy committed Mar 13, 2023
1 parent 52ce878 commit 3fa212f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piker/brokers/ib/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ def norm_trade_records(

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

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

0 comments on commit 3fa212f

Please sign in to comment.