diff --git a/piker/accounting/_pos.py b/piker/accounting/_pos.py index 1a2378da..1b305009 100644 --- a/piker/accounting/_pos.py +++ b/piker/accounting/_pos.py @@ -543,6 +543,11 @@ class Account(Struct): if not (pos := pps.get(bs_mktid)): + assert isinstance( + mkt, + MktPair, + ) + # if no existing pos, allocate fresh one. pos = pps[bs_mktid] = Position( mkt=mkt,