hyperquant 0.78__tar.gz → 0.79__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.
Potentially problematic release.
This version of hyperquant might be problematic. Click here for more details.
- {hyperquant-0.78 → hyperquant-0.79}/PKG-INFO +1 -1
- {hyperquant-0.78 → hyperquant-0.79}/apis.json +1 -1
- {hyperquant-0.78 → hyperquant-0.79}/pyproject.toml +1 -1
- {hyperquant-0.78 → hyperquant-0.79}/tests/test_bitget.py +2 -3
- {hyperquant-0.78 → hyperquant-0.79}/tests/test_lbank.py +8 -6
- {hyperquant-0.78 → hyperquant-0.79}/uv.lock +1 -1
- {hyperquant-0.78 → hyperquant-0.79}/.gitignore +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/.python-version +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/README.md +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/data/alpine_smoke.log +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/data/logs/notikit.log +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/data/logs/test_order_sync.log +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/data/records_swap.csv +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/data/records_swapc.csv +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/doc/lbank.md +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/pub.sh +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/requirements-dev.lock +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/requirements.lock +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/__init__.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/auth.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/bitget.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/edgex.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/hyperliquid.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/lbank.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/lib/edgex_sign.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/lib/hpstore.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/lib/hyper_types.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/lib/util.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/models/bitget.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/models/edgex.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/models/hyperliquid.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/models/lbank.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/models/ourbit.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/ourbit.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/ws.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/core.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/datavison/_util.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/datavison/binance.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/datavison/coinglass.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/datavison/okx.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/db.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/draw.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/logkit.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/notikit.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/tests/test_draw.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/tests/test_edgex.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/tests/test_ourbit.py +0 -0
- {hyperquant-0.78 → hyperquant-0.79}/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.79
|
|
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
|
|
@@ -154,9 +154,8 @@ async def order_sync_polling(
|
|
|
154
154
|
|
|
155
155
|
if change.data.get("orderId") == order_id:
|
|
156
156
|
order = change.data
|
|
157
|
-
print(change.operation)
|
|
158
157
|
if change.operation == "delete":
|
|
159
|
-
return change.
|
|
158
|
+
return change.source
|
|
160
159
|
except TimeoutError:
|
|
161
160
|
pass
|
|
162
161
|
|
|
@@ -180,7 +179,7 @@ async def test_order_sync_polling():
|
|
|
180
179
|
bg,
|
|
181
180
|
symbol="SOLUSDT",
|
|
182
181
|
direction="long",
|
|
183
|
-
order_type="
|
|
182
|
+
order_type="market",
|
|
184
183
|
price=185,
|
|
185
184
|
volume=0.1,
|
|
186
185
|
window_sec=5.0,
|
|
@@ -120,14 +120,16 @@ async def test_update():
|
|
|
120
120
|
async def test_place():
|
|
121
121
|
async with pybotters.Client(apis='./apis.json') as client:
|
|
122
122
|
async with Lbank(client) as lb:
|
|
123
|
+
start = int(time.time() * 1000)
|
|
123
124
|
order = await lb.place_order(
|
|
124
|
-
"
|
|
125
|
+
"YGGUSDT",
|
|
125
126
|
direction="buy",
|
|
126
|
-
order_type='
|
|
127
|
-
price=
|
|
128
|
-
volume=
|
|
127
|
+
order_type='limit_ioc',
|
|
128
|
+
price=0.165,
|
|
129
|
+
volume=40,
|
|
129
130
|
)
|
|
130
|
-
print(order)
|
|
131
|
+
# print(order)
|
|
132
|
+
print(f'下单延迟 {int(time.time() * 1000) - start} ms')
|
|
131
133
|
|
|
132
134
|
|
|
133
135
|
|
|
@@ -277,7 +279,7 @@ async def test_order_sync_polling():
|
|
|
277
279
|
# print(position)
|
|
278
280
|
|
|
279
281
|
async def test_query_order():
|
|
280
|
-
async with pybotters.Client(
|
|
282
|
+
async with pybotters.Client() as client:
|
|
281
283
|
async with Lbank(client) as lb:
|
|
282
284
|
res = await lb.query_order("1000633355403954")
|
|
283
285
|
print(res)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|