@binance/fiat 1.0.0
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/LICENCE +21 -0
- package/README.md +195 -0
- package/dist/index.d.mts +597 -0
- package/dist/index.d.ts +597 -0
- package/dist/index.js +343 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +325 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +55 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
import { RestApiResponse, ConfigurationRestAPI } from '@binance/common';
|
|
2
|
+
export { BadRequestError, ConnectorClientError, FIAT_REST_API_PROD_URL, FIAT_REST_API_TESTNET_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Binance Public Fiat REST API
|
|
6
|
+
*
|
|
7
|
+
* OpenAPI Specification for the Binance Public 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 BadRequest
|
|
20
|
+
*/
|
|
21
|
+
interface BadRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof BadRequest
|
|
26
|
+
*/
|
|
27
|
+
code: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BadRequest
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Binance Public Fiat REST API
|
|
38
|
+
*
|
|
39
|
+
* OpenAPI Specification for the Binance Public Fiat REST API
|
|
40
|
+
*
|
|
41
|
+
* The version of the OpenAPI document: 1.0.0
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
45
|
+
* https://openapi-generator.tech
|
|
46
|
+
* Do not edit the class manually.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @export
|
|
51
|
+
* @interface GetFiatDepositWithdrawHistoryResponseDataInner
|
|
52
|
+
*/
|
|
53
|
+
interface GetFiatDepositWithdrawHistoryResponseDataInner {
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
58
|
+
*/
|
|
59
|
+
orderNo?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
64
|
+
*/
|
|
65
|
+
fiatCurrency?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
70
|
+
*/
|
|
71
|
+
indicatedAmount?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
76
|
+
*/
|
|
77
|
+
amount?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
82
|
+
*/
|
|
83
|
+
totalFee?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
88
|
+
*/
|
|
89
|
+
method?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
94
|
+
*/
|
|
95
|
+
status?: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
100
|
+
*/
|
|
101
|
+
createTime?: number;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof GetFiatDepositWithdrawHistoryResponseDataInner
|
|
106
|
+
*/
|
|
107
|
+
updateTime?: number;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Binance Public Fiat REST API
|
|
112
|
+
*
|
|
113
|
+
* OpenAPI Specification for the Binance Public Fiat REST API
|
|
114
|
+
*
|
|
115
|
+
* The version of the OpenAPI document: 1.0.0
|
|
116
|
+
*
|
|
117
|
+
*
|
|
118
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
119
|
+
* https://openapi-generator.tech
|
|
120
|
+
* Do not edit the class manually.
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @export
|
|
126
|
+
* @interface GetFiatDepositWithdrawHistoryResponse
|
|
127
|
+
*/
|
|
128
|
+
interface GetFiatDepositWithdrawHistoryResponse {
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
133
|
+
*/
|
|
134
|
+
code?: string;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
139
|
+
*/
|
|
140
|
+
message?: string;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {Array<GetFiatDepositWithdrawHistoryResponseDataInner>}
|
|
144
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
145
|
+
*/
|
|
146
|
+
data?: Array<GetFiatDepositWithdrawHistoryResponseDataInner>;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {number}
|
|
150
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
151
|
+
*/
|
|
152
|
+
total?: number;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {boolean}
|
|
156
|
+
* @memberof GetFiatDepositWithdrawHistoryResponse
|
|
157
|
+
*/
|
|
158
|
+
success?: boolean;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Binance Public Fiat REST API
|
|
163
|
+
*
|
|
164
|
+
* OpenAPI Specification for the Binance Public Fiat REST API
|
|
165
|
+
*
|
|
166
|
+
* The version of the OpenAPI document: 1.0.0
|
|
167
|
+
*
|
|
168
|
+
*
|
|
169
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
170
|
+
* https://openapi-generator.tech
|
|
171
|
+
* Do not edit the class manually.
|
|
172
|
+
*/
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @export
|
|
176
|
+
* @interface GetFiatPaymentsHistoryResponseDataInner
|
|
177
|
+
*/
|
|
178
|
+
interface GetFiatPaymentsHistoryResponseDataInner {
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
183
|
+
*/
|
|
184
|
+
orderNo?: string;
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @type {string}
|
|
188
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
189
|
+
*/
|
|
190
|
+
sourceAmount?: string;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {string}
|
|
194
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
195
|
+
*/
|
|
196
|
+
fiatCurrency?: string;
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @type {string}
|
|
200
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
201
|
+
*/
|
|
202
|
+
obtainAmount?: string;
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @type {string}
|
|
206
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
207
|
+
*/
|
|
208
|
+
cryptoCurrency?: string;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @type {string}
|
|
212
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
213
|
+
*/
|
|
214
|
+
totalFee?: string;
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @type {string}
|
|
218
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
219
|
+
*/
|
|
220
|
+
price?: string;
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @type {string}
|
|
224
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
225
|
+
*/
|
|
226
|
+
status?: string;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @type {string}
|
|
230
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
231
|
+
*/
|
|
232
|
+
paymentMethod?: string;
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @type {number}
|
|
236
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
237
|
+
*/
|
|
238
|
+
createTime?: number;
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @type {number}
|
|
242
|
+
* @memberof GetFiatPaymentsHistoryResponseDataInner
|
|
243
|
+
*/
|
|
244
|
+
updateTime?: number;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Binance Public Fiat REST API
|
|
249
|
+
*
|
|
250
|
+
* OpenAPI Specification for the Binance Public Fiat REST API
|
|
251
|
+
*
|
|
252
|
+
* The version of the OpenAPI document: 1.0.0
|
|
253
|
+
*
|
|
254
|
+
*
|
|
255
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
256
|
+
* https://openapi-generator.tech
|
|
257
|
+
* Do not edit the class manually.
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @export
|
|
263
|
+
* @interface GetFiatPaymentsHistoryResponse
|
|
264
|
+
*/
|
|
265
|
+
interface GetFiatPaymentsHistoryResponse {
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @type {string}
|
|
269
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
270
|
+
*/
|
|
271
|
+
code?: string;
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @type {string}
|
|
275
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
276
|
+
*/
|
|
277
|
+
message?: string;
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @type {Array<GetFiatPaymentsHistoryResponseDataInner>}
|
|
281
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
282
|
+
*/
|
|
283
|
+
data?: Array<GetFiatPaymentsHistoryResponseDataInner>;
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @type {number}
|
|
287
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
288
|
+
*/
|
|
289
|
+
total?: number;
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* @type {boolean}
|
|
293
|
+
* @memberof GetFiatPaymentsHistoryResponse
|
|
294
|
+
*/
|
|
295
|
+
success?: boolean;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Binance Public Fiat REST API
|
|
300
|
+
*
|
|
301
|
+
* OpenAPI Specification for the Binance Public Fiat REST API
|
|
302
|
+
*
|
|
303
|
+
* The version of the OpenAPI document: 1.0.0
|
|
304
|
+
*
|
|
305
|
+
*
|
|
306
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
307
|
+
* https://openapi-generator.tech
|
|
308
|
+
* Do not edit the class manually.
|
|
309
|
+
*/
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* FiatApi - interface
|
|
313
|
+
* @interface FiatApi
|
|
314
|
+
*/
|
|
315
|
+
interface FiatApiInterface {
|
|
316
|
+
/**
|
|
317
|
+
* Get Fiat Deposit/Withdraw History
|
|
318
|
+
*
|
|
319
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
320
|
+
*
|
|
321
|
+
* Weight: 90000
|
|
322
|
+
*
|
|
323
|
+
* @summary Get Fiat Deposit/Withdraw History (USER_DATA)
|
|
324
|
+
* @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
|
|
325
|
+
*
|
|
326
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
327
|
+
* @memberof FiatApiInterface
|
|
328
|
+
*/
|
|
329
|
+
getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
|
|
330
|
+
/**
|
|
331
|
+
* Get Fiat Deposit/Withdraw History
|
|
332
|
+
*
|
|
333
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
334
|
+
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
335
|
+
* Cash Balance
|
|
336
|
+
* Credit Card
|
|
337
|
+
* Online Banking
|
|
338
|
+
* Bank Transfer
|
|
339
|
+
*
|
|
340
|
+
* Weight: 1
|
|
341
|
+
*
|
|
342
|
+
* @summary Get Fiat Payments History (USER_DATA)
|
|
343
|
+
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
344
|
+
*
|
|
345
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
346
|
+
* @memberof FiatApiInterface
|
|
347
|
+
*/
|
|
348
|
+
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Request parameters for getFiatDepositWithdrawHistory operation in FiatApi.
|
|
352
|
+
* @interface GetFiatDepositWithdrawHistoryRequest
|
|
353
|
+
*/
|
|
354
|
+
interface GetFiatDepositWithdrawHistoryRequest {
|
|
355
|
+
/**
|
|
356
|
+
* 0-buy,1-sell
|
|
357
|
+
* @type {string}
|
|
358
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
359
|
+
*/
|
|
360
|
+
readonly transactionType: string;
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @type {number}
|
|
364
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
365
|
+
*/
|
|
366
|
+
readonly beginTime?: number;
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* @type {number}
|
|
370
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
371
|
+
*/
|
|
372
|
+
readonly endTime?: number;
|
|
373
|
+
/**
|
|
374
|
+
* default 1
|
|
375
|
+
* @type {number}
|
|
376
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
377
|
+
*/
|
|
378
|
+
readonly page?: number;
|
|
379
|
+
/**
|
|
380
|
+
* default 100, max 500
|
|
381
|
+
* @type {number}
|
|
382
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
383
|
+
*/
|
|
384
|
+
readonly rows?: number;
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @type {number}
|
|
388
|
+
* @memberof FiatApiGetFiatDepositWithdrawHistory
|
|
389
|
+
*/
|
|
390
|
+
readonly recvWindow?: number;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Request parameters for getFiatPaymentsHistory operation in FiatApi.
|
|
394
|
+
* @interface GetFiatPaymentsHistoryRequest
|
|
395
|
+
*/
|
|
396
|
+
interface GetFiatPaymentsHistoryRequest {
|
|
397
|
+
/**
|
|
398
|
+
* 0-buy,1-sell
|
|
399
|
+
* @type {string}
|
|
400
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
401
|
+
*/
|
|
402
|
+
readonly transactionType: string;
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @type {number}
|
|
406
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
407
|
+
*/
|
|
408
|
+
readonly beginTime?: number;
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @type {number}
|
|
412
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
413
|
+
*/
|
|
414
|
+
readonly endTime?: number;
|
|
415
|
+
/**
|
|
416
|
+
* default 1
|
|
417
|
+
* @type {number}
|
|
418
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
419
|
+
*/
|
|
420
|
+
readonly page?: number;
|
|
421
|
+
/**
|
|
422
|
+
* default 100, max 500
|
|
423
|
+
* @type {number}
|
|
424
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
425
|
+
*/
|
|
426
|
+
readonly rows?: number;
|
|
427
|
+
/**
|
|
428
|
+
*
|
|
429
|
+
* @type {number}
|
|
430
|
+
* @memberof FiatApiGetFiatPaymentsHistory
|
|
431
|
+
*/
|
|
432
|
+
readonly recvWindow?: number;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* FiatApi - object-oriented interface
|
|
436
|
+
* @class FiatApi
|
|
437
|
+
*/
|
|
438
|
+
declare class FiatApi implements FiatApiInterface {
|
|
439
|
+
private readonly configuration;
|
|
440
|
+
private localVarAxiosParamCreator;
|
|
441
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
442
|
+
/**
|
|
443
|
+
* Get Fiat Deposit/Withdraw History
|
|
444
|
+
*
|
|
445
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
446
|
+
*
|
|
447
|
+
* Weight: 90000
|
|
448
|
+
*
|
|
449
|
+
* @summary Get Fiat Deposit/Withdraw History (USER_DATA)
|
|
450
|
+
* @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
|
|
451
|
+
* @returns {Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>}
|
|
452
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
453
|
+
* @memberof FiatApi
|
|
454
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History Binance API Documentation}
|
|
455
|
+
*/
|
|
456
|
+
getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
|
|
457
|
+
/**
|
|
458
|
+
* Get Fiat Deposit/Withdraw History
|
|
459
|
+
*
|
|
460
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
461
|
+
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
462
|
+
* Cash Balance
|
|
463
|
+
* Credit Card
|
|
464
|
+
* Online Banking
|
|
465
|
+
* Bank Transfer
|
|
466
|
+
*
|
|
467
|
+
* Weight: 1
|
|
468
|
+
*
|
|
469
|
+
* @summary Get Fiat Payments History (USER_DATA)
|
|
470
|
+
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
471
|
+
* @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
|
|
472
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
473
|
+
* @memberof FiatApi
|
|
474
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
|
|
475
|
+
*/
|
|
476
|
+
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Binance Public Fiat REST API
|
|
481
|
+
*
|
|
482
|
+
* OpenAPI Specification for the Binance Public Fiat REST API
|
|
483
|
+
*
|
|
484
|
+
* The version of the OpenAPI document: 1.0.0
|
|
485
|
+
*
|
|
486
|
+
*
|
|
487
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
488
|
+
* https://openapi-generator.tech
|
|
489
|
+
* Do not edit the class manually.
|
|
490
|
+
*/
|
|
491
|
+
|
|
492
|
+
declare class RestAPI {
|
|
493
|
+
private configuration;
|
|
494
|
+
private fiatApi;
|
|
495
|
+
constructor(configuration: ConfigurationRestAPI);
|
|
496
|
+
/**
|
|
497
|
+
* Generic function to send a request.
|
|
498
|
+
* @param endpoint - The API endpoint to call.
|
|
499
|
+
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
500
|
+
* @param params - Query parameters for the request.
|
|
501
|
+
*
|
|
502
|
+
* @returns A promise resolving to the response data object.
|
|
503
|
+
*/
|
|
504
|
+
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
505
|
+
/**
|
|
506
|
+
* Generic function to send a signed request.
|
|
507
|
+
* @param endpoint - The API endpoint to call.
|
|
508
|
+
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
509
|
+
* @param params - Query parameters for the request.
|
|
510
|
+
*
|
|
511
|
+
* @returns A promise resolving to the response data object.
|
|
512
|
+
*/
|
|
513
|
+
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
514
|
+
/**
|
|
515
|
+
* Get Fiat Deposit/Withdraw History
|
|
516
|
+
*
|
|
517
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
518
|
+
*
|
|
519
|
+
* Weight: 90000
|
|
520
|
+
*
|
|
521
|
+
* @summary Get Fiat Deposit/Withdraw History (USER_DATA)
|
|
522
|
+
* @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
|
|
523
|
+
* @returns {Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>}
|
|
524
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
525
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History Binance API Documentation}
|
|
526
|
+
*/
|
|
527
|
+
getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
|
|
528
|
+
/**
|
|
529
|
+
* Get Fiat Deposit/Withdraw History
|
|
530
|
+
*
|
|
531
|
+
* If beginTime and endTime are not sent, the recent 30-day data will be returned.
|
|
532
|
+
* paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
|
|
533
|
+
* Cash Balance
|
|
534
|
+
* Credit Card
|
|
535
|
+
* Online Banking
|
|
536
|
+
* Bank Transfer
|
|
537
|
+
*
|
|
538
|
+
* Weight: 1
|
|
539
|
+
*
|
|
540
|
+
* @summary Get Fiat Payments History (USER_DATA)
|
|
541
|
+
* @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
|
|
542
|
+
* @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
|
|
543
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
544
|
+
* @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
|
|
545
|
+
*/
|
|
546
|
+
getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Binance Public Fiat REST API
|
|
551
|
+
*
|
|
552
|
+
* OpenAPI Specification for the Binance Public Fiat REST API
|
|
553
|
+
*
|
|
554
|
+
* The version of the OpenAPI document: 1.0.0
|
|
555
|
+
*
|
|
556
|
+
*
|
|
557
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
558
|
+
* https://openapi-generator.tech
|
|
559
|
+
* Do not edit the class manually.
|
|
560
|
+
*/
|
|
561
|
+
|
|
562
|
+
type index_BadRequest = BadRequest;
|
|
563
|
+
type index_FiatApi = FiatApi;
|
|
564
|
+
declare const index_FiatApi: typeof FiatApi;
|
|
565
|
+
type index_FiatApiInterface = FiatApiInterface;
|
|
566
|
+
type index_GetFiatDepositWithdrawHistoryRequest = GetFiatDepositWithdrawHistoryRequest;
|
|
567
|
+
type index_GetFiatDepositWithdrawHistoryResponse = GetFiatDepositWithdrawHistoryResponse;
|
|
568
|
+
type index_GetFiatDepositWithdrawHistoryResponseDataInner = GetFiatDepositWithdrawHistoryResponseDataInner;
|
|
569
|
+
type index_GetFiatPaymentsHistoryRequest = GetFiatPaymentsHistoryRequest;
|
|
570
|
+
type index_GetFiatPaymentsHistoryResponse = GetFiatPaymentsHistoryResponse;
|
|
571
|
+
type index_GetFiatPaymentsHistoryResponseDataInner = GetFiatPaymentsHistoryResponseDataInner;
|
|
572
|
+
type index_RestAPI = RestAPI;
|
|
573
|
+
declare const index_RestAPI: typeof RestAPI;
|
|
574
|
+
declare namespace index {
|
|
575
|
+
export {
|
|
576
|
+
index_BadRequest as BadRequest,
|
|
577
|
+
index_FiatApi as FiatApi,
|
|
578
|
+
index_FiatApiInterface as FiatApiInterface,
|
|
579
|
+
index_GetFiatDepositWithdrawHistoryRequest as GetFiatDepositWithdrawHistoryRequest,
|
|
580
|
+
index_GetFiatDepositWithdrawHistoryResponse as GetFiatDepositWithdrawHistoryResponse,
|
|
581
|
+
index_GetFiatDepositWithdrawHistoryResponseDataInner as GetFiatDepositWithdrawHistoryResponseDataInner,
|
|
582
|
+
index_GetFiatPaymentsHistoryRequest as GetFiatPaymentsHistoryRequest,
|
|
583
|
+
index_GetFiatPaymentsHistoryResponse as GetFiatPaymentsHistoryResponse,
|
|
584
|
+
index_GetFiatPaymentsHistoryResponseDataInner as GetFiatPaymentsHistoryResponseDataInner,
|
|
585
|
+
index_RestAPI as RestAPI,
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
interface ConfigurationFiat {
|
|
590
|
+
configurationRestAPI?: ConfigurationRestAPI;
|
|
591
|
+
}
|
|
592
|
+
declare class Fiat {
|
|
593
|
+
restAPI: RestAPI;
|
|
594
|
+
constructor(config: ConfigurationFiat);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
export { ConfigurationFiat, Fiat, index as FiatRestAPI };
|