dukascript 0.0.5__py3-none-any.whl → 0.0.7__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 +2 -2
- {dukascript-0.0.5.dist-info → dukascript-0.0.7.dist-info}/METADATA +5 -1
- dukascript-0.0.7.dist-info/RECORD +8 -0
- dukascript-0.0.5.dist-info/RECORD +0 -8
- {dukascript-0.0.5.dist-info → dukascript-0.0.7.dist-info}/WHEEL +0 -0
- {dukascript-0.0.5.dist-info → dukascript-0.0.7.dist-info}/licenses/LICENSE +0 -0
- {dukascript-0.0.5.dist-info → dukascript-0.0.7.dist-info}/top_level.txt +0 -0
dukascript/__init__.py
CHANGED
@@ -359,7 +359,7 @@ def live_fetch(
|
|
359
359
|
)
|
360
360
|
|
361
361
|
if last_timestamp == None:
|
362
|
-
last_timestamp = timestamp
|
362
|
+
last_timestamp = timestamp
|
363
363
|
|
364
364
|
if time_unit == TIME_UNIT_TICK and interval_value == 1:
|
365
365
|
df.loc[timestamp] = [
|
@@ -407,5 +407,5 @@ def live_fetch(
|
|
407
407
|
close,
|
408
408
|
volume,
|
409
409
|
]
|
410
|
-
|
410
|
+
|
411
411
|
yield df
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: dukascript
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.7
|
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
|
@@ -181,6 +181,8 @@ df.to_json("output.json")
|
|
181
181
|
now = datetime.now()
|
182
182
|
start = datetime(now.year, now.month, now.day)
|
183
183
|
end = start + timedelta(hours=24)
|
184
|
+
instrument = INSTRUMENT_FX_MAJORS_GBP_USD
|
185
|
+
offer_side = dukascript.OFFER_SIDE_BID
|
184
186
|
|
185
187
|
iterator = dukascript.live_fetch(
|
186
188
|
instrument,
|
@@ -205,6 +207,8 @@ df.to_csv("output.csv")
|
|
205
207
|
now = datetime.now()
|
206
208
|
start = datetime(now.year, now.month, now.day)
|
207
209
|
end = None
|
210
|
+
instrument = INSTRUMENT_FX_MAJORS_GBP_USD
|
211
|
+
offer_side = dukascript.OFFER_SIDE_BID
|
208
212
|
|
209
213
|
df_iterator = dukascript.live_fetch(
|
210
214
|
instrument,
|
@@ -0,0 +1,8 @@
|
|
1
|
+
dukascript/__init__.py,sha256=2Pe0Qq9dSZ13FjqhueqjLwIfcFb16WJ2V969L4FCPWA,11765
|
2
|
+
dukascript/_instrument_generator.py,sha256=WDTNS1bLa-J2uI3TmoBTg-WCHdAtkX6d6tq0xhqL4GI,24848
|
3
|
+
dukascript/instruments.py,sha256=OxKTWR8zx2sjaHtGtd81FsQwTdAMItjgUSojzuJ1waI,59069
|
4
|
+
dukascript-0.0.7.dist-info/licenses/LICENSE,sha256=SA8D35cWkNTiEI71ATLBPTzWgFwjPNZLeloeBJrAJr4,1061
|
5
|
+
dukascript-0.0.7.dist-info/METADATA,sha256=Bo1JGcAP1g_lkjMiY8u52fJ1SCNsqjfgH51UmVBvos8,6646
|
6
|
+
dukascript-0.0.7.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
7
|
+
dukascript-0.0.7.dist-info/top_level.txt,sha256=h7GgEQykn3TuhHU4jJxZQ7oNjP_naNvjUwZAw6KU3VE,11
|
8
|
+
dukascript-0.0.7.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
dukascript/__init__.py,sha256=nxyrT1UGi2gBpRGsUMnZA2koMMnTwq7EZdoY_vq5J6E,11785
|
2
|
-
dukascript/_instrument_generator.py,sha256=WDTNS1bLa-J2uI3TmoBTg-WCHdAtkX6d6tq0xhqL4GI,24848
|
3
|
-
dukascript/instruments.py,sha256=OxKTWR8zx2sjaHtGtd81FsQwTdAMItjgUSojzuJ1waI,59069
|
4
|
-
dukascript-0.0.5.dist-info/licenses/LICENSE,sha256=SA8D35cWkNTiEI71ATLBPTzWgFwjPNZLeloeBJrAJr4,1061
|
5
|
-
dukascript-0.0.5.dist-info/METADATA,sha256=5h8k2mjIMRIZ2ARrs3bTod5VDXjT9Qh2DSwZadU8WQM,6484
|
6
|
-
dukascript-0.0.5.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
7
|
-
dukascript-0.0.5.dist-info/top_level.txt,sha256=h7GgEQykn3TuhHU4jJxZQ7oNjP_naNvjUwZAw6KU3VE,11
|
8
|
-
dukascript-0.0.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|