@binance/fiat 3.0.1 → 5.0.1
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 +402 -470
- package/dist/index.d.ts +404 -471
- package/dist/index.js +295 -323
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +212 -311
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, FIAT_REST_API_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError } from "@binance/common";
|
|
2
|
+
|
|
3
|
+
//#region src/rest-api/types/get-fiat-deposit-withdraw-history-response-data-inner.d.ts
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Binance Fiat REST API
|
|
@@ -19,74 +20,63 @@ export { BadRequestError, ConnectorClientError, FIAT_REST_API_PROD_URL, Forbidde
|
|
|
19
20
|
* @interface GetFiatDepositWithdrawHistoryResponseDataInner
|
|
20
21
|
*/
|
|
21
22
|
interface GetFiatDepositWithdrawHistoryResponseDataInner {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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;
|
|
76
77
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
* Binance Fiat REST API
|
|
80
|
-
*
|
|
81
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
82
|
-
*
|
|
83
|
-
* The version of the OpenAPI document: 1.0.0
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
87
|
-
* https://openapi-generator.tech
|
|
88
|
-
* Do not edit the class manually.
|
|
89
|
-
*/
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/rest-api/types/get-fiat-deposit-withdraw-history-response.d.ts
|
|
90
80
|
|
|
91
81
|
/**
|
|
92
82
|
*
|
|
@@ -94,38 +84,39 @@ interface GetFiatDepositWithdrawHistoryResponseDataInner {
|
|
|
94
84
|
* @interface GetFiatDepositWithdrawHistoryResponse
|
|
95
85
|
*/
|
|
96
86
|
interface GetFiatDepositWithdrawHistoryResponse {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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;
|
|
127
117
|
}
|
|
128
|
-
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/rest-api/types/get-fiat-payments-history-response-data-inner.d.ts
|
|
129
120
|
/**
|
|
130
121
|
* Binance Fiat REST API
|
|
131
122
|
*
|
|
@@ -144,412 +135,353 @@ interface GetFiatDepositWithdrawHistoryResponse {
|
|
|
144
135
|
* @interface GetFiatPaymentsHistoryResponseDataInner
|
|
145
136
|
*/
|
|
146
137
|
interface GetFiatPaymentsHistoryResponseDataInner {
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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;
|
|
213
204
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
* Binance Fiat REST API
|
|
217
|
-
*
|
|
218
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
219
|
-
*
|
|
220
|
-
* The version of the OpenAPI document: 1.0.0
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
224
|
-
* https://openapi-generator.tech
|
|
225
|
-
* Do not edit the class manually.
|
|
226
|
-
*/
|
|
227
|
-
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/rest-api/types/get-fiat-payments-history-response.d.ts
|
|
228
207
|
/**
|
|
229
208
|
*
|
|
230
209
|
* @export
|
|
231
210
|
* @interface GetFiatPaymentsHistoryResponse
|
|
232
211
|
*/
|
|
233
212
|
interface GetFiatPaymentsHistoryResponse {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
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;
|
|
264
243
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
* Binance Fiat REST API
|
|
268
|
-
*
|
|
269
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
270
|
-
*
|
|
271
|
-
* The version of the OpenAPI document: 1.0.0
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
275
|
-
* https://openapi-generator.tech
|
|
276
|
-
* Do not edit the class manually.
|
|
277
|
-
*/
|
|
278
|
-
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/rest-api/modules/fiat-api.d.ts
|
|
279
246
|
/**
|
|
280
247
|
* FiatApi - interface
|
|
281
248
|
* @interface FiatApi
|
|
282
249
|
*/
|
|
283
250
|
interface FiatApiInterface {
|
|
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
|
-
|
|
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>>;
|
|
317
284
|
}
|
|
318
285
|
/**
|
|
319
286
|
* Request parameters for getFiatDepositWithdrawHistory operation in FiatApi.
|
|
320
287
|
* @interface GetFiatDepositWithdrawHistoryRequest
|
|
321
288
|
*/
|
|
322
289
|
interface GetFiatDepositWithdrawHistoryRequest {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
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;
|
|
359
326
|
}
|
|
360
327
|
/**
|
|
361
328
|
* Request parameters for getFiatPaymentsHistory operation in FiatApi.
|
|
362
329
|
* @interface GetFiatPaymentsHistoryRequest
|
|
363
330
|
*/
|
|
364
331
|
interface GetFiatPaymentsHistoryRequest {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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;
|
|
401
368
|
}
|
|
402
369
|
/**
|
|
403
370
|
* FiatApi - object-oriented interface
|
|
404
371
|
* @class FiatApi
|
|
405
372
|
*/
|
|
406
373
|
declare class FiatApi implements FiatApiInterface {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
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>>;
|
|
445
412
|
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
* Binance Fiat REST API
|
|
449
|
-
*
|
|
450
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
451
|
-
*
|
|
452
|
-
* The version of the OpenAPI document: 1.0.0
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
456
|
-
* https://openapi-generator.tech
|
|
457
|
-
* Do not edit the class manually.
|
|
458
|
-
*/
|
|
459
|
-
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region src/rest-api/rest-api.d.ts
|
|
460
415
|
declare class RestAPI {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
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>>;
|
|
517
472
|
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
* Binance Fiat REST API
|
|
521
|
-
*
|
|
522
|
-
* OpenAPI Specification for the Binance Fiat REST API
|
|
523
|
-
*
|
|
524
|
-
* The version of the OpenAPI document: 1.0.0
|
|
525
|
-
*
|
|
526
|
-
*
|
|
527
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
528
|
-
* https://openapi-generator.tech
|
|
529
|
-
* Do not edit the class manually.
|
|
530
|
-
*/
|
|
531
|
-
|
|
532
|
-
type index_FiatApi = FiatApi;
|
|
533
|
-
declare const index_FiatApi: typeof FiatApi;
|
|
534
|
-
type index_FiatApiInterface = FiatApiInterface;
|
|
535
|
-
type index_GetFiatDepositWithdrawHistoryRequest = GetFiatDepositWithdrawHistoryRequest;
|
|
536
|
-
type index_GetFiatDepositWithdrawHistoryResponse = GetFiatDepositWithdrawHistoryResponse;
|
|
537
|
-
type index_GetFiatDepositWithdrawHistoryResponseDataInner = GetFiatDepositWithdrawHistoryResponseDataInner;
|
|
538
|
-
type index_GetFiatPaymentsHistoryRequest = GetFiatPaymentsHistoryRequest;
|
|
539
|
-
type index_GetFiatPaymentsHistoryResponse = GetFiatPaymentsHistoryResponse;
|
|
540
|
-
type index_GetFiatPaymentsHistoryResponseDataInner = GetFiatPaymentsHistoryResponseDataInner;
|
|
541
|
-
type index_RestAPI = RestAPI;
|
|
542
|
-
declare const index_RestAPI: typeof RestAPI;
|
|
543
|
-
declare namespace index {
|
|
544
|
-
export { index_FiatApi as FiatApi, type index_FiatApiInterface as FiatApiInterface, 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, index_RestAPI as RestAPI };
|
|
473
|
+
declare namespace index_d_exports {
|
|
474
|
+
export { FiatApi, FiatApiInterface, GetFiatDepositWithdrawHistoryRequest, GetFiatDepositWithdrawHistoryResponse, GetFiatDepositWithdrawHistoryResponseDataInner, GetFiatPaymentsHistoryRequest, GetFiatPaymentsHistoryResponse, GetFiatPaymentsHistoryResponseDataInner, RestAPI };
|
|
545
475
|
}
|
|
546
|
-
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region src/fiat.d.ts
|
|
547
478
|
interface ConfigurationFiat {
|
|
548
|
-
|
|
479
|
+
configurationRestAPI?: ConfigurationRestAPI;
|
|
549
480
|
}
|
|
550
481
|
declare class Fiat {
|
|
551
|
-
|
|
552
|
-
|
|
482
|
+
restAPI: RestAPI;
|
|
483
|
+
constructor(config: ConfigurationFiat);
|
|
553
484
|
}
|
|
554
|
-
|
|
555
|
-
export {
|
|
485
|
+
//#endregion
|
|
486
|
+
export { BadRequestError, 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
|