From 1f0db3103dbd3e0db29525f15da52357570921e0 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 13 May 2023 17:27:45 -0400 Subject: [PATCH] ib.broker: always cast `asset_type` to `str` --- piker/brokers/ib/broker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/brokers/ib/broker.py b/piker/brokers/ib/broker.py index 476886d3..71175b07 100644 --- a/piker/brokers/ib/broker.py +++ b/piker/brokers/ib/broker.py @@ -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