hyperquant 0.72__tar.gz → 0.73__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.72 → hyperquant-0.73}/PKG-INFO +1 -1
- {hyperquant-0.72 → hyperquant-0.73}/pyproject.toml +1 -1
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/bitget.py +1 -1
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/models/bitget.py +71 -0
- {hyperquant-0.72 → hyperquant-0.73}/uv.lock +1 -1
- {hyperquant-0.72 → hyperquant-0.73}/.gitignore +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/.python-version +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/README.md +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/apis.json +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/data/alpine_smoke.log +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/data/logs/notikit.log +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/data/logs/test_order_sync.log +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/data/records_swap.csv +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/data/records_swapc.csv +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/doc/lbank.md +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/pub.sh +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/requirements-dev.lock +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/requirements.lock +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/__init__.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/auth.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/edgex.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/hyperliquid.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/lbank.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/lib/edgex_sign.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/lib/hpstore.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/lib/hyper_types.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/lib/util.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/models/edgex.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/models/hyperliquid.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/models/lbank.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/models/ourbit.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/ourbit.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/broker/ws.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/core.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/datavison/_util.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/datavison/binance.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/datavison/coinglass.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/datavison/okx.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/db.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/draw.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/logkit.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/src/hyperquant/notikit.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/tests/test_bitget.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/tests/test_draw.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/tests/test_edgex.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/tests/test_lbank.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/tests/test_ourbit.py +0 -0
- {hyperquant-0.72 → hyperquant-0.73}/tests/tmp.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyperquant
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.73
|
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
|
@@ -206,7 +206,7 @@ class Bitget:
|
|
206
206
|
submsg = {"op": "subscribe", "args": []}
|
207
207
|
for symbol in symbols:
|
208
208
|
submsg["args"].append(
|
209
|
-
{"instType": "
|
209
|
+
{"instType": "USDT-FUTURES", "channel": channel, "instId": symbol}
|
210
210
|
)
|
211
211
|
|
212
212
|
self.client.ws_connect(
|
@@ -286,3 +286,74 @@ class BitgetDataStore(BitgetV2DataStore):
|
|
286
286
|
]
|
287
287
|
"""
|
288
288
|
return self._get("book")
|
289
|
+
|
290
|
+
@property
|
291
|
+
def account(self) -> DataStore:
|
292
|
+
"""
|
293
|
+
_KEYS = ["instType", "marginCoin"]
|
294
|
+
|
295
|
+
Data Structure:
|
296
|
+
|
297
|
+
.. code:: json
|
298
|
+
|
299
|
+
[
|
300
|
+
{
|
301
|
+
"marginCoin": "USDT",
|
302
|
+
"frozen": "0.00000000",
|
303
|
+
"available": "13.98545761",
|
304
|
+
"maxOpenPosAvailable": "13.98545761",
|
305
|
+
"maxTransferOut": "13.98545761",
|
306
|
+
"equity": "13.98545761",
|
307
|
+
"usdtEquity": "13.985457617660",
|
308
|
+
"crossedRiskRate": "0",
|
309
|
+
"unrealizedPL": "0.000000000000",
|
310
|
+
"unionTotalMargin": "100",
|
311
|
+
"unionAvailable": "20",
|
312
|
+
"unionMm": "15",
|
313
|
+
"assetMode": "union"
|
314
|
+
}
|
315
|
+
]
|
316
|
+
"""
|
317
|
+
return self._get("account")
|
318
|
+
|
319
|
+
@property
|
320
|
+
def position(self) -> DataStore:
|
321
|
+
"""
|
322
|
+
_KEYS = ["instType", "instId", "posId"]
|
323
|
+
|
324
|
+
Data Structure:
|
325
|
+
|
326
|
+
.. code:: json
|
327
|
+
|
328
|
+
[
|
329
|
+
{
|
330
|
+
"posId": "1",
|
331
|
+
"instId": "ETHUSDT",
|
332
|
+
"marginCoin": "USDT",
|
333
|
+
"marginSize": "9.5",
|
334
|
+
"marginMode": "crossed",
|
335
|
+
"holdSide": "short",
|
336
|
+
"posMode": "hedge_mode",
|
337
|
+
"total": "0.1",
|
338
|
+
"available": "0.1",
|
339
|
+
"frozen": "0",
|
340
|
+
"openPriceAvg": "1900",
|
341
|
+
"leverage": 20,
|
342
|
+
"achievedProfits": "0",
|
343
|
+
"unrealizedPL": "0",
|
344
|
+
"unrealizedPLR": "0",
|
345
|
+
"liquidationPrice": "5788.108475905242",
|
346
|
+
"keepMarginRate": "0.005",
|
347
|
+
"marginRate": "0.004416374196",
|
348
|
+
"cTime": "1695649246169",
|
349
|
+
"breakEvenPrice": "24778.97",
|
350
|
+
"totalFee": "1.45",
|
351
|
+
"deductedFee": "0.388",
|
352
|
+
"markPrice": "2500",
|
353
|
+
"assetMode": "union",
|
354
|
+
"uTime": "1695711602568",
|
355
|
+
"autoMargin": "off"
|
356
|
+
}
|
357
|
+
]
|
358
|
+
"""
|
359
|
+
return self._get("position")
|
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
|
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
|