Qubx 0.2.77__tar.gz → 0.2.78__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.
Potentially problematic release.
This version of Qubx might be problematic. Click here for more details.
- {qubx-0.2.77 → qubx-0.2.78}/PKG-INFO +1 -1
- {qubx-0.2.77 → qubx-0.2.78}/pyproject.toml +1 -1
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/strategy.py +1 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/data/readers.py +2 -2
- {qubx-0.2.77 → qubx-0.2.78}/README.md +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/build.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/__init__.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/_nb_magic.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/backtester/__init__.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/backtester/ome.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/backtester/optimization.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/backtester/queue.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/backtester/simulator.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/__init__.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/account.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/basics.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/context.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/exceptions.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/helpers.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/loggers.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/lookups.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/metrics.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/series.pxd +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/series.pyi +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/series.pyx +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/utils.pyi +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/core/utils.pyx +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/data/__init__.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/data/helpers.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/gathering/simplest.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/impl/ccxt_connector.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/impl/ccxt_customizations.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/impl/ccxt_trading.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/impl/ccxt_utils.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/math/__init__.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/math/stats.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/pandaz/__init__.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/pandaz/ta.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/pandaz/utils.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/ta/__init__.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/ta/indicators.pxd +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/ta/indicators.pyi +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/ta/indicators.pyx +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/trackers/__init__.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/trackers/composite.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/trackers/rebalancers.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/trackers/riskctrl.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/trackers/sizers.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/utils/__init__.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/utils/_pyxreloader.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/utils/charting/lookinglass.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/utils/charting/mpl_helpers.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/utils/marketdata/binance.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/utils/misc.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/utils/ntp.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/utils/runner.py +0 -0
- {qubx-0.2.77 → qubx-0.2.78}/src/qubx/utils/time.py +0 -0
|
@@ -154,6 +154,7 @@ class StrategyContext(ITimeProvider):
|
|
|
154
154
|
instruments: List[Instrument] # list of instruments this strategy trades
|
|
155
155
|
positions: Dict[str, Position] # positions of the strategy (instrument -> position)
|
|
156
156
|
acc: AccountProcessor
|
|
157
|
+
broker_provider: IBrokerServiceProvider # market data provider
|
|
157
158
|
|
|
158
159
|
def process_data(self, symbol: str, d_type: str, data: Any) -> bool: ...
|
|
159
160
|
|
|
@@ -907,7 +907,7 @@ class QuestDBConnector(DataReader):
|
|
|
907
907
|
|
|
908
908
|
query = f"""
|
|
909
909
|
select timestamp,
|
|
910
|
-
symbol,
|
|
910
|
+
upper(symbol) as symbol,
|
|
911
911
|
first(open) as open,
|
|
912
912
|
max(high) as high,
|
|
913
913
|
min(low) as low,
|
|
@@ -939,7 +939,7 @@ class QuestDBConnector(DataReader):
|
|
|
939
939
|
where timestamp >= '{start}' and timestamp < '{stop}'
|
|
940
940
|
SAMPLE BY {QuestDBSqlCandlesBuilder._convert_time_delta_to_qdb_resample_format(timeframe)}
|
|
941
941
|
)
|
|
942
|
-
select symbol, avg(qvolume) as quote_volume from sampled
|
|
942
|
+
select upper(symbol) as symbol, avg(qvolume) as quote_volume from sampled
|
|
943
943
|
group by symbol
|
|
944
944
|
order by quote_volume desc;
|
|
945
945
|
"""
|
|
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
|
|
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
|
|
File without changes
|