Qubx 0.6.9__cp312-cp312-manylinux_2_39_x86_64.whl → 0.6.10__cp312-cp312-manylinux_2_39_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/account.py +1 -2
- qubx/core/series.cpython-312-x86_64-linux-gnu.so +0 -0
- qubx/core/utils.cpython-312-x86_64-linux-gnu.so +0 -0
- qubx/ta/indicators.cpython-312-x86_64-linux-gnu.so +0 -0
- qubx/utils/runner/configs.py +1 -1
- qubx/utils/runner/runner.py +20 -10
- {qubx-0.6.9.dist-info → qubx-0.6.10.dist-info}/METADATA +1 -1
- {qubx-0.6.9.dist-info → qubx-0.6.10.dist-info}/RECORD +10 -10
- {qubx-0.6.9.dist-info → qubx-0.6.10.dist-info}/WHEEL +0 -0
- {qubx-0.6.9.dist-info → qubx-0.6.10.dist-info}/entry_points.txt +0 -0
qubx/core/account.py
CHANGED
|
@@ -62,9 +62,8 @@ class BasicAccountProcessor(IAccountProcessor):
|
|
|
62
62
|
def get_total_capital(self) -> float:
|
|
63
63
|
# sum of cash + market value of all positions
|
|
64
64
|
_cash_amount = self._balances[self.base_currency].total
|
|
65
|
-
_r_pnl = sum([p.r_pnl for p in self._positions.values()])
|
|
66
65
|
_positions_value = sum([p.market_value_funds for p in self._positions.values()])
|
|
67
|
-
return _cash_amount + _positions_value
|
|
66
|
+
return _cash_amount + _positions_value
|
|
68
67
|
|
|
69
68
|
def get_balances(self) -> dict[str, AssetBalance]:
|
|
70
69
|
return self._balances
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
qubx/utils/runner/configs.py
CHANGED
qubx/utils/runner/runner.py
CHANGED
|
@@ -742,13 +742,19 @@ def _create_data_type_readers(warmup: WarmupConfig | None) -> dict[str, DataRead
|
|
|
742
742
|
data_type_to_reader = {} # Maps data type to reader instance
|
|
743
743
|
|
|
744
744
|
for typed_reader_config in warmup.readers:
|
|
745
|
-
|
|
746
|
-
|
|
745
|
+
data_types = typed_reader_config.data_type
|
|
746
|
+
if isinstance(data_types, str):
|
|
747
|
+
data_types = [data_types]
|
|
748
|
+
readers_for_types = []
|
|
747
749
|
|
|
748
750
|
for reader_config in typed_reader_config.readers:
|
|
749
751
|
# Create a hashable representation of the reader config
|
|
750
|
-
#
|
|
751
|
-
|
|
752
|
+
# Create a hashable key from reader name and stringified args
|
|
753
|
+
if reader_config.args:
|
|
754
|
+
args_str = str(reader_config.args)
|
|
755
|
+
reader_key = f"{reader_config.reader}:{args_str}"
|
|
756
|
+
else:
|
|
757
|
+
reader_key = reader_config.reader
|
|
752
758
|
|
|
753
759
|
# Check if we've already created this reader
|
|
754
760
|
if reader_key not in unique_readers:
|
|
@@ -761,14 +767,18 @@ def _create_data_type_readers(warmup: WarmupConfig | None) -> dict[str, DataRead
|
|
|
761
767
|
logger.error(f"Reader {reader_config.reader} could not be created: {e}")
|
|
762
768
|
raise
|
|
763
769
|
|
|
764
|
-
# Add the reader to the list for
|
|
765
|
-
|
|
770
|
+
# Add the reader to the list for these data types
|
|
771
|
+
readers_for_types.append(unique_readers[reader_key])
|
|
766
772
|
|
|
767
773
|
# Create a composite reader if needed, or use the single reader
|
|
768
|
-
if len(
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
774
|
+
if len(readers_for_types) > 1:
|
|
775
|
+
composite_reader = CompositeReader(readers_for_types)
|
|
776
|
+
for data_type in data_types:
|
|
777
|
+
data_type_to_reader[data_type] = composite_reader
|
|
778
|
+
elif len(readers_for_types) == 1:
|
|
779
|
+
single_reader = readers_for_types[0]
|
|
780
|
+
for data_type in data_types:
|
|
781
|
+
data_type_to_reader[data_type] = single_reader
|
|
772
782
|
|
|
773
783
|
return data_type_to_reader
|
|
774
784
|
|
|
@@ -26,7 +26,7 @@ qubx/connectors/ccxt/factory.py,sha256=KROJ9-7zfoKZuess99UZMzgsZakISbN3XDOkEB-Ev
|
|
|
26
26
|
qubx/connectors/ccxt/reader.py,sha256=qaZIaOZkRf3Rz31ZrEqqAv4kATk5zDlSq-LK1jziBs8,8314
|
|
27
27
|
qubx/connectors/ccxt/utils.py,sha256=kWeYQ1Z9TxFTbgJgBh5o77mGB1g09l2AkiFdR6guDQY,11141
|
|
28
28
|
qubx/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
|
-
qubx/core/account.py,sha256=
|
|
29
|
+
qubx/core/account.py,sha256=Ewzmr1jxyLROnWshtx_ngi7fna1cH42NJ5wVRyP4dmQ,10411
|
|
30
30
|
qubx/core/basics.py,sha256=3Q5E9yQ_bnOIeMsL98kdb9idzDnqwi13SlmO2LMns_4,28683
|
|
31
31
|
qubx/core/context.py,sha256=t4A1sWM6dn4t-LSKOC-66x4Y-_5aGduEedO_Gmd3Yrg,20593
|
|
32
32
|
qubx/core/exceptions.py,sha256=ONFzWISjWfb2S0kEIorq-3L4MdhNR-xkHftHQALOZ0U,533
|
|
@@ -42,11 +42,11 @@ qubx/core/mixins/processing.py,sha256=Ny9EyrTuF_YBmPsAebykV54OfGMBGE1gSam9VFJJKa
|
|
|
42
42
|
qubx/core/mixins/subscription.py,sha256=J_SX0CNw2bPy4bhxe0vswvDXY4LCkwXSaj_1PepKRLY,8540
|
|
43
43
|
qubx/core/mixins/trading.py,sha256=KApWQE0zIh1jg_9HezLdR-mp3UEYIdylSyX9MajHmCc,3618
|
|
44
44
|
qubx/core/mixins/universe.py,sha256=1ya2P3QZrsAVXmMXqq0t6CHGAC5iMGVD2ARUAtSfv04,10062
|
|
45
|
-
qubx/core/series.cpython-312-x86_64-linux-gnu.so,sha256=
|
|
45
|
+
qubx/core/series.cpython-312-x86_64-linux-gnu.so,sha256=23fTZIr_aK_IaTkwhaSWHbMMq1jBgZCMLJvhuCm6UDk,970056
|
|
46
46
|
qubx/core/series.pxd,sha256=ZA9mBrZ-ha112ZMZnBIun1kNrKjxzlaOoq4D_cDZYJw,3923
|
|
47
47
|
qubx/core/series.pyi,sha256=r6o2SnYIBujmJuuoM8oEc3tbVg2Blz2CfSIdRKn9VMo,4547
|
|
48
48
|
qubx/core/series.pyx,sha256=Y6GbCihO3zgUWOF9UvmyXisWLnGcVOcFl2u1ZtvM1zI,44909
|
|
49
|
-
qubx/core/utils.cpython-312-x86_64-linux-gnu.so,sha256=
|
|
49
|
+
qubx/core/utils.cpython-312-x86_64-linux-gnu.so,sha256=cOfj8bdUMj8VYurQajzxqhiPIdXlxo2rthWEnn5FPFM,86568
|
|
50
50
|
qubx/core/utils.pyi,sha256=a-wS13V2p_dM1CnGq40JVulmiAhixTwVwt0ah5By0Hc,348
|
|
51
51
|
qubx/core/utils.pyx,sha256=k5QHfEFvqhqWfCob89ANiJDKNG8gGbOh-O4CVoneZ8M,1696
|
|
52
52
|
qubx/data/__init__.py,sha256=ELZykvpPGWc5rX7QoNyNQwMLgdKMG8MACOByA4pM5hA,549
|
|
@@ -104,7 +104,7 @@ qubx/restorers/signal.py,sha256=iruHe4ieTSV73zeJbFPubsmAEf4TzVXnkM4zjupCAJQ,6462
|
|
|
104
104
|
qubx/restorers/state.py,sha256=ePmh604fp2kRYzMNXL-TWvZOxmtTGAaKYfHJcnKResY,4042
|
|
105
105
|
qubx/restorers/utils.py,sha256=We2gfqwQKWziUYhuUnjb-xo-5tSlbuHWpPQn0CEMTn0,1155
|
|
106
106
|
qubx/ta/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
107
|
-
qubx/ta/indicators.cpython-312-x86_64-linux-gnu.so,sha256=
|
|
107
|
+
qubx/ta/indicators.cpython-312-x86_64-linux-gnu.so,sha256=WWckO4c42inIW-CCEmcW-xCNY7dpmujiJ55TvCqQuwc,654440
|
|
108
108
|
qubx/ta/indicators.pxd,sha256=eCJ9paOxtxbDFx4U5CUhcgB1jjCQAfVqMF2FnbJ03Lo,4222
|
|
109
109
|
qubx/ta/indicators.pyi,sha256=19W0uERft49In5bf9jkJHkzJYEyE9gzudN7_DJ5Vdv8,1963
|
|
110
110
|
qubx/ta/indicators.pyx,sha256=FVkv5ld04TpZMT3a_kR1MU3IUuWfijzjJnh_lG78JxM,26029
|
|
@@ -134,11 +134,11 @@ qubx/utils/plotting/renderers/plotly.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
|
134
134
|
qubx/utils/runner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
135
135
|
qubx/utils/runner/_jupyter_runner.pyt,sha256=0f6ZdfhM1BYoWFuZVqwZj7jvlv7_PZE1upJ3Tx9L2NI,9198
|
|
136
136
|
qubx/utils/runner/accounts.py,sha256=brf_RP22-nFlpyLg-eES-4pCikqev-I7OHa2bnLDK6o,3304
|
|
137
|
-
qubx/utils/runner/configs.py,sha256=
|
|
138
|
-
qubx/utils/runner/runner.py,sha256=
|
|
137
|
+
qubx/utils/runner/configs.py,sha256=vtl04A42kT21hD68zpoZZw96rEC8HnFFX9en0Y85GLA,3131
|
|
138
|
+
qubx/utils/runner/runner.py,sha256=kwigJ9MgBcOkDpYAHj2TuwQzNerwyUWaE4UmyNYxD34,37910
|
|
139
139
|
qubx/utils/time.py,sha256=J0ZFGjzFL5T6GA8RPAel8hKG0sg2LZXeQ5YfDCfcMHA,10055
|
|
140
140
|
qubx/utils/version.py,sha256=e52fIHyxzCiIuH7svCF6pkHuDlqL64rklqz-2XjWons,5309
|
|
141
|
-
qubx-0.6.
|
|
142
|
-
qubx-0.6.
|
|
143
|
-
qubx-0.6.
|
|
144
|
-
qubx-0.6.
|
|
141
|
+
qubx-0.6.10.dist-info/METADATA,sha256=LPSsRviGdvTomS-OolxJMEr5I61F9tLUTPegAsDSQAM,4142
|
|
142
|
+
qubx-0.6.10.dist-info/WHEEL,sha256=h1DdjcD2ZFnKGsDLjEycQhNNPJ5l-R8qdFdDSXHrAGY,110
|
|
143
|
+
qubx-0.6.10.dist-info/entry_points.txt,sha256=VqilDTe8mVuV9SbR-yVlZJBTjbkHIL2JBgXfQw076HY,47
|
|
144
|
+
qubx-0.6.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|