@binance/mining 3.0.8 → 4.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/index.js CHANGED
@@ -41,7 +41,7 @@ var import_common3 = require("@binance/common");
41
41
 
42
42
  // package.json
43
43
  var name = "@binance/mining";
44
- var version = "3.0.8";
44
+ var version = "4.0.1";
45
45
 
46
46
  // src/rest-api/index.ts
47
47
  var rest_api_exports = {};
@@ -62,7 +62,7 @@ var MiningApiAxiosParamCreator = function(configuration) {
62
62
  * @summary Account List(USER_DATA)
63
63
  * @param {string} algo Algorithm(sha256) sha256
64
64
  * @param {string} userName Mining account test
65
- * @param {number} [recvWindow]
65
+ * @param {number | bigint} [recvWindow]
66
66
  *
67
67
  * @throws {RequiredError}
68
68
  */
@@ -133,9 +133,9 @@ var MiningApiAxiosParamCreator = function(configuration) {
133
133
  * Weight: 5
134
134
  *
135
135
  * @summary Cancel hashrate resale configuration(USER_DATA)
136
- * @param {number} configId Mining ID 168
136
+ * @param {number | bigint} configId Mining ID 168
137
137
  * @param {string} userName Mining account test
138
- * @param {number} [recvWindow]
138
+ * @param {number | bigint} [recvWindow]
139
139
  *
140
140
  * @throws {RequiredError}
141
141
  */
@@ -170,11 +170,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
170
170
  * @param {string} algo Algorithm(sha256) sha256
171
171
  * @param {string} userName Mining account test
172
172
  * @param {string} [coin] Coin Name
173
- * @param {number} [startDate] Millisecond timestamp
174
- * @param {number} [endDate] Millisecond timestamp
175
- * @param {number} [pageIndex] Page number, empty default first page, starting from 1
176
- * @param {number} [pageSize] Min 10,Max 200
177
- * @param {number} [recvWindow]
173
+ * @param {number | bigint} [startDate] Millisecond timestamp
174
+ * @param {number | bigint} [endDate] Millisecond timestamp
175
+ * @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
176
+ * @param {number | bigint} [pageSize] Min 10,Max 200
177
+ * @param {number | bigint} [recvWindow]
178
178
  *
179
179
  * @throws {RequiredError}
180
180
  */
@@ -224,11 +224,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
224
224
  * @param {string} algo Algorithm(sha256) sha256
225
225
  * @param {string} userName Mining account test
226
226
  * @param {string} [coin] Coin Name
227
- * @param {number} [startDate] Millisecond timestamp
228
- * @param {number} [endDate] Millisecond timestamp
229
- * @param {number} [pageIndex] Page number, empty default first page, starting from 1
230
- * @param {number} [pageSize] Min 10,Max 200
231
- * @param {number} [recvWindow]
227
+ * @param {number | bigint} [startDate] Millisecond timestamp
228
+ * @param {number | bigint} [endDate] Millisecond timestamp
229
+ * @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
230
+ * @param {number | bigint} [pageSize] Min 10,Max 200
231
+ * @param {number | bigint} [recvWindow]
232
232
  *
233
233
  * @throws {RequiredError}
234
234
  */
@@ -275,11 +275,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
275
275
  * Weight: 5
276
276
  *
277
277
  * @summary Hashrate Resale Detail(USER_DATA)
278
- * @param {number} configId Mining ID 168
278
+ * @param {number | bigint} configId Mining ID 168
279
279
  * @param {string} userName Mining account test
280
- * @param {number} [pageIndex] Page number, empty default first page, starting from 1
281
- * @param {number} [pageSize] Min 10,Max 200
282
- * @param {number} [recvWindow]
280
+ * @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
281
+ * @param {number | bigint} [pageSize] Min 10,Max 200
282
+ * @param {number | bigint} [recvWindow]
283
283
  *
284
284
  * @throws {RequiredError}
285
285
  */
@@ -317,9 +317,9 @@ var MiningApiAxiosParamCreator = function(configuration) {
317
317
  * Weight: 5
318
318
  *
319
319
  * @summary Hashrate Resale List
320
- * @param {number} [pageIndex] Page number, empty default first page, starting from 1
321
- * @param {number} [pageSize] Min 10,Max 200
322
- * @param {number} [recvWindow]
320
+ * @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
321
+ * @param {number | bigint} [pageSize] Min 10,Max 200
322
+ * @param {number | bigint} [recvWindow]
323
323
  *
324
324
  * @throws {RequiredError}
325
325
  */
@@ -351,11 +351,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
351
351
  * @summary Hashrate Resale Request(USER_DATA)
352
352
  * @param {string} userName Mining account test
353
353
  * @param {string} algo Algorithm(sha256) sha256
354
- * @param {number} endDate Resale End Time (Millisecond timestamp) 1617659086000
355
- * @param {number} startDate Resale Start Time(Millisecond timestamp) 1607659086000
354
+ * @param {number | bigint} endDate Resale End Time (Millisecond timestamp) 1617659086000
355
+ * @param {number | bigint} startDate Resale Start Time(Millisecond timestamp) 1607659086000
356
356
  * @param {string} toPoolUser Mining Account S19pro
357
- * @param {number} hashRate Resale hashrate h/s must be transferred (BTC is greater than 500000000000 ETH is greater than 500000) 100000000
358
- * @param {number} [recvWindow]
357
+ * @param {number | bigint} hashRate Resale hashrate h/s must be transferred (BTC is greater than 500000000000 ETH is greater than 500000) 100000000
358
+ * @param {number | bigint} [recvWindow]
359
359
  *
360
360
  * @throws {RequiredError}
361
361
  */
@@ -404,11 +404,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
404
404
  *
405
405
  * @summary Mining Account Earning(USER_DATA)
406
406
  * @param {string} algo Algorithm(sha256) sha256
407
- * @param {number} [startDate] Millisecond timestamp
408
- * @param {number} [endDate] Millisecond timestamp
409
- * @param {number} [pageIndex] Page number, empty default first page, starting from 1
410
- * @param {number} [pageSize] Min 10,Max 200
411
- * @param {number} [recvWindow]
407
+ * @param {number | bigint} [startDate] Millisecond timestamp
408
+ * @param {number | bigint} [endDate] Millisecond timestamp
409
+ * @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
410
+ * @param {number | bigint} [pageSize] Min 10,Max 200
411
+ * @param {number | bigint} [recvWindow]
412
412
  *
413
413
  * @throws {RequiredError}
414
414
  */
@@ -451,7 +451,7 @@ var MiningApiAxiosParamCreator = function(configuration) {
451
451
  * @param {string} algo Algorithm(sha256) sha256
452
452
  * @param {string} userName Mining account test
453
453
  * @param {string} workerName Miner’s name(required) bhdc1.16A10404B
454
- * @param {number} [recvWindow]
454
+ * @param {number | bigint} [recvWindow]
455
455
  *
456
456
  * @throws {RequiredError}
457
457
  */
@@ -489,11 +489,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
489
489
  * @summary Request for Miner List(USER_DATA)
490
490
  * @param {string} algo Algorithm(sha256) sha256
491
491
  * @param {string} userName Mining account test
492
- * @param {number} [pageIndex] Page number, empty default first page, starting from 1
493
- * @param {number} [sort] sort sequence(default=0)0 positive sequence,1 negative sequence
494
- * @param {number} [sortColumn] Sort by( default 1): <br></br>1: miner name, <br></br>2: real-time computing power, <br></br>3: daily average computing power, <br></br>4: real-time rejection rate, <br></br>5: last submission time
495
- * @param {number} [workerStatus] miners status(default=0),0 all,1 valid,2 invalid,3 failure
496
- * @param {number} [recvWindow]
492
+ * @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
493
+ * @param {number | bigint} [sort] sort sequence(default=0)0 positive sequence,1 negative sequence
494
+ * @param {number | bigint} [sortColumn] Sort by( default 1): <br></br>1: miner name, <br></br>2: real-time computing power, <br></br>3: daily average computing power, <br></br>4: real-time rejection rate, <br></br>5: last submission time
495
+ * @param {number | bigint} [workerStatus] miners status(default=0),0 all,1 valid,2 invalid,3 failure
496
+ * @param {number | bigint} [recvWindow]
497
497
  *
498
498
  * @throws {RequiredError}
499
499
  */
@@ -539,7 +539,7 @@ var MiningApiAxiosParamCreator = function(configuration) {
539
539
  * @summary Statistic List(USER_DATA)
540
540
  * @param {string} algo Algorithm(sha256) sha256
541
541
  * @param {string} userName Mining account test
542
- * @param {number} [recvWindow]
542
+ * @param {number | bigint} [recvWindow]
543
543
  *
544
544
  * @throws {RequiredError}
545
545
  */
@@ -976,6 +976,7 @@ var RestAPI = class {
976
976
  *
977
977
  * @summary Account List(USER_DATA)
978
978
  * @param {AccountListRequest} requestParameters Request parameters.
979
+ *
979
980
  * @returns {Promise<RestApiResponse<AccountListResponse>>}
980
981
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
981
982
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Account-List Binance API Documentation}
@@ -989,6 +990,7 @@ var RestAPI = class {
989
990
  * Weight: 1
990
991
  *
991
992
  * @summary Acquiring Algorithm(MARKET_DATA)
993
+ *
992
994
  * @returns {Promise<RestApiResponse<AcquiringAlgorithmResponse>>}
993
995
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
994
996
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Acquiring-Algorithm Binance API Documentation}
@@ -1002,6 +1004,7 @@ var RestAPI = class {
1002
1004
  * Weight: 1
1003
1005
  *
1004
1006
  * @summary Acquiring CoinName(MARKET_DATA)
1007
+ *
1005
1008
  * @returns {Promise<RestApiResponse<AcquiringCoinnameResponse>>}
1006
1009
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1007
1010
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Acquiring-CoinName Binance API Documentation}
@@ -1015,6 +1018,7 @@ var RestAPI = class {
1015
1018
  *
1016
1019
  * @summary Cancel hashrate resale configuration(USER_DATA)
1017
1020
  * @param {CancelHashrateResaleConfigurationRequest} requestParameters Request parameters.
1021
+ *
1018
1022
  * @returns {Promise<RestApiResponse<CancelHashrateResaleConfigurationResponse>>}
1019
1023
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1020
1024
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Cancel-hashrate-resale-configuration Binance API Documentation}
@@ -1029,6 +1033,7 @@ var RestAPI = class {
1029
1033
  *
1030
1034
  * @summary Earnings List(USER_DATA)
1031
1035
  * @param {EarningsListRequest} requestParameters Request parameters.
1036
+ *
1032
1037
  * @returns {Promise<RestApiResponse<EarningsListResponse>>}
1033
1038
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1034
1039
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Earnings-List Binance API Documentation}
@@ -1043,6 +1048,7 @@ var RestAPI = class {
1043
1048
  *
1044
1049
  * @summary Extra Bonus List(USER_DATA)
1045
1050
  * @param {ExtraBonusListRequest} requestParameters Request parameters.
1051
+ *
1046
1052
  * @returns {Promise<RestApiResponse<ExtraBonusListResponse>>}
1047
1053
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1048
1054
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Extra-Bonus-List Binance API Documentation}
@@ -1057,6 +1063,7 @@ var RestAPI = class {
1057
1063
  *
1058
1064
  * @summary Hashrate Resale Detail(USER_DATA)
1059
1065
  * @param {HashrateResaleDetailRequest} requestParameters Request parameters.
1066
+ *
1060
1067
  * @returns {Promise<RestApiResponse<HashrateResaleDetailResponse>>}
1061
1068
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1062
1069
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Hashrate-Resale-Detail Binance API Documentation}
@@ -1071,6 +1078,7 @@ var RestAPI = class {
1071
1078
  *
1072
1079
  * @summary Hashrate Resale List
1073
1080
  * @param {HashrateResaleListRequest} requestParameters Request parameters.
1081
+ *
1074
1082
  * @returns {Promise<RestApiResponse<HashrateResaleListResponse>>}
1075
1083
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1076
1084
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Hashrate-Resale-List Binance API Documentation}
@@ -1085,6 +1093,7 @@ var RestAPI = class {
1085
1093
  *
1086
1094
  * @summary Hashrate Resale Request(USER_DATA)
1087
1095
  * @param {HashrateResaleRequestRequest} requestParameters Request parameters.
1096
+ *
1088
1097
  * @returns {Promise<RestApiResponse<HashrateResaleRequestResponse>>}
1089
1098
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1090
1099
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Hashrate-Resale-Request Binance API Documentation}
@@ -1099,6 +1108,7 @@ var RestAPI = class {
1099
1108
  *
1100
1109
  * @summary Mining Account Earning(USER_DATA)
1101
1110
  * @param {MiningAccountEarningRequest} requestParameters Request parameters.
1111
+ *
1102
1112
  * @returns {Promise<RestApiResponse<MiningAccountEarningResponse>>}
1103
1113
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1104
1114
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Mining-Account-Earning Binance API Documentation}
@@ -1113,6 +1123,7 @@ var RestAPI = class {
1113
1123
  *
1114
1124
  * @summary Request for Detail Miner List(USER_DATA)
1115
1125
  * @param {RequestForDetailMinerListRequest} requestParameters Request parameters.
1126
+ *
1116
1127
  * @returns {Promise<RestApiResponse<RequestForDetailMinerListResponse>>}
1117
1128
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1118
1129
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Request-for-Detail-Miner-List Binance API Documentation}
@@ -1127,6 +1138,7 @@ var RestAPI = class {
1127
1138
  *
1128
1139
  * @summary Request for Miner List(USER_DATA)
1129
1140
  * @param {RequestForMinerListRequest} requestParameters Request parameters.
1141
+ *
1130
1142
  * @returns {Promise<RestApiResponse<RequestForMinerListResponse>>}
1131
1143
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1132
1144
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Request-for-Miner-List Binance API Documentation}
@@ -1141,6 +1153,7 @@ var RestAPI = class {
1141
1153
  *
1142
1154
  * @summary Statistic List(USER_DATA)
1143
1155
  * @param {StatisticListRequest} requestParameters Request parameters.
1156
+ *
1144
1157
  * @returns {Promise<RestApiResponse<StatisticListResponse>>}
1145
1158
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1146
1159
  * @see {@link https://developers.binance.com/docs/mining/rest-api/Statistic-List Binance API Documentation}