@binance/mining 5.0.14 → 6.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/README.md +13 -0
- package/dist/index.d.mts +461 -401
- package/dist/index.d.ts +461 -401
- package/dist/index.js +172 -118
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +172 -118
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -14,14 +14,14 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/mining";
|
|
17
|
-
var version = "
|
|
17
|
+
var version = "6.0.1";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region src/rest-api/modules/
|
|
20
|
+
//#region src/rest-api/modules/api.ts
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Mining REST API
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* Query mining status, earnings, and account data via the Binance Pool API.
|
|
25
25
|
*
|
|
26
26
|
* The version of the OpenAPI document: 1.0.0
|
|
27
27
|
*
|
|
@@ -31,9 +31,9 @@ var version = "5.0.14";
|
|
|
31
31
|
* Do not edit the class manually.
|
|
32
32
|
*/
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Api - axios parameter creator
|
|
35
35
|
*/
|
|
36
|
-
const
|
|
36
|
+
const ApiAxiosParamCreator = function(configuration) {
|
|
37
37
|
return {
|
|
38
38
|
accountList: async (algo, userName, recvWindow) => {
|
|
39
39
|
(0, __binance_common.assertParamExists)("accountList", "algo", algo);
|
|
@@ -312,25 +312,27 @@ const MiningApiAxiosParamCreator = function(configuration) {
|
|
|
312
312
|
};
|
|
313
313
|
};
|
|
314
314
|
/**
|
|
315
|
-
*
|
|
316
|
-
* @class
|
|
315
|
+
* Api - object-oriented interface
|
|
316
|
+
* @class Api
|
|
317
317
|
*/
|
|
318
|
-
var
|
|
318
|
+
var Api = class {
|
|
319
319
|
constructor(configuration) {
|
|
320
320
|
this.configuration = configuration;
|
|
321
|
-
this.localVarAxiosParamCreator =
|
|
321
|
+
this.localVarAxiosParamCreator = ApiAxiosParamCreator(configuration);
|
|
322
322
|
}
|
|
323
323
|
/**
|
|
324
324
|
* Query Account List
|
|
325
325
|
*
|
|
326
|
-
* Weight:
|
|
326
|
+
* Weight(IP): 1
|
|
327
327
|
*
|
|
328
|
-
*
|
|
328
|
+
* Security Type: USER_DATA
|
|
329
|
+
*
|
|
330
|
+
* @summary Account List (USER_DATA)
|
|
329
331
|
* @param {AccountListRequest} requestParameters Request parameters.
|
|
330
332
|
* @returns {Promise<RestApiResponse<AccountListResponse>>}
|
|
331
333
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
332
|
-
* @memberof
|
|
333
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
334
|
+
* @memberof Api
|
|
335
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#account-list Binance API Documentation}
|
|
334
336
|
*/
|
|
335
337
|
async accountList(requestParameters) {
|
|
336
338
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountList(requestParameters?.algo, requestParameters?.userName, requestParameters?.recvWindow);
|
|
@@ -339,13 +341,15 @@ var MiningApi = class {
|
|
|
339
341
|
/**
|
|
340
342
|
* Acquiring Algorithm
|
|
341
343
|
*
|
|
342
|
-
* Weight: 1
|
|
344
|
+
* Weight(IP): 1
|
|
345
|
+
*
|
|
346
|
+
* Security Type: MARKET_DATA
|
|
343
347
|
*
|
|
344
|
-
* @summary Acquiring Algorithm(MARKET_DATA)
|
|
348
|
+
* @summary Acquiring Algorithm (MARKET_DATA)
|
|
345
349
|
* @returns {Promise<RestApiResponse<AcquiringAlgorithmResponse>>}
|
|
346
350
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
347
|
-
* @memberof
|
|
348
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
351
|
+
* @memberof Api
|
|
352
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#acquiring-algorithm Binance API Documentation}
|
|
349
353
|
*/
|
|
350
354
|
async acquiringAlgorithm() {
|
|
351
355
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.acquiringAlgorithm();
|
|
@@ -354,28 +358,33 @@ var MiningApi = class {
|
|
|
354
358
|
/**
|
|
355
359
|
* Acquiring CoinName
|
|
356
360
|
*
|
|
357
|
-
* Weight: 1
|
|
361
|
+
* Weight(IP): 1
|
|
358
362
|
*
|
|
359
|
-
*
|
|
363
|
+
* Security Type: MARKET_DATA
|
|
364
|
+
*
|
|
365
|
+
* @summary Acquiring CoinName (MARKET_DATA)
|
|
360
366
|
* @returns {Promise<RestApiResponse<AcquiringCoinnameResponse>>}
|
|
361
367
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
362
|
-
* @memberof
|
|
363
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
368
|
+
* @memberof Api
|
|
369
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#acquiring-coinname Binance API Documentation}
|
|
364
370
|
*/
|
|
365
371
|
async acquiringCoinname() {
|
|
366
372
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.acquiringCoinname();
|
|
367
373
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
368
374
|
}
|
|
369
375
|
/**
|
|
376
|
+
* Cancel hashrate resale configuration
|
|
377
|
+
*
|
|
378
|
+
* Weight(IP): 1
|
|
370
379
|
*
|
|
371
|
-
*
|
|
380
|
+
* Security Type: USER_DATA
|
|
372
381
|
*
|
|
373
|
-
* @summary Cancel hashrate resale configuration(USER_DATA)
|
|
382
|
+
* @summary Cancel hashrate resale configuration (USER_DATA)
|
|
374
383
|
* @param {CancelHashrateResaleConfigurationRequest} requestParameters Request parameters.
|
|
375
384
|
* @returns {Promise<RestApiResponse<CancelHashrateResaleConfigurationResponse>>}
|
|
376
385
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
377
|
-
* @memberof
|
|
378
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
386
|
+
* @memberof Api
|
|
387
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#cancel-hashrate-resale-configuration Binance API Documentation}
|
|
379
388
|
*/
|
|
380
389
|
async cancelHashrateResaleConfiguration(requestParameters) {
|
|
381
390
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelHashrateResaleConfiguration(requestParameters?.configId, requestParameters?.userName, requestParameters?.recvWindow);
|
|
@@ -384,14 +393,16 @@ var MiningApi = class {
|
|
|
384
393
|
/**
|
|
385
394
|
* Query Earnings List
|
|
386
395
|
*
|
|
387
|
-
* Weight:
|
|
396
|
+
* Weight(IP): 1
|
|
388
397
|
*
|
|
389
|
-
*
|
|
398
|
+
* Security Type: USER_DATA
|
|
399
|
+
*
|
|
400
|
+
* @summary Earnings List (USER_DATA)
|
|
390
401
|
* @param {EarningsListRequest} requestParameters Request parameters.
|
|
391
402
|
* @returns {Promise<RestApiResponse<EarningsListResponse>>}
|
|
392
403
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
393
|
-
* @memberof
|
|
394
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
404
|
+
* @memberof Api
|
|
405
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#earnings-list Binance API Documentation}
|
|
395
406
|
*/
|
|
396
407
|
async earningsList(requestParameters) {
|
|
397
408
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.earningsList(requestParameters?.algo, requestParameters?.userName, requestParameters?.coin, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
@@ -400,14 +411,16 @@ var MiningApi = class {
|
|
|
400
411
|
/**
|
|
401
412
|
* Extra Bonus List
|
|
402
413
|
*
|
|
403
|
-
* Weight:
|
|
414
|
+
* Weight(IP): 1
|
|
415
|
+
*
|
|
416
|
+
* Security Type: USER_DATA
|
|
404
417
|
*
|
|
405
|
-
* @summary Extra Bonus List(USER_DATA)
|
|
418
|
+
* @summary Extra Bonus List (USER_DATA)
|
|
406
419
|
* @param {ExtraBonusListRequest} requestParameters Request parameters.
|
|
407
420
|
* @returns {Promise<RestApiResponse<ExtraBonusListResponse>>}
|
|
408
421
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
409
|
-
* @memberof
|
|
410
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
422
|
+
* @memberof Api
|
|
423
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#extra-bonus-list Binance API Documentation}
|
|
411
424
|
*/
|
|
412
425
|
async extraBonusList(requestParameters) {
|
|
413
426
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.extraBonusList(requestParameters?.algo, requestParameters?.userName, requestParameters?.coin, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
@@ -416,14 +429,16 @@ var MiningApi = class {
|
|
|
416
429
|
/**
|
|
417
430
|
* Hashrate Resale Detail(USER_DATA)
|
|
418
431
|
*
|
|
419
|
-
* Weight:
|
|
432
|
+
* Weight(IP): 1
|
|
433
|
+
*
|
|
434
|
+
* Security Type: USER_DATA
|
|
420
435
|
*
|
|
421
|
-
* @summary Hashrate Resale Detail(USER_DATA)
|
|
436
|
+
* @summary Hashrate Resale Detail (USER_DATA)
|
|
422
437
|
* @param {HashrateResaleDetailRequest} requestParameters Request parameters.
|
|
423
438
|
* @returns {Promise<RestApiResponse<HashrateResaleDetailResponse>>}
|
|
424
439
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
425
|
-
* @memberof
|
|
426
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
440
|
+
* @memberof Api
|
|
441
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#hashrate-resale-detail Binance API Documentation}
|
|
427
442
|
*/
|
|
428
443
|
async hashrateResaleDetail(requestParameters) {
|
|
429
444
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.hashrateResaleDetail(requestParameters?.configId, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
@@ -432,14 +447,16 @@ var MiningApi = class {
|
|
|
432
447
|
/**
|
|
433
448
|
* Hashrate Resale List
|
|
434
449
|
*
|
|
435
|
-
* Weight:
|
|
450
|
+
* Weight(IP): 1
|
|
436
451
|
*
|
|
437
|
-
*
|
|
452
|
+
* Security Type: USER_DATA
|
|
453
|
+
*
|
|
454
|
+
* @summary Hashrate Resale List (USER_DATA)
|
|
438
455
|
* @param {HashrateResaleListRequest} requestParameters Request parameters.
|
|
439
456
|
* @returns {Promise<RestApiResponse<HashrateResaleListResponse>>}
|
|
440
457
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
441
|
-
* @memberof
|
|
442
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
458
|
+
* @memberof Api
|
|
459
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#hashrate-resale-list Binance API Documentation}
|
|
443
460
|
*/
|
|
444
461
|
async hashrateResaleList(requestParameters = {}) {
|
|
445
462
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.hashrateResaleList(requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
@@ -448,14 +465,16 @@ var MiningApi = class {
|
|
|
448
465
|
/**
|
|
449
466
|
* Hashrate Resale Request
|
|
450
467
|
*
|
|
451
|
-
* Weight:
|
|
468
|
+
* Weight(IP): 1
|
|
469
|
+
*
|
|
470
|
+
* Security Type: USER_DATA
|
|
452
471
|
*
|
|
453
|
-
* @summary Hashrate Resale Request(USER_DATA)
|
|
472
|
+
* @summary Hashrate Resale Request (USER_DATA)
|
|
454
473
|
* @param {HashrateResaleRequestRequest} requestParameters Request parameters.
|
|
455
474
|
* @returns {Promise<RestApiResponse<HashrateResaleRequestResponse>>}
|
|
456
475
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
457
|
-
* @memberof
|
|
458
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
476
|
+
* @memberof Api
|
|
477
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#hashrate-resale-request Binance API Documentation}
|
|
459
478
|
*/
|
|
460
479
|
async hashrateResaleRequest(requestParameters) {
|
|
461
480
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.hashrateResaleRequest(requestParameters?.userName, requestParameters?.algo, requestParameters?.endDate, requestParameters?.startDate, requestParameters?.toPoolUser, requestParameters?.hashRate, requestParameters?.recvWindow);
|
|
@@ -464,14 +483,16 @@ var MiningApi = class {
|
|
|
464
483
|
/**
|
|
465
484
|
* Mining Account Earning
|
|
466
485
|
*
|
|
467
|
-
* Weight:
|
|
486
|
+
* Weight(IP): 1
|
|
487
|
+
*
|
|
488
|
+
* Security Type: USER_DATA
|
|
468
489
|
*
|
|
469
|
-
* @summary Mining Account Earning(USER_DATA)
|
|
490
|
+
* @summary Mining Account Earning (USER_DATA)
|
|
470
491
|
* @param {MiningAccountEarningRequest} requestParameters Request parameters.
|
|
471
492
|
* @returns {Promise<RestApiResponse<MiningAccountEarningResponse>>}
|
|
472
493
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
473
|
-
* @memberof
|
|
474
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
494
|
+
* @memberof Api
|
|
495
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#mining-account-earning Binance API Documentation}
|
|
475
496
|
*/
|
|
476
497
|
async miningAccountEarning(requestParameters) {
|
|
477
498
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.miningAccountEarning(requestParameters?.algo, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.pageIndex, requestParameters?.pageSize, requestParameters?.recvWindow);
|
|
@@ -480,14 +501,16 @@ var MiningApi = class {
|
|
|
480
501
|
/**
|
|
481
502
|
* Request for Detail Miner List
|
|
482
503
|
*
|
|
483
|
-
* Weight:
|
|
504
|
+
* Weight(IP): 1
|
|
484
505
|
*
|
|
485
|
-
*
|
|
506
|
+
* Security Type: USER_DATA
|
|
507
|
+
*
|
|
508
|
+
* @summary Request for Detail Miner List (USER_DATA)
|
|
486
509
|
* @param {RequestForDetailMinerListRequest} requestParameters Request parameters.
|
|
487
510
|
* @returns {Promise<RestApiResponse<RequestForDetailMinerListResponse>>}
|
|
488
511
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
489
|
-
* @memberof
|
|
490
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
512
|
+
* @memberof Api
|
|
513
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#request-for-detail-miner-list Binance API Documentation}
|
|
491
514
|
*/
|
|
492
515
|
async requestForDetailMinerList(requestParameters) {
|
|
493
516
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.requestForDetailMinerList(requestParameters?.algo, requestParameters?.userName, requestParameters?.workerName, requestParameters?.recvWindow);
|
|
@@ -496,14 +519,16 @@ var MiningApi = class {
|
|
|
496
519
|
/**
|
|
497
520
|
* Request for Miner List
|
|
498
521
|
*
|
|
499
|
-
* Weight:
|
|
522
|
+
* Weight(IP): 1
|
|
523
|
+
*
|
|
524
|
+
* Security Type: USER_DATA
|
|
500
525
|
*
|
|
501
|
-
* @summary Request for Miner List(USER_DATA)
|
|
526
|
+
* @summary Request for Miner List (USER_DATA)
|
|
502
527
|
* @param {RequestForMinerListRequest} requestParameters Request parameters.
|
|
503
528
|
* @returns {Promise<RestApiResponse<RequestForMinerListResponse>>}
|
|
504
529
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
505
|
-
* @memberof
|
|
506
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
530
|
+
* @memberof Api
|
|
531
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#request-for-miner-list Binance API Documentation}
|
|
507
532
|
*/
|
|
508
533
|
async requestForMinerList(requestParameters) {
|
|
509
534
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.requestForMinerList(requestParameters?.algo, requestParameters?.userName, requestParameters?.pageIndex, requestParameters?.sort, requestParameters?.sortColumn, requestParameters?.workerStatus, requestParameters?.recvWindow);
|
|
@@ -512,14 +537,16 @@ var MiningApi = class {
|
|
|
512
537
|
/**
|
|
513
538
|
* Statistic List
|
|
514
539
|
*
|
|
515
|
-
* Weight:
|
|
540
|
+
* Weight(IP): 1
|
|
541
|
+
*
|
|
542
|
+
* Security Type: USER_DATA
|
|
516
543
|
*
|
|
517
|
-
* @summary Statistic List(USER_DATA)
|
|
544
|
+
* @summary Statistic List (USER_DATA)
|
|
518
545
|
* @param {StatisticListRequest} requestParameters Request parameters.
|
|
519
546
|
* @returns {Promise<RestApiResponse<StatisticListResponse>>}
|
|
520
547
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
521
|
-
* @memberof
|
|
522
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
548
|
+
* @memberof Api
|
|
549
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#statistic-list Binance API Documentation}
|
|
523
550
|
*/
|
|
524
551
|
async statisticList(requestParameters) {
|
|
525
552
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.statisticList(requestParameters?.algo, requestParameters?.userName, requestParameters?.recvWindow);
|
|
@@ -530,9 +557,9 @@ var MiningApi = class {
|
|
|
530
557
|
//#endregion
|
|
531
558
|
//#region src/rest-api/rest-api.ts
|
|
532
559
|
/**
|
|
533
|
-
*
|
|
560
|
+
* Mining REST API
|
|
534
561
|
*
|
|
535
|
-
*
|
|
562
|
+
* Query mining status, earnings, and account data via the Binance Pool API.
|
|
536
563
|
*
|
|
537
564
|
* The version of the OpenAPI document: 1.0.0
|
|
538
565
|
*
|
|
@@ -544,7 +571,7 @@ var MiningApi = class {
|
|
|
544
571
|
var RestAPI = class {
|
|
545
572
|
constructor(configuration) {
|
|
546
573
|
this.configuration = configuration;
|
|
547
|
-
this.
|
|
574
|
+
this.api = new Api(configuration);
|
|
548
575
|
}
|
|
549
576
|
/**
|
|
550
577
|
* Generic function to send a request.
|
|
@@ -573,201 +600,228 @@ var RestAPI = class {
|
|
|
573
600
|
/**
|
|
574
601
|
* Query Account List
|
|
575
602
|
*
|
|
576
|
-
* Weight:
|
|
603
|
+
* Weight(IP): 1
|
|
577
604
|
*
|
|
578
|
-
*
|
|
605
|
+
* Security Type: USER_DATA
|
|
606
|
+
*
|
|
607
|
+
* @summary Account List (USER_DATA)
|
|
579
608
|
* @param {AccountListRequest} requestParameters Request parameters.
|
|
580
609
|
*
|
|
581
610
|
* @returns {Promise<RestApiResponse<AccountListResponse>>}
|
|
582
611
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
583
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
612
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#account-list Binance API Documentation}
|
|
584
613
|
*/
|
|
585
614
|
accountList(requestParameters) {
|
|
586
|
-
return this.
|
|
615
|
+
return this.api.accountList(requestParameters);
|
|
587
616
|
}
|
|
588
617
|
/**
|
|
589
618
|
* Acquiring Algorithm
|
|
590
619
|
*
|
|
591
|
-
* Weight: 1
|
|
620
|
+
* Weight(IP): 1
|
|
621
|
+
*
|
|
622
|
+
* Security Type: MARKET_DATA
|
|
592
623
|
*
|
|
593
|
-
* @summary Acquiring Algorithm(MARKET_DATA)
|
|
624
|
+
* @summary Acquiring Algorithm (MARKET_DATA)
|
|
594
625
|
*
|
|
595
626
|
* @returns {Promise<RestApiResponse<AcquiringAlgorithmResponse>>}
|
|
596
627
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
597
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
628
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#acquiring-algorithm Binance API Documentation}
|
|
598
629
|
*/
|
|
599
630
|
acquiringAlgorithm() {
|
|
600
|
-
return this.
|
|
631
|
+
return this.api.acquiringAlgorithm();
|
|
601
632
|
}
|
|
602
633
|
/**
|
|
603
634
|
* Acquiring CoinName
|
|
604
635
|
*
|
|
605
|
-
* Weight: 1
|
|
636
|
+
* Weight(IP): 1
|
|
606
637
|
*
|
|
607
|
-
*
|
|
638
|
+
* Security Type: MARKET_DATA
|
|
639
|
+
*
|
|
640
|
+
* @summary Acquiring CoinName (MARKET_DATA)
|
|
608
641
|
*
|
|
609
642
|
* @returns {Promise<RestApiResponse<AcquiringCoinnameResponse>>}
|
|
610
643
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
611
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
644
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#acquiring-coinname Binance API Documentation}
|
|
612
645
|
*/
|
|
613
646
|
acquiringCoinname() {
|
|
614
|
-
return this.
|
|
647
|
+
return this.api.acquiringCoinname();
|
|
615
648
|
}
|
|
616
649
|
/**
|
|
650
|
+
* Cancel hashrate resale configuration
|
|
651
|
+
*
|
|
652
|
+
* Weight(IP): 1
|
|
617
653
|
*
|
|
618
|
-
*
|
|
654
|
+
* Security Type: USER_DATA
|
|
619
655
|
*
|
|
620
|
-
* @summary Cancel hashrate resale configuration(USER_DATA)
|
|
656
|
+
* @summary Cancel hashrate resale configuration (USER_DATA)
|
|
621
657
|
* @param {CancelHashrateResaleConfigurationRequest} requestParameters Request parameters.
|
|
622
658
|
*
|
|
623
659
|
* @returns {Promise<RestApiResponse<CancelHashrateResaleConfigurationResponse>>}
|
|
624
660
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
625
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
661
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#cancel-hashrate-resale-configuration Binance API Documentation}
|
|
626
662
|
*/
|
|
627
663
|
cancelHashrateResaleConfiguration(requestParameters) {
|
|
628
|
-
return this.
|
|
664
|
+
return this.api.cancelHashrateResaleConfiguration(requestParameters);
|
|
629
665
|
}
|
|
630
666
|
/**
|
|
631
667
|
* Query Earnings List
|
|
632
668
|
*
|
|
633
|
-
* Weight:
|
|
669
|
+
* Weight(IP): 1
|
|
634
670
|
*
|
|
635
|
-
*
|
|
671
|
+
* Security Type: USER_DATA
|
|
672
|
+
*
|
|
673
|
+
* @summary Earnings List (USER_DATA)
|
|
636
674
|
* @param {EarningsListRequest} requestParameters Request parameters.
|
|
637
675
|
*
|
|
638
676
|
* @returns {Promise<RestApiResponse<EarningsListResponse>>}
|
|
639
677
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
640
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
678
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#earnings-list Binance API Documentation}
|
|
641
679
|
*/
|
|
642
680
|
earningsList(requestParameters) {
|
|
643
|
-
return this.
|
|
681
|
+
return this.api.earningsList(requestParameters);
|
|
644
682
|
}
|
|
645
683
|
/**
|
|
646
684
|
* Extra Bonus List
|
|
647
685
|
*
|
|
648
|
-
* Weight:
|
|
686
|
+
* Weight(IP): 1
|
|
687
|
+
*
|
|
688
|
+
* Security Type: USER_DATA
|
|
649
689
|
*
|
|
650
|
-
* @summary Extra Bonus List(USER_DATA)
|
|
690
|
+
* @summary Extra Bonus List (USER_DATA)
|
|
651
691
|
* @param {ExtraBonusListRequest} requestParameters Request parameters.
|
|
652
692
|
*
|
|
653
693
|
* @returns {Promise<RestApiResponse<ExtraBonusListResponse>>}
|
|
654
694
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
655
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
695
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#extra-bonus-list Binance API Documentation}
|
|
656
696
|
*/
|
|
657
697
|
extraBonusList(requestParameters) {
|
|
658
|
-
return this.
|
|
698
|
+
return this.api.extraBonusList(requestParameters);
|
|
659
699
|
}
|
|
660
700
|
/**
|
|
661
701
|
* Hashrate Resale Detail(USER_DATA)
|
|
662
702
|
*
|
|
663
|
-
* Weight:
|
|
703
|
+
* Weight(IP): 1
|
|
704
|
+
*
|
|
705
|
+
* Security Type: USER_DATA
|
|
664
706
|
*
|
|
665
|
-
* @summary Hashrate Resale Detail(USER_DATA)
|
|
707
|
+
* @summary Hashrate Resale Detail (USER_DATA)
|
|
666
708
|
* @param {HashrateResaleDetailRequest} requestParameters Request parameters.
|
|
667
709
|
*
|
|
668
710
|
* @returns {Promise<RestApiResponse<HashrateResaleDetailResponse>>}
|
|
669
711
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
670
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
712
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#hashrate-resale-detail Binance API Documentation}
|
|
671
713
|
*/
|
|
672
714
|
hashrateResaleDetail(requestParameters) {
|
|
673
|
-
return this.
|
|
715
|
+
return this.api.hashrateResaleDetail(requestParameters);
|
|
674
716
|
}
|
|
675
717
|
/**
|
|
676
718
|
* Hashrate Resale List
|
|
677
719
|
*
|
|
678
|
-
* Weight:
|
|
720
|
+
* Weight(IP): 1
|
|
679
721
|
*
|
|
680
|
-
*
|
|
722
|
+
* Security Type: USER_DATA
|
|
723
|
+
*
|
|
724
|
+
* @summary Hashrate Resale List (USER_DATA)
|
|
681
725
|
* @param {HashrateResaleListRequest} requestParameters Request parameters.
|
|
682
726
|
*
|
|
683
727
|
* @returns {Promise<RestApiResponse<HashrateResaleListResponse>>}
|
|
684
728
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
685
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
729
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#hashrate-resale-list Binance API Documentation}
|
|
686
730
|
*/
|
|
687
731
|
hashrateResaleList(requestParameters = {}) {
|
|
688
|
-
return this.
|
|
732
|
+
return this.api.hashrateResaleList(requestParameters);
|
|
689
733
|
}
|
|
690
734
|
/**
|
|
691
735
|
* Hashrate Resale Request
|
|
692
736
|
*
|
|
693
|
-
* Weight:
|
|
737
|
+
* Weight(IP): 1
|
|
738
|
+
*
|
|
739
|
+
* Security Type: USER_DATA
|
|
694
740
|
*
|
|
695
|
-
* @summary Hashrate Resale Request(USER_DATA)
|
|
741
|
+
* @summary Hashrate Resale Request (USER_DATA)
|
|
696
742
|
* @param {HashrateResaleRequestRequest} requestParameters Request parameters.
|
|
697
743
|
*
|
|
698
744
|
* @returns {Promise<RestApiResponse<HashrateResaleRequestResponse>>}
|
|
699
745
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
700
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
746
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#hashrate-resale-request Binance API Documentation}
|
|
701
747
|
*/
|
|
702
748
|
hashrateResaleRequest(requestParameters) {
|
|
703
|
-
return this.
|
|
749
|
+
return this.api.hashrateResaleRequest(requestParameters);
|
|
704
750
|
}
|
|
705
751
|
/**
|
|
706
752
|
* Mining Account Earning
|
|
707
753
|
*
|
|
708
|
-
* Weight:
|
|
754
|
+
* Weight(IP): 1
|
|
755
|
+
*
|
|
756
|
+
* Security Type: USER_DATA
|
|
709
757
|
*
|
|
710
|
-
* @summary Mining Account Earning(USER_DATA)
|
|
758
|
+
* @summary Mining Account Earning (USER_DATA)
|
|
711
759
|
* @param {MiningAccountEarningRequest} requestParameters Request parameters.
|
|
712
760
|
*
|
|
713
761
|
* @returns {Promise<RestApiResponse<MiningAccountEarningResponse>>}
|
|
714
762
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
715
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
763
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#mining-account-earning Binance API Documentation}
|
|
716
764
|
*/
|
|
717
765
|
miningAccountEarning(requestParameters) {
|
|
718
|
-
return this.
|
|
766
|
+
return this.api.miningAccountEarning(requestParameters);
|
|
719
767
|
}
|
|
720
768
|
/**
|
|
721
769
|
* Request for Detail Miner List
|
|
722
770
|
*
|
|
723
|
-
* Weight:
|
|
771
|
+
* Weight(IP): 1
|
|
724
772
|
*
|
|
725
|
-
*
|
|
773
|
+
* Security Type: USER_DATA
|
|
774
|
+
*
|
|
775
|
+
* @summary Request for Detail Miner List (USER_DATA)
|
|
726
776
|
* @param {RequestForDetailMinerListRequest} requestParameters Request parameters.
|
|
727
777
|
*
|
|
728
778
|
* @returns {Promise<RestApiResponse<RequestForDetailMinerListResponse>>}
|
|
729
779
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
730
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
780
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#request-for-detail-miner-list Binance API Documentation}
|
|
731
781
|
*/
|
|
732
782
|
requestForDetailMinerList(requestParameters) {
|
|
733
|
-
return this.
|
|
783
|
+
return this.api.requestForDetailMinerList(requestParameters);
|
|
734
784
|
}
|
|
735
785
|
/**
|
|
736
786
|
* Request for Miner List
|
|
737
787
|
*
|
|
738
|
-
* Weight:
|
|
788
|
+
* Weight(IP): 1
|
|
789
|
+
*
|
|
790
|
+
* Security Type: USER_DATA
|
|
739
791
|
*
|
|
740
|
-
* @summary Request for Miner List(USER_DATA)
|
|
792
|
+
* @summary Request for Miner List (USER_DATA)
|
|
741
793
|
* @param {RequestForMinerListRequest} requestParameters Request parameters.
|
|
742
794
|
*
|
|
743
795
|
* @returns {Promise<RestApiResponse<RequestForMinerListResponse>>}
|
|
744
796
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
745
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
797
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#request-for-miner-list Binance API Documentation}
|
|
746
798
|
*/
|
|
747
799
|
requestForMinerList(requestParameters) {
|
|
748
|
-
return this.
|
|
800
|
+
return this.api.requestForMinerList(requestParameters);
|
|
749
801
|
}
|
|
750
802
|
/**
|
|
751
803
|
* Statistic List
|
|
752
804
|
*
|
|
753
|
-
* Weight:
|
|
805
|
+
* Weight(IP): 1
|
|
806
|
+
*
|
|
807
|
+
* Security Type: USER_DATA
|
|
754
808
|
*
|
|
755
|
-
* @summary Statistic List(USER_DATA)
|
|
809
|
+
* @summary Statistic List (USER_DATA)
|
|
756
810
|
* @param {StatisticListRequest} requestParameters Request parameters.
|
|
757
811
|
*
|
|
758
812
|
* @returns {Promise<RestApiResponse<StatisticListResponse>>}
|
|
759
813
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
760
|
-
* @see {@link https://developers.binance.com/docs/mining/rest-api
|
|
814
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-mining/api/rest-api/~#statistic-list Binance API Documentation}
|
|
761
815
|
*/
|
|
762
816
|
statisticList(requestParameters) {
|
|
763
|
-
return this.
|
|
817
|
+
return this.api.statisticList(requestParameters);
|
|
764
818
|
}
|
|
765
819
|
};
|
|
766
820
|
|
|
767
821
|
//#endregion
|
|
768
822
|
//#region src/rest-api/index.ts
|
|
769
823
|
var rest_api_exports = /* @__PURE__ */ __export({
|
|
770
|
-
|
|
824
|
+
Api: () => Api,
|
|
771
825
|
RestAPI: () => RestAPI
|
|
772
826
|
});
|
|
773
827
|
|