From f87a2a810ad6582e7185eacc68693bb55b517383 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 29 Jun 2022 13:25:47 -0400 Subject: [PATCH] Make broker mod import from new api mod --- piker/brokers/kraken/broker.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/piker/brokers/kraken/broker.py b/piker/brokers/kraken/broker.py index 4d1f0338..e115da64 100644 --- a/piker/brokers/kraken/broker.py +++ b/piker/brokers/kraken/broker.py @@ -13,6 +13,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . + ''' Order api and machinery @@ -33,7 +34,13 @@ import trio import tractor import wsproto -from . import ( +from piker.clearing._paper_engine import PaperBoi +from piker.clearing._messages import ( + BrokerdPosition, BrokerdOrder, BrokerdStatus, + BrokerdOrderAck, BrokerdError, BrokerdCancel, + BrokerdFill, +) +from .api import ( Client, BrokerError, get_client, @@ -44,12 +51,6 @@ from . import ( NoBsWs, stream_messages, ) -from ..clearing._paper_engine import PaperBoi -from ..clearing._messages import ( - BrokerdPosition, BrokerdOrder, BrokerdStatus, - BrokerdOrderAck, BrokerdError, BrokerdCancel, - BrokerdFill, -) class Trade(BaseModel):