diff --git a/piker/clearing/_messages.py b/piker/clearing/_messages.py index 788fe669..779be0ce 100644 --- a/piker/clearing/_messages.py +++ b/piker/clearing/_messages.py @@ -301,6 +301,9 @@ class BrokerdError(Struct): # TODO: yeah, so we REALLY need to completely deprecate # this and use the `.accounting.Position` msg-type instead.. +# -[ ] an alternative might be to add a `Position.summary() -> +# `PositionSummary`-msg that we generate since `Position` has a lot +# of fields by default we likely don't want to send over the wire? class BrokerdPosition(Struct): ''' Position update event from brokerd. @@ -313,3 +316,4 @@ class BrokerdPosition(Struct): avg_price: float currency: str = '' name: str = 'position' + bs_mktid: str|int|None = None