@binance/mining 5.0.11 → 5.0.13
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/index.js +42 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/mining";
|
|
17
|
-
var version = "5.0.
|
|
17
|
+
var version = "5.0.13";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/mining-api.ts
|
|
@@ -40,6 +40,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
40
40
|
(0, __binance_common.assertParamExists)("accountList", "userName", userName);
|
|
41
41
|
const localVarQueryParameter = {};
|
|
42
42
|
const localVarBodyParameter = {};
|
|
43
|
+
const localVarHeaderParameter = {};
|
|
43
44
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
44
45
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
45
46
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -50,12 +51,14 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
50
51
|
method: "GET",
|
|
51
52
|
queryParams: localVarQueryParameter,
|
|
52
53
|
bodyParams: localVarBodyParameter,
|
|
54
|
+
headerParams: localVarHeaderParameter,
|
|
53
55
|
timeUnit: _timeUnit
|
|
54
56
|
};
|
|
55
57
|
},
|
|
56
58
|
acquiringAlgorithm: async () => {
|
|
57
59
|
const localVarQueryParameter = {};
|
|
58
60
|
const localVarBodyParameter = {};
|
|
61
|
+
const localVarHeaderParameter = {};
|
|
59
62
|
let _timeUnit;
|
|
60
63
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
61
64
|
return {
|
|
@@ -63,12 +66,14 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
63
66
|
method: "GET",
|
|
64
67
|
queryParams: localVarQueryParameter,
|
|
65
68
|
bodyParams: localVarBodyParameter,
|
|
69
|
+
headerParams: localVarHeaderParameter,
|
|
66
70
|
timeUnit: _timeUnit
|
|
67
71
|
};
|
|
68
72
|
},
|
|
69
73
|
acquiringCoinname: async () => {
|
|
70
74
|
const localVarQueryParameter = {};
|
|
71
75
|
const localVarBodyParameter = {};
|
|
76
|
+
const localVarHeaderParameter = {};
|
|
72
77
|
let _timeUnit;
|
|
73
78
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
74
79
|
return {
|
|
@@ -76,6 +81,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
76
81
|
method: "GET",
|
|
77
82
|
queryParams: localVarQueryParameter,
|
|
78
83
|
bodyParams: localVarBodyParameter,
|
|
84
|
+
headerParams: localVarHeaderParameter,
|
|
79
85
|
timeUnit: _timeUnit
|
|
80
86
|
};
|
|
81
87
|
},
|
|
@@ -84,6 +90,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
84
90
|
(0, __binance_common.assertParamExists)("cancelHashrateResaleConfiguration", "userName", userName);
|
|
85
91
|
const localVarQueryParameter = {};
|
|
86
92
|
const localVarBodyParameter = {};
|
|
93
|
+
const localVarHeaderParameter = {};
|
|
87
94
|
if (configId !== void 0 && configId !== null) localVarQueryParameter["configId"] = configId;
|
|
88
95
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
89
96
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -94,6 +101,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
94
101
|
method: "POST",
|
|
95
102
|
queryParams: localVarQueryParameter,
|
|
96
103
|
bodyParams: localVarBodyParameter,
|
|
104
|
+
headerParams: localVarHeaderParameter,
|
|
97
105
|
timeUnit: _timeUnit
|
|
98
106
|
};
|
|
99
107
|
},
|
|
@@ -102,6 +110,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
102
110
|
(0, __binance_common.assertParamExists)("earningsList", "userName", userName);
|
|
103
111
|
const localVarQueryParameter = {};
|
|
104
112
|
const localVarBodyParameter = {};
|
|
113
|
+
const localVarHeaderParameter = {};
|
|
105
114
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
106
115
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
107
116
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
@@ -117,6 +126,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
117
126
|
method: "GET",
|
|
118
127
|
queryParams: localVarQueryParameter,
|
|
119
128
|
bodyParams: localVarBodyParameter,
|
|
129
|
+
headerParams: localVarHeaderParameter,
|
|
120
130
|
timeUnit: _timeUnit
|
|
121
131
|
};
|
|
122
132
|
},
|
|
@@ -125,6 +135,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
125
135
|
(0, __binance_common.assertParamExists)("extraBonusList", "userName", userName);
|
|
126
136
|
const localVarQueryParameter = {};
|
|
127
137
|
const localVarBodyParameter = {};
|
|
138
|
+
const localVarHeaderParameter = {};
|
|
128
139
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
129
140
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
130
141
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
@@ -140,6 +151,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
140
151
|
method: "GET",
|
|
141
152
|
queryParams: localVarQueryParameter,
|
|
142
153
|
bodyParams: localVarBodyParameter,
|
|
154
|
+
headerParams: localVarHeaderParameter,
|
|
143
155
|
timeUnit: _timeUnit
|
|
144
156
|
};
|
|
145
157
|
},
|
|
@@ -147,6 +159,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
147
159
|
(0, __binance_common.assertParamExists)("hashrateResaleDetail", "configId", configId);
|
|
148
160
|
const localVarQueryParameter = {};
|
|
149
161
|
const localVarBodyParameter = {};
|
|
162
|
+
const localVarHeaderParameter = {};
|
|
150
163
|
if (configId !== void 0 && configId !== null) localVarQueryParameter["configId"] = configId;
|
|
151
164
|
if (pageIndex !== void 0 && pageIndex !== null) localVarQueryParameter["pageIndex"] = pageIndex;
|
|
152
165
|
if (pageSize !== void 0 && pageSize !== null) localVarQueryParameter["pageSize"] = pageSize;
|
|
@@ -158,12 +171,14 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
158
171
|
method: "GET",
|
|
159
172
|
queryParams: localVarQueryParameter,
|
|
160
173
|
bodyParams: localVarBodyParameter,
|
|
174
|
+
headerParams: localVarHeaderParameter,
|
|
161
175
|
timeUnit: _timeUnit
|
|
162
176
|
};
|
|
163
177
|
},
|
|
164
178
|
hashrateResaleList: async (pageIndex, pageSize, recvWindow) => {
|
|
165
179
|
const localVarQueryParameter = {};
|
|
166
180
|
const localVarBodyParameter = {};
|
|
181
|
+
const localVarHeaderParameter = {};
|
|
167
182
|
if (pageIndex !== void 0 && pageIndex !== null) localVarQueryParameter["pageIndex"] = pageIndex;
|
|
168
183
|
if (pageSize !== void 0 && pageSize !== null) localVarQueryParameter["pageSize"] = pageSize;
|
|
169
184
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -174,6 +189,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
174
189
|
method: "GET",
|
|
175
190
|
queryParams: localVarQueryParameter,
|
|
176
191
|
bodyParams: localVarBodyParameter,
|
|
192
|
+
headerParams: localVarHeaderParameter,
|
|
177
193
|
timeUnit: _timeUnit
|
|
178
194
|
};
|
|
179
195
|
},
|
|
@@ -186,6 +202,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
186
202
|
(0, __binance_common.assertParamExists)("hashrateResaleRequest", "hashRate", hashRate);
|
|
187
203
|
const localVarQueryParameter = {};
|
|
188
204
|
const localVarBodyParameter = {};
|
|
205
|
+
const localVarHeaderParameter = {};
|
|
189
206
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
190
207
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
191
208
|
if (endDate !== void 0 && endDate !== null) localVarQueryParameter["endDate"] = endDate;
|
|
@@ -200,6 +217,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
200
217
|
method: "POST",
|
|
201
218
|
queryParams: localVarQueryParameter,
|
|
202
219
|
bodyParams: localVarBodyParameter,
|
|
220
|
+
headerParams: localVarHeaderParameter,
|
|
203
221
|
timeUnit: _timeUnit
|
|
204
222
|
};
|
|
205
223
|
},
|
|
@@ -207,6 +225,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
207
225
|
(0, __binance_common.assertParamExists)("miningAccountEarning", "algo", algo);
|
|
208
226
|
const localVarQueryParameter = {};
|
|
209
227
|
const localVarBodyParameter = {};
|
|
228
|
+
const localVarHeaderParameter = {};
|
|
210
229
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
211
230
|
if (startDate !== void 0 && startDate !== null) localVarQueryParameter["startDate"] = startDate;
|
|
212
231
|
if (endDate !== void 0 && endDate !== null) localVarQueryParameter["endDate"] = endDate;
|
|
@@ -220,6 +239,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
220
239
|
method: "GET",
|
|
221
240
|
queryParams: localVarQueryParameter,
|
|
222
241
|
bodyParams: localVarBodyParameter,
|
|
242
|
+
headerParams: localVarHeaderParameter,
|
|
223
243
|
timeUnit: _timeUnit
|
|
224
244
|
};
|
|
225
245
|
},
|
|
@@ -229,6 +249,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
229
249
|
(0, __binance_common.assertParamExists)("requestForDetailMinerList", "workerName", workerName);
|
|
230
250
|
const localVarQueryParameter = {};
|
|
231
251
|
const localVarBodyParameter = {};
|
|
252
|
+
const localVarHeaderParameter = {};
|
|
232
253
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
233
254
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
234
255
|
if (workerName !== void 0 && workerName !== null) localVarQueryParameter["workerName"] = workerName;
|
|
@@ -240,6 +261,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
240
261
|
method: "GET",
|
|
241
262
|
queryParams: localVarQueryParameter,
|
|
242
263
|
bodyParams: localVarBodyParameter,
|
|
264
|
+
headerParams: localVarHeaderParameter,
|
|
243
265
|
timeUnit: _timeUnit
|
|
244
266
|
};
|
|
245
267
|
},
|
|
@@ -248,6 +270,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
248
270
|
(0, __binance_common.assertParamExists)("requestForMinerList", "userName", userName);
|
|
249
271
|
const localVarQueryParameter = {};
|
|
250
272
|
const localVarBodyParameter = {};
|
|
273
|
+
const localVarHeaderParameter = {};
|
|
251
274
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
252
275
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
253
276
|
if (pageIndex !== void 0 && pageIndex !== null) localVarQueryParameter["pageIndex"] = pageIndex;
|
|
@@ -262,6 +285,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
262
285
|
method: "GET",
|
|
263
286
|
queryParams: localVarQueryParameter,
|
|
264
287
|
bodyParams: localVarBodyParameter,
|
|
288
|
+
headerParams: localVarHeaderParameter,
|
|
265
289
|
timeUnit: _timeUnit
|
|
266
290
|
};
|
|
267
291
|
},
|
|
@@ -270,6 +294,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
270
294
|
(0, __binance_common.assertParamExists)("statisticList", "userName", userName);
|
|
271
295
|
const localVarQueryParameter = {};
|
|
272
296
|
const localVarBodyParameter = {};
|
|
297
|
+
const localVarHeaderParameter = {};
|
|
273
298
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
274
299
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
275
300
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -280,6 +305,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
280
305
|
method: "GET",
|
|
281
306
|
queryParams: localVarQueryParameter,
|
|
282
307
|
bodyParams: localVarBodyParameter,
|
|
308
|
+
headerParams: localVarHeaderParameter,
|
|
283
309
|
timeUnit: _timeUnit
|
|
284
310
|
};
|
|
285
311
|
}
|
|
@@ -308,7 +334,7 @@ var MiningApi = class {
|
|
|
308
334
|
*/
|
|
309
335
|
async accountList(requestParameters) {
|
|
310
336
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountList(requestParameters?.algo, requestParameters?.userName, requestParameters?.recvWindow);
|
|
311
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
337
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
312
338
|
}
|
|
313
339
|
/**
|
|
314
340
|
* Acquiring Algorithm
|
|
@@ -323,7 +349,7 @@ var MiningApi = class {
|
|
|
323
349
|
*/
|
|
324
350
|
async acquiringAlgorithm() {
|
|
325
351
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.acquiringAlgorithm();
|
|
326
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
352
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
327
353
|
}
|
|
328
354
|
/**
|
|
329
355
|
* Acquiring CoinName
|
|
@@ -338,7 +364,7 @@ var MiningApi = class {
|
|
|
338
364
|
*/
|
|
339
365
|
async acquiringCoinname() {
|
|
340
366
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.acquiringCoinname();
|
|
341
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
367
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
342
368
|
}
|
|
343
369
|
/**
|
|
344
370
|
*
|
|
@@ -353,7 +379,7 @@ var MiningApi = class {
|
|
|
353
379
|
*/
|
|
354
380
|
async cancelHashrateResaleConfiguration(requestParameters) {
|
|
355
381
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelHashrateResaleConfiguration(requestParameters?.configId, requestParameters?.userName, requestParameters?.recvWindow);
|
|
356
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
382
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
357
383
|
}
|
|
358
384
|
/**
|
|
359
385
|
* Query Earnings List
|
|
@@ -369,7 +395,7 @@ var MiningApi = class {
|
|
|
369
395
|
*/
|
|
370
396
|
async earningsList(requestParameters) {
|
|
371
397
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.earningsList(requestParameters?.algo, requestParameters?.userName, requestParameters?.coin, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
372
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
398
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
373
399
|
}
|
|
374
400
|
/**
|
|
375
401
|
* Extra Bonus List
|
|
@@ -385,7 +411,7 @@ var MiningApi = class {
|
|
|
385
411
|
*/
|
|
386
412
|
async extraBonusList(requestParameters) {
|
|
387
413
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.extraBonusList(requestParameters?.algo, requestParameters?.userName, requestParameters?.coin, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
388
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
414
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
389
415
|
}
|
|
390
416
|
/**
|
|
391
417
|
* Hashrate Resale Detail(USER_DATA)
|
|
@@ -401,7 +427,7 @@ var MiningApi = class {
|
|
|
401
427
|
*/
|
|
402
428
|
async hashrateResaleDetail(requestParameters) {
|
|
403
429
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.hashrateResaleDetail(requestParameters?.configId, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
404
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
430
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
405
431
|
}
|
|
406
432
|
/**
|
|
407
433
|
* Hashrate Resale List
|
|
@@ -417,7 +443,7 @@ var MiningApi = class {
|
|
|
417
443
|
*/
|
|
418
444
|
async hashrateResaleList(requestParameters = {}) {
|
|
419
445
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.hashrateResaleList(requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
420
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
446
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
421
447
|
}
|
|
422
448
|
/**
|
|
423
449
|
* Hashrate Resale Request
|
|
@@ -433,7 +459,7 @@ var MiningApi = class {
|
|
|
433
459
|
*/
|
|
434
460
|
async hashrateResaleRequest(requestParameters) {
|
|
435
461
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.hashrateResaleRequest(requestParameters?.userName, requestParameters?.algo, requestParameters?.endDate, requestParameters?.startDate, requestParameters?.toPoolUser, requestParameters?.hashRate, requestParameters?.recvWindow);
|
|
436
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
462
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
437
463
|
}
|
|
438
464
|
/**
|
|
439
465
|
* Mining Account Earning
|
|
@@ -449,7 +475,7 @@ var MiningApi = class {
|
|
|
449
475
|
*/
|
|
450
476
|
async miningAccountEarning(requestParameters) {
|
|
451
477
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.miningAccountEarning(requestParameters?.algo, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
452
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
478
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
453
479
|
}
|
|
454
480
|
/**
|
|
455
481
|
* Request for Detail Miner List
|
|
@@ -465,7 +491,7 @@ var MiningApi = class {
|
|
|
465
491
|
*/
|
|
466
492
|
async requestForDetailMinerList(requestParameters) {
|
|
467
493
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.requestForDetailMinerList(requestParameters?.algo, requestParameters?.userName, requestParameters?.workerName, requestParameters?.recvWindow);
|
|
468
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
494
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
469
495
|
}
|
|
470
496
|
/**
|
|
471
497
|
* Request for Miner List
|
|
@@ -481,7 +507,7 @@ var MiningApi = class {
|
|
|
481
507
|
*/
|
|
482
508
|
async requestForMinerList(requestParameters) {
|
|
483
509
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.requestForMinerList(requestParameters?.algo, requestParameters?.userName, requestParameters?.pageIndex, requestParameters?.sort, requestParameters?.sortColumn, requestParameters?.workerStatus, requestParameters?.recvWindow);
|
|
484
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
510
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
485
511
|
}
|
|
486
512
|
/**
|
|
487
513
|
* Statistic List
|
|
@@ -497,7 +523,7 @@ var MiningApi = class {
|
|
|
497
523
|
*/
|
|
498
524
|
async statisticList(requestParameters) {
|
|
499
525
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.statisticList(requestParameters?.algo, requestParameters?.userName, requestParameters?.recvWindow);
|
|
500
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
526
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
501
527
|
}
|
|
502
528
|
};
|
|
503
529
|
|
|
@@ -530,7 +556,7 @@ var RestAPI = class {
|
|
|
530
556
|
* @returns A promise resolving to the response data object.
|
|
531
557
|
*/
|
|
532
558
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
533
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
559
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
534
560
|
}
|
|
535
561
|
/**
|
|
536
562
|
* Generic function to send a signed request.
|
|
@@ -542,7 +568,7 @@ var RestAPI = class {
|
|
|
542
568
|
* @returns A promise resolving to the response data object.
|
|
543
569
|
*/
|
|
544
570
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
545
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
571
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
546
572
|
}
|
|
547
573
|
/**
|
|
548
574
|
* Query Account List
|