Qubx 0.1.8__cp311-cp311-manylinux_2_35_x86_64.whl → 0.1.81__cp311-cp311-manylinux_2_35_x86_64.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.
Potentially problematic release.
This version of Qubx might be problematic. Click here for more details.
- qubx/core/series.cpython-311-x86_64-linux-gnu.so +0 -0
- qubx/core/utils.cpython-311-x86_64-linux-gnu.so +0 -0
- qubx/data/readers.py +4 -4
- qubx/ta/indicators.cpython-311-x86_64-linux-gnu.so +0 -0
- {qubx-0.1.8.dist-info → qubx-0.1.81.dist-info}/METADATA +1 -1
- {qubx-0.1.8.dist-info → qubx-0.1.81.dist-info}/RECORD +7 -7
- {qubx-0.1.8.dist-info → qubx-0.1.81.dist-info}/WHEEL +0 -0
|
Binary file
|
|
Binary file
|
qubx/data/readers.py
CHANGED
|
@@ -531,9 +531,9 @@ class QuestDBConnector(DataReader):
|
|
|
531
531
|
def read(self, data_id: str, start: str|None=None, stop: str|None=None,
|
|
532
532
|
transform: DataTransformer = DataTransformer(),
|
|
533
533
|
chunksize=0, # TODO: use self._cursor.fetchmany in this case !!!!
|
|
534
|
-
timeframe: str='1m') -> Any:
|
|
534
|
+
timeframe: str='1m', suffix='candles_1m') -> Any:
|
|
535
535
|
start, end = handle_start_stop(start, stop)
|
|
536
|
-
_req = self._prepare_data_sql(data_id, start, end, timeframe)
|
|
536
|
+
_req = self._prepare_data_sql(data_id, start, end, timeframe, suffix)
|
|
537
537
|
|
|
538
538
|
self._cursor.execute(_req) # type: ignore
|
|
539
539
|
records = self._cursor.fetchall() # TODO: for chunksize > 0 use fetchmany etc
|
|
@@ -573,7 +573,7 @@ class QuestDBConnector(DataReader):
|
|
|
573
573
|
table_name = '.'.join(filter(lambda x: x, [_exch.lower(), _aliases.get(_mktype, _mktype), symb.lower(), sfx]))
|
|
574
574
|
return table_name
|
|
575
575
|
|
|
576
|
-
def _prepare_data_sql(self, data_id: str, start: str|None, end: str|None, resample: str) -> str:
|
|
576
|
+
def _prepare_data_sql(self, data_id: str, start: str|None, end: str|None, resample: str, suffix: str) -> str:
|
|
577
577
|
where = ''
|
|
578
578
|
w0 = f"timestamp >= '{start}'" if start else ''
|
|
579
579
|
w1 = f"timestamp <= '{end}'" if end else ''
|
|
@@ -586,7 +586,7 @@ class QuestDBConnector(DataReader):
|
|
|
586
586
|
resample = QuestDBConnector._convert_time_delta_to_qdb_resample_format(resample) if resample else resample
|
|
587
587
|
_rsmpl = f"SAMPLE by {resample}" if resample else ''
|
|
588
588
|
|
|
589
|
-
table_name = self._get_table_name(data_id,
|
|
589
|
+
table_name = self._get_table_name(data_id, suffix)
|
|
590
590
|
return f"""
|
|
591
591
|
select timestamp,
|
|
592
592
|
first(open) as open,
|
|
Binary file
|
|
@@ -6,13 +6,13 @@ qubx/core/basics.py,sha256=2u7WV5KX-RbTmzoKfi1yT4HNLDPfQcFMCUZ1pVsM_VE,14777
|
|
|
6
6
|
qubx/core/helpers.py,sha256=gPE78dO718NBY0-JbfqNGCzIvr4BVatFntNIy2RUrEY,11559
|
|
7
7
|
qubx/core/loggers.py,sha256=HpgavBZegoDv9ssihtqX0pitXKULVAPHUpoE_volJw0,11910
|
|
8
8
|
qubx/core/lookups.py,sha256=4aEC7b2AyEXFqHHGDenex3Z1FZGrpDSb8IwzBZrSqIA,13688
|
|
9
|
-
qubx/core/series.cpython-311-x86_64-linux-gnu.so,sha256=
|
|
9
|
+
qubx/core/series.cpython-311-x86_64-linux-gnu.so,sha256=4VkAkErkdGu0bJIOLxSeKm1xz-g8-nVLuXKZ1bzXe34,698952
|
|
10
10
|
qubx/core/series.pxd,sha256=IS89NQ5FYp3T0YIHe1lELKZIAKrNvX8K6WlLyac44I4,2847
|
|
11
11
|
qubx/core/series.pyx,sha256=WEAjn4j3zn540Cxx68X5gRXilvwa7NGdbki6myzZbIM,28108
|
|
12
12
|
qubx/core/strategy.py,sha256=Fs4fFyHaEGYuz7mBeQHBWFu3Ipg0yFzcxXhskgsPxJE,30330
|
|
13
|
-
qubx/core/utils.cpython-311-x86_64-linux-gnu.so,sha256=
|
|
13
|
+
qubx/core/utils.cpython-311-x86_64-linux-gnu.so,sha256=pzT_Pa_rBfspU1IxASo_yW11pRBXombGkO3kIbb9MkI,74216
|
|
14
14
|
qubx/core/utils.pyx,sha256=6dQ8R02bl8V3f-W3Wk9-e86D9OvDz-5-4NA_dlF_xwc,1368
|
|
15
|
-
qubx/data/readers.py,sha256=
|
|
15
|
+
qubx/data/readers.py,sha256=qBMKjE2RfiryLWpe_4XXmNExL3ve6M58Lc0Qwl2zUUs,24822
|
|
16
16
|
qubx/impl/ccxt_connector.py,sha256=NqF-tgxfTATnmVqKUonNXCAzECrDU8YrgqM3Nq06fw8,9150
|
|
17
17
|
qubx/impl/ccxt_customizations.py,sha256=kK_4KmOyKvDVgd4MTkVg4CyqdjE-6r41siZIvLj-A-Q,3488
|
|
18
18
|
qubx/impl/ccxt_trading.py,sha256=cmg4P-zd78w-V8j3-IGS2LFxikGhxFPgmCvz3sr065Q,9097
|
|
@@ -23,7 +23,7 @@ qubx/pandaz/__init__.py,sha256=Iw5uzicYGSC3FEKZ-W1O5-7cXq_P0kH11-EcXV0zZhs,175
|
|
|
23
23
|
qubx/pandaz/ta.py,sha256=TUvjrvmk4EQvDcXoRp6Os08-HUap-ZvpSDGawhViOgg,85271
|
|
24
24
|
qubx/pandaz/utils.py,sha256=FyLKQy8spkqxhBij_nPFC_ZzI_L3-IgB9O53MqWKmq0,19109
|
|
25
25
|
qubx/ta/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
qubx/ta/indicators.cpython-311-x86_64-linux-gnu.so,sha256=
|
|
26
|
+
qubx/ta/indicators.cpython-311-x86_64-linux-gnu.so,sha256=ZH66BIfzLOdIoALDI5kP7jED7pc5_q4iVz8jBSVutS8,284552
|
|
27
27
|
qubx/ta/indicators.pyx,sha256=P-GEYUks2lSHo6hbtUFAB7TWE1AunjLR4jIjwqPHrwU,7708
|
|
28
28
|
qubx/trackers/__init__.py,sha256=1y_yvIy0OQwBqfhAW_EY33NxFzFSWvI0qNAPU6zchYc,60
|
|
29
29
|
qubx/trackers/rebalancers.py,sha256=QCzANCooZBi2VMCBjjCPMq_Dt1h1zrBelATnfmVve74,5522
|
|
@@ -34,6 +34,6 @@ qubx/utils/marketdata/binance.py,sha256=36dl4rxOAGTeY3uoONmiPanj8BkP0oBdDiH-URJJ
|
|
|
34
34
|
qubx/utils/misc.py,sha256=z5rdz5hbRu9-F2QgF47OCkMvhfIkRKs-PHR8L5DWkBM,9831
|
|
35
35
|
qubx/utils/runner.py,sha256=OY7SoRfxHwzn0rKTGB_lbg5zNASEL_49hQXWqs-LiMk,9306
|
|
36
36
|
qubx/utils/time.py,sha256=_DjCdQditzZwMy_8rvPdWyw5tjw__2p24LMPgXdZ8i0,4911
|
|
37
|
-
qubx-0.1.
|
|
38
|
-
qubx-0.1.
|
|
39
|
-
qubx-0.1.
|
|
37
|
+
qubx-0.1.81.dist-info/METADATA,sha256=Y0Nhj7gt38F-Hvz8T5DZxfY8_OL-PWCvoD6c_5YawtU,2491
|
|
38
|
+
qubx-0.1.81.dist-info/WHEEL,sha256=MLOa6LysROdjgj4FVxsHitAnIh8Be2D_c9ZSBHKrz2M,110
|
|
39
|
+
qubx-0.1.81.dist-info/RECORD,,
|
|
File without changes
|