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.

Files changed (48) hide show
  1. {hyperquant-0.78 → hyperquant-0.79}/PKG-INFO +1 -1
  2. {hyperquant-0.78 → hyperquant-0.79}/apis.json +1 -1
  3. {hyperquant-0.78 → hyperquant-0.79}/pyproject.toml +1 -1
  4. {hyperquant-0.78 → hyperquant-0.79}/tests/test_bitget.py +2 -3
  5. {hyperquant-0.78 → hyperquant-0.79}/tests/test_lbank.py +8 -6
  6. {hyperquant-0.78 → hyperquant-0.79}/uv.lock +1 -1
  7. {hyperquant-0.78 → hyperquant-0.79}/.gitignore +0 -0
  8. {hyperquant-0.78 → hyperquant-0.79}/.python-version +0 -0
  9. {hyperquant-0.78 → hyperquant-0.79}/README.md +0 -0
  10. {hyperquant-0.78 → hyperquant-0.79}/data/alpine_smoke.log +0 -0
  11. {hyperquant-0.78 → hyperquant-0.79}/data/logs/notikit.log +0 -0
  12. {hyperquant-0.78 → hyperquant-0.79}/data/logs/test_order_sync.log +0 -0
  13. {hyperquant-0.78 → hyperquant-0.79}/data/records_swap.csv +0 -0
  14. {hyperquant-0.78 → hyperquant-0.79}/data/records_swapc.csv +0 -0
  15. {hyperquant-0.78 → hyperquant-0.79}/doc/lbank.md +0 -0
  16. {hyperquant-0.78 → hyperquant-0.79}/pub.sh +0 -0
  17. {hyperquant-0.78 → hyperquant-0.79}/requirements-dev.lock +0 -0
  18. {hyperquant-0.78 → hyperquant-0.79}/requirements.lock +0 -0
  19. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/__init__.py +0 -0
  20. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/auth.py +0 -0
  21. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/bitget.py +0 -0
  22. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/edgex.py +0 -0
  23. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/hyperliquid.py +0 -0
  24. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/lbank.py +0 -0
  25. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/lib/edgex_sign.py +0 -0
  26. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/lib/hpstore.py +0 -0
  27. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/lib/hyper_types.py +0 -0
  28. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/lib/util.py +0 -0
  29. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/models/bitget.py +0 -0
  30. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/models/edgex.py +0 -0
  31. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/models/hyperliquid.py +0 -0
  32. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/models/lbank.py +0 -0
  33. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/models/ourbit.py +0 -0
  34. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/ourbit.py +0 -0
  35. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/broker/ws.py +0 -0
  36. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/core.py +0 -0
  37. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/datavison/_util.py +0 -0
  38. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/datavison/binance.py +0 -0
  39. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/datavison/coinglass.py +0 -0
  40. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/datavison/okx.py +0 -0
  41. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/db.py +0 -0
  42. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/draw.py +0 -0
  43. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/logkit.py +0 -0
  44. {hyperquant-0.78 → hyperquant-0.79}/src/hyperquant/notikit.py +0 -0
  45. {hyperquant-0.78 → hyperquant-0.79}/tests/test_draw.py +0 -0
  46. {hyperquant-0.78 → hyperquant-0.79}/tests/test_edgex.py +0 -0
  47. {hyperquant-0.78 → hyperquant-0.79}/tests/test_ourbit.py +0 -0
  48. {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.78
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
@@ -8,7 +8,7 @@
8
8
  "3MB7nAnnNPTxAnwdbjDPew-02b746d6a832346a46a97faf054b2909c1a0b58a35e04c3504923a99a5503c1c"
9
9
  ],
10
10
  "lbank": [
11
- "36e99e63f77d4ab18137c23d30beda4e"
11
+ "18d81d8ab5dd4d3196281161ec0dcbe6"
12
12
  ],
13
13
  "bitget":[
14
14
  "bg_03e0445d9282f248d22842cfe6f30192",
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "hyperquant"
3
- version = "0.78"
3
+ version = "0.79"
4
4
  description = "A minimal yet hyper-efficient backtesting framework for quantitative trading"
5
5
  authors = [
6
6
  { name = "MissinA", email = "1421329142@qq.com" }
@@ -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.data
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="limit_gtc",
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
- "SOLUSDT",
125
+ "YGGUSDT",
125
126
  direction="buy",
126
- order_type='limit_gtc',
127
- price=182,
128
- volume=0.03,
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(apis='./apis.json') as 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)
@@ -662,7 +662,7 @@ wheels = [
662
662
 
663
663
  [[package]]
664
664
  name = "hyperquant"
665
- version = "0.77"
665
+ version = "0.78"
666
666
  source = { editable = "." }
667
667
  dependencies = [
668
668
  { name = "aiohttp" },
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