From bc249fbeca087263530d2adfb6fa056ebbdd9b3a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 27 Mar 2023 14:24:27 -0400 Subject: [PATCH] Move `.clearing._allocate` -> `accounting._allocate` --- piker/{clearing => accounting}/_allocate.py | 4 ++-- piker/ui/_position.py | 2 +- piker/ui/order_mode.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename piker/{clearing => accounting}/_allocate.py (99%) diff --git a/piker/clearing/_allocate.py b/piker/accounting/_allocate.py similarity index 99% rename from piker/clearing/_allocate.py rename to piker/accounting/_allocate.py index 657ba8e1..4bafc2f6 100644 --- a/piker/clearing/_allocate.py +++ b/piker/accounting/_allocate.py @@ -23,9 +23,9 @@ from typing import Optional from bidict import bidict -from ..accounting._mktinfo import Symbol +from ._pos import Position +from ._mktinfo import Symbol from ..data.types import Struct -from ..accounting import Position _size_units = bidict({ diff --git a/piker/ui/_position.py b/piker/ui/_position.py index 547977dc..56659056 100644 --- a/piker/ui/_position.py +++ b/piker/ui/_position.py @@ -45,7 +45,7 @@ from ..calc import ( pnl, puterize, ) -from ..clearing._allocate import Allocator +from ..accounting._allocate import Allocator from ..accounting import ( Position, ) diff --git a/piker/ui/order_mode.py b/piker/ui/order_mode.py index 6f1477f7..61fdb6d9 100644 --- a/piker/ui/order_mode.py +++ b/piker/ui/order_mode.py @@ -37,10 +37,10 @@ from PyQt5.QtCore import Qt from .. import config from ..accounting import Position -from ..clearing._client import open_ems, OrderBook -from ..clearing._allocate import ( +from ..accounting._allocate import ( mk_allocator, ) +from ..clearing._client import open_ems, OrderBook from ._style import _font from ..accounting._mktinfo import Symbol from ..data.feed import (