hyperquant 0.88__tar.gz → 0.91__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.
- {hyperquant-0.88 → hyperquant-0.91}/PKG-INFO +4 -2
- hyperquant-0.91/doc/coinup.md +560 -0
- {hyperquant-0.88 → hyperquant-0.91}/pyproject.toml +4 -2
- hyperquant-0.91/src/hyperquant/broker/coinup.py +590 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/coinw.py +47 -11
- hyperquant-0.91/src/hyperquant/broker/models/coinup.py +333 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/models/coinw.py +49 -34
- hyperquant-0.91/tests/test_coinup.py +41 -0
- {hyperquant-0.88 → hyperquant-0.91}/tests/test_coinw.py +49 -17
- {hyperquant-0.88 → hyperquant-0.91}/uv.lock +79 -490
- {hyperquant-0.88 → hyperquant-0.91}/.gitignore +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/.python-version +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/README.md +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/apis.json +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/data/alpine_smoke.log +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/data/logs/notikit.log +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/data/logs/test_order_sync.log +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/data/records_swap.csv +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/data/records_swapc.csv +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/doc/lbank.md +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/pub.sh +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/requirements-dev.lock +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/requirements.lock +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/__init__.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/auth.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/bitget.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/edgex.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/hyperliquid.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/lbank.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/lib/edgex_sign.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/lib/hpstore.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/lib/hyper_types.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/lib/util.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/models/bitget.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/models/edgex.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/models/hyperliquid.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/models/lbank.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/models/ourbit.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/ourbit.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/broker/ws.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/core.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/datavison/_util.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/datavison/binance.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/datavison/coinglass.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/datavison/okx.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/db.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/draw.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/logkit.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/src/hyperquant/notikit.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/tests/test_bitget.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/tests/test_draw.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/tests/test_edgex.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/tests/test_lbank.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/tests/test_ourbit.py +0 -0
- {hyperquant-0.88 → hyperquant-0.91}/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.91
|
|
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
|
|
@@ -12,15 +12,17 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: License :: OSI Approved :: MIT License
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
15
|
-
Requires-Python: >=3.
|
|
15
|
+
Requires-Python: >=3.11
|
|
16
16
|
Requires-Dist: aiohttp>=3.10.4
|
|
17
17
|
Requires-Dist: colorama>=0.4.6
|
|
18
18
|
Requires-Dist: cryptography>=44.0.2
|
|
19
|
+
Requires-Dist: curl-cffi>=0.13.0
|
|
19
20
|
Requires-Dist: duckdb>=1.2.2
|
|
20
21
|
Requires-Dist: numpy>=1.21.0
|
|
21
22
|
Requires-Dist: pandas>=2.2.3
|
|
22
23
|
Requires-Dist: pybotters>=1.9.1
|
|
23
24
|
Requires-Dist: pyecharts>=2.0.8
|
|
25
|
+
Requires-Dist: rnet==3.0.0rc10
|
|
24
26
|
Description-Content-Type: text/markdown
|
|
25
27
|
|
|
26
28
|
# minquant
|
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
# detail
|
|
2
|
+
|
|
3
|
+
POST
|
|
4
|
+
|
|
5
|
+
https://www.coinup.io/fe-co-api/common/public_info
|
|
6
|
+
{
|
|
7
|
+
"uaTime": "2025-10-24 11:03:27",
|
|
8
|
+
"securityInfo": "{\"log_BSDeviceFingerprint\":\"0\",\"log_original\":\"0\",\"log_CHFIT_DEVICEID\":\"0\"}"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
{
|
|
13
|
+
"id": 117,
|
|
14
|
+
"contractName": "E-RESOLV-USDT",
|
|
15
|
+
"symbol": "RESOLV-USDT",
|
|
16
|
+
"contractType": "E",
|
|
17
|
+
"coType": "E",
|
|
18
|
+
"contractShowType": "USDT合约",
|
|
19
|
+
"deliveryKind": "0",
|
|
20
|
+
"contractSide": 1,
|
|
21
|
+
"multiplier": 22.8000000000000000,
|
|
22
|
+
"multiplierCoin": "RESOLV",
|
|
23
|
+
"marginCoin": "USDT",
|
|
24
|
+
"originalCoin": "USDT",
|
|
25
|
+
"marginRate": 1.00000000,
|
|
26
|
+
"capitalStartTime": 0,
|
|
27
|
+
"capitalFrequency": 8,
|
|
28
|
+
"settlementFrequency": 1,
|
|
29
|
+
"brokerId": 1,
|
|
30
|
+
"base": "RESOLV",
|
|
31
|
+
"quote": "USDT",
|
|
32
|
+
"coinResultVo": {
|
|
33
|
+
"symbolPricePrecision": 5,
|
|
34
|
+
"depth": [
|
|
35
|
+
"5",
|
|
36
|
+
"4",
|
|
37
|
+
"3"
|
|
38
|
+
],
|
|
39
|
+
"minOrderVolume": 1,
|
|
40
|
+
"minOrderMoney": 1,
|
|
41
|
+
"maxMarketVolume": 5000000,
|
|
42
|
+
"maxMarketMoney": 6411360,
|
|
43
|
+
"maxLimitVolume": 5000000,
|
|
44
|
+
"maxLimitMoney": 5000000.0000000000000000,
|
|
45
|
+
"priceRange": 0.3000000000,
|
|
46
|
+
"marginCoinPrecision": 4,
|
|
47
|
+
"fundsInStatus": 1,
|
|
48
|
+
"fundsOutStatus": 1
|
|
49
|
+
},
|
|
50
|
+
"sort": 100,
|
|
51
|
+
"maxLever": 75,
|
|
52
|
+
"minLever": 1,
|
|
53
|
+
"contractOtherName": "RESOLV/USDT",
|
|
54
|
+
"subSymbol": "e_resolvusdt",
|
|
55
|
+
"classification": 1,
|
|
56
|
+
"nextCapitalSettTime": 1761292800000
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
# position + Balance
|
|
60
|
+
|
|
61
|
+
https://futures.coinup.io/fe-co-api/position/get_assets_list POST
|
|
62
|
+
{
|
|
63
|
+
"uaTime": "2025-10-24 11:48:36",
|
|
64
|
+
"securityInfo": "{\"log_BSDeviceFingerprint\":\"0\",\"log_original\":\"0\",\"log_CHFIT_DEVICEID\":\"0\"}"
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
{
|
|
68
|
+
"code": "0",
|
|
69
|
+
"msg": "成功",
|
|
70
|
+
"data": {
|
|
71
|
+
"positionList": [
|
|
72
|
+
{
|
|
73
|
+
"id": 256538,
|
|
74
|
+
"contractId": 169,
|
|
75
|
+
"contractName": "E-WLFI-USDT",
|
|
76
|
+
"contractOtherName": "WLFI/USDT",
|
|
77
|
+
"symbol": "WLFI-USDT",
|
|
78
|
+
"positionVolume": 1.0,
|
|
79
|
+
"canCloseVolume": 1.0,
|
|
80
|
+
"closeVolume": 0.0,
|
|
81
|
+
"openAvgPrice": 0.1409,
|
|
82
|
+
"indexPrice": 0.14040034,
|
|
83
|
+
"reducePrice": -0.9769279224708908,
|
|
84
|
+
"holdAmount": 16.53718437074,
|
|
85
|
+
"marginRate": 7.852395215348719,
|
|
86
|
+
"realizedAmount": 0.0,
|
|
87
|
+
"returnRate": -0.0177310149041873,
|
|
88
|
+
"orderSide": "BUY",
|
|
89
|
+
"positionType": 1,
|
|
90
|
+
"canUseAmount": 16.11598335074,
|
|
91
|
+
"canSubMarginAmount": 0,
|
|
92
|
+
"openRealizedAmount": -0.0074949,
|
|
93
|
+
"keepRate": 0.015,
|
|
94
|
+
"maxFeeRate": 2.0E-4,
|
|
95
|
+
"unRealizedAmount": -0.0074949,
|
|
96
|
+
"leverageLevel": 5,
|
|
97
|
+
"positionBalance": 2.1060051,
|
|
98
|
+
"tradeFee": "-0.0004",
|
|
99
|
+
"capitalFee": "0",
|
|
100
|
+
"closeProfit": "0",
|
|
101
|
+
"settleProfit": "0",
|
|
102
|
+
"shareAmount": "0",
|
|
103
|
+
"historyRealizedAmount": "-0.0004227",
|
|
104
|
+
"profitRealizedAmount": "-0.0004",
|
|
105
|
+
"openAmount": 0.4227,
|
|
106
|
+
"adlLevel": 2
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"accountList": [
|
|
110
|
+
{
|
|
111
|
+
"symbol": "USDT",
|
|
112
|
+
"originalCoin": "USDT",
|
|
113
|
+
"unRealizedAmount": "-0.0074949",
|
|
114
|
+
"realizedAmount": "0",
|
|
115
|
+
"totalMargin": "16.53718437074",
|
|
116
|
+
"totalAmount": "16.53718437074",
|
|
117
|
+
"canUseAmount": 16.11598335074,
|
|
118
|
+
"availableAmount": 16.11598335074,
|
|
119
|
+
"isolateMargin": "0",
|
|
120
|
+
"walletBalance": "16.54467927074",
|
|
121
|
+
"lockAmount": "0",
|
|
122
|
+
"accountNormal": "16.54467927074",
|
|
123
|
+
"totalMarginRate": "7.8523952153487187"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"symbol": "ETH",
|
|
127
|
+
"originalCoin": "ETH",
|
|
128
|
+
"unRealizedAmount": "0",
|
|
129
|
+
"realizedAmount": "0",
|
|
130
|
+
"totalMargin": "0",
|
|
131
|
+
"totalAmount": "0",
|
|
132
|
+
"canUseAmount": 0.0,
|
|
133
|
+
"availableAmount": 0.0,
|
|
134
|
+
"isolateMargin": "0",
|
|
135
|
+
"walletBalance": "0",
|
|
136
|
+
"lockAmount": "0",
|
|
137
|
+
"accountNormal": "0",
|
|
138
|
+
"totalMarginRate": "0"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"totalBalanceSymbol": "BTC",
|
|
142
|
+
"totalBalance": 0.0001499773787767
|
|
143
|
+
},
|
|
144
|
+
"msgData": null,
|
|
145
|
+
"succ": true
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
# balance + position(备用)
|
|
151
|
+
curl 'https://futures.coinup.io/fe-co-api/position/wallet_and_unrealized' \
|
|
152
|
+
-H 'accept: application/json, text/plain, */*' \
|
|
153
|
+
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
|
|
154
|
+
-H 'cache-control: no-cache' \
|
|
155
|
+
-H 'content-type: application/json;charset=UTF-8' \
|
|
156
|
+
-b 'lan=zh_CN; jpSpotSwitch=0; cusSkin=2; newTrade_layout=ord; isLogin=true; _gid=GA1.2.1647203863.1761206717; token=948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0; cf_clearance=LuJRjj5Jd5onNhrq98dNWN3zupD93grH35zxtJG2U_A-1761274982-1.2.1.1-LNxmsRKMeaCOZWpxgd1nYPhVyeGTb7akCBaCYai7s6eLVwDTWGlcixyCM8FSCaDG1Q_SXc37JKRn3yDpirQsBFgYyDt9Bh5RjimvyFJgdv7O73q26_JxRyqFKU9yHXdyXZndip0C1gTnsAW1dgoaeVODy11PkpLHK_F_COcaDLjKHbR1kjR7O03I9NtWypjb62wO71n_l1AX.xK6TSdUt7Y08U1UyQBgH_R.1VqUkF8; _gat_gtag_UA_149942350_1=1; _ga_01HC17N7QQ=GS2.1.s1761276964$o7$g0$t1761276964$j60$l0$h0; _ga=GA1.1.1696620034.1761206716; _ga_4JHJ4YPRL8=GS2.1.s1761273055$o5$g1$t1761277022$j48$l0$h0' \
|
|
157
|
+
-H 'device;' \
|
|
158
|
+
-H 'exchange-client: pc' \
|
|
159
|
+
-H 'exchange-language: zh_CN' \
|
|
160
|
+
-H 'exchange-token: 948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0' \
|
|
161
|
+
-H 'origin: https://futures.coinup.io' \
|
|
162
|
+
-H 'pragma: no-cache' \
|
|
163
|
+
-H 'priority: u=1, i' \
|
|
164
|
+
-H 'referer: https://futures.coinup.io/zh_CN/trade' \
|
|
165
|
+
-H 'sec-ch-ua: "Microsoft Edge";v="141", "Not?A_Brand";v="8", "Chromium";v="141"' \
|
|
166
|
+
-H 'sec-ch-ua-mobile: ?0' \
|
|
167
|
+
-H 'sec-ch-ua-platform: "macOS"' \
|
|
168
|
+
-H 'sec-fetch-dest: empty' \
|
|
169
|
+
-H 'sec-fetch-mode: cors' \
|
|
170
|
+
-H 'sec-fetch-site: same-origin' \
|
|
171
|
+
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0' \
|
|
172
|
+
--data-raw '{"coin":"USDT","priceBasis":0,"uaTime":"2025-10-24 11:37:02","securityInfo":"{\"log_BSDeviceFingerprint\":\"0\",\"log_original\":\"0\",\"log_CHFIT_DEVICEID\":\"0\"}"}'
|
|
173
|
+
|
|
174
|
+
{
|
|
175
|
+
"code": "0",
|
|
176
|
+
"msg": "成功",
|
|
177
|
+
"data": {
|
|
178
|
+
"walletAmount": 16.54467927074,
|
|
179
|
+
"unRealizedAmount": -0.0015,
|
|
180
|
+
"equity": 16.54317927074,
|
|
181
|
+
"positionVos": [
|
|
182
|
+
{
|
|
183
|
+
"E-WLFI-USDT": {
|
|
184
|
+
"tagPrice": 0.1409,
|
|
185
|
+
"lastPrice": 0.1408,
|
|
186
|
+
"buyOne": 0.1408,
|
|
187
|
+
"sellOne": 0.1409
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
"msgData": null,
|
|
193
|
+
"succ": true
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
# 市价单平仓(cookie暂时忽略
|
|
197
|
+
|
|
198
|
+
curl 'https://futures.coinup.io/fe-co-api/order/order_create' \
|
|
199
|
+
-H 'accept: application/json, text/plain, */*' \
|
|
200
|
+
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
|
|
201
|
+
-H 'cache-control: no-cache' \
|
|
202
|
+
-H 'content-type: application/json;charset=UTF-8' \
|
|
203
|
+
-b 'lan=zh_CN; jpSpotSwitch=0; cusSkin=2; newTrade_layout=ord; isLogin=true; token=948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0; _gid=GA1.2.679822732.1761486956; _ga=GA1.1.1696620034.1761206716; _ga_01HC17N7QQ=GS2.1.s1761540886$o10$g1$t1761540899$j47$l0$h0; cf_clearance=zNTAplBpXoMkVhmls3nPtu3_.9I1JZH8JO0wGWLm3bc-1761561996-1.2.1.1-qfaPFTp6IfY8qV6iGDlKSVmP5_tAOiQU7amNq8pKoU0EtcJFxksT6Y.KOgNyQCN9Uph.pQ_5ws4Zj_CoOEAZinzwHvr8smIwSawgbV4NH4Z5eXSf7_eMFDf5lOMiNT0mS.UYiMMelWZw0Z32UrJTHKgsdJCvfspXtUL9zUlYAxJSLRdJP0RHvsrHdUF.JlSZkIbTltkhNO60ngB5m2WV7YBJV8u0n2vw76dqmcGau70; _ga_4JHJ4YPRL8=GS2.1.s1761561877$o8$g1$t1761562041$j24$l0$h0' \
|
|
204
|
+
-H 'device;' \
|
|
205
|
+
-H 'exchange-client: pc' \
|
|
206
|
+
-H 'exchange-language: zh_CN' \
|
|
207
|
+
-H 'exchange-token: 948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0' \
|
|
208
|
+
-H 'origin: https://futures.coinup.io' \
|
|
209
|
+
-H 'pragma: no-cache' \
|
|
210
|
+
-H 'priority: u=1, i' \
|
|
211
|
+
-H 'referer: https://futures.coinup.io/zh_CN' \
|
|
212
|
+
-H 'sec-ch-ua: "Microsoft Edge";v="141", "Not?A_Brand";v="8", "Chromium";v="141"' \
|
|
213
|
+
-H 'sec-ch-ua-arch: "arm"' \
|
|
214
|
+
-H 'sec-ch-ua-bitness: "64"' \
|
|
215
|
+
-H 'sec-ch-ua-full-version: "141.0.3537.92"' \
|
|
216
|
+
-H 'sec-ch-ua-full-version-list: "Microsoft Edge";v="141.0.3537.92", "Not?A_Brand";v="8.0.0.0", "Chromium";v="141.0.7390.108"' \
|
|
217
|
+
-H 'sec-ch-ua-mobile: ?0' \
|
|
218
|
+
-H 'sec-ch-ua-model: ""' \
|
|
219
|
+
-H 'sec-ch-ua-platform: "macOS"' \
|
|
220
|
+
-H 'sec-ch-ua-platform-version: "15.6.0"' \
|
|
221
|
+
-H 'sec-fetch-dest: empty' \
|
|
222
|
+
-H 'sec-fetch-mode: cors' \
|
|
223
|
+
-H 'sec-fetch-site: same-origin' \
|
|
224
|
+
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0' \
|
|
225
|
+
--data-raw '{"contractId":169,"positionType":1,"side":"SELL","leverageLevel":5,"price":0,"volume":"1","open":"CLOSE","type":2,"triggerPrice":null,"isConditionOrder":false,"orderUnit":2,"secret":"c1eb51bc4f81b404cfb0485f6acc2054","uaTime":"2025-10-27 18:47:21","securityInfo":"{\"log_BSDeviceFingerprint\":\"0\",\"log_original\":\"0\",\"log_CHFIT_DEVICEID\":\"0\"}"}'
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
{
|
|
229
|
+
"code": "0",
|
|
230
|
+
"msg": "成功",
|
|
231
|
+
"data": {
|
|
232
|
+
"triggerIds": [],
|
|
233
|
+
"ids": [
|
|
234
|
+
"2951913310096288573"
|
|
235
|
+
],
|
|
236
|
+
"cancelIds": []
|
|
237
|
+
},
|
|
238
|
+
"msgData": null,
|
|
239
|
+
"succ": true
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
# 市价单开仓
|
|
243
|
+
|
|
244
|
+
curl 'https://futures.coinup.io/fe-co-api/order/order_create' \
|
|
245
|
+
-H 'accept: application/json, text/plain, */*' \
|
|
246
|
+
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
|
|
247
|
+
-H 'cache-control: no-cache' \
|
|
248
|
+
-H 'content-type: application/json;charset=UTF-8' \
|
|
249
|
+
-H 'device;' \
|
|
250
|
+
-H 'exchange-client: pc' \
|
|
251
|
+
-H 'exchange-language: zh_CN' \
|
|
252
|
+
-H 'exchange-token: 948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0' \
|
|
253
|
+
-H 'origin: https://futures.coinup.io' \
|
|
254
|
+
-H 'pragma: no-cache' \
|
|
255
|
+
-H 'priority: u=1, i' \
|
|
256
|
+
-H 'referer: https://futures.coinup.io/zh_CN' \
|
|
257
|
+
-H 'sec-ch-ua: "Microsoft Edge";v="141", "Not?A_Brand";v="8", "Chromium";v="141"' \
|
|
258
|
+
-H 'sec-ch-ua-arch: "arm"' \
|
|
259
|
+
-H 'sec-ch-ua-bitness: "64"' \
|
|
260
|
+
-H 'sec-ch-ua-full-version: "141.0.3537.92"' \
|
|
261
|
+
-H 'sec-ch-ua-full-version-list: "Microsoft Edge";v="141.0.3537.92", "Not?A_Brand";v="8.0.0.0", "Chromium";v="141.0.7390.108"' \
|
|
262
|
+
-H 'sec-ch-ua-mobile: ?0' \
|
|
263
|
+
-H 'sec-ch-ua-model: ""' \
|
|
264
|
+
-H 'sec-ch-ua-platform: "macOS"' \
|
|
265
|
+
-H 'sec-ch-ua-platform-version: "15.6.0"' \
|
|
266
|
+
-H 'sec-fetch-dest: empty' \
|
|
267
|
+
-H 'sec-fetch-mode: cors' \
|
|
268
|
+
-H 'sec-fetch-site: same-origin' \
|
|
269
|
+
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0' \
|
|
270
|
+
--data-raw '{"contractId":169,"positionType":1,"side":"BUY","leverageLevel":5,"price":0,"volume":3,"triggerPrice":null,"open":"OPEN","type":2,"isConditionOrder":false,"isOto":false,"takerProfitTrigger":null,"takerProfitPrice":0,"takerProfitType":2,"stopLossTrigger":null,"stopLossPrice":0,"stopLossType":2,"isCheckLiq":1,"orderUnit":2,"secret":"7835cf6141a0a6c45cdf4bb1b1dada9d","uaTime":"2025-10-27 18:49:17","securityInfo":"{\"log_BSDeviceFingerprint\":\"0\",\"log_original\":\"0\",\"log_CHFIT_DEVICEID\":\"0\"}"}'
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
{
|
|
274
|
+
"code": "0",
|
|
275
|
+
"msg": "成功",
|
|
276
|
+
"data": {
|
|
277
|
+
"triggerIds": [],
|
|
278
|
+
"ids": [
|
|
279
|
+
"2951791298665186909"
|
|
280
|
+
],
|
|
281
|
+
"cancelIds": []
|
|
282
|
+
},
|
|
283
|
+
"msgData": null,
|
|
284
|
+
"succ": true
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
# 限价单开仓(多)
|
|
288
|
+
|
|
289
|
+
curl 'https://futures.coinup.io/fe-co-api/order/order_create' \
|
|
290
|
+
-H 'accept: application/json, text/plain, */*' \
|
|
291
|
+
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
|
|
292
|
+
-H 'cache-control: no-cache' \
|
|
293
|
+
-H 'content-type: application/json;charset=UTF-8' \
|
|
294
|
+
-H 'device;' \
|
|
295
|
+
-H 'exchange-client: pc' \
|
|
296
|
+
-H 'exchange-language: zh_CN' \
|
|
297
|
+
-H 'exchange-token: 948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0' \
|
|
298
|
+
-H 'origin: https://futures.coinup.io' \
|
|
299
|
+
-H 'pragma: no-cache' \
|
|
300
|
+
-H 'priority: u=1, i' \
|
|
301
|
+
-H 'referer: https://futures.coinup.io/zh_CN' \
|
|
302
|
+
-H 'sec-ch-ua: "Microsoft Edge";v="141", "Not?A_Brand";v="8", "Chromium";v="141"' \
|
|
303
|
+
-H 'sec-ch-ua-arch: "arm"' \
|
|
304
|
+
-H 'sec-ch-ua-bitness: "64"' \
|
|
305
|
+
-H 'sec-ch-ua-full-version: "141.0.3537.92"' \
|
|
306
|
+
-H 'sec-ch-ua-full-version-list: "Microsoft Edge";v="141.0.3537.92", "Not?A_Brand";v="8.0.0.0", "Chromium";v="141.0.7390.108"' \
|
|
307
|
+
-H 'sec-ch-ua-mobile: ?0' \
|
|
308
|
+
-H 'sec-ch-ua-model: ""' \
|
|
309
|
+
-H 'sec-ch-ua-platform: "macOS"' \
|
|
310
|
+
-H 'sec-ch-ua-platform-version: "15.6.0"' \
|
|
311
|
+
-H 'sec-fetch-dest: empty' \
|
|
312
|
+
-H 'sec-fetch-mode: cors' \
|
|
313
|
+
-H 'sec-fetch-site: same-origin' \
|
|
314
|
+
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0' \
|
|
315
|
+
--data-raw '{"contractId":169,"positionType":1,"side":"BUY","leverageLevel":5,"price":0.13,"volume":"1","triggerPrice":null,"open":"OPEN","type":1,"isConditionOrder":false,"isOto":false,"takerProfitTrigger":null,"takerProfitPrice":0,"takerProfitType":2,"stopLossTrigger":null,"stopLossPrice":0,"stopLossType":2,"isCheckLiq":1,"orderUnit":2,"secret":"78b241867e8253eee4aa7fee8b673369","uaTime":"2025-10-27 18:50:40","securityInfo":"{\"log_BSDeviceFingerprint\":\"0\",\"log_original\":\"0\",\"log_CHFIT_DEVICEID\":\"0\"}"}'
|
|
316
|
+
|
|
317
|
+
# 限价单开仓(空)
|
|
318
|
+
...省略
|
|
319
|
+
{
|
|
320
|
+
"contractId": 169,
|
|
321
|
+
"positionType": 1,
|
|
322
|
+
"side": "SELL",
|
|
323
|
+
"leverageLevel": 5,
|
|
324
|
+
"price": 0.15,
|
|
325
|
+
"volume": "1",
|
|
326
|
+
"triggerPrice": null,
|
|
327
|
+
"open": "OPEN",
|
|
328
|
+
"type": 1,
|
|
329
|
+
"isConditionOrder": false,
|
|
330
|
+
"isOto": false,
|
|
331
|
+
"takerProfitTrigger": null,
|
|
332
|
+
"takerProfitPrice": 0,
|
|
333
|
+
"takerProfitType": 2,
|
|
334
|
+
"stopLossTrigger": null,
|
|
335
|
+
"stopLossPrice": 0,
|
|
336
|
+
"stopLossType": 2,
|
|
337
|
+
"isCheckLiq": 1,
|
|
338
|
+
"orderUnit": 2,
|
|
339
|
+
"secret": "65fb4c7cc0b4238386bd03b75512cf54",
|
|
340
|
+
"uaTime": "2025-10-27 18:54:59",
|
|
341
|
+
"securityInfo": "{\"log_BSDeviceFingerprint\":\"0\",\"log_original\":\"0\",\"log_CHFIT_DEVICEID\":\"0\"}"
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
# 取消订单
|
|
345
|
+
curl 'https://futures.coinup.io/fe-co-api/order/order_cancel' \
|
|
346
|
+
-H 'accept: application/json, text/plain, */*' \
|
|
347
|
+
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
|
|
348
|
+
-H 'cache-control: no-cache' \
|
|
349
|
+
-H 'content-type: application/json;charset=UTF-8' \
|
|
350
|
+
-b 'lan=zh_CN; jpSpotSwitch=0; cusSkin=2; newTrade_layout=ord; isLogin=true; token=948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0; _gid=GA1.2.679822732.1761486956; _ga=GA1.1.1696620034.1761206716; _ga_01HC17N7QQ=GS2.1.s1761540886$o10$g1$t1761540899$j47$l0$h0; cf_clearance=zNTAplBpXoMkVhmls3nPtu3_.9I1JZH8JO0wGWLm3bc-1761561996-1.2.1.1-qfaPFTp6IfY8qV6iGDlKSVmP5_tAOiQU7amNq8pKoU0EtcJFxksT6Y.KOgNyQCN9Uph.pQ_5ws4Zj_CoOEAZinzwHvr8smIwSawgbV4NH4Z5eXSf7_eMFDf5lOMiNT0mS.UYiMMelWZw0Z32UrJTHKgsdJCvfspXtUL9zUlYAxJSLRdJP0RHvsrHdUF.JlSZkIbTltkhNO60ngB5m2WV7YBJV8u0n2vw76dqmcGau70; _ga_4JHJ4YPRL8=GS2.1.s1761561877$o8$g1$t1761562548$j11$l0$h0' \
|
|
351
|
+
-H 'device;' \
|
|
352
|
+
-H 'exchange-client: pc' \
|
|
353
|
+
-H 'exchange-language: zh_CN' \
|
|
354
|
+
-H 'exchange-token: 948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0' \
|
|
355
|
+
-H 'origin: https://futures.coinup.io' \
|
|
356
|
+
-H 'pragma: no-cache' \
|
|
357
|
+
-H 'priority: u=1, i' \
|
|
358
|
+
-H 'referer: https://futures.coinup.io/zh_CN' \
|
|
359
|
+
-H 'sec-ch-ua: "Microsoft Edge";v="141", "Not?A_Brand";v="8", "Chromium";v="141"' \
|
|
360
|
+
-H 'sec-ch-ua-arch: "arm"' \
|
|
361
|
+
-H 'sec-ch-ua-bitness: "64"' \
|
|
362
|
+
-H 'sec-ch-ua-full-version: "141.0.3537.92"' \
|
|
363
|
+
-H 'sec-ch-ua-full-version-list: "Microsoft Edge";v="141.0.3537.92", "Not?A_Brand";v="8.0.0.0", "Chromium";v="141.0.7390.108"' \
|
|
364
|
+
-H 'sec-ch-ua-mobile: ?0' \
|
|
365
|
+
-H 'sec-ch-ua-model: ""' \
|
|
366
|
+
-H 'sec-ch-ua-platform: "macOS"' \
|
|
367
|
+
-H 'sec-ch-ua-platform-version: "15.6.0"' \
|
|
368
|
+
-H 'sec-fetch-dest: empty' \
|
|
369
|
+
-H 'sec-fetch-mode: cors' \
|
|
370
|
+
-H 'sec-fetch-site: same-origin' \
|
|
371
|
+
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0' \
|
|
372
|
+
--data-raw '{"contractId":169,"orderId":"2951913395995535853","isConditionOrder":false,"uaTime":"2025-10-27 18:55:49","securityInfo":"{\"log_BSDeviceFingerprint\":\"0\",\"log_original\":\"0\",\"log_CHFIT_DEVICEID\":\"0\"}"}'
|
|
373
|
+
|
|
374
|
+
{
|
|
375
|
+
"code": "0",
|
|
376
|
+
"msg": "成功",
|
|
377
|
+
"data": null,
|
|
378
|
+
"msgData": null,
|
|
379
|
+
"succ": true
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
# 获取订单
|
|
383
|
+
|
|
384
|
+
curl 'https://futures.coinup.io/fe-co-api/order/current_order_list' \
|
|
385
|
+
-H 'accept: application/json, text/plain, */*' \
|
|
386
|
+
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
|
|
387
|
+
-H 'cache-control: no-cache' \
|
|
388
|
+
-H 'content-type: application/json;charset=UTF-8' \
|
|
389
|
+
-b 'lan=zh_CN; jpSpotSwitch=0; cusSkin=2; newTrade_layout=ord; isLogin=true; token=948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0; _gid=GA1.2.679822732.1761486956; _ga=GA1.1.1696620034.1761206716; _ga_01HC17N7QQ=GS2.1.s1761540886$o10$g1$t1761540899$j47$l0$h0; cf_clearance=F4Pg8qr.OXBna_Ldf81xZ5TOCYn3.fmBzKIWk2mYbrA-1761562681-1.2.1.1-ax9X2hkj_ZxHehvBL8b3GPmO6oYAYku0fzZqk7ZB.hVt0lzOOSrSHrEKoxShxCI7Piz2ZcKamCFB8XMT6xu2HWSfrRe0ADlotIHnc1XPVLB7pdC940PNAn0leLX_c7waq3Zd.93KnQhoCbzeivHIc2lfWxKl4jUrkK0pWKZZ..fAzZXw59eWsjQekVSnAFQCA6Eb7fZ5LVWrkn6GwPb5DoosBDvQYvVHASCVt0ddPjbFgM16pd3J87kkHuy2jqPq; _ga_4JHJ4YPRL8=GS2.1.s1761561877$o8$g1$t1761562682$j58$l0$h0' \
|
|
390
|
+
-H 'device;' \
|
|
391
|
+
-H 'exchange-client: pc' \
|
|
392
|
+
-H 'exchange-language: zh_CN' \
|
|
393
|
+
-H 'exchange-token: 948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0' \
|
|
394
|
+
-H 'origin: https://futures.coinup.io' \
|
|
395
|
+
-H 'pragma: no-cache' \
|
|
396
|
+
-H 'priority: u=1, i' \
|
|
397
|
+
-H 'referer: https://futures.coinup.io/zh_CN' \
|
|
398
|
+
-H 'sec-ch-ua: "Microsoft Edge";v="141", "Not?A_Brand";v="8", "Chromium";v="141"' \
|
|
399
|
+
-H 'sec-ch-ua-arch: "arm"' \
|
|
400
|
+
-H 'sec-ch-ua-bitness: "64"' \
|
|
401
|
+
-H 'sec-ch-ua-full-version: "141.0.3537.92"' \
|
|
402
|
+
-H 'sec-ch-ua-full-version-list: "Microsoft Edge";v="141.0.3537.92", "Not?A_Brand";v="8.0.0.0", "Chromium";v="141.0.7390.108"' \
|
|
403
|
+
-H 'sec-ch-ua-mobile: ?0' \
|
|
404
|
+
-H 'sec-ch-ua-model: ""' \
|
|
405
|
+
-H 'sec-ch-ua-platform: "macOS"' \
|
|
406
|
+
-H 'sec-ch-ua-platform-version: "15.6.0"' \
|
|
407
|
+
-H 'sec-fetch-dest: empty' \
|
|
408
|
+
-H 'sec-fetch-mode: cors' \
|
|
409
|
+
-H 'sec-fetch-site: same-origin' \
|
|
410
|
+
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0' \
|
|
411
|
+
--data-raw '{"contractId":"","uaTime":"2025-10-27 18:58:02","securityInfo":"{\"log_BSDeviceFingerprint\":\"0\",\"log_original\":\"0\",\"log_CHFIT_DEVICEID\":\"0\"}"}'
|
|
412
|
+
|
|
413
|
+
{
|
|
414
|
+
"code": "0",
|
|
415
|
+
"msg": "成功",
|
|
416
|
+
"data": {
|
|
417
|
+
"count": 1,
|
|
418
|
+
"orderList": [
|
|
419
|
+
{
|
|
420
|
+
"symbol": "WLFI-USDT",
|
|
421
|
+
"contractOtherName": "WLFI/USDT",
|
|
422
|
+
"positionType": 1,
|
|
423
|
+
"orderId": "2951913499074783723",
|
|
424
|
+
"avgPrice": 0,
|
|
425
|
+
"tradeFee": 0,
|
|
426
|
+
"memo": 0,
|
|
427
|
+
"type": 1,
|
|
428
|
+
"mtime": 1761562500000,
|
|
429
|
+
"quote": "USDT",
|
|
430
|
+
"liqPositionMsg": "",
|
|
431
|
+
"dealVolume": 0,
|
|
432
|
+
"price": 0.15,
|
|
433
|
+
"ctime": 1761562500000,
|
|
434
|
+
"contractName": "E-WLFI-USDT",
|
|
435
|
+
"id": "263457",
|
|
436
|
+
"contractSide": 1,
|
|
437
|
+
"pricePrecision": 4,
|
|
438
|
+
"side": "SELL",
|
|
439
|
+
"multiplier": 15,
|
|
440
|
+
"marginCoin": "USDT",
|
|
441
|
+
"isAdd": false,
|
|
442
|
+
"volume": 1,
|
|
443
|
+
"isCompensate": false,
|
|
444
|
+
"contractId": 169,
|
|
445
|
+
"orderBalance": 2.25,
|
|
446
|
+
"open": "OPEN",
|
|
447
|
+
"base": "WLFI",
|
|
448
|
+
"status": 0
|
|
449
|
+
}
|
|
450
|
+
]
|
|
451
|
+
},
|
|
452
|
+
"msgData": null,
|
|
453
|
+
"succ": true
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
# 获取历史订单
|
|
457
|
+
curl 'https://futures.coinup.io/fe-co-api/order/history_order_list' \
|
|
458
|
+
-H 'accept: application/json, text/plain, */*' \
|
|
459
|
+
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
|
|
460
|
+
-H 'cache-control: no-cache' \
|
|
461
|
+
-H 'content-type: application/json;charset=UTF-8' \
|
|
462
|
+
-b 'lan=zh_CN; jpSpotSwitch=0; cusSkin=2; newTrade_layout=ord; isLogin=true; token=948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0; _gid=GA1.2.679822732.1761486956; _ga=GA1.1.1696620034.1761206716; _ga_01HC17N7QQ=GS2.1.s1761540886$o10$g1$t1761540899$j47$l0$h0; cf_clearance=Xu0QcQAsWLQ4kbTcwNGb5AhFHoZpe8JOlLzOP.mIonU-1761573045-1.2.1.1-CGz516KjOZRiWl44JB7_y6A6aUYTUoyxMQG3XgALQUPmNaZ8zX2JPTmzCuhFSjZmHoYh_tMDjuDfX_.Gwyjaa.FVKGEGE_hORNF9TGDaJ1GgJe4eWEIVooBSoq2KK_pNzh9JkWkrV1Rmo_zdxQV8SEsuB6QXaCKsU.cWJ4AR.1pC38qpUzwH2n3rrSYRmpDJqs7o3caOHMVZiSg0HtwIRqGccjRcesmkWtZUUvHj6_MX7KBXQojfs1I2rjaJnTDe; _ga_4JHJ4YPRL8=GS2.1.s1761572082$o9$g1$t1761573203$j60$l0$h0' \
|
|
463
|
+
-H 'device;' \
|
|
464
|
+
-H 'exchange-client: pc' \
|
|
465
|
+
-H 'exchange-language: zh_CN' \
|
|
466
|
+
-H 'exchange-token: 948a3841361bd38c30fc37355c3fb01a35135042c1c44698bed6f9cd6262cce0' \
|
|
467
|
+
-H 'origin: https://futures.coinup.io' \
|
|
468
|
+
-H 'pragma: no-cache' \
|
|
469
|
+
-H 'priority: u=1, i' \
|
|
470
|
+
-H 'referer: https://futures.coinup.io/zh_CN' \
|
|
471
|
+
-H 'sec-ch-ua: "Microsoft Edge";v="141", "Not?A_Brand";v="8", "Chromium";v="141"' \
|
|
472
|
+
-H 'sec-ch-ua-arch: "arm"' \
|
|
473
|
+
-H 'sec-ch-ua-bitness: "64"' \
|
|
474
|
+
-H 'sec-ch-ua-full-version: "141.0.3537.92"' \
|
|
475
|
+
-H 'sec-ch-ua-full-version-list: "Microsoft Edge";v="141.0.3537.92", "Not?A_Brand";v="8.0.0.0", "Chromium";v="141.0.7390.108"' \
|
|
476
|
+
-H 'sec-ch-ua-mobile: ?0' \
|
|
477
|
+
-H 'sec-ch-ua-model: ""' \
|
|
478
|
+
-H 'sec-ch-ua-platform: "macOS"' \
|
|
479
|
+
-H 'sec-ch-ua-platform-version: "15.6.0"' \
|
|
480
|
+
-H 'sec-fetch-dest: empty' \
|
|
481
|
+
-H 'sec-fetch-mode: cors' \
|
|
482
|
+
-H 'sec-fetch-site: same-origin' \
|
|
483
|
+
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0' \
|
|
484
|
+
--data-raw '{"contractId":"","uaTime":"2025-10-27 21:53:25","securityInfo":"{\"log_BSDeviceFingerprint\":\"0\",\"log_original\":\"0\",\"log_CHFIT_DEVICEID\":\"0\"}"}'
|
|
485
|
+
|
|
486
|
+
{
|
|
487
|
+
"code": "0",
|
|
488
|
+
"msg": "成功",
|
|
489
|
+
"data": {
|
|
490
|
+
"count": 69,
|
|
491
|
+
"orderList": [
|
|
492
|
+
{
|
|
493
|
+
"symbol": "WLFI-USDT",
|
|
494
|
+
"contractOtherName": "WLFI/USDT",
|
|
495
|
+
"positionType": 1,
|
|
496
|
+
"orderId": "2951916505551949315",
|
|
497
|
+
"avgPrice": 0,
|
|
498
|
+
"tradeFee": 0,
|
|
499
|
+
"realizedAmount": 0,
|
|
500
|
+
"memo": 1,
|
|
501
|
+
"type": 1,
|
|
502
|
+
"mtime": 1761573204000,
|
|
503
|
+
"quote": "USDT",
|
|
504
|
+
"liqPositionMsg": "",
|
|
505
|
+
"dealVolume": 0,
|
|
506
|
+
"price": 0.13,
|
|
507
|
+
"ctime": 1761573088000,
|
|
508
|
+
"contractName": "E-WLFI-USDT",
|
|
509
|
+
"id": "263462",
|
|
510
|
+
"contractSide": 1,
|
|
511
|
+
"pricePrecision": 4,
|
|
512
|
+
"side": "BUY",
|
|
513
|
+
"multiplier": 15,
|
|
514
|
+
"marginCoin": "USDT",
|
|
515
|
+
"isAdd": false,
|
|
516
|
+
"volume": 1,
|
|
517
|
+
"isCompensate": false,
|
|
518
|
+
"contractId": 169,
|
|
519
|
+
"orderBalance": 1.95,
|
|
520
|
+
"open": "OPEN",
|
|
521
|
+
"base": "WLFI",
|
|
522
|
+
"status": 4
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"symbol": "WLFI-USDT",
|
|
526
|
+
"contractOtherName": "WLFI/USDT",
|
|
527
|
+
"positionType": 1,
|
|
528
|
+
"orderId": "2951914495507231793",
|
|
529
|
+
"avgPrice": 0.1457,
|
|
530
|
+
"tradeFee": 0.0004371,
|
|
531
|
+
"realizedAmount": -0.0015,
|
|
532
|
+
"memo": 0,
|
|
533
|
+
"type": 2,
|
|
534
|
+
"mtime": 1761565386000,
|
|
535
|
+
"quote": "USDT",
|
|
536
|
+
"liqPositionMsg": "",
|
|
537
|
+
"dealVolume": 1,
|
|
538
|
+
"price": 0,
|
|
539
|
+
"ctime": 1761565385000,
|
|
540
|
+
"contractName": "E-WLFI-USDT",
|
|
541
|
+
"id": "263310",
|
|
542
|
+
"contractSide": 1,
|
|
543
|
+
"pricePrecision": 4,
|
|
544
|
+
"side": "SELL",
|
|
545
|
+
"multiplier": 15,
|
|
546
|
+
"marginCoin": "USDT",
|
|
547
|
+
"isAdd": false,
|
|
548
|
+
"volume": 1,
|
|
549
|
+
"isCompensate": false,
|
|
550
|
+
"contractId": 169,
|
|
551
|
+
"orderBalance": -1.1855,
|
|
552
|
+
"open": "CLOSE",
|
|
553
|
+
"base": "WLFI",
|
|
554
|
+
"status": 2
|
|
555
|
+
}
|
|
556
|
+
]
|
|
557
|
+
},
|
|
558
|
+
"msgData": null,
|
|
559
|
+
"succ": true
|
|
560
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "hyperquant"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.91"
|
|
4
4
|
description = "A minimal yet hyper-efficient backtesting framework for quantitative trading"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "MissinA", email = "1421329142@qq.com" }
|
|
@@ -14,9 +14,11 @@ dependencies = [
|
|
|
14
14
|
"numpy>=1.21.0", # Added numpy as a new dependency
|
|
15
15
|
"duckdb>=1.2.2",
|
|
16
16
|
"pybotters>=1.9.1",
|
|
17
|
+
"curl-cffi>=0.13.0",
|
|
18
|
+
"rnet==3.0.0rc10",
|
|
17
19
|
]
|
|
18
20
|
readme = "README.md"
|
|
19
|
-
requires-python = ">=3.
|
|
21
|
+
requires-python = ">=3.11"
|
|
20
22
|
|
|
21
23
|
|
|
22
24
|
keywords = ["quant", "backtesting", "trading", "hyperquant"]
|