hyperquant 0.75__py3-none-any.whl → 0.77__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.
@@ -274,10 +274,14 @@ class Position(DataStore):
|
|
274
274
|
bus_id = entry.get("BusinessNo")
|
275
275
|
if not position_id:
|
276
276
|
return None
|
277
|
-
|
278
|
-
|
279
|
-
side =
|
280
|
-
|
277
|
+
|
278
|
+
q = float(entry.get("Position", 0))
|
279
|
+
side = "net"
|
280
|
+
if q > 0:
|
281
|
+
side = "long"
|
282
|
+
elif q < 0:
|
283
|
+
side = "short"
|
284
|
+
|
281
285
|
return {
|
282
286
|
"position_id": position_id,
|
283
287
|
"bus_id": bus_id,
|
@@ -294,6 +298,7 @@ class Position(DataStore):
|
|
294
298
|
"realized_pnl": entry.get("CloseProfit"),
|
295
299
|
"update_time": entry.get("UpdateTime"),
|
296
300
|
"insert_time": entry.get("InsertTime"),
|
301
|
+
"begin_time": entry.get("BeginTime")
|
297
302
|
}
|
298
303
|
|
299
304
|
def _onresponse(self, data: dict[str, Any] | None) -> None:
|
@@ -488,7 +493,8 @@ class LbankDataStore(DataStoreCollection):
|
|
488
493
|
"unrealized_pnl": <未实现盈亏>,
|
489
494
|
"realized_pnl": <已实现盈亏>,
|
490
495
|
"update_time": <更新时间>,
|
491
|
-
"insert_time":
|
496
|
+
"insert_time": <插入时间>,
|
497
|
+
"begin_time": <持仓开始时间>
|
492
498
|
},
|
493
499
|
...
|
494
500
|
]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyperquant
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.77
|
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
|
@@ -18,12 +18,12 @@ hyperquant/broker/lib/util.py,sha256=iMU1qF0CHj5zzlIMEQGwjz-qtEVosEe7slXOCuB7Rcw
|
|
18
18
|
hyperquant/broker/models/bitget.py,sha256=0RwDY75KrJb-c-oYoMxbqxWfsILe-n_Npojz4UFUq7c,11389
|
19
19
|
hyperquant/broker/models/edgex.py,sha256=vPAkceal44cjTYKQ_0BoNAskOpmkno_Yo1KxgMLPc6Y,33954
|
20
20
|
hyperquant/broker/models/hyperliquid.py,sha256=c4r5739ibZfnk69RxPjQl902AVuUOwT8RNvKsMtwXBY,9459
|
21
|
-
hyperquant/broker/models/lbank.py,sha256=
|
21
|
+
hyperquant/broker/models/lbank.py,sha256=vHkNKxIMzpoC_EwcZnEOPOupizF92yGWi9GKxvYYFUQ,19181
|
22
22
|
hyperquant/broker/models/ourbit.py,sha256=xMcbuCEXd3XOpPBq0RYF2zpTFNnxPtuNJZCexMZVZ1k,41965
|
23
23
|
hyperquant/datavison/_util.py,sha256=92qk4vO856RqycO0YqEIHJlEg-W9XKapDVqAMxe6rbw,533
|
24
24
|
hyperquant/datavison/binance.py,sha256=3yNKTqvt_vUQcxzeX4ocMsI5k6Q6gLZrvgXxAEad6Kc,5001
|
25
25
|
hyperquant/datavison/coinglass.py,sha256=PEjdjISP9QUKD_xzXNzhJ9WFDTlkBrRQlVL-5pxD5mo,10482
|
26
26
|
hyperquant/datavison/okx.py,sha256=yg8WrdQ7wgWHNAInIgsWPM47N3Wkfr253169IPAycAY,6898
|
27
|
-
hyperquant-0.
|
28
|
-
hyperquant-0.
|
29
|
-
hyperquant-0.
|
27
|
+
hyperquant-0.77.dist-info/METADATA,sha256=lhLYg7mWkUqb1Ztpg1FrOQncNAN7i0B6S9Qr2Fwe2Gs,4317
|
28
|
+
hyperquant-0.77.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
29
|
+
hyperquant-0.77.dist-info/RECORD,,
|
File without changes
|