ib.broker: always cast `asset_type` to `str`

master
Tyler Goodlet 2023-05-13 17:27:45 -04:00
parent 2e8268b53e
commit 1f0db3103d
1 changed files with 1 additions and 1 deletions

View File

@ -1227,7 +1227,7 @@ def norm_trade_records(
pair = MktPair.from_fqme(
fqme=f'{symbol}.{suffix}.ib',
bs_mktid=str(conid),
_atype=asset_type,
_atype=str(asset_type), # XXX: can't serlialize `tomlkit.String`
price_tick=price_tick,
# NOTE: for "legacy" assets, volume is normally discreet, not