@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.ts
CHANGED
|
@@ -1,6 +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
|
|
|
3
|
+
//#region rolldown:runtime
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/rest-api/types/get-fiat-deposit-withdraw-history-response-data-inner.d.ts
|
|
4
7
|
/**
|
|
5
8
|
* Binance Fiat REST API
|
|
6
9
|
*
|
|
@@ -19,113 +22,102 @@ export { BadRequestError, ConnectorClientError, FIAT_REST_API_PROD_URL, Forbidde
|
|
|
19
22
|
* @interface GetFiatDepositWithdrawHistoryResponseDataInner
|
|
20
23
|
*/
|
|
21
24
|
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
|
-
|
|
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;
|
|
76
79
|
}
|
|
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
|
-
*/
|
|
90
|
-
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/rest-api/types/get-fiat-deposit-withdraw-history-response.d.ts
|
|
91
82
|
/**
|
|
92
83
|
*
|
|
93
84
|
* @export
|
|
94
85
|
* @interface GetFiatDepositWithdrawHistoryResponse
|
|
95
86
|
*/
|
|
96
87
|
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
|
-
|
|
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;
|
|
127
118
|
}
|
|
128
|
-
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/rest-api/types/get-fiat-payments-history-response-data-inner.d.ts
|
|
129
121
|
/**
|
|
130
122
|
* Binance Fiat REST API
|
|
131
123
|
*
|
|
@@ -144,412 +136,353 @@ interface GetFiatDepositWithdrawHistoryResponse {
|
|
|
144
136
|
* @interface GetFiatPaymentsHistoryResponseDataInner
|
|
145
137
|
*/
|
|
146
138
|
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
|
-
|
|
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;
|
|
213
205
|
}
|
|
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
|
-
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/rest-api/types/get-fiat-payments-history-response.d.ts
|
|
228
208
|
/**
|
|
229
209
|
*
|
|
230
210
|
* @export
|
|
231
211
|
* @interface GetFiatPaymentsHistoryResponse
|
|
232
212
|
*/
|
|
233
213
|
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
|
-
|
|
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;
|
|
264
244
|
}
|
|
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
|
-
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region src/rest-api/modules/fiat-api.d.ts
|
|
279
247
|
/**
|
|
280
248
|
* FiatApi - interface
|
|
281
249
|
* @interface FiatApi
|
|
282
250
|
*/
|
|
283
251
|
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
|
-
|
|
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>>;
|
|
317
285
|
}
|
|
318
286
|
/**
|
|
319
287
|
* Request parameters for getFiatDepositWithdrawHistory operation in FiatApi.
|
|
320
288
|
* @interface GetFiatDepositWithdrawHistoryRequest
|
|
321
289
|
*/
|
|
322
290
|
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
|
-
|
|
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;
|
|
359
327
|
}
|
|
360
328
|
/**
|
|
361
329
|
* Request parameters for getFiatPaymentsHistory operation in FiatApi.
|
|
362
330
|
* @interface GetFiatPaymentsHistoryRequest
|
|
363
331
|
*/
|
|
364
332
|
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
|
-
|
|
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;
|
|
401
369
|
}
|
|
402
370
|
/**
|
|
403
371
|
* FiatApi - object-oriented interface
|
|
404
372
|
* @class FiatApi
|
|
405
373
|
*/
|
|
406
374
|
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
|
-
|
|
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>>;
|
|
445
413
|
}
|
|
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
|
-
|
|
414
|
+
//#endregion
|
|
415
|
+
//#region src/rest-api/rest-api.d.ts
|
|
460
416
|
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
|
-
|
|
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>>;
|
|
517
473
|
}
|
|
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 };
|
|
474
|
+
declare namespace index_d_exports {
|
|
475
|
+
export { FiatApi, FiatApiInterface, GetFiatDepositWithdrawHistoryRequest, GetFiatDepositWithdrawHistoryResponse, GetFiatDepositWithdrawHistoryResponseDataInner, GetFiatPaymentsHistoryRequest, GetFiatPaymentsHistoryResponse, GetFiatPaymentsHistoryResponseDataInner, RestAPI };
|
|
545
476
|
}
|
|
546
|
-
|
|
477
|
+
//#endregion
|
|
478
|
+
//#region src/fiat.d.ts
|
|
547
479
|
interface ConfigurationFiat {
|
|
548
|
-
|
|
480
|
+
configurationRestAPI?: ConfigurationRestAPI;
|
|
549
481
|
}
|
|
550
482
|
declare class Fiat {
|
|
551
|
-
|
|
552
|
-
|
|
483
|
+
restAPI: RestAPI;
|
|
484
|
+
constructor(config: ConfigurationFiat);
|
|
553
485
|
}
|
|
554
|
-
|
|
555
|
-
export {
|
|
486
|
+
//#endregion
|
|
487
|
+
export { BadRequestError, 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
|