From 1d9c195506dfb3200f368309f737c45002030e10 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 9 Jun 2023 14:41:13 -0400 Subject: [PATCH] kraken: tidy up paper mode activation comments --- piker/brokers/kraken/broker.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/piker/brokers/kraken/broker.py b/piker/brokers/kraken/broker.py index fc2eff62..8025f0d2 100644 --- a/piker/brokers/kraken/broker.py +++ b/piker/brokers/kraken/broker.py @@ -427,16 +427,12 @@ async def trades_dialogue( async with get_client() as client: + # make ems flip to paper mode when no creds setup in + # `brokers.toml` B0 if not client._api_key: await ctx.started('paper') return - # TODO: make ems flip to paper mode via - # some returned signal if the user only wants to use - # the data feed or we return this? - # else: - # await ctx.started(({}, ['paper'])) - # NOTE: currently we expect the user to define a "source fiat" # (much like the web UI let's you set an "account currency") # such that all positions (nested or flat) will be translated to