diff --git a/piker/clearing/_paper_engine.py b/piker/clearing/_paper_engine.py index 02031898..23e1d347 100644 --- a/piker/clearing/_paper_engine.py +++ b/piker/clearing/_paper_engine.py @@ -124,7 +124,10 @@ class PaperBoi(Struct): # in the broker trades event processing loop await trio.sleep(0.05) - if action == 'sell': + if ( + action == 'sell' + and size > 0 + ): size = -size msg = BrokerdStatus(