dukascript 0.0.1__py3-none-any.whl → 0.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
dukascript/__init__.py CHANGED
@@ -54,17 +54,6 @@ def _get_custom_logger(debug=False):
54
54
  logger = logging.getLogger("DUKASCRIPT")
55
55
  logger.setLevel(logging.DEBUG if debug else logging.INFO)
56
56
 
57
- if not logger.handlers:
58
- # Formatter
59
- formatter = logging.Formatter("[%(levelname)s] %(message)s")
60
-
61
- # Console Handler
62
- ch = logging.StreamHandler()
63
- ch.setLevel(logging.DEBUG if debug else logging.INFO)
64
- ch.setFormatter(formatter)
65
-
66
- logger.addHandler(ch)
67
-
68
57
  return logger
69
58
 
70
59
 
@@ -352,6 +341,8 @@ def live_fetch(
352
341
  logger=logger,
353
342
  )
354
343
 
344
+ yield df
345
+
355
346
  for row in datafeed:
356
347
 
357
348
  timestamp = _resample_to_nearest(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dukascript
3
- Version: 0.0.1
3
+ Version: 0.0.3
4
4
  Summary: Download tick data from Dukascopy Bank SA to local cache, and simulate time-ordered price streams
5
5
  Author-email: Eghosa Osayande <osayandeeghosam@gmail.com>
6
6
  License: MIT License
@@ -0,0 +1,8 @@
1
+ dukascript/__init__.py,sha256=bPsw_EhL1g35ulDZLWuIZO3ueHncS-7dQ5AFvyT84nw,11412
2
+ dukascript/_instrument_generator.py,sha256=WDTNS1bLa-J2uI3TmoBTg-WCHdAtkX6d6tq0xhqL4GI,24848
3
+ dukascript/instruments.py,sha256=OxKTWR8zx2sjaHtGtd81FsQwTdAMItjgUSojzuJ1waI,59069
4
+ dukascript-0.0.3.dist-info/licenses/LICENSE,sha256=SA8D35cWkNTiEI71ATLBPTzWgFwjPNZLeloeBJrAJr4,1061
5
+ dukascript-0.0.3.dist-info/METADATA,sha256=uXCFZcjUOto7W_cJ1hTi28Y81S-jXxcCk5ks9pOfkPY,2040
6
+ dukascript-0.0.3.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
7
+ dukascript-0.0.3.dist-info/top_level.txt,sha256=h7GgEQykn3TuhHU4jJxZQ7oNjP_naNvjUwZAw6KU3VE,11
8
+ dukascript-0.0.3.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- dukascript/__init__.py,sha256=8Q76I42KfJSVqE17KgTqcGXjtkeVDodJxcNdOCwzHHY,11708
2
- dukascript/_instrument_generator.py,sha256=WDTNS1bLa-J2uI3TmoBTg-WCHdAtkX6d6tq0xhqL4GI,24848
3
- dukascript/instruments.py,sha256=OxKTWR8zx2sjaHtGtd81FsQwTdAMItjgUSojzuJ1waI,59069
4
- dukascript-0.0.1.dist-info/licenses/LICENSE,sha256=SA8D35cWkNTiEI71ATLBPTzWgFwjPNZLeloeBJrAJr4,1061
5
- dukascript-0.0.1.dist-info/METADATA,sha256=4xfXjJiPSeOrvh-VTMWJVuKl-l3jh1JL81LkMU21G9g,2040
6
- dukascript-0.0.1.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
7
- dukascript-0.0.1.dist-info/top_level.txt,sha256=h7GgEQykn3TuhHU4jJxZQ7oNjP_naNvjUwZAw6KU3VE,11
8
- dukascript-0.0.1.dist-info/RECORD,,