@binance/fiat 4.0.0 → 5.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 +401 -817
- package/dist/index.d.ts +403 -818
- package/dist/index.js +286 -478
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +212 -469
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,109 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { BadRequestError, ConnectorClientError, FIAT_REST_API_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
|
|
1
|
+
import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, FIAT_REST_API_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError } from "@binance/common";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
* Binance Fiat REST API
|
|
6
|
-
*
|
|
7
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
8
|
-
*
|
|
9
|
-
* The version of the OpenAPI document: 1.0.0
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
-
* https://openapi-generator.tech
|
|
14
|
-
* Do not edit the class manually.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface DepositResponseData
|
|
20
|
-
*/
|
|
21
|
-
interface DepositResponseData {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof DepositResponseData
|
|
26
|
-
*/
|
|
27
|
-
orderId?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Binance Fiat REST API
|
|
32
|
-
*
|
|
33
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
34
|
-
*
|
|
35
|
-
* The version of the OpenAPI document: 1.0.0
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
39
|
-
* https://openapi-generator.tech
|
|
40
|
-
* Do not edit the class manually.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @export
|
|
46
|
-
* @interface DepositResponse
|
|
47
|
-
*/
|
|
48
|
-
interface DepositResponse {
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof DepositResponse
|
|
53
|
-
*/
|
|
54
|
-
code?: string;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof DepositResponse
|
|
59
|
-
*/
|
|
60
|
-
message?: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {DepositResponseData}
|
|
64
|
-
* @memberof DepositResponse
|
|
65
|
-
*/
|
|
66
|
-
data?: DepositResponseData;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Binance Fiat REST API
|
|
71
|
-
*
|
|
72
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
73
|
-
*
|
|
74
|
-
* The version of the OpenAPI document: 1.0.0
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
78
|
-
* https://openapi-generator.tech
|
|
79
|
-
* Do not edit the class manually.
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @export
|
|
85
|
-
* @interface FiatWithdrawResponse
|
|
86
|
-
*/
|
|
87
|
-
interface FiatWithdrawResponse {
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof FiatWithdrawResponse
|
|
92
|
-
*/
|
|
93
|
-
code?: string;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof FiatWithdrawResponse
|
|
98
|
-
*/
|
|
99
|
-
message?: string;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {DepositResponseData}
|
|
103
|
-
* @memberof FiatWithdrawResponse
|
|
104
|
-
*/
|
|
105
|
-
data?: DepositResponseData;
|
|
106
|
-
}
|
|
3
|
+
//#region src/rest-api/types/get-fiat-deposit-withdraw-history-response-data-inner.d.ts
|
|
107
4
|
|
|
108
5
|
/**
|
|
109
6
|
* Binance Fiat REST API
|
|
@@ -123,74 +20,63 @@ interface FiatWithdrawResponse {
|
|
|
123
20
|
* @interface GetFiatDepositWithdrawHistoryResponseDataInner
|
|
124
21
|
*/
|
|
125
22
|
interface GetFiatDepositWithdrawHistoryResponseDataInner {
|
|
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
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
27
|
+
*/
|
|
28
|
+
orderNo?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
33
|
+
*/
|
|
34
|
+
fiatCurrency?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
39
|
+
*/
|
|
40
|
+
indicatedAmount?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
45
|
+
*/
|
|
46
|
+
amount?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
51
|
+
*/
|
|
52
|
+
totalFee?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
57
|
+
*/
|
|
58
|
+
method?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
63
|
+
*/
|
|
64
|
+
status?: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number | bigint}
|
|
68
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
69
|
+
*/
|
|
70
|
+
createTime?: number | bigint;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {number | bigint}
|
|
74
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
75
|
+
*/
|
|
76
|
+
updateTime?: number | bigint;
|
|
180
77
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
* Binance Fiat REST API
|
|
184
|
-
*
|
|
185
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
186
|
-
*
|
|
187
|
-
* The version of the OpenAPI document: 1.0.0
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
191
|
-
* https://openapi-generator.tech
|
|
192
|
-
* Do not edit the class manually.
|
|
193
|
-
*/
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/rest-api/types/get-fiat-deposit-withdraw-history-response.d.ts
|
|
194
80
|
|
|
195
81
|
/**
|
|
196
82
|
*
|
|
@@ -198,38 +84,39 @@ interface GetFiatDepositWithdrawHistoryResponseDataInner {
|
|
|
198
84
|
* @interface GetFiatDepositWithdrawHistoryResponse
|
|
199
85
|
*/
|
|
200
86
|
interface GetFiatDepositWithdrawHistoryResponse {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
91
|
+
*/
|
|
92
|
+
code?: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
97
|
+
*/
|
|
98
|
+
message?: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {Array<GetFiatDepositWithdrawHistoryResponseDataInner>}
|
|
102
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
103
|
+
*/
|
|
104
|
+
data?: Array<GetFiatDepositWithdrawHistoryResponseDataInner>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {number | bigint}
|
|
108
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
109
|
+
*/
|
|
110
|
+
total?: number | bigint;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {boolean}
|
|
114
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
115
|
+
*/
|
|
116
|
+
success?: boolean;
|
|
231
117
|
}
|
|
232
|
-
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/rest-api/types/get-fiat-payments-history-response-data-inner.d.ts
|
|
233
120
|
/**
|
|
234
121
|
* Binance Fiat REST API
|
|
235
122
|
*
|
|
@@ -248,656 +135,353 @@ interface GetFiatDepositWithdrawHistoryResponse {
|
|
|
248
135
|
* @interface GetFiatPaymentsHistoryResponseDataInner
|
|
249
136
|
*/
|
|
250
137
|
interface GetFiatPaymentsHistoryResponseDataInner {
|
|
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
|
-
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
142
|
+
*/
|
|
143
|
+
orderNo?: string;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
148
|
+
*/
|
|
149
|
+
sourceAmount?: string;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
154
|
+
*/
|
|
155
|
+
fiatCurrency?: string;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
160
|
+
*/
|
|
161
|
+
obtainAmount?: string;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
166
|
+
*/
|
|
167
|
+
cryptoCurrency?: string;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
172
|
+
*/
|
|
173
|
+
totalFee?: string;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
178
|
+
*/
|
|
179
|
+
price?: string;
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
184
|
+
*/
|
|
185
|
+
status?: string;
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
190
|
+
*/
|
|
191
|
+
paymentMethod?: string;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @type {number | bigint}
|
|
195
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
196
|
+
*/
|
|
197
|
+
createTime?: number | bigint;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @type {number | bigint}
|
|
201
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
202
|
+
*/
|
|
203
|
+
updateTime?: number | bigint;
|
|
317
204
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
* Binance Fiat REST API
|
|
321
|
-
*
|
|
322
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
323
|
-
*
|
|
324
|
-
* The version of the OpenAPI document: 1.0.0
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
328
|
-
* https://openapi-generator.tech
|
|
329
|
-
* Do not edit the class manually.
|
|
330
|
-
*/
|
|
331
|
-
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/rest-api/types/get-fiat-payments-history-response.d.ts
|
|
332
207
|
/**
|
|
333
208
|
*
|
|
334
209
|
* @export
|
|
335
210
|
* @interface GetFiatPaymentsHistoryResponse
|
|
336
211
|
*/
|
|
337
212
|
interface GetFiatPaymentsHistoryResponse {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Binance Fiat REST API
|
|
372
|
-
*
|
|
373
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
374
|
-
*
|
|
375
|
-
* The version of the OpenAPI document: 1.0.0
|
|
376
|
-
*
|
|
377
|
-
*
|
|
378
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
379
|
-
* https://openapi-generator.tech
|
|
380
|
-
* Do not edit the class manually.
|
|
381
|
-
*/
|
|
382
|
-
/**
|
|
383
|
-
*
|
|
384
|
-
* @export
|
|
385
|
-
* @interface GetOrderDetailResponseData
|
|
386
|
-
*/
|
|
387
|
-
interface GetOrderDetailResponseData {
|
|
388
|
-
/**
|
|
389
|
-
*
|
|
390
|
-
* @type {string}
|
|
391
|
-
* @memberof GetOrderDetailResponseData
|
|
392
|
-
*/
|
|
393
|
-
orderId?: string;
|
|
394
|
-
/**
|
|
395
|
-
*
|
|
396
|
-
* @type {string}
|
|
397
|
-
* @memberof GetOrderDetailResponseData
|
|
398
|
-
*/
|
|
399
|
-
orderStatus?: string;
|
|
400
|
-
/**
|
|
401
|
-
*
|
|
402
|
-
* @type {string}
|
|
403
|
-
* @memberof GetOrderDetailResponseData
|
|
404
|
-
*/
|
|
405
|
-
amount?: string;
|
|
406
|
-
/**
|
|
407
|
-
*
|
|
408
|
-
* @type {string}
|
|
409
|
-
* @memberof GetOrderDetailResponseData
|
|
410
|
-
*/
|
|
411
|
-
fee?: string;
|
|
412
|
-
/**
|
|
413
|
-
*
|
|
414
|
-
* @type {string}
|
|
415
|
-
* @memberof GetOrderDetailResponseData
|
|
416
|
-
*/
|
|
417
|
-
fiatCurrency?: string;
|
|
418
|
-
/**
|
|
419
|
-
*
|
|
420
|
-
* @type {string}
|
|
421
|
-
* @memberof GetOrderDetailResponseData
|
|
422
|
-
*/
|
|
423
|
-
errorCode?: string;
|
|
424
|
-
/**
|
|
425
|
-
*
|
|
426
|
-
* @type {string}
|
|
427
|
-
* @memberof GetOrderDetailResponseData
|
|
428
|
-
*/
|
|
429
|
-
errorMessage?: string;
|
|
430
|
-
/**
|
|
431
|
-
*
|
|
432
|
-
* @type {object}
|
|
433
|
-
* @memberof GetOrderDetailResponseData
|
|
434
|
-
*/
|
|
435
|
-
ext?: object;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @type {string}
|
|
216
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
217
|
+
*/
|
|
218
|
+
code?: string;
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @type {string}
|
|
222
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
223
|
+
*/
|
|
224
|
+
message?: string;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {Array<GetFiatPaymentsHistoryResponseDataInner>}
|
|
228
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
229
|
+
*/
|
|
230
|
+
data?: Array<GetFiatPaymentsHistoryResponseDataInner>;
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
* @type {number | bigint}
|
|
234
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
235
|
+
*/
|
|
236
|
+
total?: number | bigint;
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @type {boolean}
|
|
240
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
241
|
+
*/
|
|
242
|
+
success?: boolean;
|
|
436
243
|
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
* Binance Fiat REST API
|
|
440
|
-
*
|
|
441
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
442
|
-
*
|
|
443
|
-
* The version of the OpenAPI document: 1.0.0
|
|
444
|
-
*
|
|
445
|
-
*
|
|
446
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
447
|
-
* https://openapi-generator.tech
|
|
448
|
-
* Do not edit the class manually.
|
|
449
|
-
*/
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
*
|
|
453
|
-
* @export
|
|
454
|
-
* @interface GetOrderDetailResponse
|
|
455
|
-
*/
|
|
456
|
-
interface GetOrderDetailResponse {
|
|
457
|
-
/**
|
|
458
|
-
*
|
|
459
|
-
* @type {string}
|
|
460
|
-
* @memberof GetOrderDetailResponse
|
|
461
|
-
*/
|
|
462
|
-
code?: string;
|
|
463
|
-
/**
|
|
464
|
-
*
|
|
465
|
-
* @type {string}
|
|
466
|
-
* @memberof GetOrderDetailResponse
|
|
467
|
-
*/
|
|
468
|
-
message?: string;
|
|
469
|
-
/**
|
|
470
|
-
*
|
|
471
|
-
* @type {GetOrderDetailResponseData}
|
|
472
|
-
* @memberof GetOrderDetailResponse
|
|
473
|
-
*/
|
|
474
|
-
data?: GetOrderDetailResponseData;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Binance Fiat REST API
|
|
479
|
-
*
|
|
480
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
481
|
-
*
|
|
482
|
-
* The version of the OpenAPI document: 1.0.0
|
|
483
|
-
*
|
|
484
|
-
*
|
|
485
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
486
|
-
* https://openapi-generator.tech
|
|
487
|
-
* Do not edit the class manually.
|
|
488
|
-
*/
|
|
489
|
-
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/rest-api/modules/fiat-api.d.ts
|
|
490
246
|
/**
|
|
491
247
|
* FiatApi - interface
|
|
492
248
|
* @interface FiatApi
|
|
493
249
|
*/
|
|
494
250
|
interface FiatApiInterface {
|
|
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
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
* Get Fiat Deposit/Withdraw History
|
|
529
|
-
*
|
|
530
|
-
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
531
|
-
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
532
|
-
* Cash Balance
|
|
533
|
-
* Credit Card
|
|
534
|
-
* Online Banking
|
|
535
|
-
* Bank Transfer
|
|
536
|
-
*
|
|
537
|
-
* Weight: 1
|
|
538
|
-
*
|
|
539
|
-
* @summary Get Fiat Payments History (USER_DATA)
|
|
540
|
-
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
541
|
-
*
|
|
542
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
543
|
-
* @memberof FiatApiInterface
|
|
544
|
-
*/
|
|
545
|
-
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
546
|
-
/**
|
|
547
|
-
* Get Order Detail
|
|
548
|
-
*
|
|
549
|
-
* Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
|
|
550
|
-
*
|
|
551
|
-
* Weight: 45000
|
|
552
|
-
*
|
|
553
|
-
* @summary Get Order Detail(USER_DATA)
|
|
554
|
-
* @param {GetOrderDetailRequest} requestParameters Request parameters.
|
|
555
|
-
*
|
|
556
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
557
|
-
* @memberof FiatApiInterface
|
|
558
|
-
*/
|
|
559
|
-
getOrderDetail(requestParameters: GetOrderDetailRequest): Promise<RestApiResponse<GetOrderDetailResponse>>;
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* Request parameters for fiatWithdraw operation in FiatApi.
|
|
563
|
-
* @interface FiatWithdrawRequest
|
|
564
|
-
*/
|
|
565
|
-
interface FiatWithdrawRequest {
|
|
566
|
-
/**
|
|
567
|
-
*
|
|
568
|
-
* @type {number | bigint}
|
|
569
|
-
* @memberof FiatApiFiatWithdraw
|
|
570
|
-
*/
|
|
571
|
-
readonly recvWindow?: number | bigint;
|
|
251
|
+
/**
|
|
252
|
+
* Get Fiat Deposit/Withdraw History
|
|
253
|
+
*
|
|
254
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
255
|
+
*
|
|
256
|
+
* Weight: 45000
|
|
257
|
+
*
|
|
258
|
+
* @summary Get Fiat Deposit/Withdraw History (USER_DATA)
|
|
259
|
+
* @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
|
|
260
|
+
*
|
|
261
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
262
|
+
* @memberof FiatApiInterface
|
|
263
|
+
*/
|
|
264
|
+
getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
|
|
265
|
+
/**
|
|
266
|
+
* Get Fiat Deposit/Withdraw History
|
|
267
|
+
*
|
|
268
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
269
|
+
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
270
|
+
* Cash Balance
|
|
271
|
+
* Credit Card
|
|
272
|
+
* Online Banking
|
|
273
|
+
* Bank Transfer
|
|
274
|
+
*
|
|
275
|
+
* Weight: 1
|
|
276
|
+
*
|
|
277
|
+
* @summary Get Fiat Payments History (USER_DATA)
|
|
278
|
+
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
279
|
+
*
|
|
280
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
281
|
+
* @memberof FiatApiInterface
|
|
282
|
+
*/
|
|
283
|
+
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
572
284
|
}
|
|
573
285
|
/**
|
|
574
286
|
* Request parameters for getFiatDepositWithdrawHistory operation in FiatApi.
|
|
575
287
|
* @interface GetFiatDepositWithdrawHistoryRequest
|
|
576
288
|
*/
|
|
577
289
|
interface GetFiatDepositWithdrawHistoryRequest {
|
|
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
|
-
|
|
290
|
+
/**
|
|
291
|
+
* 0-buy,1-sell
|
|
292
|
+
* @type {string}
|
|
293
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
294
|
+
*/
|
|
295
|
+
readonly transactionType: string;
|
|
296
|
+
/**
|
|
297
|
+
*
|
|
298
|
+
* @type {number | bigint}
|
|
299
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
300
|
+
*/
|
|
301
|
+
readonly beginTime?: number | bigint;
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @type {number | bigint}
|
|
305
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
306
|
+
*/
|
|
307
|
+
readonly endTime?: number | bigint;
|
|
308
|
+
/**
|
|
309
|
+
* default 1
|
|
310
|
+
* @type {number | bigint}
|
|
311
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
312
|
+
*/
|
|
313
|
+
readonly page?: number | bigint;
|
|
314
|
+
/**
|
|
315
|
+
* default 100, max 500
|
|
316
|
+
* @type {number | bigint}
|
|
317
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
318
|
+
*/
|
|
319
|
+
readonly rows?: number | bigint;
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @type {number | bigint}
|
|
323
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
324
|
+
*/
|
|
325
|
+
readonly recvWindow?: number | bigint;
|
|
614
326
|
}
|
|
615
327
|
/**
|
|
616
328
|
* Request parameters for getFiatPaymentsHistory operation in FiatApi.
|
|
617
329
|
* @interface GetFiatPaymentsHistoryRequest
|
|
618
330
|
*/
|
|
619
331
|
interface GetFiatPaymentsHistoryRequest {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
}
|
|
657
|
-
/**
|
|
658
|
-
* Request parameters for getOrderDetail operation in FiatApi.
|
|
659
|
-
* @interface GetOrderDetailRequest
|
|
660
|
-
*/
|
|
661
|
-
interface GetOrderDetailRequest {
|
|
662
|
-
/**
|
|
663
|
-
* order id retrieved from the api call of withdrawal
|
|
664
|
-
* @type {string}
|
|
665
|
-
* @memberof FiatApiGetOrderDetail
|
|
666
|
-
*/
|
|
667
|
-
readonly orderId: string;
|
|
668
|
-
/**
|
|
669
|
-
*
|
|
670
|
-
* @type {number | bigint}
|
|
671
|
-
* @memberof FiatApiGetOrderDetail
|
|
672
|
-
*/
|
|
673
|
-
readonly recvWindow?: number | bigint;
|
|
332
|
+
/**
|
|
333
|
+
* 0-buy,1-sell
|
|
334
|
+
* @type {string}
|
|
335
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
336
|
+
*/
|
|
337
|
+
readonly transactionType: string;
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @type {number | bigint}
|
|
341
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
342
|
+
*/
|
|
343
|
+
readonly beginTime?: number | bigint;
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @type {number | bigint}
|
|
347
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
348
|
+
*/
|
|
349
|
+
readonly endTime?: number | bigint;
|
|
350
|
+
/**
|
|
351
|
+
* default 1
|
|
352
|
+
* @type {number | bigint}
|
|
353
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
354
|
+
*/
|
|
355
|
+
readonly page?: number | bigint;
|
|
356
|
+
/**
|
|
357
|
+
* default 100, max 500
|
|
358
|
+
* @type {number | bigint}
|
|
359
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
360
|
+
*/
|
|
361
|
+
readonly rows?: number | bigint;
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @type {number | bigint}
|
|
365
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
366
|
+
*/
|
|
367
|
+
readonly recvWindow?: number | bigint;
|
|
674
368
|
}
|
|
675
369
|
/**
|
|
676
370
|
* FiatApi - object-oriented interface
|
|
677
371
|
* @class FiatApi
|
|
678
372
|
*/
|
|
679
373
|
declare class FiatApi implements FiatApiInterface {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
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
|
-
* Get Fiat Deposit/Withdraw History
|
|
719
|
-
*
|
|
720
|
-
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
721
|
-
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
722
|
-
* Cash Balance
|
|
723
|
-
* Credit Card
|
|
724
|
-
* Online Banking
|
|
725
|
-
* Bank Transfer
|
|
726
|
-
*
|
|
727
|
-
* Weight: 1
|
|
728
|
-
*
|
|
729
|
-
* @summary Get Fiat Payments History (USER_DATA)
|
|
730
|
-
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
731
|
-
* @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
|
|
732
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
733
|
-
* @memberof FiatApi
|
|
734
|
-
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
|
|
735
|
-
*/
|
|
736
|
-
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
737
|
-
/**
|
|
738
|
-
* Get Order Detail
|
|
739
|
-
*
|
|
740
|
-
* Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
|
|
741
|
-
*
|
|
742
|
-
* Weight: 45000
|
|
743
|
-
*
|
|
744
|
-
* @summary Get Order Detail(USER_DATA)
|
|
745
|
-
* @param {GetOrderDetailRequest} requestParameters Request parameters.
|
|
746
|
-
* @returns {Promise<RestApiResponse<GetOrderDetailResponse>>}
|
|
747
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
748
|
-
* @memberof FiatApi
|
|
749
|
-
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Order-Detail Binance API Documentation}
|
|
750
|
-
*/
|
|
751
|
-
getOrderDetail(requestParameters: GetOrderDetailRequest): Promise<RestApiResponse<GetOrderDetailResponse>>;
|
|
374
|
+
private readonly configuration;
|
|
375
|
+
private localVarAxiosParamCreator;
|
|
376
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
377
|
+
/**
|
|
378
|
+
* Get Fiat Deposit/Withdraw History
|
|
379
|
+
*
|
|
380
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
381
|
+
*
|
|
382
|
+
* Weight: 45000
|
|
383
|
+
*
|
|
384
|
+
* @summary Get Fiat Deposit/Withdraw History (USER_DATA)
|
|
385
|
+
* @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
|
|
386
|
+
* @returns {Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>}
|
|
387
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
388
|
+
* @memberof FiatApi
|
|
389
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History Binance API Documentation}
|
|
390
|
+
*/
|
|
391
|
+
getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
|
|
392
|
+
/**
|
|
393
|
+
* Get Fiat Deposit/Withdraw History
|
|
394
|
+
*
|
|
395
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
396
|
+
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
397
|
+
* Cash Balance
|
|
398
|
+
* Credit Card
|
|
399
|
+
* Online Banking
|
|
400
|
+
* Bank Transfer
|
|
401
|
+
*
|
|
402
|
+
* Weight: 1
|
|
403
|
+
*
|
|
404
|
+
* @summary Get Fiat Payments History (USER_DATA)
|
|
405
|
+
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
406
|
+
* @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
|
|
407
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
408
|
+
* @memberof FiatApi
|
|
409
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
|
|
410
|
+
*/
|
|
411
|
+
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
752
412
|
}
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
* Binance Fiat REST API
|
|
756
|
-
*
|
|
757
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
758
|
-
*
|
|
759
|
-
* The version of the OpenAPI document: 1.0.0
|
|
760
|
-
*
|
|
761
|
-
*
|
|
762
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
763
|
-
* https://openapi-generator.tech
|
|
764
|
-
* Do not edit the class manually.
|
|
765
|
-
*/
|
|
766
|
-
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region src/rest-api/rest-api.d.ts
|
|
767
415
|
declare class RestAPI {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
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
|
-
* Get Fiat Deposit/Withdraw History
|
|
825
|
-
*
|
|
826
|
-
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
827
|
-
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
828
|
-
* Cash Balance
|
|
829
|
-
* Credit Card
|
|
830
|
-
* Online Banking
|
|
831
|
-
* Bank Transfer
|
|
832
|
-
*
|
|
833
|
-
* Weight: 1
|
|
834
|
-
*
|
|
835
|
-
* @summary Get Fiat Payments History (USER_DATA)
|
|
836
|
-
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
837
|
-
*
|
|
838
|
-
* @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
|
|
839
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
840
|
-
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
|
|
841
|
-
*/
|
|
842
|
-
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
843
|
-
/**
|
|
844
|
-
* Get Order Detail
|
|
845
|
-
*
|
|
846
|
-
* Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
|
|
847
|
-
*
|
|
848
|
-
* Weight: 45000
|
|
849
|
-
*
|
|
850
|
-
* @summary Get Order Detail(USER_DATA)
|
|
851
|
-
* @param {GetOrderDetailRequest} requestParameters Request parameters.
|
|
852
|
-
*
|
|
853
|
-
* @returns {Promise<RestApiResponse<GetOrderDetailResponse>>}
|
|
854
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
855
|
-
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Order-Detail Binance API Documentation}
|
|
856
|
-
*/
|
|
857
|
-
getOrderDetail(requestParameters: GetOrderDetailRequest): Promise<RestApiResponse<GetOrderDetailResponse>>;
|
|
416
|
+
private configuration;
|
|
417
|
+
private fiatApi;
|
|
418
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
419
|
+
/**
|
|
420
|
+
* Generic function to send a request.
|
|
421
|
+
* @param endpoint - The API endpoint to call.
|
|
422
|
+
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
423
|
+
* @param params - Query parameters for the request.
|
|
424
|
+
*
|
|
425
|
+
* @returns A promise resolving to the response data object.
|
|
426
|
+
*/
|
|
427
|
+
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
428
|
+
/**
|
|
429
|
+
* Generic function to send a signed request.
|
|
430
|
+
* @param endpoint - The API endpoint to call.
|
|
431
|
+
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
432
|
+
* @param params - Query parameters for the request.
|
|
433
|
+
*
|
|
434
|
+
* @returns A promise resolving to the response data object.
|
|
435
|
+
*/
|
|
436
|
+
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
437
|
+
/**
|
|
438
|
+
* Get Fiat Deposit/Withdraw History
|
|
439
|
+
*
|
|
440
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
441
|
+
*
|
|
442
|
+
* Weight: 45000
|
|
443
|
+
*
|
|
444
|
+
* @summary Get Fiat Deposit/Withdraw History (USER_DATA)
|
|
445
|
+
* @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
|
|
446
|
+
*
|
|
447
|
+
* @returns {Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>}
|
|
448
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
449
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History Binance API Documentation}
|
|
450
|
+
*/
|
|
451
|
+
getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
|
|
452
|
+
/**
|
|
453
|
+
* Get Fiat Deposit/Withdraw History
|
|
454
|
+
*
|
|
455
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
456
|
+
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
457
|
+
* Cash Balance
|
|
458
|
+
* Credit Card
|
|
459
|
+
* Online Banking
|
|
460
|
+
* Bank Transfer
|
|
461
|
+
*
|
|
462
|
+
* Weight: 1
|
|
463
|
+
*
|
|
464
|
+
* @summary Get Fiat Payments History (USER_DATA)
|
|
465
|
+
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
466
|
+
*
|
|
467
|
+
* @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
|
|
468
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
469
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
|
|
470
|
+
*/
|
|
471
|
+
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
858
472
|
}
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
* Binance Fiat REST API
|
|
862
|
-
*
|
|
863
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
864
|
-
*
|
|
865
|
-
* The version of the OpenAPI document: 1.0.0
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
869
|
-
* https://openapi-generator.tech
|
|
870
|
-
* Do not edit the class manually.
|
|
871
|
-
*/
|
|
872
|
-
|
|
873
|
-
type index_DepositResponse = DepositResponse;
|
|
874
|
-
type index_DepositResponseData = DepositResponseData;
|
|
875
|
-
type index_FiatApi = FiatApi;
|
|
876
|
-
declare const index_FiatApi: typeof FiatApi;
|
|
877
|
-
type index_FiatApiInterface = FiatApiInterface;
|
|
878
|
-
type index_FiatWithdrawRequest = FiatWithdrawRequest;
|
|
879
|
-
type index_FiatWithdrawResponse = FiatWithdrawResponse;
|
|
880
|
-
type index_GetFiatDepositWithdrawHistoryRequest = GetFiatDepositWithdrawHistoryRequest;
|
|
881
|
-
type index_GetFiatDepositWithdrawHistoryResponse = GetFiatDepositWithdrawHistoryResponse;
|
|
882
|
-
type index_GetFiatDepositWithdrawHistoryResponseDataInner = GetFiatDepositWithdrawHistoryResponseDataInner;
|
|
883
|
-
type index_GetFiatPaymentsHistoryRequest = GetFiatPaymentsHistoryRequest;
|
|
884
|
-
type index_GetFiatPaymentsHistoryResponse = GetFiatPaymentsHistoryResponse;
|
|
885
|
-
type index_GetFiatPaymentsHistoryResponseDataInner = GetFiatPaymentsHistoryResponseDataInner;
|
|
886
|
-
type index_GetOrderDetailRequest = GetOrderDetailRequest;
|
|
887
|
-
type index_GetOrderDetailResponse = GetOrderDetailResponse;
|
|
888
|
-
type index_GetOrderDetailResponseData = GetOrderDetailResponseData;
|
|
889
|
-
type index_RestAPI = RestAPI;
|
|
890
|
-
declare const index_RestAPI: typeof RestAPI;
|
|
891
|
-
declare namespace index {
|
|
892
|
-
export { type index_DepositResponse as DepositResponse, type index_DepositResponseData as DepositResponseData, index_FiatApi as FiatApi, type index_FiatApiInterface as FiatApiInterface, type index_FiatWithdrawRequest as FiatWithdrawRequest, type index_FiatWithdrawResponse as FiatWithdrawResponse, type index_GetFiatDepositWithdrawHistoryRequest as GetFiatDepositWithdrawHistoryRequest, type index_GetFiatDepositWithdrawHistoryResponse as GetFiatDepositWithdrawHistoryResponse, type index_GetFiatDepositWithdrawHistoryResponseDataInner as GetFiatDepositWithdrawHistoryResponseDataInner, type index_GetFiatPaymentsHistoryRequest as GetFiatPaymentsHistoryRequest, type index_GetFiatPaymentsHistoryResponse as GetFiatPaymentsHistoryResponse, type index_GetFiatPaymentsHistoryResponseDataInner as GetFiatPaymentsHistoryResponseDataInner, type index_GetOrderDetailRequest as GetOrderDetailRequest, type index_GetOrderDetailResponse as GetOrderDetailResponse, type index_GetOrderDetailResponseData as GetOrderDetailResponseData, index_RestAPI as RestAPI };
|
|
473
|
+
declare namespace index_d_exports {
|
|
474
|
+
export { FiatApi, FiatApiInterface, GetFiatDepositWithdrawHistoryRequest, GetFiatDepositWithdrawHistoryResponse, GetFiatDepositWithdrawHistoryResponseDataInner, GetFiatPaymentsHistoryRequest, GetFiatPaymentsHistoryResponse, GetFiatPaymentsHistoryResponseDataInner, RestAPI };
|
|
893
475
|
}
|
|
894
|
-
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region src/fiat.d.ts
|
|
895
478
|
interface ConfigurationFiat {
|
|
896
|
-
|
|
479
|
+
configurationRestAPI?: ConfigurationRestAPI;
|
|
897
480
|
}
|
|
898
481
|
declare class Fiat {
|
|
899
|
-
|
|
900
|
-
|
|
482
|
+
restAPI: RestAPI;
|
|
483
|
+
constructor(config: ConfigurationFiat);
|
|
901
484
|
}
|
|
902
|
-
|
|
903
|
-
export { type ConfigurationFiat, Fiat,
|
|
485
|
+
//#endregion
|
|
486
|
+
export { BadRequestError, type ConfigurationFiat, ConnectorClientError, FIAT_REST_API_PROD_URL, Fiat, index_d_exports as FiatRestAPI, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
|
|
487
|
+
//# sourceMappingURL=index.d.mts.map
|