@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/chunk.mjs +13 -0
- package/dist/index.d.mts +678 -765
- package/dist/index.d.ts +680 -765
- package/dist/index.js +447 -535
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +367 -533
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
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
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
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
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
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
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
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
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
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
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
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
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
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
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
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
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
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
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
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
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
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
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
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
|
-
|
|
841
|
+
configurationRestAPI?: ConfigurationRestAPI;
|
|
930
842
|
}
|
|
931
843
|
declare class DualInvestment {
|
|
932
|
-
|
|
933
|
-
|
|
844
|
+
restAPI: RestAPI;
|
|
845
|
+
constructor(config: ConfigurationDualInvestment);
|
|
934
846
|
}
|
|
935
|
-
|
|
936
|
-
export {
|
|
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
|