hyperquant 0.46__tar.gz → 0.47__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.46 → hyperquant-0.47}/PKG-INFO +1 -1
- {hyperquant-0.46 → hyperquant-0.47}/pyproject.toml +1 -1
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/broker/models/ourbit.py +4 -1
- {hyperquant-0.46 → hyperquant-0.47}/tmp.py +11 -11
- {hyperquant-0.46 → hyperquant-0.47}/uv.lock +1 -1
- {hyperquant-0.46 → hyperquant-0.47}/.gitignore +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/.python-version +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/README.md +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/data/logs/notikit.log +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/pub.sh +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/requirements-dev.lock +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/requirements.lock +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/__init__.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/broker/auth.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/broker/hyperliquid.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/broker/lib/hpstore.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/broker/lib/hyper_types.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/broker/models/hyperliquid.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/broker/ourbit.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/broker/ws.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/core.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/datavison/_util.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/datavison/binance.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/datavison/coinglass.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/datavison/okx.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/db.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/draw.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/logkit.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/src/hyperquant/notikit.py +0 -0
- {hyperquant-0.46 → hyperquant-0.47}/test.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyperquant
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.47
|
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
|
@@ -670,7 +670,10 @@ class SpotOrders(DataStore):
|
|
670
670
|
self._insert([item])
|
671
671
|
|
672
672
|
elif state == 3 or state == 2:
|
673
|
-
|
673
|
+
if state == 3:
|
674
|
+
item["state"] = "partially_filled"
|
675
|
+
if state == 2:
|
676
|
+
item["state"] = "filled"
|
674
677
|
|
675
678
|
# 如果这三个字段存在追加
|
676
679
|
if d.get("singleDealId") and d.get("singleDealPrice") and d.get("singleDealQuantity"):
|
@@ -90,16 +90,16 @@ async def test_watch_order():
|
|
90
90
|
async def watch_orders(ob_spot: OurbitSpot):
|
91
91
|
with ob_spot.store.orders.watch() as stream:
|
92
92
|
async for change in stream:
|
93
|
-
|
94
|
-
data = change.data
|
95
|
-
if change.operation == 'delete':
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
93
|
+
print(change.data)
|
94
|
+
# data = change.data
|
95
|
+
# if change.operation == 'delete':
|
96
|
+
# state = data['state']
|
97
|
+
# if state == 'filled':
|
98
|
+
# price = float(data['avg_price'])
|
99
|
+
# quantity = float(data['deal_quantity'])
|
100
|
+
# ts = time.time() * 1000
|
101
|
+
# symbol = data['symbol']
|
102
|
+
# print(price, quantity, ts, symbol, '@@@@')
|
103
103
|
|
104
104
|
async with pybotters.Client(apis={
|
105
105
|
"ourbit": [
|
@@ -157,4 +157,4 @@ async def test_orderbook():
|
|
157
157
|
|
158
158
|
|
159
159
|
if __name__ == "__main__":
|
160
|
-
asyncio.run(
|
160
|
+
asyncio.run(test_watch_order())
|
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
|