@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/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
- import { RestApiResponse, ConfigurationRestAPI } from '@binance/common';
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
- * @type {string}
25
- * @memberof ChangeAutoCompoundStatusResponse
26
- */
27
- positionId?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof ChangeAutoCompoundStatusResponse
32
- */
33
- autoCompoundPlan?: string;
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
- * @type {string}
57
- * @memberof CheckDualInvestmentAccountsResponse
58
- */
59
- totalAmountInBTC?: string;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof CheckDualInvestmentAccountsResponse
64
- */
65
- totalAmountInUSDT?: string;
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
- * @type {string}
89
- * @memberof GetDualInvestmentPositionsResponseListInner
90
- */
91
- id?: string;
92
- /**
93
- *
94
- * @type {string}
95
- * @memberof GetDualInvestmentPositionsResponseListInner
96
- */
97
- investCoin?: string;
98
- /**
99
- *
100
- * @type {string}
101
- * @memberof GetDualInvestmentPositionsResponseListInner
102
- */
103
- exercisedCoin?: string;
104
- /**
105
- *
106
- * @type {string}
107
- * @memberof GetDualInvestmentPositionsResponseListInner
108
- */
109
- subscriptionAmount?: string;
110
- /**
111
- *
112
- * @type {string}
113
- * @memberof GetDualInvestmentPositionsResponseListInner
114
- */
115
- strikePrice?: string;
116
- /**
117
- *
118
- * @type {number | bigint}
119
- * @memberof GetDualInvestmentPositionsResponseListInner
120
- */
121
- duration?: number | bigint;
122
- /**
123
- *
124
- * @type {number | bigint}
125
- * @memberof GetDualInvestmentPositionsResponseListInner
126
- */
127
- settleDate?: number | bigint;
128
- /**
129
- *
130
- * @type {string}
131
- * @memberof GetDualInvestmentPositionsResponseListInner
132
- */
133
- purchaseStatus?: string;
134
- /**
135
- *
136
- * @type {string}
137
- * @memberof GetDualInvestmentPositionsResponseListInner
138
- */
139
- apr?: string;
140
- /**
141
- *
142
- * @type {number | bigint}
143
- * @memberof GetDualInvestmentPositionsResponseListInner
144
- */
145
- orderId?: number | bigint;
146
- /**
147
- *
148
- * @type {number | bigint}
149
- * @memberof GetDualInvestmentPositionsResponseListInner
150
- */
151
- purchaseEndTime?: number | bigint;
152
- /**
153
- *
154
- * @type {string}
155
- * @memberof GetDualInvestmentPositionsResponseListInner
156
- */
157
- optionType?: string;
158
- /**
159
- *
160
- * @type {string}
161
- * @memberof GetDualInvestmentPositionsResponseListInner
162
- */
163
- autoCompoundPlan?: string;
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
- * @type {number | bigint}
188
- * @memberof GetDualInvestmentPositionsResponse
189
- */
190
- total?: number | bigint;
191
- /**
192
- *
193
- * @type {Array<GetDualInvestmentPositionsResponseListInner>}
194
- * @memberof GetDualInvestmentPositionsResponse
195
- */
196
- list?: Array<GetDualInvestmentPositionsResponseListInner>;
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
- * @type {string}
220
- * @memberof GetDualInvestmentProductListResponseListInner
221
- */
222
- id?: string;
223
- /**
224
- *
225
- * @type {string}
226
- * @memberof GetDualInvestmentProductListResponseListInner
227
- */
228
- investCoin?: string;
229
- /**
230
- *
231
- * @type {string}
232
- * @memberof GetDualInvestmentProductListResponseListInner
233
- */
234
- exercisedCoin?: string;
235
- /**
236
- *
237
- * @type {string}
238
- * @memberof GetDualInvestmentProductListResponseListInner
239
- */
240
- strikePrice?: string;
241
- /**
242
- *
243
- * @type {number | bigint}
244
- * @memberof GetDualInvestmentProductListResponseListInner
245
- */
246
- duration?: number | bigint;
247
- /**
248
- *
249
- * @type {number | bigint}
250
- * @memberof GetDualInvestmentProductListResponseListInner
251
- */
252
- settleDate?: number | bigint;
253
- /**
254
- *
255
- * @type {number | bigint}
256
- * @memberof GetDualInvestmentProductListResponseListInner
257
- */
258
- purchaseDecimal?: number | bigint;
259
- /**
260
- *
261
- * @type {number | bigint}
262
- * @memberof GetDualInvestmentProductListResponseListInner
263
- */
264
- purchaseEndTime?: number | bigint;
265
- /**
266
- *
267
- * @type {boolean}
268
- * @memberof GetDualInvestmentProductListResponseListInner
269
- */
270
- canPurchase?: boolean;
271
- /**
272
- *
273
- * @type {string}
274
- * @memberof GetDualInvestmentProductListResponseListInner
275
- */
276
- apr?: string;
277
- /**
278
- *
279
- * @type {number | bigint}
280
- * @memberof GetDualInvestmentProductListResponseListInner
281
- */
282
- orderId?: number | bigint;
283
- /**
284
- *
285
- * @type {string}
286
- * @memberof GetDualInvestmentProductListResponseListInner
287
- */
288
- minAmount?: string;
289
- /**
290
- *
291
- * @type {string}
292
- * @memberof GetDualInvestmentProductListResponseListInner
293
- */
294
- maxAmount?: string;
295
- /**
296
- *
297
- * @type {number | bigint}
298
- * @memberof GetDualInvestmentProductListResponseListInner
299
- */
300
- createTimestamp?: number | bigint;
301
- /**
302
- *
303
- * @type {string}
304
- * @memberof GetDualInvestmentProductListResponseListInner
305
- */
306
- optionType?: string;
307
- /**
308
- *
309
- * @type {boolean}
310
- * @memberof GetDualInvestmentProductListResponseListInner
311
- */
312
- isAutoCompoundEnable?: boolean;
313
- /**
314
- *
315
- * @type {Array<string>}
316
- * @memberof GetDualInvestmentProductListResponseListInner
317
- */
318
- autoCompoundPlanList?: Array<string>;
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
- * @type {number | bigint}
343
- * @memberof GetDualInvestmentProductListResponse
344
- */
345
- total?: number | bigint;
346
- /**
347
- *
348
- * @type {Array<GetDualInvestmentProductListResponseListInner>}
349
- * @memberof GetDualInvestmentProductListResponse
350
- */
351
- list?: Array<GetDualInvestmentProductListResponseListInner>;
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
- * @type {number | bigint}
375
- * @memberof SubscribeDualInvestmentProductsResponse
376
- */
377
- positionId?: number | bigint;
378
- /**
379
- *
380
- * @type {string}
381
- * @memberof SubscribeDualInvestmentProductsResponse
382
- */
383
- investCoin?: string;
384
- /**
385
- *
386
- * @type {string}
387
- * @memberof SubscribeDualInvestmentProductsResponse
388
- */
389
- exercisedCoin?: string;
390
- /**
391
- *
392
- * @type {string}
393
- * @memberof SubscribeDualInvestmentProductsResponse
394
- */
395
- subscriptionAmount?: string;
396
- /**
397
- *
398
- * @type {number | bigint}
399
- * @memberof SubscribeDualInvestmentProductsResponse
400
- */
401
- duration?: number | bigint;
402
- /**
403
- *
404
- * @type {string}
405
- * @memberof SubscribeDualInvestmentProductsResponse
406
- */
407
- autoCompoundPlan?: string;
408
- /**
409
- *
410
- * @type {string}
411
- * @memberof SubscribeDualInvestmentProductsResponse
412
- */
413
- strikePrice?: string;
414
- /**
415
- *
416
- * @type {number | bigint}
417
- * @memberof SubscribeDualInvestmentProductsResponse
418
- */
419
- settleDate?: number | bigint;
420
- /**
421
- *
422
- * @type {string}
423
- * @memberof SubscribeDualInvestmentProductsResponse
424
- */
425
- purchaseStatus?: string;
426
- /**
427
- *
428
- * @type {string}
429
- * @memberof SubscribeDualInvestmentProductsResponse
430
- */
431
- apr?: string;
432
- /**
433
- *
434
- * @type {number | bigint}
435
- * @memberof SubscribeDualInvestmentProductsResponse
436
- */
437
- orderId?: number | bigint;
438
- /**
439
- *
440
- * @type {number | bigint}
441
- * @memberof SubscribeDualInvestmentProductsResponse
442
- */
443
- purchaseTime?: number | bigint;
444
- /**
445
- *
446
- * @type {string}
447
- * @memberof SubscribeDualInvestmentProductsResponse
448
- */
449
- optionType?: string;
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
- * Get Dual Investment product list
472
- *
473
- * Weight: 1(IP)
474
- *
475
- * @summary Get Dual Investment product list
476
- * @param {GetDualInvestmentProductListRequest} requestParameters Request parameters.
477
- *
478
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
479
- * @memberof MarketDataApiInterface
480
- */
481
- getDualInvestmentProductList(requestParameters: GetDualInvestmentProductListRequest): Promise<RestApiResponse<GetDualInvestmentProductListResponse>>;
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
- * Input CALL or PUT
490
- * @type {string}
491
- * @memberof MarketDataApiGetDualInvestmentProductList
492
- */
493
- readonly optionType: string;
494
- /**
495
- * 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
496
- * @type {string}
497
- * @memberof MarketDataApiGetDualInvestmentProductList
498
- */
499
- readonly exercisedCoin: string;
500
- /**
501
- * 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
502
- * @type {string}
503
- * @memberof MarketDataApiGetDualInvestmentProductList
504
- */
505
- readonly investCoin: string;
506
- /**
507
- * Default: 10, Maximum: 100
508
- * @type {number}
509
- * @memberof MarketDataApiGetDualInvestmentProductList
510
- */
511
- readonly pageSize?: number;
512
- /**
513
- * Default: 1
514
- * @type {number}
515
- * @memberof MarketDataApiGetDualInvestmentProductList
516
- */
517
- readonly pageIndex?: number;
518
- /**
519
- * The value cannot be greater than 60000
520
- * @type {number}
521
- * @memberof MarketDataApiGetDualInvestmentProductList
522
- */
523
- readonly recvWindow?: number;
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
- private readonly configuration;
531
- private localVarAxiosParamCreator;
532
- constructor(configuration: ConfigurationRestAPI);
533
- /**
534
- * Get Dual Investment product list
535
- *
536
- * Weight: 1(IP)
537
- *
538
- * @summary Get Dual Investment product list
539
- * @param {GetDualInvestmentProductListRequest} requestParameters Request parameters.
540
- * @returns {Promise<RestApiResponse<GetDualInvestmentProductListResponse>>}
541
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
542
- * @memberof MarketDataApi
543
- * @see {@link https://developers.binance.com/docs/dual_investment/market-data/Get-Dual-Investment-product-list Binance API Documentation}
544
- */
545
- getDualInvestmentProductList(requestParameters: GetDualInvestmentProductListRequest): Promise<RestApiResponse<GetDualInvestmentProductListResponse>>;
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
- * Change Auto-Compound status
568
- *
569
- * Weight: 1(IP)
570
- *
571
- * @summary Change Auto-Compound status(USER_DATA)
572
- * @param {ChangeAutoCompoundStatusRequest} requestParameters Request parameters.
573
- *
574
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
575
- * @memberof TradeApiInterface
576
- */
577
- changeAutoCompoundStatus(requestParameters: ChangeAutoCompoundStatusRequest): Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>;
578
- /**
579
- * Check Dual Investment accounts
580
- *
581
- * Weight: 1(IP)
582
- *
583
- * @summary Check Dual Investment accounts(USER_DATA)
584
- * @param {CheckDualInvestmentAccountsRequest} requestParameters Request parameters.
585
- *
586
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
587
- * @memberof TradeApiInterface
588
- */
589
- checkDualInvestmentAccounts(requestParameters?: CheckDualInvestmentAccountsRequest): Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>;
590
- /**
591
- * Get Dual Investment positions (batch)
592
- *
593
- * Weight: 1(IP)
594
- *
595
- * @summary Get Dual Investment positions(USER_DATA)
596
- * @param {GetDualInvestmentPositionsRequest} requestParameters Request parameters.
597
- *
598
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
599
- * @memberof TradeApiInterface
600
- */
601
- getDualInvestmentPositions(requestParameters?: GetDualInvestmentPositionsRequest): Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>;
602
- /**
603
- * Subscribe Dual Investment products
604
- *
605
- * Products are not available. // this means APR changes to lower value, or orders are not unavailable.
606
- * Failed. This means System or network errors.
607
- *
608
- * Weight: 1(IP)
609
- *
610
- * @summary Subscribe Dual Investment products(USER_DATA)
611
- * @param {SubscribeDualInvestmentProductsRequest} requestParameters Request parameters.
612
- *
613
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
614
- * @memberof TradeApiInterface
615
- */
616
- subscribeDualInvestmentProducts(requestParameters: SubscribeDualInvestmentProductsRequest): Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>;
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
- * Get positionId from `/sapi/v1/dci/product/positions`
625
- * @type {string}
626
- * @memberof TradeApiChangeAutoCompoundStatus
627
- */
628
- readonly positionId: string;
629
- /**
630
- *
631
- * @type {string}
632
- * @memberof TradeApiChangeAutoCompoundStatus
633
- */
634
- readonly autoCompoundPlan?: string;
635
- /**
636
- * The value cannot be greater than 60000
637
- * @type {number}
638
- * @memberof TradeApiChangeAutoCompoundStatus
639
- */
640
- readonly recvWindow?: number;
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
- * The value cannot be greater than 60000
649
- * @type {number}
650
- * @memberof TradeApiCheckDualInvestmentAccounts
651
- */
652
- readonly recvWindow?: number;
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
- * `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.
661
- * @type {string}
662
- * @memberof TradeApiGetDualInvestmentPositions
663
- */
664
- readonly status?: string;
665
- /**
666
- * Default: 10, Maximum: 100
667
- * @type {number}
668
- * @memberof TradeApiGetDualInvestmentPositions
669
- */
670
- readonly pageSize?: number;
671
- /**
672
- * Default: 1
673
- * @type {number}
674
- * @memberof TradeApiGetDualInvestmentPositions
675
- */
676
- readonly pageIndex?: number;
677
- /**
678
- * The value cannot be greater than 60000
679
- * @type {number}
680
- * @memberof TradeApiGetDualInvestmentPositions
681
- */
682
- readonly recvWindow?: number;
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
- * get id from `/sapi/v1/dci/product/list`
691
- * @type {string}
692
- * @memberof TradeApiSubscribeDualInvestmentProducts
693
- */
694
- readonly id: string;
695
- /**
696
- * get orderId from `/sapi/v1/dci/product/list`
697
- * @type {string}
698
- * @memberof TradeApiSubscribeDualInvestmentProducts
699
- */
700
- readonly orderId: string;
701
- /**
702
- * the amount for subscribing
703
- * @type {number}
704
- * @memberof TradeApiSubscribeDualInvestmentProducts
705
- */
706
- readonly depositAmount: number;
707
- /**
708
- * `NONE`: switch off the plan, `STANDARD`:standard plan,`ADVANCED`:advanced plan
709
- * @type {string}
710
- * @memberof TradeApiSubscribeDualInvestmentProducts
711
- */
712
- readonly autoCompoundPlan: string;
713
- /**
714
- * The value cannot be greater than 60000
715
- * @type {number}
716
- * @memberof TradeApiSubscribeDualInvestmentProducts
717
- */
718
- readonly recvWindow?: number;
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
- private readonly configuration;
726
- private localVarAxiosParamCreator;
727
- constructor(configuration: ConfigurationRestAPI);
728
- /**
729
- * Change Auto-Compound status
730
- *
731
- * Weight: 1(IP)
732
- *
733
- * @summary Change Auto-Compound status(USER_DATA)
734
- * @param {ChangeAutoCompoundStatusRequest} requestParameters Request parameters.
735
- * @returns {Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>}
736
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
737
- * @memberof TradeApi
738
- * @see {@link https://developers.binance.com/docs/dual_investment/trade/Change-Auto-Compound-status Binance API Documentation}
739
- */
740
- changeAutoCompoundStatus(requestParameters: ChangeAutoCompoundStatusRequest): Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>;
741
- /**
742
- * Check Dual Investment accounts
743
- *
744
- * Weight: 1(IP)
745
- *
746
- * @summary Check Dual Investment accounts(USER_DATA)
747
- * @param {CheckDualInvestmentAccountsRequest} requestParameters Request parameters.
748
- * @returns {Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>}
749
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
750
- * @memberof TradeApi
751
- * @see {@link https://developers.binance.com/docs/dual_investment/trade/Check-Dual-Investment-accounts Binance API Documentation}
752
- */
753
- checkDualInvestmentAccounts(requestParameters?: CheckDualInvestmentAccountsRequest): Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>;
754
- /**
755
- * Get Dual Investment positions (batch)
756
- *
757
- * Weight: 1(IP)
758
- *
759
- * @summary Get Dual Investment positions(USER_DATA)
760
- * @param {GetDualInvestmentPositionsRequest} requestParameters Request parameters.
761
- * @returns {Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>}
762
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
763
- * @memberof TradeApi
764
- * @see {@link https://developers.binance.com/docs/dual_investment/trade/Get-Dual-Investment-positions Binance API Documentation}
765
- */
766
- getDualInvestmentPositions(requestParameters?: GetDualInvestmentPositionsRequest): Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>;
767
- /**
768
- * Subscribe Dual Investment products
769
- *
770
- * Products are not available. // this means APR changes to lower value, or orders are not unavailable.
771
- * Failed. This means System or network errors.
772
- *
773
- * Weight: 1(IP)
774
- *
775
- * @summary Subscribe Dual Investment products(USER_DATA)
776
- * @param {SubscribeDualInvestmentProductsRequest} requestParameters Request parameters.
777
- * @returns {Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>}
778
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
779
- * @memberof TradeApi
780
- * @see {@link https://developers.binance.com/docs/dual_investment/trade/Subscribe-Dual-Investment-products Binance API Documentation}
781
- */
782
- subscribeDualInvestmentProducts(requestParameters: SubscribeDualInvestmentProductsRequest): Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>;
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
- private configuration;
800
- private marketDataApi;
801
- private tradeApi;
802
- constructor(configuration: ConfigurationRestAPI);
803
- /**
804
- * Generic function to send a request.
805
- * @param endpoint - The API endpoint to call.
806
- * @param method - HTTP method to use (GET, POST, DELETE, etc.).
807
- * @param params - Query parameters for the request.
808
- *
809
- * @returns A promise resolving to the response data object.
810
- */
811
- sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
812
- /**
813
- * Generic function to send a signed request.
814
- * @param endpoint - The API endpoint to call.
815
- * @param method - HTTP method to use (GET, POST, DELETE, etc.).
816
- * @param params - Query parameters for the request.
817
- *
818
- * @returns A promise resolving to the response data object.
819
- */
820
- sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
821
- /**
822
- * Get Dual Investment product list
823
- *
824
- * Weight: 1(IP)
825
- *
826
- * @summary Get Dual Investment product list
827
- * @param {GetDualInvestmentProductListRequest} requestParameters Request parameters.
828
- *
829
- * @returns {Promise<RestApiResponse<GetDualInvestmentProductListResponse>>}
830
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
831
- * @see {@link https://developers.binance.com/docs/dual_investment/market-data/Get-Dual-Investment-product-list Binance API Documentation}
832
- */
833
- getDualInvestmentProductList(requestParameters: GetDualInvestmentProductListRequest): Promise<RestApiResponse<GetDualInvestmentProductListResponse>>;
834
- /**
835
- * Change Auto-Compound status
836
- *
837
- * Weight: 1(IP)
838
- *
839
- * @summary Change Auto-Compound status(USER_DATA)
840
- * @param {ChangeAutoCompoundStatusRequest} requestParameters Request parameters.
841
- *
842
- * @returns {Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>}
843
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
844
- * @see {@link https://developers.binance.com/docs/dual_investment/trade/Change-Auto-Compound-status Binance API Documentation}
845
- */
846
- changeAutoCompoundStatus(requestParameters: ChangeAutoCompoundStatusRequest): Promise<RestApiResponse<ChangeAutoCompoundStatusResponse>>;
847
- /**
848
- * Check Dual Investment accounts
849
- *
850
- * Weight: 1(IP)
851
- *
852
- * @summary Check Dual Investment accounts(USER_DATA)
853
- * @param {CheckDualInvestmentAccountsRequest} requestParameters Request parameters.
854
- *
855
- * @returns {Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>}
856
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
857
- * @see {@link https://developers.binance.com/docs/dual_investment/trade/Check-Dual-Investment-accounts Binance API Documentation}
858
- */
859
- checkDualInvestmentAccounts(requestParameters?: CheckDualInvestmentAccountsRequest): Promise<RestApiResponse<CheckDualInvestmentAccountsResponse>>;
860
- /**
861
- * Get Dual Investment positions (batch)
862
- *
863
- * Weight: 1(IP)
864
- *
865
- * @summary Get Dual Investment positions(USER_DATA)
866
- * @param {GetDualInvestmentPositionsRequest} requestParameters Request parameters.
867
- *
868
- * @returns {Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>}
869
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
870
- * @see {@link https://developers.binance.com/docs/dual_investment/trade/Get-Dual-Investment-positions Binance API Documentation}
871
- */
872
- getDualInvestmentPositions(requestParameters?: GetDualInvestmentPositionsRequest): Promise<RestApiResponse<GetDualInvestmentPositionsResponse>>;
873
- /**
874
- * Subscribe Dual Investment products
875
- *
876
- * Products are not available. // this means APR changes to lower value, or orders are not unavailable.
877
- * Failed. This means System or network errors.
878
- *
879
- * Weight: 1(IP)
880
- *
881
- * @summary Subscribe Dual Investment products(USER_DATA)
882
- * @param {SubscribeDualInvestmentProductsRequest} requestParameters Request parameters.
883
- *
884
- * @returns {Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>}
885
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
886
- * @see {@link https://developers.binance.com/docs/dual_investment/trade/Subscribe-Dual-Investment-products Binance API Documentation}
887
- */
888
- subscribeDualInvestmentProducts(requestParameters: SubscribeDualInvestmentProductsRequest): Promise<RestApiResponse<SubscribeDualInvestmentProductsResponse>>;
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
- configurationRestAPI?: ConfigurationRestAPI;
843
+ configurationRestAPI?: ConfigurationRestAPI;
930
844
  }
931
845
  declare class DualInvestment {
932
- restAPI: RestAPI;
933
- constructor(config: ConfigurationDualInvestment);
846
+ restAPI: RestAPI;
847
+ constructor(config: ConfigurationDualInvestment);
934
848
  }
935
-
936
- export { type ConfigurationDualInvestment, DualInvestment, index as DualInvestmentRestAPI };
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