hyperquant 0.64__py3-none-any.whl → 0.65__py3-none-any.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.
@@ -102,4 +102,9 @@ class Lbank:
102
102
  self.store.register_book_channel(str(y), symbol)
103
103
  y += 1
104
104
 
105
- await asyncio.gather(*(sub(send_json) for send_json in send_jsons))
105
+ # Rate limit: max 5 subscriptions per second
106
+ for i in range(0, len(send_jsons), 5):
107
+ batch = send_jsons[i:i+5]
108
+ await asyncio.gather(*(sub(send_json) for send_json in batch))
109
+ if i + 5 < len(send_jsons):
110
+ await asyncio.sleep(0.1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperquant
3
- Version: 0.64
3
+ Version: 0.65
4
4
  Summary: A minimal yet hyper-efficient backtesting framework for quantitative trading
5
5
  Project-URL: Homepage, https://github.com/yourusername/hyperquant
6
6
  Project-URL: Issues, https://github.com/yourusername/hyperquant/issues
@@ -7,7 +7,7 @@ hyperquant/notikit.py,sha256=x5yAZ_tAvLQRXcRbcg-VabCaN45LUhvlTZnUqkIqfAA,3596
7
7
  hyperquant/broker/auth.py,sha256=oA9Yw1I59-u0Tnoj2e4wUup5q8V5T2qpga5RKbiAiZI,2614
8
8
  hyperquant/broker/edgex.py,sha256=qQtc8jZqB5ZODoGGVcG_aIVUlrJX_pRF9EyO927LiVM,6646
9
9
  hyperquant/broker/hyperliquid.py,sha256=7MxbI9OyIBcImDelPJu-8Nd53WXjxPB5TwE6gsjHbto,23252
10
- hyperquant/broker/lbank.py,sha256=9waMiBfjsogewTwTOcaG5_5bJHLjXSrv56oqjEptgh4,3107
10
+ hyperquant/broker/lbank.py,sha256=kuxRfZylGZK3LRMzQJcB3w_nOXWM9-si65EwDsj0DnY,3325
11
11
  hyperquant/broker/ourbit.py,sha256=NUcDSIttf-HGWzoW1uBTrGLPHlkuemMjYCm91MigTno,18228
12
12
  hyperquant/broker/ws.py,sha256=4Igi0zuwGHmU46BSz24sFURkYalrE5Z68qkZEFBfbJE,2147
13
13
  hyperquant/broker/lib/hpstore.py,sha256=LnLK2zmnwVvhEbLzYI-jz_SfYpO1Dv2u2cJaRAb84D8,8296
@@ -20,6 +20,6 @@ hyperquant/datavison/_util.py,sha256=92qk4vO856RqycO0YqEIHJlEg-W9XKapDVqAMxe6rbw
20
20
  hyperquant/datavison/binance.py,sha256=3yNKTqvt_vUQcxzeX4ocMsI5k6Q6gLZrvgXxAEad6Kc,5001
21
21
  hyperquant/datavison/coinglass.py,sha256=PEjdjISP9QUKD_xzXNzhJ9WFDTlkBrRQlVL-5pxD5mo,10482
22
22
  hyperquant/datavison/okx.py,sha256=yg8WrdQ7wgWHNAInIgsWPM47N3Wkfr253169IPAycAY,6898
23
- hyperquant-0.64.dist-info/METADATA,sha256=8O2BgrL-YzkxoAf0oqBhE9-hLdcwpvbBL6e_gpnOlAk,4317
24
- hyperquant-0.64.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- hyperquant-0.64.dist-info/RECORD,,
23
+ hyperquant-0.65.dist-info/METADATA,sha256=Yr3ioVFeA70YO0DwclPrN1Wcy8KX4ZLHomerfHR8rxw,4317
24
+ hyperquant-0.65.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
+ hyperquant-0.65.dist-info/RECORD,,