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