@binance/dual-investment 4.0.0 → 4.0.2
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.
- package/dist/chunk.mjs +13 -0
- package/dist/index.d.mts +678 -765
- package/dist/index.d.ts +680 -765
- package/dist/index.js +447 -535
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +367 -533
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { BadRequestError, ConnectorClientError, DUAL_INVESTMENT_REST_API_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
|
|
1
|
+
import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, DUAL_INVESTMENT_REST_API_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError } from "@binance/common";
|
|
3
2
|
|
|
3
|
+
//#region rolldown:runtime
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/rest-api/types/change-auto-compound-status-response.d.ts
|
|
4
7
|
/**
|
|
5
8
|
* Binance Dual Investment REST API
|
|
6
9
|
*
|
|
@@ -19,20 +22,21 @@ export { BadRequestError, ConnectorClientError, DUAL_INVESTMENT_REST_API_PROD_UR
|
|
|
19
22
|
* @interface ChangeAutoCompoundStatusResponse
|
|
20
23
|
*/
|
|
21
24
|
interface ChangeAutoCompoundStatusResponse {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ChangeAutoCompoundStatusResponse
|
|
29
|
+
*/
|
|
30
|
+
positionId?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ChangeAutoCompoundStatusResponse
|
|
35
|
+
*/
|
|
36
|
+
autoCompoundPlan?: string;
|
|
34
37
|
}
|
|
35
|
-
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/rest-api/types/check-dual-investment-accounts-response.d.ts
|
|
36
40
|
/**
|
|
37
41
|
* Binance Dual Investment REST API
|
|
38
42
|
*
|
|
@@ -51,20 +55,21 @@ interface ChangeAutoCompoundStatusResponse {
|
|
|
51
55
|
* @interface CheckDualInvestmentAccountsResponse
|
|
52
56
|
*/
|
|
53
57
|
interface CheckDualInvestmentAccountsResponse {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CheckDualInvestmentAccountsResponse
|
|
62
|
+
*/
|
|
63
|
+
totalAmountInBTC?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CheckDualInvestmentAccountsResponse
|
|
68
|
+
*/
|
|
69
|
+
totalAmountInUSDT?: string;
|
|
66
70
|
}
|
|
67
|
-
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/rest-api/types/get-dual-investment-positions-response-list-inner.d.ts
|
|
68
73
|
/**
|
|
69
74
|
* Binance Dual Investment REST API
|
|
70
75
|
*
|
|
@@ -83,119 +88,108 @@ interface CheckDualInvestmentAccountsResponse {
|
|
|
83
88
|
* @interface GetDualInvestmentPositionsResponseListInner
|
|
84
89
|
*/
|
|
85
90
|
interface GetDualInvestmentPositionsResponseListInner {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
95
|
+
*/
|
|
96
|
+
id?: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
101
|
+
*/
|
|
102
|
+
investCoin?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
107
|
+
*/
|
|
108
|
+
exercisedCoin?: string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
113
|
+
*/
|
|
114
|
+
subscriptionAmount?: string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
119
|
+
*/
|
|
120
|
+
strikePrice?: string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {number | bigint}
|
|
124
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
125
|
+
*/
|
|
126
|
+
duration?: number | bigint;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {number | bigint}
|
|
130
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
131
|
+
*/
|
|
132
|
+
settleDate?: number | bigint;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
137
|
+
*/
|
|
138
|
+
purchaseStatus?: string;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
143
|
+
*/
|
|
144
|
+
apr?: string;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {number | bigint}
|
|
148
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
149
|
+
*/
|
|
150
|
+
orderId?: number | bigint;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {number | bigint}
|
|
154
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
155
|
+
*/
|
|
156
|
+
purchaseEndTime?: number | bigint;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
161
|
+
*/
|
|
162
|
+
optionType?: string;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof GetDualInvestmentPositionsResponseListInner
|
|
167
|
+
*/
|
|
168
|
+
autoCompoundPlan?: string;
|
|
164
169
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
* Binance Dual Investment REST API
|
|
168
|
-
*
|
|
169
|
-
* OpenAPI Specification for the Binance Dual Investment REST API
|
|
170
|
-
*
|
|
171
|
-
* The version of the OpenAPI document: 1.0.0
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
175
|
-
* https://openapi-generator.tech
|
|
176
|
-
* Do not edit the class manually.
|
|
177
|
-
*/
|
|
178
|
-
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/rest-api/types/get-dual-investment-positions-response.d.ts
|
|
179
172
|
/**
|
|
180
173
|
*
|
|
181
174
|
* @export
|
|
182
175
|
* @interface GetDualInvestmentPositionsResponse
|
|
183
176
|
*/
|
|
184
177
|
interface GetDualInvestmentPositionsResponse {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {number | bigint}
|
|
181
|
+
* @memberof GetDualInvestmentPositionsResponse
|
|
182
|
+
*/
|
|
183
|
+
total?: number | bigint;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {Array<GetDualInvestmentPositionsResponseListInner>}
|
|
187
|
+
* @memberof GetDualInvestmentPositionsResponse
|
|
188
|
+
*/
|
|
189
|
+
list?: Array<GetDualInvestmentPositionsResponseListInner>;
|
|
197
190
|
}
|
|
198
|
-
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/rest-api/types/get-dual-investment-product-list-response-list-inner.d.ts
|
|
199
193
|
/**
|
|
200
194
|
* Binance Dual Investment REST API
|
|
201
195
|
*
|
|
@@ -214,143 +208,132 @@ interface GetDualInvestmentPositionsResponse {
|
|
|
214
208
|
* @interface GetDualInvestmentProductListResponseListInner
|
|
215
209
|
*/
|
|
216
210
|
interface GetDualInvestmentProductListResponseListInner {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @type {string}
|
|
214
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
215
|
+
*/
|
|
216
|
+
id?: string;
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* @type {string}
|
|
220
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
221
|
+
*/
|
|
222
|
+
investCoin?: string;
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @type {string}
|
|
226
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
227
|
+
*/
|
|
228
|
+
exercisedCoin?: string;
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @type {string}
|
|
232
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
233
|
+
*/
|
|
234
|
+
strikePrice?: string;
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @type {number | bigint}
|
|
238
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
239
|
+
*/
|
|
240
|
+
duration?: number | bigint;
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
* @type {number | bigint}
|
|
244
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
245
|
+
*/
|
|
246
|
+
settleDate?: number | bigint;
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @type {number | bigint}
|
|
250
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
251
|
+
*/
|
|
252
|
+
purchaseDecimal?: number | bigint;
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
* @type {number | bigint}
|
|
256
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
257
|
+
*/
|
|
258
|
+
purchaseEndTime?: number | bigint;
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* @type {boolean}
|
|
262
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
263
|
+
*/
|
|
264
|
+
canPurchase?: boolean;
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
* @type {string}
|
|
268
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
269
|
+
*/
|
|
270
|
+
apr?: string;
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @type {number | bigint}
|
|
274
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
275
|
+
*/
|
|
276
|
+
orderId?: number | bigint;
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @type {string}
|
|
280
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
281
|
+
*/
|
|
282
|
+
minAmount?: string;
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @type {string}
|
|
286
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
287
|
+
*/
|
|
288
|
+
maxAmount?: string;
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @type {number | bigint}
|
|
292
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
293
|
+
*/
|
|
294
|
+
createTimestamp?: number | bigint;
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @type {string}
|
|
298
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
299
|
+
*/
|
|
300
|
+
optionType?: string;
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @type {boolean}
|
|
304
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
305
|
+
*/
|
|
306
|
+
isAutoCompoundEnable?: boolean;
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @type {Array<string>}
|
|
310
|
+
* @memberof GetDualInvestmentProductListResponseListInner
|
|
311
|
+
*/
|
|
312
|
+
autoCompoundPlanList?: Array<string>;
|
|
319
313
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
* Binance Dual Investment REST API
|
|
323
|
-
*
|
|
324
|
-
* OpenAPI Specification for the Binance Dual Investment REST API
|
|
325
|
-
*
|
|
326
|
-
* The version of the OpenAPI document: 1.0.0
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
330
|
-
* https://openapi-generator.tech
|
|
331
|
-
* Do not edit the class manually.
|
|
332
|
-
*/
|
|
333
|
-
|
|
314
|
+
//#endregion
|
|
315
|
+
//#region src/rest-api/types/get-dual-investment-product-list-response.d.ts
|
|
334
316
|
/**
|
|
335
317
|
*
|
|
336
318
|
* @export
|
|
337
319
|
* @interface GetDualInvestmentProductListResponse
|
|
338
320
|
*/
|
|
339
321
|
interface GetDualInvestmentProductListResponse {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @type {number | bigint}
|
|
325
|
+
* @memberof GetDualInvestmentProductListResponse
|
|
326
|
+
*/
|
|
327
|
+
total?: number | bigint;
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @type {Array<GetDualInvestmentProductListResponseListInner>}
|
|
331
|
+
* @memberof GetDualInvestmentProductListResponse
|
|
332
|
+
*/
|
|
333
|
+
list?: Array<GetDualInvestmentProductListResponseListInner>;
|
|
352
334
|
}
|
|
353
|
-
|
|
335
|
+
//#endregion
|
|
336
|
+
//#region src/rest-api/types/subscribe-dual-investment-products-response.d.ts
|
|
354
337
|
/**
|
|
355
338
|
* Binance Dual Investment REST API
|
|
356
339
|
*
|
|
@@ -369,568 +352,500 @@ interface GetDualInvestmentProductListResponse {
|
|
|
369
352
|
* @interface SubscribeDualInvestmentProductsResponse
|
|
370
353
|
*/
|
|
371
354
|
interface SubscribeDualInvestmentProductsResponse {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @type {number | bigint}
|
|
358
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
359
|
+
*/
|
|
360
|
+
positionId?: number | bigint;
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @type {string}
|
|
364
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
365
|
+
*/
|
|
366
|
+
investCoin?: string;
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* @type {string}
|
|
370
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
371
|
+
*/
|
|
372
|
+
exercisedCoin?: string;
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @type {string}
|
|
376
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
377
|
+
*/
|
|
378
|
+
subscriptionAmount?: string;
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @type {number | bigint}
|
|
382
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
383
|
+
*/
|
|
384
|
+
duration?: number | bigint;
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @type {string}
|
|
388
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
389
|
+
*/
|
|
390
|
+
autoCompoundPlan?: string;
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @type {string}
|
|
394
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
395
|
+
*/
|
|
396
|
+
strikePrice?: string;
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {number | bigint}
|
|
400
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
401
|
+
*/
|
|
402
|
+
settleDate?: number | bigint;
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @type {string}
|
|
406
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
407
|
+
*/
|
|
408
|
+
purchaseStatus?: string;
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @type {string}
|
|
412
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
413
|
+
*/
|
|
414
|
+
apr?: string;
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @type {number | bigint}
|
|
418
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
419
|
+
*/
|
|
420
|
+
orderId?: number | bigint;
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
* @type {number | bigint}
|
|
424
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
425
|
+
*/
|
|
426
|
+
purchaseTime?: number | bigint;
|
|
427
|
+
/**
|
|
428
|
+
*
|
|
429
|
+
* @type {string}
|
|
430
|
+
* @memberof SubscribeDualInvestmentProductsResponse
|
|
431
|
+
*/
|
|
432
|
+
optionType?: string;
|
|
450
433
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
* Binance Dual Investment REST API
|
|
454
|
-
*
|
|
455
|
-
* OpenAPI Specification for the Binance Dual Investment REST API
|
|
456
|
-
*
|
|
457
|
-
* The version of the OpenAPI document: 1.0.0
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
461
|
-
* https://openapi-generator.tech
|
|
462
|
-
* Do not edit the class manually.
|
|
463
|
-
*/
|
|
464
|
-
|
|
434
|
+
//#endregion
|
|
435
|
+
//#region src/rest-api/modules/market-data-api.d.ts
|
|
465
436
|
/**
|
|
466
437
|
* MarketDataApi - interface
|
|
467
438
|
* @interface MarketDataApi
|
|
468
439
|
*/
|
|
469
440
|
interface MarketDataApiInterface {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
441
|
+
/**
|
|
442
|
+
* Get Dual Investment product list
|
|
443
|
+
*
|
|
444
|
+
* Weight: 1(IP)
|
|
445
|
+
*
|
|
446
|
+
* @summary Get Dual Investment product list
|
|
447
|
+
* @param {GetDualInvestmentProductListRequest} requestParameters Request parameters.
|
|
448
|
+
*
|
|
449
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
450
|
+
* @memberof MarketDataApiInterface
|
|
451
|
+
*/
|
|
452
|
+
getDualInvestmentProductList(requestParameters: GetDualInvestmentProductListRequest): Promise<RestApiResponse<GetDualInvestmentProductListResponse>>;
|
|
482
453
|
}
|
|
483
454
|
/**
|
|
484
455
|
* Request parameters for getDualInvestmentProductList operation in MarketDataApi.
|
|
485
456
|
* @interface GetDualInvestmentProductListRequest
|
|
486
457
|
*/
|
|
487
458
|
interface GetDualInvestmentProductListRequest {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
459
|
+
/**
|
|
460
|
+
* Input CALL or PUT
|
|
461
|
+
* @type {string}
|
|
462
|
+
* @memberof MarketDataApiGetDualInvestmentProductList
|
|
463
|
+
*/
|
|
464
|
+
readonly optionType: string;
|
|
465
|
+
/**
|
|
466
|
+
* Target exercised asset, e.g.: if you subscribe to a high sell product (call option), you should input: `optionType`:CALL,`exercisedCoin`:USDT,`investCoin`:BNB; if you subscribe to a low buy product (put option), you should input: `optionType`:PUT,`exercisedCoin`:BNB,`investCoin`:USDT
|
|
467
|
+
* @type {string}
|
|
468
|
+
* @memberof MarketDataApiGetDualInvestmentProductList
|
|
469
|
+
*/
|
|
470
|
+
readonly exercisedCoin: string;
|
|
471
|
+
/**
|
|
472
|
+
* Asset used for subscribing, e.g.: if you subscribe to a high sell product (call option), you should input: `optionType`:CALL,`exercisedCoin`:USDT,`investCoin`:BNB; if you subscribe to a low buy product (put option), you should input: `optionType`:PUT,`exercisedCoin`:BNB,`investCoin`:USDT
|
|
473
|
+
* @type {string}
|
|
474
|
+
* @memberof MarketDataApiGetDualInvestmentProductList
|
|
475
|
+
*/
|
|
476
|
+
readonly investCoin: string;
|
|
477
|
+
/**
|
|
478
|
+
* Default: 10, Maximum: 100
|
|
479
|
+
* @type {number | bigint}
|
|
480
|
+
* @memberof MarketDataApiGetDualInvestmentProductList
|
|
481
|
+
*/
|
|
482
|
+
readonly pageSize?: number | bigint;
|
|
483
|
+
/**
|
|
484
|
+
* Default: 1
|
|
485
|
+
* @type {number | bigint}
|
|
486
|
+
* @memberof MarketDataApiGetDualInvestmentProductList
|
|
487
|
+
*/
|
|
488
|
+
readonly pageIndex?: number | bigint;
|
|
489
|
+
/**
|
|
490
|
+
* The value cannot be greater than 60000
|
|
491
|
+
* @type {number | bigint}
|
|
492
|
+
* @memberof MarketDataApiGetDualInvestmentProductList
|
|
493
|
+
*/
|
|
494
|
+
readonly recvWindow?: number | bigint;
|
|
524
495
|
}
|
|
525
496
|
/**
|
|
526
497
|
* MarketDataApi - object-oriented interface
|
|
527
498
|
* @class MarketDataApi
|
|
528
499
|
*/
|
|
529
500
|
declare class MarketDataApi implements MarketDataApiInterface {
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
501
|
+
private readonly configuration;
|
|
502
|
+
private localVarAxiosParamCreator;
|
|
503
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
504
|
+
/**
|
|
505
|
+
* Get Dual Investment product list
|
|
506
|
+
*
|
|
507
|
+
* Weight: 1(IP)
|
|
508
|
+
*
|
|
509
|
+
* @summary Get Dual Investment product list
|
|
510
|
+
* @param {GetDualInvestmentProductListRequest} requestParameters Request parameters.
|
|
511
|
+
* @returns {Promise<RestApiResponse<GetDualInvestmentProductListResponse>>}
|
|
512
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
513
|
+
* @memberof MarketDataApi
|
|
514
|
+
* @see {@link https://developers.binance.com/docs/dual_investment/market-data/Get-Dual-Investment-product-list Binance API Documentation}
|
|
515
|
+
*/
|
|
516
|
+
getDualInvestmentProductList(requestParameters: GetDualInvestmentProductListRequest): Promise<RestApiResponse<GetDualInvestmentProductListResponse>>;
|
|
546
517
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
* Binance Dual Investment REST API
|
|
550
|
-
*
|
|
551
|
-
* OpenAPI Specification for the Binance Dual Investment REST API
|
|
552
|
-
*
|
|
553
|
-
* The version of the OpenAPI document: 1.0.0
|
|
554
|
-
*
|
|
555
|
-
*
|
|
556
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
557
|
-
* https://openapi-generator.tech
|
|
558
|
-
* Do not edit the class manually.
|
|
559
|
-
*/
|
|
560
|
-
|
|
518
|
+
//#endregion
|
|
519
|
+
//#region src/rest-api/modules/trade-api.d.ts
|
|
561
520
|
/**
|
|
562
521
|
* TradeApi - interface
|
|
563
522
|
* @interface TradeApi
|
|
564
523
|
*/
|
|
565
524
|
interface TradeApiInterface {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
525
|
+
/**
|
|
526
|
+
* Change Auto-Compound status
|
|
527
|
+
*
|
|
528
|
+
* Weight: 1(IP)
|
|
529
|
+
*
|
|
530
|
+
* @summary Change Auto-Compound status(USER_DATA)
|
|
531
|
+
* @param {ChangeAutoCompoundStatusRequest} requestParameters Request parameters.
|
|
532
|
+
*
|
|
533
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
534
|
+
* @memberof TradeApiInterface
|
|
535
|
+
*/
|
|
536
|
+
changeAutoCompoundStatus(requestParameters: ChangeAutoCompoundStatusRequest): Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>;
|
|
537
|
+
/**
|
|
538
|
+
* Check Dual Investment accounts
|
|
539
|
+
*
|
|
540
|
+
* Weight: 1(IP)
|
|
541
|
+
*
|
|
542
|
+
* @summary Check Dual Investment accounts(USER_DATA)
|
|
543
|
+
* @param {CheckDualInvestmentAccountsRequest} requestParameters Request parameters.
|
|
544
|
+
*
|
|
545
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
546
|
+
* @memberof TradeApiInterface
|
|
547
|
+
*/
|
|
548
|
+
checkDualInvestmentAccounts(requestParameters?: CheckDualInvestmentAccountsRequest): Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>;
|
|
549
|
+
/**
|
|
550
|
+
* Get Dual Investment positions (batch)
|
|
551
|
+
*
|
|
552
|
+
* Weight: 1(IP)
|
|
553
|
+
*
|
|
554
|
+
* @summary Get Dual Investment positions(USER_DATA)
|
|
555
|
+
* @param {GetDualInvestmentPositionsRequest} requestParameters Request parameters.
|
|
556
|
+
*
|
|
557
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
558
|
+
* @memberof TradeApiInterface
|
|
559
|
+
*/
|
|
560
|
+
getDualInvestmentPositions(requestParameters?: GetDualInvestmentPositionsRequest): Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>;
|
|
561
|
+
/**
|
|
562
|
+
* Subscribe Dual Investment products
|
|
563
|
+
*
|
|
564
|
+
* Products are not available. // this means APR changes to lower value, or orders are not unavailable.
|
|
565
|
+
* Failed. This means System or network errors.
|
|
566
|
+
*
|
|
567
|
+
* Weight: 1(IP)
|
|
568
|
+
*
|
|
569
|
+
* @summary Subscribe Dual Investment products(USER_DATA)
|
|
570
|
+
* @param {SubscribeDualInvestmentProductsRequest} requestParameters Request parameters.
|
|
571
|
+
*
|
|
572
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
573
|
+
* @memberof TradeApiInterface
|
|
574
|
+
*/
|
|
575
|
+
subscribeDualInvestmentProducts(requestParameters: SubscribeDualInvestmentProductsRequest): Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>;
|
|
617
576
|
}
|
|
618
577
|
/**
|
|
619
578
|
* Request parameters for changeAutoCompoundStatus operation in TradeApi.
|
|
620
579
|
* @interface ChangeAutoCompoundStatusRequest
|
|
621
580
|
*/
|
|
622
581
|
interface ChangeAutoCompoundStatusRequest {
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
582
|
+
/**
|
|
583
|
+
* Get positionId from `/sapi/v1/dci/product/positions`
|
|
584
|
+
* @type {string}
|
|
585
|
+
* @memberof TradeApiChangeAutoCompoundStatus
|
|
586
|
+
*/
|
|
587
|
+
readonly positionId: string;
|
|
588
|
+
/**
|
|
589
|
+
*
|
|
590
|
+
* @type {string}
|
|
591
|
+
* @memberof TradeApiChangeAutoCompoundStatus
|
|
592
|
+
*/
|
|
593
|
+
readonly autoCompoundPlan?: string;
|
|
594
|
+
/**
|
|
595
|
+
* The value cannot be greater than 60000
|
|
596
|
+
* @type {number | bigint}
|
|
597
|
+
* @memberof TradeApiChangeAutoCompoundStatus
|
|
598
|
+
*/
|
|
599
|
+
readonly recvWindow?: number | bigint;
|
|
641
600
|
}
|
|
642
601
|
/**
|
|
643
602
|
* Request parameters for checkDualInvestmentAccounts operation in TradeApi.
|
|
644
603
|
* @interface CheckDualInvestmentAccountsRequest
|
|
645
604
|
*/
|
|
646
605
|
interface CheckDualInvestmentAccountsRequest {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
606
|
+
/**
|
|
607
|
+
* The value cannot be greater than 60000
|
|
608
|
+
* @type {number | bigint}
|
|
609
|
+
* @memberof TradeApiCheckDualInvestmentAccounts
|
|
610
|
+
*/
|
|
611
|
+
readonly recvWindow?: number | bigint;
|
|
653
612
|
}
|
|
654
613
|
/**
|
|
655
614
|
* Request parameters for getDualInvestmentPositions operation in TradeApi.
|
|
656
615
|
* @interface GetDualInvestmentPositionsRequest
|
|
657
616
|
*/
|
|
658
617
|
interface GetDualInvestmentPositionsRequest {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
618
|
+
/**
|
|
619
|
+
* `PENDING`:Products are purchasing, will give results later;`PURCHASE_SUCCESS`:purchase successfully;`SETTLED`: Products are finish settling;`PURCHASE_FAIL`:fail to purchase;`REFUNDING`:refund ongoing;`REFUND_SUCCESS`:refund to spot account successfully; `SETTLING`:Products are settling. If don't fill this field, will response all the position status.
|
|
620
|
+
* @type {string}
|
|
621
|
+
* @memberof TradeApiGetDualInvestmentPositions
|
|
622
|
+
*/
|
|
623
|
+
readonly status?: string;
|
|
624
|
+
/**
|
|
625
|
+
* Default: 10, Maximum: 100
|
|
626
|
+
* @type {number | bigint}
|
|
627
|
+
* @memberof TradeApiGetDualInvestmentPositions
|
|
628
|
+
*/
|
|
629
|
+
readonly pageSize?: number | bigint;
|
|
630
|
+
/**
|
|
631
|
+
* Default: 1
|
|
632
|
+
* @type {number | bigint}
|
|
633
|
+
* @memberof TradeApiGetDualInvestmentPositions
|
|
634
|
+
*/
|
|
635
|
+
readonly pageIndex?: number | bigint;
|
|
636
|
+
/**
|
|
637
|
+
* The value cannot be greater than 60000
|
|
638
|
+
* @type {number | bigint}
|
|
639
|
+
* @memberof TradeApiGetDualInvestmentPositions
|
|
640
|
+
*/
|
|
641
|
+
readonly recvWindow?: number | bigint;
|
|
683
642
|
}
|
|
684
643
|
/**
|
|
685
644
|
* Request parameters for subscribeDualInvestmentProducts operation in TradeApi.
|
|
686
645
|
* @interface SubscribeDualInvestmentProductsRequest
|
|
687
646
|
*/
|
|
688
647
|
interface SubscribeDualInvestmentProductsRequest {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
648
|
+
/**
|
|
649
|
+
* get id from `/sapi/v1/dci/product/list`
|
|
650
|
+
* @type {string}
|
|
651
|
+
* @memberof TradeApiSubscribeDualInvestmentProducts
|
|
652
|
+
*/
|
|
653
|
+
readonly id: string;
|
|
654
|
+
/**
|
|
655
|
+
* get orderId from `/sapi/v1/dci/product/list`
|
|
656
|
+
* @type {string}
|
|
657
|
+
* @memberof TradeApiSubscribeDualInvestmentProducts
|
|
658
|
+
*/
|
|
659
|
+
readonly orderId: string;
|
|
660
|
+
/**
|
|
661
|
+
* the amount for subscribing
|
|
662
|
+
* @type {number}
|
|
663
|
+
* @memberof TradeApiSubscribeDualInvestmentProducts
|
|
664
|
+
*/
|
|
665
|
+
readonly depositAmount: number;
|
|
666
|
+
/**
|
|
667
|
+
* `NONE`: switch off the plan, `STANDARD`:standard plan,`ADVANCED`:advanced plan
|
|
668
|
+
* @type {string}
|
|
669
|
+
* @memberof TradeApiSubscribeDualInvestmentProducts
|
|
670
|
+
*/
|
|
671
|
+
readonly autoCompoundPlan: string;
|
|
672
|
+
/**
|
|
673
|
+
* The value cannot be greater than 60000
|
|
674
|
+
* @type {number | bigint}
|
|
675
|
+
* @memberof TradeApiSubscribeDualInvestmentProducts
|
|
676
|
+
*/
|
|
677
|
+
readonly recvWindow?: number | bigint;
|
|
719
678
|
}
|
|
720
679
|
/**
|
|
721
680
|
* TradeApi - object-oriented interface
|
|
722
681
|
* @class TradeApi
|
|
723
682
|
*/
|
|
724
683
|
declare class TradeApi implements TradeApiInterface {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
684
|
+
private readonly configuration;
|
|
685
|
+
private localVarAxiosParamCreator;
|
|
686
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
687
|
+
/**
|
|
688
|
+
* Change Auto-Compound status
|
|
689
|
+
*
|
|
690
|
+
* Weight: 1(IP)
|
|
691
|
+
*
|
|
692
|
+
* @summary Change Auto-Compound status(USER_DATA)
|
|
693
|
+
* @param {ChangeAutoCompoundStatusRequest} requestParameters Request parameters.
|
|
694
|
+
* @returns {Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>}
|
|
695
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
696
|
+
* @memberof TradeApi
|
|
697
|
+
* @see {@link https://developers.binance.com/docs/dual_investment/trade/Change-Auto-Compound-status Binance API Documentation}
|
|
698
|
+
*/
|
|
699
|
+
changeAutoCompoundStatus(requestParameters: ChangeAutoCompoundStatusRequest): Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>;
|
|
700
|
+
/**
|
|
701
|
+
* Check Dual Investment accounts
|
|
702
|
+
*
|
|
703
|
+
* Weight: 1(IP)
|
|
704
|
+
*
|
|
705
|
+
* @summary Check Dual Investment accounts(USER_DATA)
|
|
706
|
+
* @param {CheckDualInvestmentAccountsRequest} requestParameters Request parameters.
|
|
707
|
+
* @returns {Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>}
|
|
708
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
709
|
+
* @memberof TradeApi
|
|
710
|
+
* @see {@link https://developers.binance.com/docs/dual_investment/trade/Check-Dual-Investment-accounts Binance API Documentation}
|
|
711
|
+
*/
|
|
712
|
+
checkDualInvestmentAccounts(requestParameters?: CheckDualInvestmentAccountsRequest): Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>;
|
|
713
|
+
/**
|
|
714
|
+
* Get Dual Investment positions (batch)
|
|
715
|
+
*
|
|
716
|
+
* Weight: 1(IP)
|
|
717
|
+
*
|
|
718
|
+
* @summary Get Dual Investment positions(USER_DATA)
|
|
719
|
+
* @param {GetDualInvestmentPositionsRequest} requestParameters Request parameters.
|
|
720
|
+
* @returns {Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>}
|
|
721
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
722
|
+
* @memberof TradeApi
|
|
723
|
+
* @see {@link https://developers.binance.com/docs/dual_investment/trade/Get-Dual-Investment-positions Binance API Documentation}
|
|
724
|
+
*/
|
|
725
|
+
getDualInvestmentPositions(requestParameters?: GetDualInvestmentPositionsRequest): Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>;
|
|
726
|
+
/**
|
|
727
|
+
* Subscribe Dual Investment products
|
|
728
|
+
*
|
|
729
|
+
* Products are not available. // this means APR changes to lower value, or orders are not unavailable.
|
|
730
|
+
* Failed. This means System or network errors.
|
|
731
|
+
*
|
|
732
|
+
* Weight: 1(IP)
|
|
733
|
+
*
|
|
734
|
+
* @summary Subscribe Dual Investment products(USER_DATA)
|
|
735
|
+
* @param {SubscribeDualInvestmentProductsRequest} requestParameters Request parameters.
|
|
736
|
+
* @returns {Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>}
|
|
737
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
738
|
+
* @memberof TradeApi
|
|
739
|
+
* @see {@link https://developers.binance.com/docs/dual_investment/trade/Subscribe-Dual-Investment-products Binance API Documentation}
|
|
740
|
+
*/
|
|
741
|
+
subscribeDualInvestmentProducts(requestParameters: SubscribeDualInvestmentProductsRequest): Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>;
|
|
783
742
|
}
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
* Binance Dual Investment REST API
|
|
787
|
-
*
|
|
788
|
-
* OpenAPI Specification for the Binance Dual Investment REST API
|
|
789
|
-
*
|
|
790
|
-
* The version of the OpenAPI document: 1.0.0
|
|
791
|
-
*
|
|
792
|
-
*
|
|
793
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
794
|
-
* https://openapi-generator.tech
|
|
795
|
-
* Do not edit the class manually.
|
|
796
|
-
*/
|
|
797
|
-
|
|
743
|
+
//#endregion
|
|
744
|
+
//#region src/rest-api/rest-api.d.ts
|
|
798
745
|
declare class RestAPI {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
746
|
+
private configuration;
|
|
747
|
+
private marketDataApi;
|
|
748
|
+
private tradeApi;
|
|
749
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
750
|
+
/**
|
|
751
|
+
* Generic function to send a request.
|
|
752
|
+
* @param endpoint - The API endpoint to call.
|
|
753
|
+
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
754
|
+
* @param params - Query parameters for the request.
|
|
755
|
+
*
|
|
756
|
+
* @returns A promise resolving to the response data object.
|
|
757
|
+
*/
|
|
758
|
+
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
759
|
+
/**
|
|
760
|
+
* Generic function to send a signed request.
|
|
761
|
+
* @param endpoint - The API endpoint to call.
|
|
762
|
+
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
763
|
+
* @param params - Query parameters for the request.
|
|
764
|
+
*
|
|
765
|
+
* @returns A promise resolving to the response data object.
|
|
766
|
+
*/
|
|
767
|
+
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
768
|
+
/**
|
|
769
|
+
* Get Dual Investment product list
|
|
770
|
+
*
|
|
771
|
+
* Weight: 1(IP)
|
|
772
|
+
*
|
|
773
|
+
* @summary Get Dual Investment product list
|
|
774
|
+
* @param {GetDualInvestmentProductListRequest} requestParameters Request parameters.
|
|
775
|
+
*
|
|
776
|
+
* @returns {Promise<RestApiResponse<GetDualInvestmentProductListResponse>>}
|
|
777
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
778
|
+
* @see {@link https://developers.binance.com/docs/dual_investment/market-data/Get-Dual-Investment-product-list Binance API Documentation}
|
|
779
|
+
*/
|
|
780
|
+
getDualInvestmentProductList(requestParameters: GetDualInvestmentProductListRequest): Promise<RestApiResponse<GetDualInvestmentProductListResponse>>;
|
|
781
|
+
/**
|
|
782
|
+
* Change Auto-Compound status
|
|
783
|
+
*
|
|
784
|
+
* Weight: 1(IP)
|
|
785
|
+
*
|
|
786
|
+
* @summary Change Auto-Compound status(USER_DATA)
|
|
787
|
+
* @param {ChangeAutoCompoundStatusRequest} requestParameters Request parameters.
|
|
788
|
+
*
|
|
789
|
+
* @returns {Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>}
|
|
790
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
791
|
+
* @see {@link https://developers.binance.com/docs/dual_investment/trade/Change-Auto-Compound-status Binance API Documentation}
|
|
792
|
+
*/
|
|
793
|
+
changeAutoCompoundStatus(requestParameters: ChangeAutoCompoundStatusRequest): Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>;
|
|
794
|
+
/**
|
|
795
|
+
* Check Dual Investment accounts
|
|
796
|
+
*
|
|
797
|
+
* Weight: 1(IP)
|
|
798
|
+
*
|
|
799
|
+
* @summary Check Dual Investment accounts(USER_DATA)
|
|
800
|
+
* @param {CheckDualInvestmentAccountsRequest} requestParameters Request parameters.
|
|
801
|
+
*
|
|
802
|
+
* @returns {Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>}
|
|
803
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
804
|
+
* @see {@link https://developers.binance.com/docs/dual_investment/trade/Check-Dual-Investment-accounts Binance API Documentation}
|
|
805
|
+
*/
|
|
806
|
+
checkDualInvestmentAccounts(requestParameters?: CheckDualInvestmentAccountsRequest): Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>;
|
|
807
|
+
/**
|
|
808
|
+
* Get Dual Investment positions (batch)
|
|
809
|
+
*
|
|
810
|
+
* Weight: 1(IP)
|
|
811
|
+
*
|
|
812
|
+
* @summary Get Dual Investment positions(USER_DATA)
|
|
813
|
+
* @param {GetDualInvestmentPositionsRequest} requestParameters Request parameters.
|
|
814
|
+
*
|
|
815
|
+
* @returns {Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>}
|
|
816
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
817
|
+
* @see {@link https://developers.binance.com/docs/dual_investment/trade/Get-Dual-Investment-positions Binance API Documentation}
|
|
818
|
+
*/
|
|
819
|
+
getDualInvestmentPositions(requestParameters?: GetDualInvestmentPositionsRequest): Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>;
|
|
820
|
+
/**
|
|
821
|
+
* Subscribe Dual Investment products
|
|
822
|
+
*
|
|
823
|
+
* Products are not available. // this means APR changes to lower value, or orders are not unavailable.
|
|
824
|
+
* Failed. This means System or network errors.
|
|
825
|
+
*
|
|
826
|
+
* Weight: 1(IP)
|
|
827
|
+
*
|
|
828
|
+
* @summary Subscribe Dual Investment products(USER_DATA)
|
|
829
|
+
* @param {SubscribeDualInvestmentProductsRequest} requestParameters Request parameters.
|
|
830
|
+
*
|
|
831
|
+
* @returns {Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>}
|
|
832
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
833
|
+
* @see {@link https://developers.binance.com/docs/dual_investment/trade/Subscribe-Dual-Investment-products Binance API Documentation}
|
|
834
|
+
*/
|
|
835
|
+
subscribeDualInvestmentProducts(requestParameters: SubscribeDualInvestmentProductsRequest): Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>;
|
|
889
836
|
}
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
* Binance Dual Investment REST API
|
|
893
|
-
*
|
|
894
|
-
* OpenAPI Specification for the Binance Dual Investment REST API
|
|
895
|
-
*
|
|
896
|
-
* The version of the OpenAPI document: 1.0.0
|
|
897
|
-
*
|
|
898
|
-
*
|
|
899
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
900
|
-
* https://openapi-generator.tech
|
|
901
|
-
* Do not edit the class manually.
|
|
902
|
-
*/
|
|
903
|
-
|
|
904
|
-
type index_ChangeAutoCompoundStatusRequest = ChangeAutoCompoundStatusRequest;
|
|
905
|
-
type index_ChangeAutoCompoundStatusResponse = ChangeAutoCompoundStatusResponse;
|
|
906
|
-
type index_CheckDualInvestmentAccountsRequest = CheckDualInvestmentAccountsRequest;
|
|
907
|
-
type index_CheckDualInvestmentAccountsResponse = CheckDualInvestmentAccountsResponse;
|
|
908
|
-
type index_GetDualInvestmentPositionsRequest = GetDualInvestmentPositionsRequest;
|
|
909
|
-
type index_GetDualInvestmentPositionsResponse = GetDualInvestmentPositionsResponse;
|
|
910
|
-
type index_GetDualInvestmentPositionsResponseListInner = GetDualInvestmentPositionsResponseListInner;
|
|
911
|
-
type index_GetDualInvestmentProductListRequest = GetDualInvestmentProductListRequest;
|
|
912
|
-
type index_GetDualInvestmentProductListResponse = GetDualInvestmentProductListResponse;
|
|
913
|
-
type index_GetDualInvestmentProductListResponseListInner = GetDualInvestmentProductListResponseListInner;
|
|
914
|
-
type index_MarketDataApi = MarketDataApi;
|
|
915
|
-
declare const index_MarketDataApi: typeof MarketDataApi;
|
|
916
|
-
type index_MarketDataApiInterface = MarketDataApiInterface;
|
|
917
|
-
type index_RestAPI = RestAPI;
|
|
918
|
-
declare const index_RestAPI: typeof RestAPI;
|
|
919
|
-
type index_SubscribeDualInvestmentProductsRequest = SubscribeDualInvestmentProductsRequest;
|
|
920
|
-
type index_SubscribeDualInvestmentProductsResponse = SubscribeDualInvestmentProductsResponse;
|
|
921
|
-
type index_TradeApi = TradeApi;
|
|
922
|
-
declare const index_TradeApi: typeof TradeApi;
|
|
923
|
-
type index_TradeApiInterface = TradeApiInterface;
|
|
924
|
-
declare namespace index {
|
|
925
|
-
export { type index_ChangeAutoCompoundStatusRequest as ChangeAutoCompoundStatusRequest, type index_ChangeAutoCompoundStatusResponse as ChangeAutoCompoundStatusResponse, type index_CheckDualInvestmentAccountsRequest as CheckDualInvestmentAccountsRequest, type index_CheckDualInvestmentAccountsResponse as CheckDualInvestmentAccountsResponse, type index_GetDualInvestmentPositionsRequest as GetDualInvestmentPositionsRequest, type index_GetDualInvestmentPositionsResponse as GetDualInvestmentPositionsResponse, type index_GetDualInvestmentPositionsResponseListInner as GetDualInvestmentPositionsResponseListInner, type index_GetDualInvestmentProductListRequest as GetDualInvestmentProductListRequest, type index_GetDualInvestmentProductListResponse as GetDualInvestmentProductListResponse, type index_GetDualInvestmentProductListResponseListInner as GetDualInvestmentProductListResponseListInner, index_MarketDataApi as MarketDataApi, type index_MarketDataApiInterface as MarketDataApiInterface, index_RestAPI as RestAPI, type index_SubscribeDualInvestmentProductsRequest as SubscribeDualInvestmentProductsRequest, type index_SubscribeDualInvestmentProductsResponse as SubscribeDualInvestmentProductsResponse, index_TradeApi as TradeApi, type index_TradeApiInterface as TradeApiInterface };
|
|
837
|
+
declare namespace index_d_exports {
|
|
838
|
+
export { ChangeAutoCompoundStatusRequest, ChangeAutoCompoundStatusResponse, CheckDualInvestmentAccountsRequest, CheckDualInvestmentAccountsResponse, GetDualInvestmentPositionsRequest, GetDualInvestmentPositionsResponse, GetDualInvestmentPositionsResponseListInner, GetDualInvestmentProductListRequest, GetDualInvestmentProductListResponse, GetDualInvestmentProductListResponseListInner, MarketDataApi, MarketDataApiInterface, RestAPI, SubscribeDualInvestmentProductsRequest, SubscribeDualInvestmentProductsResponse, TradeApi, TradeApiInterface };
|
|
926
839
|
}
|
|
927
|
-
|
|
840
|
+
//#endregion
|
|
841
|
+
//#region src/dual-investment.d.ts
|
|
928
842
|
interface ConfigurationDualInvestment {
|
|
929
|
-
|
|
843
|
+
configurationRestAPI?: ConfigurationRestAPI;
|
|
930
844
|
}
|
|
931
845
|
declare class DualInvestment {
|
|
932
|
-
|
|
933
|
-
|
|
846
|
+
restAPI: RestAPI;
|
|
847
|
+
constructor(config: ConfigurationDualInvestment);
|
|
934
848
|
}
|
|
935
|
-
|
|
936
|
-
export {
|
|
849
|
+
//#endregion
|
|
850
|
+
export { BadRequestError, ConfigurationDualInvestment, ConnectorClientError, DUAL_INVESTMENT_REST_API_PROD_URL, DualInvestment, index_d_exports as DualInvestmentRestAPI, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
|
|
851
|
+
//# sourceMappingURL=index.d.ts.map
|