`ib`: (cukcit) just presume a stonk if we can read type from existing ledger..

pre_overruns_ctxcancelled
Tyler Goodlet 2023-03-10 17:59:00 -05:00
parent a0a19a952f
commit 6a935344ca
1 changed files with 1 additions and 1 deletions

View File

@ -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