hyperquant 0.62__tar.gz → 0.63__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.
- {hyperquant-0.62 → hyperquant-0.63}/PKG-INFO +1 -1
- {hyperquant-0.62 → hyperquant-0.63}/pyproject.toml +1 -1
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/ws.py +7 -0
- {hyperquant-0.62 → hyperquant-0.63}/tests/test_lbank.py +1 -1
- {hyperquant-0.62 → hyperquant-0.63}/uv.lock +1 -1
- {hyperquant-0.62 → hyperquant-0.63}/.gitignore +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/.python-version +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/README.md +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/apis.json +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/backtest_tmp.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/data/alpine_smoke.log +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/data/logs/notikit.log +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/data/logs/test_order_sync.log +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/data/records_swap.csv +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/data/records_swapc.csv +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/deals.json +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/pub.sh +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/requirements-dev.lock +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/requirements.lock +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/__init__.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/auth.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/edgex.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/hyperliquid.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/lbank.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/lib/hpstore.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/lib/hyper_types.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/models/edgex.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/models/hyperliquid.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/models/lbank.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/models/ourbit.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/broker/ourbit.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/core.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/datavison/_util.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/datavison/binance.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/datavison/coinglass.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/datavison/okx.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/db.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/draw.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/logkit.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/src/hyperquant/notikit.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/tests/test_draw.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/tests/test_edgex.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/tests/test_ourbit.py +0 -0
- {hyperquant-0.62 → hyperquant-0.63}/tests/tmp.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyperquant
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.63
|
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
|
@@ -26,9 +26,16 @@ class Heartbeat:
|
|
26
26
|
await ws.send_json({"type": "ping", "time": now})
|
27
27
|
await asyncio.sleep(20.0)
|
28
28
|
|
29
|
+
@staticmethod
|
30
|
+
async def lbank(ws: ClientWebSocketResponse):
|
31
|
+
while not ws.closed:
|
32
|
+
await ws.send_str('ping')
|
33
|
+
await asyncio.sleep(6)
|
34
|
+
|
29
35
|
pybotters.ws.HeartbeatHosts.items['futures.ourbit.com'] = Heartbeat.ourbit
|
30
36
|
pybotters.ws.HeartbeatHosts.items['www.ourbit.com'] = Heartbeat.ourbit_spot
|
31
37
|
pybotters.ws.HeartbeatHosts.items['quote.edgex.exchange'] = Heartbeat.edgex
|
38
|
+
pybotters.ws.HeartbeatHosts.items['uuws.rerrkvifj.com'] = Heartbeat.lbank
|
32
39
|
|
33
40
|
class WssAuth:
|
34
41
|
@staticmethod
|
@@ -74,7 +74,7 @@ async def test_broker_subbook():
|
|
74
74
|
async with pybotters.Client() as client:
|
75
75
|
async with Lbank(client) as lb:
|
76
76
|
# 取20个symbol 尝试是否可以订阅成功
|
77
|
-
symbols = [item["symbol"] for item in lb.store.detail.find()[:
|
77
|
+
symbols = [item["symbol"] for item in lb.store.detail.find()[:4]]
|
78
78
|
await lb.sub_orderbook(symbols, limit=1)
|
79
79
|
while True:
|
80
80
|
await asyncio.sleep(1)
|
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
|