From 8e8a005128d663c065e8ebe73b3b951ab3ce352b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 9 Jun 2021 12:22:02 -0400 Subject: [PATCH] Fix attr accesses on msg type --- piker/brokers/ib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/brokers/ib.py b/piker/brokers/ib.py index 321cc4cd..e43b5a38 100644 --- a/piker/brokers/ib.py +++ b/piker/brokers/ib.py @@ -1399,7 +1399,7 @@ async def trades_dialogue( # it's a trade event generated by TWS usage. log.warning(f"TWS triggered trade:\n{pformat(msg)}") - msg['reqid'] = 'tws-' + str(-1 * msg['reqid']) + msg.reqid = 'tws-' + str(-1 * msg.reqid) # mark msg as from "external system" # TODO: probably something better then this.. and start