@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.ts
CHANGED
|
@@ -1,110 +1,9 @@
|
|
|
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 rolldown:runtime
|
|
107
4
|
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/rest-api/types/get-fiat-deposit-withdraw-history-response-data-inner.d.ts
|
|
108
7
|
/**
|
|
109
8
|
* Binance Fiat REST API
|
|
110
9
|
*
|
|
@@ -123,113 +22,102 @@ interface FiatWithdrawResponse {
|
|
|
123
22
|
* @interface GetFiatDepositWithdrawHistoryResponseDataInner
|
|
124
23
|
*/
|
|
125
24
|
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
|
-
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
29
|
+
*/
|
|
30
|
+
orderNo?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
35
|
+
*/
|
|
36
|
+
fiatCurrency?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
41
|
+
*/
|
|
42
|
+
indicatedAmount?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
47
|
+
*/
|
|
48
|
+
amount?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
53
|
+
*/
|
|
54
|
+
totalFee?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
59
|
+
*/
|
|
60
|
+
method?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
65
|
+
*/
|
|
66
|
+
status?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number | bigint}
|
|
70
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
71
|
+
*/
|
|
72
|
+
createTime?: number | bigint;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number | bigint}
|
|
76
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
77
|
+
*/
|
|
78
|
+
updateTime?: number | bigint;
|
|
180
79
|
}
|
|
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
|
-
*/
|
|
194
|
-
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/rest-api/types/get-fiat-deposit-withdraw-history-response.d.ts
|
|
195
82
|
/**
|
|
196
83
|
*
|
|
197
84
|
* @export
|
|
198
85
|
* @interface GetFiatDepositWithdrawHistoryResponse
|
|
199
86
|
*/
|
|
200
87
|
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
|
-
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
92
|
+
*/
|
|
93
|
+
code?: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
98
|
+
*/
|
|
99
|
+
message?: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {Array<GetFiatDepositWithdrawHistoryResponseDataInner>}
|
|
103
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
104
|
+
*/
|
|
105
|
+
data?: Array<GetFiatDepositWithdrawHistoryResponseDataInner>;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number | bigint}
|
|
109
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
110
|
+
*/
|
|
111
|
+
total?: number | bigint;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {boolean}
|
|
115
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
116
|
+
*/
|
|
117
|
+
success?: boolean;
|
|
231
118
|
}
|
|
232
|
-
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/rest-api/types/get-fiat-payments-history-response-data-inner.d.ts
|
|
233
121
|
/**
|
|
234
122
|
* Binance Fiat REST API
|
|
235
123
|
*
|
|
@@ -248,656 +136,353 @@ interface GetFiatDepositWithdrawHistoryResponse {
|
|
|
248
136
|
* @interface GetFiatPaymentsHistoryResponseDataInner
|
|
249
137
|
*/
|
|
250
138
|
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
|
-
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
143
|
+
*/
|
|
144
|
+
orderNo?: string;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
149
|
+
*/
|
|
150
|
+
sourceAmount?: string;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
155
|
+
*/
|
|
156
|
+
fiatCurrency?: string;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
161
|
+
*/
|
|
162
|
+
obtainAmount?: string;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
167
|
+
*/
|
|
168
|
+
cryptoCurrency?: string;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
173
|
+
*/
|
|
174
|
+
totalFee?: string;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
179
|
+
*/
|
|
180
|
+
price?: string;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {string}
|
|
184
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
185
|
+
*/
|
|
186
|
+
status?: string;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @type {string}
|
|
190
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
191
|
+
*/
|
|
192
|
+
paymentMethod?: string;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {number | bigint}
|
|
196
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
197
|
+
*/
|
|
198
|
+
createTime?: number | bigint;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @type {number | bigint}
|
|
202
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
203
|
+
*/
|
|
204
|
+
updateTime?: number | bigint;
|
|
317
205
|
}
|
|
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
|
-
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/rest-api/types/get-fiat-payments-history-response.d.ts
|
|
332
208
|
/**
|
|
333
209
|
*
|
|
334
210
|
* @export
|
|
335
211
|
* @interface GetFiatPaymentsHistoryResponse
|
|
336
212
|
*/
|
|
337
213
|
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
|
-
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {string}
|
|
217
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
218
|
+
*/
|
|
219
|
+
code?: string;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
224
|
+
*/
|
|
225
|
+
message?: string;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {Array<GetFiatPaymentsHistoryResponseDataInner>}
|
|
229
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
230
|
+
*/
|
|
231
|
+
data?: Array<GetFiatPaymentsHistoryResponseDataInner>;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {number | bigint}
|
|
235
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
236
|
+
*/
|
|
237
|
+
total?: number | bigint;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @type {boolean}
|
|
241
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
242
|
+
*/
|
|
243
|
+
success?: boolean;
|
|
368
244
|
}
|
|
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;
|
|
436
|
-
}
|
|
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
|
-
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region src/rest-api/modules/fiat-api.d.ts
|
|
490
247
|
/**
|
|
491
248
|
* FiatApi - interface
|
|
492
249
|
* @interface FiatApi
|
|
493
250
|
*/
|
|
494
251
|
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;
|
|
252
|
+
/**
|
|
253
|
+
* Get Fiat Deposit/Withdraw History
|
|
254
|
+
*
|
|
255
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
256
|
+
*
|
|
257
|
+
* Weight: 45000
|
|
258
|
+
*
|
|
259
|
+
* @summary Get Fiat Deposit/Withdraw History (USER_DATA)
|
|
260
|
+
* @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
|
|
261
|
+
*
|
|
262
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
263
|
+
* @memberof FiatApiInterface
|
|
264
|
+
*/
|
|
265
|
+
getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
|
|
266
|
+
/**
|
|
267
|
+
* Get Fiat Deposit/Withdraw History
|
|
268
|
+
*
|
|
269
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
270
|
+
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
271
|
+
* Cash Balance
|
|
272
|
+
* Credit Card
|
|
273
|
+
* Online Banking
|
|
274
|
+
* Bank Transfer
|
|
275
|
+
*
|
|
276
|
+
* Weight: 1
|
|
277
|
+
*
|
|
278
|
+
* @summary Get Fiat Payments History (USER_DATA)
|
|
279
|
+
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
280
|
+
*
|
|
281
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
282
|
+
* @memberof FiatApiInterface
|
|
283
|
+
*/
|
|
284
|
+
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
572
285
|
}
|
|
573
286
|
/**
|
|
574
287
|
* Request parameters for getFiatDepositWithdrawHistory operation in FiatApi.
|
|
575
288
|
* @interface GetFiatDepositWithdrawHistoryRequest
|
|
576
289
|
*/
|
|
577
290
|
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
|
-
|
|
291
|
+
/**
|
|
292
|
+
* 0-buy,1-sell
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
295
|
+
*/
|
|
296
|
+
readonly transactionType: string;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @type {number | bigint}
|
|
300
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
301
|
+
*/
|
|
302
|
+
readonly beginTime?: number | bigint;
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {number | bigint}
|
|
306
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
307
|
+
*/
|
|
308
|
+
readonly endTime?: number | bigint;
|
|
309
|
+
/**
|
|
310
|
+
* default 1
|
|
311
|
+
* @type {number | bigint}
|
|
312
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
313
|
+
*/
|
|
314
|
+
readonly page?: number | bigint;
|
|
315
|
+
/**
|
|
316
|
+
* default 100, max 500
|
|
317
|
+
* @type {number | bigint}
|
|
318
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
319
|
+
*/
|
|
320
|
+
readonly rows?: number | bigint;
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @type {number | bigint}
|
|
324
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
325
|
+
*/
|
|
326
|
+
readonly recvWindow?: number | bigint;
|
|
614
327
|
}
|
|
615
328
|
/**
|
|
616
329
|
* Request parameters for getFiatPaymentsHistory operation in FiatApi.
|
|
617
330
|
* @interface GetFiatPaymentsHistoryRequest
|
|
618
331
|
*/
|
|
619
332
|
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;
|
|
333
|
+
/**
|
|
334
|
+
* 0-buy,1-sell
|
|
335
|
+
* @type {string}
|
|
336
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
337
|
+
*/
|
|
338
|
+
readonly transactionType: string;
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @type {number | bigint}
|
|
342
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
343
|
+
*/
|
|
344
|
+
readonly beginTime?: number | bigint;
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
* @type {number | bigint}
|
|
348
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
349
|
+
*/
|
|
350
|
+
readonly endTime?: number | bigint;
|
|
351
|
+
/**
|
|
352
|
+
* default 1
|
|
353
|
+
* @type {number | bigint}
|
|
354
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
355
|
+
*/
|
|
356
|
+
readonly page?: number | bigint;
|
|
357
|
+
/**
|
|
358
|
+
* default 100, max 500
|
|
359
|
+
* @type {number | bigint}
|
|
360
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
361
|
+
*/
|
|
362
|
+
readonly rows?: number | bigint;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* @type {number | bigint}
|
|
366
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
367
|
+
*/
|
|
368
|
+
readonly recvWindow?: number | bigint;
|
|
674
369
|
}
|
|
675
370
|
/**
|
|
676
371
|
* FiatApi - object-oriented interface
|
|
677
372
|
* @class FiatApi
|
|
678
373
|
*/
|
|
679
374
|
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>>;
|
|
375
|
+
private readonly configuration;
|
|
376
|
+
private localVarAxiosParamCreator;
|
|
377
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
378
|
+
/**
|
|
379
|
+
* Get Fiat Deposit/Withdraw History
|
|
380
|
+
*
|
|
381
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
382
|
+
*
|
|
383
|
+
* Weight: 45000
|
|
384
|
+
*
|
|
385
|
+
* @summary Get Fiat Deposit/Withdraw History (USER_DATA)
|
|
386
|
+
* @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
|
|
387
|
+
* @returns {Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>}
|
|
388
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
389
|
+
* @memberof FiatApi
|
|
390
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History Binance API Documentation}
|
|
391
|
+
*/
|
|
392
|
+
getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
|
|
393
|
+
/**
|
|
394
|
+
* Get Fiat Deposit/Withdraw History
|
|
395
|
+
*
|
|
396
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
397
|
+
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
398
|
+
* Cash Balance
|
|
399
|
+
* Credit Card
|
|
400
|
+
* Online Banking
|
|
401
|
+
* Bank Transfer
|
|
402
|
+
*
|
|
403
|
+
* Weight: 1
|
|
404
|
+
*
|
|
405
|
+
* @summary Get Fiat Payments History (USER_DATA)
|
|
406
|
+
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
407
|
+
* @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
|
|
408
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
409
|
+
* @memberof FiatApi
|
|
410
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
|
|
411
|
+
*/
|
|
412
|
+
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
752
413
|
}
|
|
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
|
-
|
|
414
|
+
//#endregion
|
|
415
|
+
//#region src/rest-api/rest-api.d.ts
|
|
767
416
|
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>>;
|
|
417
|
+
private configuration;
|
|
418
|
+
private fiatApi;
|
|
419
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
420
|
+
/**
|
|
421
|
+
* Generic function to send a request.
|
|
422
|
+
* @param endpoint - The API endpoint to call.
|
|
423
|
+
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
424
|
+
* @param params - Query parameters for the request.
|
|
425
|
+
*
|
|
426
|
+
* @returns A promise resolving to the response data object.
|
|
427
|
+
*/
|
|
428
|
+
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
429
|
+
/**
|
|
430
|
+
* Generic function to send a signed request.
|
|
431
|
+
* @param endpoint - The API endpoint to call.
|
|
432
|
+
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
433
|
+
* @param params - Query parameters for the request.
|
|
434
|
+
*
|
|
435
|
+
* @returns A promise resolving to the response data object.
|
|
436
|
+
*/
|
|
437
|
+
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
438
|
+
/**
|
|
439
|
+
* Get Fiat Deposit/Withdraw History
|
|
440
|
+
*
|
|
441
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
442
|
+
*
|
|
443
|
+
* Weight: 45000
|
|
444
|
+
*
|
|
445
|
+
* @summary Get Fiat Deposit/Withdraw History (USER_DATA)
|
|
446
|
+
* @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
|
|
447
|
+
*
|
|
448
|
+
* @returns {Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>}
|
|
449
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
450
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History Binance API Documentation}
|
|
451
|
+
*/
|
|
452
|
+
getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
|
|
453
|
+
/**
|
|
454
|
+
* Get Fiat Deposit/Withdraw History
|
|
455
|
+
*
|
|
456
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
457
|
+
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
458
|
+
* Cash Balance
|
|
459
|
+
* Credit Card
|
|
460
|
+
* Online Banking
|
|
461
|
+
* Bank Transfer
|
|
462
|
+
*
|
|
463
|
+
* Weight: 1
|
|
464
|
+
*
|
|
465
|
+
* @summary Get Fiat Payments History (USER_DATA)
|
|
466
|
+
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
467
|
+
*
|
|
468
|
+
* @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
|
|
469
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
470
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
|
|
471
|
+
*/
|
|
472
|
+
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
858
473
|
}
|
|
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 };
|
|
474
|
+
declare namespace index_d_exports {
|
|
475
|
+
export { FiatApi, FiatApiInterface, GetFiatDepositWithdrawHistoryRequest, GetFiatDepositWithdrawHistoryResponse, GetFiatDepositWithdrawHistoryResponseDataInner, GetFiatPaymentsHistoryRequest, GetFiatPaymentsHistoryResponse, GetFiatPaymentsHistoryResponseDataInner, RestAPI };
|
|
893
476
|
}
|
|
894
|
-
|
|
477
|
+
//#endregion
|
|
478
|
+
//#region src/fiat.d.ts
|
|
895
479
|
interface ConfigurationFiat {
|
|
896
|
-
|
|
480
|
+
configurationRestAPI?: ConfigurationRestAPI;
|
|
897
481
|
}
|
|
898
482
|
declare class Fiat {
|
|
899
|
-
|
|
900
|
-
|
|
483
|
+
restAPI: RestAPI;
|
|
484
|
+
constructor(config: ConfigurationFiat);
|
|
901
485
|
}
|
|
902
|
-
|
|
903
|
-
export { type ConfigurationFiat, Fiat,
|
|
486
|
+
//#endregion
|
|
487
|
+
export { BadRequestError, type ConfigurationFiat, ConnectorClientError, FIAT_REST_API_PROD_URL, Fiat, index_d_exports as FiatRestAPI, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
|
|
488
|
+
//# sourceMappingURL=index.d.ts.map
|