hyperquant 0.35__py3-none-any.whl → 0.36__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.
hyperquant/broker/ourbit.py
CHANGED
@@ -120,7 +120,7 @@ class OurbitSwap:
|
|
120
120
|
position_id: Optional[int] = None,
|
121
121
|
):
|
122
122
|
"""
|
123
|
-
size
|
123
|
+
size为合约张数, openType 1 为逐仓, 2为全仓
|
124
124
|
|
125
125
|
.. code ::
|
126
126
|
{
|
@@ -141,12 +141,12 @@ class OurbitSwap:
|
|
141
141
|
price = self.fmt_price(symbol, price)
|
142
142
|
|
143
143
|
print(f'下单价格 {price}')
|
144
|
-
leverage =
|
144
|
+
leverage = min(max_lev, leverage)
|
145
145
|
|
146
146
|
data = {
|
147
147
|
"symbol": symbol,
|
148
148
|
"side": 1 if side == "buy" else 3,
|
149
|
-
"openType":
|
149
|
+
"openType": 2,
|
150
150
|
"type": "5",
|
151
151
|
"vol": size,
|
152
152
|
"leverage": leverage,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyperquant
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.36
|
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
|
@@ -6,7 +6,7 @@ hyperquant/logkit.py,sha256=WALpXpIA3Ywr5DxKKK3k5EKubZ2h-ISGfc5dUReQUBQ,7795
|
|
6
6
|
hyperquant/notikit.py,sha256=x5yAZ_tAvLQRXcRbcg-VabCaN45LUhvlTZnUqkIqfAA,3596
|
7
7
|
hyperquant/broker/auth.py,sha256=F9rNP4I8tJTk3IKwA7Z-DG8DMiCZRMQYZPTE9Gigf-Y,1635
|
8
8
|
hyperquant/broker/hyperliquid.py,sha256=7MxbI9OyIBcImDelPJu-8Nd53WXjxPB5TwE6gsjHbto,23252
|
9
|
-
hyperquant/broker/ourbit.py,sha256=
|
9
|
+
hyperquant/broker/ourbit.py,sha256=FcWIilfr4k-As9UcT3aYbeUWCqZIYahF6Ruc7Qf3tT4,9813
|
10
10
|
hyperquant/broker/ws.py,sha256=03-5okpoJincYGvE7vWgu6mdrEchLmsa-ZrGxmsJJ4Q,1239
|
11
11
|
hyperquant/broker/lib/hpstore.py,sha256=LnLK2zmnwVvhEbLzYI-jz_SfYpO1Dv2u2cJaRAb84D8,8296
|
12
12
|
hyperquant/broker/lib/hyper_types.py,sha256=HqjjzjUekldjEeVn6hxiWA8nevAViC2xHADOzDz9qyw,991
|
@@ -16,6 +16,6 @@ hyperquant/datavison/_util.py,sha256=92qk4vO856RqycO0YqEIHJlEg-W9XKapDVqAMxe6rbw
|
|
16
16
|
hyperquant/datavison/binance.py,sha256=3yNKTqvt_vUQcxzeX4ocMsI5k6Q6gLZrvgXxAEad6Kc,5001
|
17
17
|
hyperquant/datavison/coinglass.py,sha256=PEjdjISP9QUKD_xzXNzhJ9WFDTlkBrRQlVL-5pxD5mo,10482
|
18
18
|
hyperquant/datavison/okx.py,sha256=yg8WrdQ7wgWHNAInIgsWPM47N3Wkfr253169IPAycAY,6898
|
19
|
-
hyperquant-0.
|
20
|
-
hyperquant-0.
|
21
|
-
hyperquant-0.
|
19
|
+
hyperquant-0.36.dist-info/METADATA,sha256=x504f5mx-Xud9fmgA9U9cxf-GjC17mCB8NTppxsVR30,4317
|
20
|
+
hyperquant-0.36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
21
|
+
hyperquant-0.36.dist-info/RECORD,,
|
File without changes
|