hyperquant 0.35__tar.gz → 0.36__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.35 → hyperquant-0.36}/PKG-INFO +1 -1
- {hyperquant-0.35 → hyperquant-0.36}/pyproject.toml +1 -1
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/broker/ourbit.py +3 -3
- {hyperquant-0.35 → hyperquant-0.36}/test.py +14 -14
- {hyperquant-0.35 → hyperquant-0.36}/uv.lock +1 -1
- {hyperquant-0.35 → hyperquant-0.36}/.gitignore +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/.python-version +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/README.md +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/data/logs/notikit.log +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/pub.sh +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/requirements-dev.lock +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/requirements.lock +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/__init__.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/broker/auth.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/broker/hyperliquid.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/broker/lib/hpstore.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/broker/lib/hyper_types.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/broker/models/hyperliquid.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/broker/models/ourbit.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/broker/ws.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/core.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/datavison/_util.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/datavison/binance.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/datavison/coinglass.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/datavison/okx.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/db.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/draw.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/logkit.py +0 -0
- {hyperquant-0.35 → hyperquant-0.36}/src/hyperquant/notikit.py +0 -0
@@ -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
|
@@ -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,
|
@@ -32,21 +32,21 @@ async def test():
|
|
32
32
|
}
|
33
33
|
) as client:
|
34
34
|
ourbit = OurbitSwap(client)
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
35
|
+
await ourbit.__aenter__()
|
36
|
+
res = await ourbit.place_order(
|
37
|
+
symbol="SOL_USDT",
|
38
|
+
size=1,
|
39
|
+
side="buy",
|
40
|
+
order_type="limit_GTC",
|
41
|
+
price=192
|
42
|
+
)
|
43
|
+
print(res)
|
44
|
+
# # await ourbit.update('orders')
|
45
|
+
# await ourbit.sub_personal()
|
43
46
|
|
44
|
-
#
|
45
|
-
await ourbit.
|
46
|
-
|
47
|
-
while True:
|
48
|
-
await ourbit.store.balance.wait()
|
49
|
-
print(ourbit.store.balance.find())
|
47
|
+
# while True:
|
48
|
+
# await ourbit.store.position.wait()
|
49
|
+
# print(ourbit.store.position.find())
|
50
50
|
# # await ourbit.store.position.wait()
|
51
51
|
# # print(ourbit.store.position.find())
|
52
52
|
# await ourbit.store.orders.wait()
|
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
|