Qubx 0.6.25__cp312-cp312-manylinux_2_39_x86_64.whl → 0.6.27__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/connectors/ccxt/data.py +6 -2
- qubx/connectors/ccxt/exchanges/binance/exchange.py +18 -1
- qubx/connectors/tardis/data.py +1 -1
- 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-0.6.25.dist-info → qubx-0.6.27.dist-info}/METADATA +1 -1
- {qubx-0.6.25.dist-info → qubx-0.6.27.dist-info}/RECORD +11 -11
- {qubx-0.6.25.dist-info → qubx-0.6.27.dist-info}/LICENSE +0 -0
- {qubx-0.6.25.dist-info → qubx-0.6.27.dist-info}/WHEEL +0 -0
- {qubx-0.6.25.dist-info → qubx-0.6.27.dist-info}/entry_points.txt +0 -0
qubx/connectors/ccxt/data.py
CHANGED
|
@@ -574,9 +574,13 @@ class CcxtDataProvider(IDataProvider):
|
|
|
574
574
|
ob = ccxt_convert_orderbook(ccxt_ob, instrument, levels=depth, tick_size_pct=tick_size_pct)
|
|
575
575
|
if ob is None:
|
|
576
576
|
return
|
|
577
|
+
|
|
577
578
|
self._health_monitor.record_data_arrival(sub_type, dt_64(ob.time, "ns"))
|
|
578
|
-
|
|
579
|
-
self.
|
|
579
|
+
|
|
580
|
+
if not self.has_subscription(instrument, DataType.QUOTE):
|
|
581
|
+
quote = ob.to_quote()
|
|
582
|
+
self._last_quotes[instrument] = quote
|
|
583
|
+
|
|
580
584
|
channel.send((instrument, sub_type, ob, False))
|
|
581
585
|
|
|
582
586
|
async def un_watch_orderbook(instruments: list[Instrument]):
|
|
@@ -32,7 +32,8 @@ class BinanceQV(cxp.binance):
|
|
|
32
32
|
"options": {
|
|
33
33
|
"watchTrades": {
|
|
34
34
|
"name": "aggTrade",
|
|
35
|
-
}
|
|
35
|
+
},
|
|
36
|
+
"localOrderBookLimit": 10_000, # set a large limit to avoid cutting off the orderbook
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
)
|
|
@@ -210,6 +211,22 @@ class BinanceQV(cxp.binance):
|
|
|
210
211
|
self.trades[symbol] = tradesArray
|
|
211
212
|
client.resolve(tradesArray, messageHash)
|
|
212
213
|
|
|
214
|
+
def handle_order_book_subscription(self, client: Client, message, subscription):
|
|
215
|
+
defaultLimit = self.safe_integer(self.options, "localOrderBookLimit", 4000)
|
|
216
|
+
# messageHash = self.safe_string(subscription, 'messageHash')
|
|
217
|
+
symbolOfSubscription = self.safe_string(subscription, "symbol") # watchOrderBook
|
|
218
|
+
symbols = self.safe_value(subscription, "symbols", [symbolOfSubscription]) # watchOrderBookForSymbols
|
|
219
|
+
limit = self.safe_integer(subscription, "limit", defaultLimit)
|
|
220
|
+
# handle list of symbols
|
|
221
|
+
for i in range(0, len(symbols)):
|
|
222
|
+
symbol = symbols[i]
|
|
223
|
+
if symbol in self.orderbooks:
|
|
224
|
+
del self.orderbooks[symbol]
|
|
225
|
+
self.orderbooks[symbol] = self.order_book({}, limit)
|
|
226
|
+
subscription = self.extend(subscription, {"symbol": symbol})
|
|
227
|
+
# fetch the snapshot in a separate async call
|
|
228
|
+
self.spawn(self.fetch_order_book_snapshot, client, message, subscription)
|
|
229
|
+
|
|
213
230
|
|
|
214
231
|
class BinanceQVUSDM(cxp.binanceusdm, BinanceQV):
|
|
215
232
|
"""
|
qubx/connectors/tardis/data.py
CHANGED
|
@@ -687,7 +687,7 @@ class TardisDataProvider(IDataProvider):
|
|
|
687
687
|
elif data_type == DataType.QUOTE:
|
|
688
688
|
return "quote"
|
|
689
689
|
elif data_type == DataType.ORDERBOOK:
|
|
690
|
-
return "
|
|
690
|
+
return "book_snapshot_2000_100ms" # Default depth and interval
|
|
691
691
|
elif data_type == DataType.OHLC:
|
|
692
692
|
return "trade_bar_1m" # Default timeframe
|
|
693
693
|
else:
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -20,17 +20,17 @@ qubx/cli/release.py,sha256=JYdNt_ZM9jarmYiRDtKqbRqqllzm2Qwi6VggokB2j8A,28167
|
|
|
20
20
|
qubx/connectors/ccxt/__init__.py,sha256=HEQ7lM9HS8sED_zfsAHrhFT7F9E7NFGAecwZwNr-TDE,65
|
|
21
21
|
qubx/connectors/ccxt/account.py,sha256=HILqsSPfor58NrlP0qYwO5lkNZzUBG-SR5Hy1OSa7_M,24308
|
|
22
22
|
qubx/connectors/ccxt/broker.py,sha256=UMAytmDCwELUv4-R4WmrEQdPnZjjF89XlgJst15WVSs,15305
|
|
23
|
-
qubx/connectors/ccxt/data.py,sha256
|
|
23
|
+
qubx/connectors/ccxt/data.py,sha256=-5ysiERXC6Ip5Hp9N6Lq4bTQVyMZvFFMMPcS6RfwmYk,30051
|
|
24
24
|
qubx/connectors/ccxt/exceptions.py,sha256=OfZc7iMdEG8uLorcZta2NuEuJrSIqi0FG7IICmwF54M,262
|
|
25
25
|
qubx/connectors/ccxt/exchanges/__init__.py,sha256=2Po4YfvLOcpXHCS9Q2SSy3TMUejkcd9RhQ-oyGaxcEc,1504
|
|
26
26
|
qubx/connectors/ccxt/exchanges/binance/broker.py,sha256=BB2V82zaOm1EjP3GrsOqQQMeGpml6-w23iv7goKrjyU,2111
|
|
27
|
-
qubx/connectors/ccxt/exchanges/binance/exchange.py,sha256=
|
|
27
|
+
qubx/connectors/ccxt/exchanges/binance/exchange.py,sha256=7r4Y1-4NOMjnhz_Sdg6mjazUHtJPc1jOIPT_d8sxuBs,24444
|
|
28
28
|
qubx/connectors/ccxt/exchanges/bitfinex/bitfinex.py,sha256=C0ZtM2MmLI_LJyUFSbww9qon7od57iAKoJJZ_3KUgNM,1150
|
|
29
29
|
qubx/connectors/ccxt/exchanges/kraken/kraken.py,sha256=RFrnvr1L1NZYoKYWR5_L8vVkpMXtY7UDkWRnHeoasDU,351
|
|
30
30
|
qubx/connectors/ccxt/factory.py,sha256=mfWjIJhoTAREkL--WiCGpD7ptDC7mHRc19s0hI2ShKM,2957
|
|
31
31
|
qubx/connectors/ccxt/reader.py,sha256=qaZIaOZkRf3Rz31ZrEqqAv4kATk5zDlSq-LK1jziBs8,8314
|
|
32
32
|
qubx/connectors/ccxt/utils.py,sha256=hNy7jmNau6SKgztVCV-HNTRRphfVREmPCvpxKkKwPzY,11575
|
|
33
|
-
qubx/connectors/tardis/data.py,sha256=
|
|
33
|
+
qubx/connectors/tardis/data.py,sha256=VJJXSe6xb4jsa88VVj1lwI7VkEYknIXuM4End3t852M,30752
|
|
34
34
|
qubx/connectors/tardis/utils.py,sha256=epThu9DwqbDb7BgScH6fHa_FVpKUaItOqp3JwtKGc5g,9092
|
|
35
35
|
qubx/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
qubx/core/account.py,sha256=4_XskMLR9Uh-rpJBDYMrceYiGMvAZw56k1ve-unIW8w,19417
|
|
@@ -51,11 +51,11 @@ qubx/core/mixins/processing.py,sha256=dqehukrfqcLy5BeILKnkpHCvva4SbLKj1ZbQdnByu1
|
|
|
51
51
|
qubx/core/mixins/subscription.py,sha256=V_g9wCPQ8S5SHkU-qOZ84cV5nReAUrV7DoSNAGG0LPY,10372
|
|
52
52
|
qubx/core/mixins/trading.py,sha256=6XK712ZHECZnI-lleJfQ8taXfaBagPQBVqNoBxAkEyM,7204
|
|
53
53
|
qubx/core/mixins/universe.py,sha256=L3s2Jw46_J1iDh4622Gk_LvCjol4W7mflBwEHrLfZEw,9899
|
|
54
|
-
qubx/core/series.cpython-312-x86_64-linux-gnu.so,sha256=
|
|
54
|
+
qubx/core/series.cpython-312-x86_64-linux-gnu.so,sha256=wDjtXBOulP3qXrO3zJASMpjv_D15D3mZIRi4LiJCBtI,978280
|
|
55
55
|
qubx/core/series.pxd,sha256=jBdMwgO8J4Zrue0e_xQ5RlqTXqihpzQNu6V3ckZvvpY,3978
|
|
56
56
|
qubx/core/series.pyi,sha256=RaHm_oHHiWiNUMJqVfx5FXAXniGLsHxUFOUpacn7GC0,4604
|
|
57
57
|
qubx/core/series.pyx,sha256=7cM3zZThW59waHiYcZmMxvYj-HYD7Ej_l7nKA4emPjE,46477
|
|
58
|
-
qubx/core/utils.cpython-312-x86_64-linux-gnu.so,sha256=
|
|
58
|
+
qubx/core/utils.cpython-312-x86_64-linux-gnu.so,sha256=wqA5jyTpB6KEEcTJ8dFvGNq5hSuZVbIVQemehpCj2F4,86568
|
|
59
59
|
qubx/core/utils.pyi,sha256=a-wS13V2p_dM1CnGq40JVulmiAhixTwVwt0ah5By0Hc,348
|
|
60
60
|
qubx/core/utils.pyx,sha256=k5QHfEFvqhqWfCob89ANiJDKNG8gGbOh-O4CVoneZ8M,1696
|
|
61
61
|
qubx/data/__init__.py,sha256=ELZykvpPGWc5rX7QoNyNQwMLgdKMG8MACOByA4pM5hA,549
|
|
@@ -116,7 +116,7 @@ qubx/restorers/signal.py,sha256=DBLqA7vDhoMTAzUC4N9UerrO0GbjeHdTeMoCz7U7iI8,6621
|
|
|
116
116
|
qubx/restorers/state.py,sha256=duXyEHQhS1zdNdo3VKscMhieZ5sYNlfE4S_pPXQ1Tuw,4109
|
|
117
117
|
qubx/restorers/utils.py,sha256=We2gfqwQKWziUYhuUnjb-xo-5tSlbuHWpPQn0CEMTn0,1155
|
|
118
118
|
qubx/ta/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
119
|
-
qubx/ta/indicators.cpython-312-x86_64-linux-gnu.so,sha256=
|
|
119
|
+
qubx/ta/indicators.cpython-312-x86_64-linux-gnu.so,sha256=vLcvhGptN0rr6srZzIzoxwYYmzPlBYBShFmamFpMn0A,654440
|
|
120
120
|
qubx/ta/indicators.pxd,sha256=Goo0_N0Xnju8XGo3Xs-3pyg2qr_0Nh5C-_26DK8U_IE,4224
|
|
121
121
|
qubx/ta/indicators.pyi,sha256=19W0uERft49In5bf9jkJHkzJYEyE9gzudN7_DJ5Vdv8,1963
|
|
122
122
|
qubx/ta/indicators.pyx,sha256=Xgpew46ZxSXsdfSEWYn3A0Q35MLsopB9n7iyCsXTufs,25969
|
|
@@ -153,8 +153,8 @@ qubx/utils/runner/factory.py,sha256=vQ2dBTbrQE9YH__-TvuFzGF-E1li-vt_qQum9GHa11g,
|
|
|
153
153
|
qubx/utils/runner/runner.py,sha256=iJsxTU9ne43Seh5rMfZLrXnV-RtA4BwzZYsjHeXajLs,29067
|
|
154
154
|
qubx/utils/time.py,sha256=J0ZFGjzFL5T6GA8RPAel8hKG0sg2LZXeQ5YfDCfcMHA,10055
|
|
155
155
|
qubx/utils/version.py,sha256=e52fIHyxzCiIuH7svCF6pkHuDlqL64rklqz-2XjWons,5309
|
|
156
|
-
qubx-0.6.
|
|
157
|
-
qubx-0.6.
|
|
158
|
-
qubx-0.6.
|
|
159
|
-
qubx-0.6.
|
|
160
|
-
qubx-0.6.
|
|
156
|
+
qubx-0.6.27.dist-info/LICENSE,sha256=qwMHOSJ2TD0nx6VUJvFhu1ynJdBfNozRMt6tnSul-Ts,35140
|
|
157
|
+
qubx-0.6.27.dist-info/METADATA,sha256=tFx0cP_UixMg-uUlI28BHrp4McZhRPR7t82YUQZDodo,4444
|
|
158
|
+
qubx-0.6.27.dist-info/WHEEL,sha256=XjdW4AGUgFDhpG9b3b2KPhtR_JLZvHyfemLgJJwcqOI,110
|
|
159
|
+
qubx-0.6.27.dist-info/entry_points.txt,sha256=VqilDTe8mVuV9SbR-yVlZJBTjbkHIL2JBgXfQw076HY,47
|
|
160
|
+
qubx-0.6.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|