hyperquant 0.86__tar.gz → 0.87__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 (51) hide show
  1. {hyperquant-0.86 → hyperquant-0.87}/PKG-INFO +1 -1
  2. {hyperquant-0.86 → hyperquant-0.87}/pyproject.toml +1 -1
  3. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/coinw.py +4 -4
  4. {hyperquant-0.86 → hyperquant-0.87}/tests/test_coinw.py +2 -2
  5. {hyperquant-0.86 → hyperquant-0.87}/uv.lock +1 -1
  6. {hyperquant-0.86 → hyperquant-0.87}/.gitignore +0 -0
  7. {hyperquant-0.86 → hyperquant-0.87}/.python-version +0 -0
  8. {hyperquant-0.86 → hyperquant-0.87}/README.md +0 -0
  9. {hyperquant-0.86 → hyperquant-0.87}/apis.json +0 -0
  10. {hyperquant-0.86 → hyperquant-0.87}/data/alpine_smoke.log +0 -0
  11. {hyperquant-0.86 → hyperquant-0.87}/data/logs/notikit.log +0 -0
  12. {hyperquant-0.86 → hyperquant-0.87}/data/logs/test_order_sync.log +0 -0
  13. {hyperquant-0.86 → hyperquant-0.87}/data/records_swap.csv +0 -0
  14. {hyperquant-0.86 → hyperquant-0.87}/data/records_swapc.csv +0 -0
  15. {hyperquant-0.86 → hyperquant-0.87}/doc/lbank.md +0 -0
  16. {hyperquant-0.86 → hyperquant-0.87}/pub.sh +0 -0
  17. {hyperquant-0.86 → hyperquant-0.87}/requirements-dev.lock +0 -0
  18. {hyperquant-0.86 → hyperquant-0.87}/requirements.lock +0 -0
  19. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/__init__.py +0 -0
  20. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/auth.py +0 -0
  21. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/bitget.py +0 -0
  22. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/edgex.py +0 -0
  23. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/hyperliquid.py +0 -0
  24. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/lbank.py +0 -0
  25. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/lib/edgex_sign.py +0 -0
  26. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/lib/hpstore.py +0 -0
  27. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/lib/hyper_types.py +0 -0
  28. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/lib/util.py +0 -0
  29. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/models/bitget.py +0 -0
  30. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/models/coinw.py +0 -0
  31. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/models/edgex.py +0 -0
  32. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/models/hyperliquid.py +0 -0
  33. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/models/lbank.py +0 -0
  34. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/models/ourbit.py +0 -0
  35. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/ourbit.py +0 -0
  36. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/broker/ws.py +0 -0
  37. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/core.py +0 -0
  38. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/datavison/_util.py +0 -0
  39. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/datavison/binance.py +0 -0
  40. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/datavison/coinglass.py +0 -0
  41. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/datavison/okx.py +0 -0
  42. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/db.py +0 -0
  43. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/draw.py +0 -0
  44. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/logkit.py +0 -0
  45. {hyperquant-0.86 → hyperquant-0.87}/src/hyperquant/notikit.py +0 -0
  46. {hyperquant-0.86 → hyperquant-0.87}/tests/test_bitget.py +0 -0
  47. {hyperquant-0.86 → hyperquant-0.87}/tests/test_draw.py +0 -0
  48. {hyperquant-0.86 → hyperquant-0.87}/tests/test_edgex.py +0 -0
  49. {hyperquant-0.86 → hyperquant-0.87}/tests/test_lbank.py +0 -0
  50. {hyperquant-0.86 → hyperquant-0.87}/tests/test_ourbit.py +0 -0
  51. {hyperquant-0.86 → hyperquant-0.87}/tests/tmp.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperquant
3
- Version: 0.86
3
+ Version: 0.87
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hyperquant"
3
- version = "0.86"
3
+ version = "0.87"
4
4
  description = "A minimal yet hyper-efficient backtesting framework for quantitative trading"
5
5
  authors = [
6
6
  { name = "MissinA", email = "1421329142@qq.com" }
@@ -348,16 +348,16 @@ class Coinw:
348
348
  ws_ref: dict[str, pybotters.ws.WebSocketApp] = {"app": ws_app}
349
349
 
350
350
  async def monitor() -> None:
351
+ poll_interval = 1.0
351
352
  while True:
352
- await asyncio.sleep(stale_timeout)
353
+ await asyncio.sleep(poll_interval)
353
354
  last_update = self.store.book.last_update
354
355
  if not last_update:
355
356
  continue
356
357
  if time.time() - last_update < stale_timeout:
357
358
  continue
358
- logger.warning(
359
- "CoinW order book idle for %.1f seconds, reconnecting.", stale_timeout
360
- )
359
+
360
+ logger.warning(f"CoinW订单簿超过{stale_timeout:.1f}秒未更新,正在重连。")
361
361
  try:
362
362
  current = ws_ref["app"]
363
363
  if current.current_ws and not current.current_ws.closed:
@@ -51,9 +51,9 @@ async def test_sub_orderbook(
51
51
  with cw.store.book.watch() as watcher:
52
52
  while True:
53
53
  try:
54
- change = await asyncio.wait_for(watcher.__anext__(), timeout=10.0)
54
+ change = await asyncio.wait_for(watcher.__anext__(), timeout=15.0)
55
55
  except asyncio.TimeoutError:
56
- print("超过10秒未收到新数据,退出订阅。")
56
+ print("超过15秒未收到新数据,退出订阅。")
57
57
  break
58
58
  else:
59
59
  print(change.data)
@@ -662,7 +662,7 @@ wheels = [
662
662
 
663
663
  [[package]]
664
664
  name = "hyperquant"
665
- version = "0.85"
665
+ version = "0.86"
666
666
  source = { editable = "." }
667
667
  dependencies = [
668
668
  { name = "aiohttp" },
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