@binance/wallet 22.0.0 → 22.1.0
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 +114 -5
- package/dist/index.d.ts +114 -5
- package/dist/index.js +54 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -3
- 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/wallet";
|
|
6
|
-
var version = "22.
|
|
6
|
+
var version = "22.1.0";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -507,6 +507,22 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
507
507
|
timeUnit: _timeUnit
|
|
508
508
|
};
|
|
509
509
|
},
|
|
510
|
+
getSpotAssetTags: async (tag) => {
|
|
511
|
+
const localVarQueryParameter = {};
|
|
512
|
+
const localVarBodyParameter = {};
|
|
513
|
+
const localVarHeaderParameter = {};
|
|
514
|
+
if (tag !== void 0 && tag !== null) localVarQueryParameter["tag"] = tag;
|
|
515
|
+
let _timeUnit;
|
|
516
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
517
|
+
return {
|
|
518
|
+
endpoint: "/sapi/v1/spot/asset/tags",
|
|
519
|
+
method: "GET",
|
|
520
|
+
queryParams: localVarQueryParameter,
|
|
521
|
+
bodyParams: localVarBodyParameter,
|
|
522
|
+
headerParams: localVarHeaderParameter,
|
|
523
|
+
timeUnit: _timeUnit
|
|
524
|
+
};
|
|
525
|
+
},
|
|
510
526
|
queryUserDelegationHistory: async (email, startTime, endTime, type, asset, current, size, recvWindow) => {
|
|
511
527
|
assertParamExists("queryUserDelegationHistory", "email", email);
|
|
512
528
|
assertParamExists("queryUserDelegationHistory", "startTime", startTime);
|
|
@@ -863,6 +879,24 @@ var AssetApi = class {
|
|
|
863
879
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
864
880
|
}
|
|
865
881
|
/**
|
|
882
|
+
* Get the tags configured for spot-tradable assets.
|
|
883
|
+
*
|
|
884
|
+
* Weight(IP): 100
|
|
885
|
+
*
|
|
886
|
+
* Security Type: MARKET_DATA
|
|
887
|
+
*
|
|
888
|
+
* @summary Get Spot Asset Tags (MARKET_DATA)
|
|
889
|
+
* @param {GetSpotAssetTagsRequest} requestParameters Request parameters.
|
|
890
|
+
* @returns {Promise<RestApiResponse<GetSpotAssetTagsResponse>>}
|
|
891
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
892
|
+
* @memberof AssetApi
|
|
893
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/core-trading-wallet/api/rest-api/asset#get-spot-asset-tags Binance API Documentation}
|
|
894
|
+
*/
|
|
895
|
+
async getSpotAssetTags(requestParameters = {}) {
|
|
896
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSpotAssetTags(requestParameters?.tag);
|
|
897
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
866
900
|
* Query User Delegation History
|
|
867
901
|
*
|
|
868
902
|
* Weight(IP): 60
|
|
@@ -986,7 +1020,7 @@ var AssetApi = class {
|
|
|
986
1020
|
/**
|
|
987
1021
|
* User universal transfer
|
|
988
1022
|
*
|
|
989
|
-
* Weight(UID):
|
|
1023
|
+
* Weight(UID): 300
|
|
990
1024
|
*
|
|
991
1025
|
* Security Type: USER_DATA
|
|
992
1026
|
*
|
|
@@ -2638,6 +2672,23 @@ var RestAPI = class {
|
|
|
2638
2672
|
return this.assetApi.getOpenSymbolList();
|
|
2639
2673
|
}
|
|
2640
2674
|
/**
|
|
2675
|
+
* Get the tags configured for spot-tradable assets.
|
|
2676
|
+
*
|
|
2677
|
+
* Weight(IP): 100
|
|
2678
|
+
*
|
|
2679
|
+
* Security Type: MARKET_DATA
|
|
2680
|
+
*
|
|
2681
|
+
* @summary Get Spot Asset Tags (MARKET_DATA)
|
|
2682
|
+
* @param {GetSpotAssetTagsRequest} requestParameters Request parameters.
|
|
2683
|
+
*
|
|
2684
|
+
* @returns {Promise<RestApiResponse<GetSpotAssetTagsResponse>>}
|
|
2685
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2686
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/core-trading-wallet/api/rest-api/asset#get-spot-asset-tags Binance API Documentation}
|
|
2687
|
+
*/
|
|
2688
|
+
getSpotAssetTags(requestParameters = {}) {
|
|
2689
|
+
return this.assetApi.getSpotAssetTags(requestParameters);
|
|
2690
|
+
}
|
|
2691
|
+
/**
|
|
2641
2692
|
* Query User Delegation History
|
|
2642
2693
|
*
|
|
2643
2694
|
* Weight(IP): 60
|
|
@@ -2755,7 +2806,7 @@ var RestAPI = class {
|
|
|
2755
2806
|
/**
|
|
2756
2807
|
* User universal transfer
|
|
2757
2808
|
*
|
|
2758
|
-
* Weight(UID):
|
|
2809
|
+
* Weight(UID): 300
|
|
2759
2810
|
*
|
|
2760
2811
|
* Security Type: USER_DATA
|
|
2761
2812
|
*
|