From 7c7209389380271122509c96103d9e54b97a8261 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Thu, 28 Nov 2024 20:18:33 +0100 Subject: [PATCH] Code quality --- fin_depo/__init__.py | 8 ++++---- fin_depo/defi_kucoin.py | 1 - test/test_kucoin.py | 2 -- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/fin_depo/__init__.py b/fin_depo/__init__.py index 4588174..3c311a6 100644 --- a/fin_depo/__init__.py +++ b/fin_depo/__init__.py @@ -54,12 +54,12 @@ BACKEND_MODULE_NAMES = [ ] __all__ = [ - 'defi_kraken', - 'defi_kucoin', - 'investbank_nordnet', - 'defi_partisia_blockchain', '__version__', 'data', + 'defi_kraken', + 'defi_kucoin', + 'defi_partisia_blockchain', + 'investbank_nordnet', 'static', ] diff --git a/fin_depo/defi_kucoin.py b/fin_depo/defi_kucoin.py index fc8f89c..1f9133b 100644 --- a/fin_depo/defi_kucoin.py +++ b/fin_depo/defi_kucoin.py @@ -243,7 +243,6 @@ class KucoinDepoFetcher(DepoFetcher): for _weeks_back in range(20): end_time = end_time - datetime.timedelta(days=7) timestamp = int(end_time.timestamp() * 1000) - print(timestamp) raw_details = self.kucoin_client.get_orders(end=timestamp) yield from (order_from_json(item) for item in raw_details['items']) del _weeks_back, raw_details diff --git a/test/test_kucoin.py b/test/test_kucoin.py index f4ee006..4a42eaa 100644 --- a/test/test_kucoin.py +++ b/test/test_kucoin.py @@ -57,6 +57,4 @@ def test_get_historic_spot_orders(): @needs_secrets def test_get_double_registers(): double_registers = get_fetcher()._get_double_registers() - print(double_registers) assert len(double_registers) > 0 - assert False