From 58517295d29780fa7d8a4e75763ba17ec2a25296 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 10 Apr 2022 17:27:15 -0400 Subject: [PATCH] Disable kraken orders due to #299 --- piker/brokers/kraken.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/piker/brokers/kraken.py b/piker/brokers/kraken.py index c3538891..f64ef7aa 100644 --- a/piker/brokers/kraken.py +++ b/piker/brokers/kraken.py @@ -159,9 +159,15 @@ class OHLC: def get_config() -> dict[str, Any]: conf, path = config.load() - section = conf.get('kraken') + if section: + log.warning( + 'Kraken order mode is currently disabled due to bug!\n' + 'See https://github.com/pikers/piker/issues/299' + ) + return {} + if section is None: log.warning(f'No config section found for kraken in {path}') return {} @@ -558,7 +564,13 @@ async def handle_order_requests( await ems_order_stream.send(BrokerdError( oid=request_msg['oid'], symbol=request_msg['symbol'], - reason=f'Kraken only, No account found: `{account}` ?', + + # reason=f'Kraken only, No account found: `{account}` ?', + reason=( + 'Kraken only, order mode disabled due to ' + 'https://github.com/pikers/piker/issues/299' + ), + ).dict()) continue