@binance/mining 5.0.12 → 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.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, ForbiddenE
|
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@binance/mining";
|
|
6
|
-
var version = "5.0.
|
|
6
|
+
var version = "5.0.13";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/mining-api.ts
|
|
@@ -29,6 +29,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
29
29
|
assertParamExists("accountList", "userName", userName);
|
|
30
30
|
const localVarQueryParameter = {};
|
|
31
31
|
const localVarBodyParameter = {};
|
|
32
|
+
const localVarHeaderParameter = {};
|
|
32
33
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
33
34
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
34
35
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -39,12 +40,14 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
39
40
|
method: "GET",
|
|
40
41
|
queryParams: localVarQueryParameter,
|
|
41
42
|
bodyParams: localVarBodyParameter,
|
|
43
|
+
headerParams: localVarHeaderParameter,
|
|
42
44
|
timeUnit: _timeUnit
|
|
43
45
|
};
|
|
44
46
|
},
|
|
45
47
|
acquiringAlgorithm: async () => {
|
|
46
48
|
const localVarQueryParameter = {};
|
|
47
49
|
const localVarBodyParameter = {};
|
|
50
|
+
const localVarHeaderParameter = {};
|
|
48
51
|
let _timeUnit;
|
|
49
52
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
50
53
|
return {
|
|
@@ -52,12 +55,14 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
52
55
|
method: "GET",
|
|
53
56
|
queryParams: localVarQueryParameter,
|
|
54
57
|
bodyParams: localVarBodyParameter,
|
|
58
|
+
headerParams: localVarHeaderParameter,
|
|
55
59
|
timeUnit: _timeUnit
|
|
56
60
|
};
|
|
57
61
|
},
|
|
58
62
|
acquiringCoinname: async () => {
|
|
59
63
|
const localVarQueryParameter = {};
|
|
60
64
|
const localVarBodyParameter = {};
|
|
65
|
+
const localVarHeaderParameter = {};
|
|
61
66
|
let _timeUnit;
|
|
62
67
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
63
68
|
return {
|
|
@@ -65,6 +70,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
65
70
|
method: "GET",
|
|
66
71
|
queryParams: localVarQueryParameter,
|
|
67
72
|
bodyParams: localVarBodyParameter,
|
|
73
|
+
headerParams: localVarHeaderParameter,
|
|
68
74
|
timeUnit: _timeUnit
|
|
69
75
|
};
|
|
70
76
|
},
|
|
@@ -73,6 +79,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
73
79
|
assertParamExists("cancelHashrateResaleConfiguration", "userName", userName);
|
|
74
80
|
const localVarQueryParameter = {};
|
|
75
81
|
const localVarBodyParameter = {};
|
|
82
|
+
const localVarHeaderParameter = {};
|
|
76
83
|
if (configId !== void 0 && configId !== null) localVarQueryParameter["configId"] = configId;
|
|
77
84
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
78
85
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -83,6 +90,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
83
90
|
method: "POST",
|
|
84
91
|
queryParams: localVarQueryParameter,
|
|
85
92
|
bodyParams: localVarBodyParameter,
|
|
93
|
+
headerParams: localVarHeaderParameter,
|
|
86
94
|
timeUnit: _timeUnit
|
|
87
95
|
};
|
|
88
96
|
},
|
|
@@ -91,6 +99,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
91
99
|
assertParamExists("earningsList", "userName", userName);
|
|
92
100
|
const localVarQueryParameter = {};
|
|
93
101
|
const localVarBodyParameter = {};
|
|
102
|
+
const localVarHeaderParameter = {};
|
|
94
103
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
95
104
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
96
105
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
@@ -106,6 +115,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
106
115
|
method: "GET",
|
|
107
116
|
queryParams: localVarQueryParameter,
|
|
108
117
|
bodyParams: localVarBodyParameter,
|
|
118
|
+
headerParams: localVarHeaderParameter,
|
|
109
119
|
timeUnit: _timeUnit
|
|
110
120
|
};
|
|
111
121
|
},
|
|
@@ -114,6 +124,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
114
124
|
assertParamExists("extraBonusList", "userName", userName);
|
|
115
125
|
const localVarQueryParameter = {};
|
|
116
126
|
const localVarBodyParameter = {};
|
|
127
|
+
const localVarHeaderParameter = {};
|
|
117
128
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
118
129
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
119
130
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
@@ -129,6 +140,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
129
140
|
method: "GET",
|
|
130
141
|
queryParams: localVarQueryParameter,
|
|
131
142
|
bodyParams: localVarBodyParameter,
|
|
143
|
+
headerParams: localVarHeaderParameter,
|
|
132
144
|
timeUnit: _timeUnit
|
|
133
145
|
};
|
|
134
146
|
},
|
|
@@ -136,6 +148,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
136
148
|
assertParamExists("hashrateResaleDetail", "configId", configId);
|
|
137
149
|
const localVarQueryParameter = {};
|
|
138
150
|
const localVarBodyParameter = {};
|
|
151
|
+
const localVarHeaderParameter = {};
|
|
139
152
|
if (configId !== void 0 && configId !== null) localVarQueryParameter["configId"] = configId;
|
|
140
153
|
if (pageIndex !== void 0 && pageIndex !== null) localVarQueryParameter["pageIndex"] = pageIndex;
|
|
141
154
|
if (pageSize !== void 0 && pageSize !== null) localVarQueryParameter["pageSize"] = pageSize;
|
|
@@ -147,12 +160,14 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
147
160
|
method: "GET",
|
|
148
161
|
queryParams: localVarQueryParameter,
|
|
149
162
|
bodyParams: localVarBodyParameter,
|
|
163
|
+
headerParams: localVarHeaderParameter,
|
|
150
164
|
timeUnit: _timeUnit
|
|
151
165
|
};
|
|
152
166
|
},
|
|
153
167
|
hashrateResaleList: async (pageIndex, pageSize, recvWindow) => {
|
|
154
168
|
const localVarQueryParameter = {};
|
|
155
169
|
const localVarBodyParameter = {};
|
|
170
|
+
const localVarHeaderParameter = {};
|
|
156
171
|
if (pageIndex !== void 0 && pageIndex !== null) localVarQueryParameter["pageIndex"] = pageIndex;
|
|
157
172
|
if (pageSize !== void 0 && pageSize !== null) localVarQueryParameter["pageSize"] = pageSize;
|
|
158
173
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -163,6 +178,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
163
178
|
method: "GET",
|
|
164
179
|
queryParams: localVarQueryParameter,
|
|
165
180
|
bodyParams: localVarBodyParameter,
|
|
181
|
+
headerParams: localVarHeaderParameter,
|
|
166
182
|
timeUnit: _timeUnit
|
|
167
183
|
};
|
|
168
184
|
},
|
|
@@ -175,6 +191,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
175
191
|
assertParamExists("hashrateResaleRequest", "hashRate", hashRate);
|
|
176
192
|
const localVarQueryParameter = {};
|
|
177
193
|
const localVarBodyParameter = {};
|
|
194
|
+
const localVarHeaderParameter = {};
|
|
178
195
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
179
196
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
180
197
|
if (endDate !== void 0 && endDate !== null) localVarQueryParameter["endDate"] = endDate;
|
|
@@ -189,6 +206,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
189
206
|
method: "POST",
|
|
190
207
|
queryParams: localVarQueryParameter,
|
|
191
208
|
bodyParams: localVarBodyParameter,
|
|
209
|
+
headerParams: localVarHeaderParameter,
|
|
192
210
|
timeUnit: _timeUnit
|
|
193
211
|
};
|
|
194
212
|
},
|
|
@@ -196,6 +214,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
196
214
|
assertParamExists("miningAccountEarning", "algo", algo);
|
|
197
215
|
const localVarQueryParameter = {};
|
|
198
216
|
const localVarBodyParameter = {};
|
|
217
|
+
const localVarHeaderParameter = {};
|
|
199
218
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
200
219
|
if (startDate !== void 0 && startDate !== null) localVarQueryParameter["startDate"] = startDate;
|
|
201
220
|
if (endDate !== void 0 && endDate !== null) localVarQueryParameter["endDate"] = endDate;
|
|
@@ -209,6 +228,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
209
228
|
method: "GET",
|
|
210
229
|
queryParams: localVarQueryParameter,
|
|
211
230
|
bodyParams: localVarBodyParameter,
|
|
231
|
+
headerParams: localVarHeaderParameter,
|
|
212
232
|
timeUnit: _timeUnit
|
|
213
233
|
};
|
|
214
234
|
},
|
|
@@ -218,6 +238,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
218
238
|
assertParamExists("requestForDetailMinerList", "workerName", workerName);
|
|
219
239
|
const localVarQueryParameter = {};
|
|
220
240
|
const localVarBodyParameter = {};
|
|
241
|
+
const localVarHeaderParameter = {};
|
|
221
242
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
222
243
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
223
244
|
if (workerName !== void 0 && workerName !== null) localVarQueryParameter["workerName"] = workerName;
|
|
@@ -229,6 +250,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
229
250
|
method: "GET",
|
|
230
251
|
queryParams: localVarQueryParameter,
|
|
231
252
|
bodyParams: localVarBodyParameter,
|
|
253
|
+
headerParams: localVarHeaderParameter,
|
|
232
254
|
timeUnit: _timeUnit
|
|
233
255
|
};
|
|
234
256
|
},
|
|
@@ -237,6 +259,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
237
259
|
assertParamExists("requestForMinerList", "userName", userName);
|
|
238
260
|
const localVarQueryParameter = {};
|
|
239
261
|
const localVarBodyParameter = {};
|
|
262
|
+
const localVarHeaderParameter = {};
|
|
240
263
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
241
264
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
242
265
|
if (pageIndex !== void 0 && pageIndex !== null) localVarQueryParameter["pageIndex"] = pageIndex;
|
|
@@ -251,6 +274,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
251
274
|
method: "GET",
|
|
252
275
|
queryParams: localVarQueryParameter,
|
|
253
276
|
bodyParams: localVarBodyParameter,
|
|
277
|
+
headerParams: localVarHeaderParameter,
|
|
254
278
|
timeUnit: _timeUnit
|
|
255
279
|
};
|
|
256
280
|
},
|
|
@@ -259,6 +283,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
259
283
|
assertParamExists("statisticList", "userName", userName);
|
|
260
284
|
const localVarQueryParameter = {};
|
|
261
285
|
const localVarBodyParameter = {};
|
|
286
|
+
const localVarHeaderParameter = {};
|
|
262
287
|
if (algo !== void 0 && algo !== null) localVarQueryParameter["algo"] = algo;
|
|
263
288
|
if (userName !== void 0 && userName !== null) localVarQueryParameter["userName"] = userName;
|
|
264
289
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -269,6 +294,7 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
269
294
|
method: "GET",
|
|
270
295
|
queryParams: localVarQueryParameter,
|
|
271
296
|
bodyParams: localVarBodyParameter,
|
|
297
|
+
headerParams: localVarHeaderParameter,
|
|
272
298
|
timeUnit: _timeUnit
|
|
273
299
|
};
|
|
274
300
|
}
|
|
@@ -297,7 +323,7 @@ var MiningApi = class {
|
|
|
297
323
|
*/
|
|
298
324
|
async accountList(requestParameters) {
|
|
299
325
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountList(requestParameters?.algo, requestParameters?.userName, requestParameters?.recvWindow);
|
|
300
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
326
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
301
327
|
}
|
|
302
328
|
/**
|
|
303
329
|
* Acquiring Algorithm
|
|
@@ -312,7 +338,7 @@ var MiningApi = class {
|
|
|
312
338
|
*/
|
|
313
339
|
async acquiringAlgorithm() {
|
|
314
340
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.acquiringAlgorithm();
|
|
315
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
341
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
316
342
|
}
|
|
317
343
|
/**
|
|
318
344
|
* Acquiring CoinName
|
|
@@ -327,7 +353,7 @@ var MiningApi = class {
|
|
|
327
353
|
*/
|
|
328
354
|
async acquiringCoinname() {
|
|
329
355
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.acquiringCoinname();
|
|
330
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
356
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
331
357
|
}
|
|
332
358
|
/**
|
|
333
359
|
*
|
|
@@ -342,7 +368,7 @@ var MiningApi = class {
|
|
|
342
368
|
*/
|
|
343
369
|
async cancelHashrateResaleConfiguration(requestParameters) {
|
|
344
370
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelHashrateResaleConfiguration(requestParameters?.configId, requestParameters?.userName, requestParameters?.recvWindow);
|
|
345
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
371
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
346
372
|
}
|
|
347
373
|
/**
|
|
348
374
|
* Query Earnings List
|
|
@@ -358,7 +384,7 @@ var MiningApi = class {
|
|
|
358
384
|
*/
|
|
359
385
|
async earningsList(requestParameters) {
|
|
360
386
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.earningsList(requestParameters?.algo, requestParameters?.userName, requestParameters?.coin, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
361
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
387
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
362
388
|
}
|
|
363
389
|
/**
|
|
364
390
|
* Extra Bonus List
|
|
@@ -374,7 +400,7 @@ var MiningApi = class {
|
|
|
374
400
|
*/
|
|
375
401
|
async extraBonusList(requestParameters) {
|
|
376
402
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.extraBonusList(requestParameters?.algo, requestParameters?.userName, requestParameters?.coin, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
377
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
403
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
378
404
|
}
|
|
379
405
|
/**
|
|
380
406
|
* Hashrate Resale Detail(USER_DATA)
|
|
@@ -390,7 +416,7 @@ var MiningApi = class {
|
|
|
390
416
|
*/
|
|
391
417
|
async hashrateResaleDetail(requestParameters) {
|
|
392
418
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.hashrateResaleDetail(requestParameters?.configId, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
393
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
419
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
394
420
|
}
|
|
395
421
|
/**
|
|
396
422
|
* Hashrate Resale List
|
|
@@ -406,7 +432,7 @@ var MiningApi = class {
|
|
|
406
432
|
*/
|
|
407
433
|
async hashrateResaleList(requestParameters = {}) {
|
|
408
434
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.hashrateResaleList(requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
409
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
435
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
410
436
|
}
|
|
411
437
|
/**
|
|
412
438
|
* Hashrate Resale Request
|
|
@@ -422,7 +448,7 @@ var MiningApi = class {
|
|
|
422
448
|
*/
|
|
423
449
|
async hashrateResaleRequest(requestParameters) {
|
|
424
450
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.hashrateResaleRequest(requestParameters?.userName, requestParameters?.algo, requestParameters?.endDate, requestParameters?.startDate, requestParameters?.toPoolUser, requestParameters?.hashRate, requestParameters?.recvWindow);
|
|
425
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
451
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
426
452
|
}
|
|
427
453
|
/**
|
|
428
454
|
* Mining Account Earning
|
|
@@ -438,7 +464,7 @@ var MiningApi = class {
|
|
|
438
464
|
*/
|
|
439
465
|
async miningAccountEarning(requestParameters) {
|
|
440
466
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.miningAccountEarning(requestParameters?.algo, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
441
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
467
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
442
468
|
}
|
|
443
469
|
/**
|
|
444
470
|
* Request for Detail Miner List
|
|
@@ -454,7 +480,7 @@ var MiningApi = class {
|
|
|
454
480
|
*/
|
|
455
481
|
async requestForDetailMinerList(requestParameters) {
|
|
456
482
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.requestForDetailMinerList(requestParameters?.algo, requestParameters?.userName, requestParameters?.workerName, requestParameters?.recvWindow);
|
|
457
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
483
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
458
484
|
}
|
|
459
485
|
/**
|
|
460
486
|
* Request for Miner List
|
|
@@ -470,7 +496,7 @@ var MiningApi = class {
|
|
|
470
496
|
*/
|
|
471
497
|
async requestForMinerList(requestParameters) {
|
|
472
498
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.requestForMinerList(requestParameters?.algo, requestParameters?.userName, requestParameters?.pageIndex, requestParameters?.sort, requestParameters?.sortColumn, requestParameters?.workerStatus, requestParameters?.recvWindow);
|
|
473
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
499
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
474
500
|
}
|
|
475
501
|
/**
|
|
476
502
|
* Statistic List
|
|
@@ -486,7 +512,7 @@ var MiningApi = class {
|
|
|
486
512
|
*/
|
|
487
513
|
async statisticList(requestParameters) {
|
|
488
514
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.statisticList(requestParameters?.algo, requestParameters?.userName, requestParameters?.recvWindow);
|
|
489
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
515
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
490
516
|
}
|
|
491
517
|
};
|
|
492
518
|
|
|
@@ -519,7 +545,7 @@ var RestAPI = class {
|
|
|
519
545
|
* @returns A promise resolving to the response data object.
|
|
520
546
|
*/
|
|
521
547
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
522
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
548
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
523
549
|
}
|
|
524
550
|
/**
|
|
525
551
|
* Generic function to send a signed request.
|
|
@@ -531,7 +557,7 @@ var RestAPI = class {
|
|
|
531
557
|
* @returns A promise resolving to the response data object.
|
|
532
558
|
*/
|
|
533
559
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
534
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
560
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
535
561
|
}
|
|
536
562
|
/**
|
|
537
563
|
* Query Account List
|