Qubx 0.1.8__tar.gz → 0.1.81__tar.gz

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.
Files changed (37) hide show
  1. {qubx-0.1.8 → qubx-0.1.81}/PKG-INFO +1 -1
  2. {qubx-0.1.8 → qubx-0.1.81}/pyproject.toml +1 -1
  3. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/data/readers.py +4 -4
  4. {qubx-0.1.8 → qubx-0.1.81}/README.md +0 -0
  5. {qubx-0.1.8 → qubx-0.1.81}/build.py +0 -0
  6. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/__init__.py +0 -0
  7. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/_nb_magic.py +0 -0
  8. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/core/__init__.py +0 -0
  9. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/core/account.py +0 -0
  10. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/core/basics.py +0 -0
  11. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/core/helpers.py +0 -0
  12. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/core/loggers.py +0 -0
  13. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/core/lookups.py +0 -0
  14. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/core/series.pxd +0 -0
  15. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/core/series.pyx +0 -0
  16. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/core/strategy.py +0 -0
  17. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/core/utils.pyx +0 -0
  18. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/impl/ccxt_connector.py +0 -0
  19. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/impl/ccxt_customizations.py +0 -0
  20. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/impl/ccxt_trading.py +0 -0
  21. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/impl/ccxt_utils.py +0 -0
  22. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/math/__init__.py +0 -0
  23. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/math/stats.py +0 -0
  24. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/pandaz/__init__.py +0 -0
  25. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/pandaz/ta.py +0 -0
  26. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/pandaz/utils.py +0 -0
  27. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/ta/__init__.py +0 -0
  28. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/ta/indicators.pyx +0 -0
  29. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/trackers/__init__.py +0 -0
  30. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/trackers/rebalancers.py +0 -0
  31. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/utils/__init__.py +0 -0
  32. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/utils/_pyxreloader.py +0 -0
  33. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/utils/charting/mpl_helpers.py +0 -0
  34. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/utils/marketdata/binance.py +0 -0
  35. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/utils/misc.py +0 -0
  36. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/utils/runner.py +0 -0
  37. {qubx-0.1.8 → qubx-0.1.81}/src/qubx/utils/time.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Qubx
3
- Version: 0.1.8
3
+ Version: 0.1.81
4
4
  Summary: Qubx - quantitative trading framework
5
5
  Home-page: https://github.com/dmarienko/Qubx
6
6
  Author: Dmitry Marienko
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "Qubx"
3
- version = "0.1.8"
3
+ version = "0.1.81"
4
4
  description = "Qubx - quantitative trading framework"
5
5
  authors = ["Dmitry Marienko <dmitry@gmail.com>"]
6
6
  readme = "README.md"
@@ -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, 'candles_1m')
589
+ table_name = self._get_table_name(data_id, suffix)
590
590
  return f"""
591
591
  select timestamp,
592
592
  first(open) as open,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes