1
0

Code quality
All checks were successful
Python Ruff Code Quality / ruff (push) Successful in 23s
Run Python tests (through Pytest) / Test (push) Successful in 31s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 24s

This commit is contained in:
Jon Michael Aanes 2024-11-28 20:18:33 +01:00
parent 39cee8c601
commit 7c72093893
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
3 changed files with 4 additions and 7 deletions

View File

@ -54,12 +54,12 @@ BACKEND_MODULE_NAMES = [
] ]
__all__ = [ __all__ = [
'defi_kraken',
'defi_kucoin',
'investbank_nordnet',
'defi_partisia_blockchain',
'__version__', '__version__',
'data', 'data',
'defi_kraken',
'defi_kucoin',
'defi_partisia_blockchain',
'investbank_nordnet',
'static', 'static',
] ]

View File

@ -243,7 +243,6 @@ class KucoinDepoFetcher(DepoFetcher):
for _weeks_back in range(20): for _weeks_back in range(20):
end_time = end_time - datetime.timedelta(days=7) end_time = end_time - datetime.timedelta(days=7)
timestamp = int(end_time.timestamp() * 1000) timestamp = int(end_time.timestamp() * 1000)
print(timestamp)
raw_details = self.kucoin_client.get_orders(end=timestamp) raw_details = self.kucoin_client.get_orders(end=timestamp)
yield from (order_from_json(item) for item in raw_details['items']) yield from (order_from_json(item) for item in raw_details['items'])
del _weeks_back, raw_details del _weeks_back, raw_details

View File

@ -57,6 +57,4 @@ def test_get_historic_spot_orders():
@needs_secrets @needs_secrets
def test_get_double_registers(): def test_get_double_registers():
double_registers = get_fetcher()._get_double_registers() double_registers = get_fetcher()._get_double_registers()
print(double_registers)
assert len(double_registers) > 0 assert len(double_registers) > 0
assert False