From 6ad8c603d599b4a0d5db26d34df6915fa493d3f8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 23 May 2023 16:45:58 -0400 Subject: [PATCH] More detailed `Position.events` todo --- piker/accounting/_pos.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/piker/accounting/_pos.py b/piker/accounting/_pos.py index bc84f5b7..453ee324 100644 --- a/piker/accounting/_pos.py +++ b/piker/accounting/_pos.py @@ -51,7 +51,10 @@ from ._mktinfo import ( ) from .. import config from ..brokers import get_brokermod -from ..clearing._messages import BrokerdPosition, Status +from ..clearing._messages import ( + BrokerdPosition, + Status, +) from ..data.types import Struct from ..log import get_logger @@ -882,11 +885,11 @@ def open_pps( # TODO: RE: general "events" instead of just "clears": # - make this an `events` field and support more event types - # such as 'split', 'name_change', 'mkt_info', etc.. + # such as 'split', 'name_change', 'mkt_info', etc.. # - should be make a ``Struct`` for clear/event entries? convert - # "clear events table" from the toml config (list of a dicts) - # and load it into object form for use in position processing of - # new clear events. + # "clear events table" from the toml config (list of a dicts) + # and load it into object form for use in position processing of + # new clear events. # convert clears sub-tables (only in this form # for toml re-presentation) back into a master table.