@binance/wallet 12.1.0 → 13.0.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/dist/index.d.mts +317 -1
- package/dist/index.d.ts +317 -1
- package/dist/index.js +98 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +98 -1
- 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 = "
|
|
6
|
+
var version = "13.0.0";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -309,6 +309,41 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
309
309
|
timeUnit: _timeUnit
|
|
310
310
|
};
|
|
311
311
|
},
|
|
312
|
+
dustConvert: async (asset, clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice) => {
|
|
313
|
+
assertParamExists("dustConvert", "asset", asset);
|
|
314
|
+
const localVarQueryParameter = {};
|
|
315
|
+
const localVarBodyParameter = {};
|
|
316
|
+
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
317
|
+
if (clientId !== void 0 && clientId !== null) localVarQueryParameter["clientId"] = clientId;
|
|
318
|
+
if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
|
|
319
|
+
if (thirdPartyClientId !== void 0 && thirdPartyClientId !== null) localVarQueryParameter["thirdPartyClientId"] = thirdPartyClientId;
|
|
320
|
+
if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
|
|
321
|
+
let _timeUnit;
|
|
322
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
323
|
+
return {
|
|
324
|
+
endpoint: "/sapi/v1/asset/dust-convert/convert",
|
|
325
|
+
method: "POST",
|
|
326
|
+
queryParams: localVarQueryParameter,
|
|
327
|
+
bodyParams: localVarBodyParameter,
|
|
328
|
+
timeUnit: _timeUnit
|
|
329
|
+
};
|
|
330
|
+
},
|
|
331
|
+
dustConvertibleAssets: async (targetAsset, dustQuotaAssetToTargetAssetPrice) => {
|
|
332
|
+
assertParamExists("dustConvertibleAssets", "targetAsset", targetAsset);
|
|
333
|
+
const localVarQueryParameter = {};
|
|
334
|
+
const localVarBodyParameter = {};
|
|
335
|
+
if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
|
|
336
|
+
if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
|
|
337
|
+
let _timeUnit;
|
|
338
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
339
|
+
return {
|
|
340
|
+
endpoint: "/sapi/v1/asset/dust-convert/query-convertible-assets",
|
|
341
|
+
method: "POST",
|
|
342
|
+
queryParams: localVarQueryParameter,
|
|
343
|
+
bodyParams: localVarBodyParameter,
|
|
344
|
+
timeUnit: _timeUnit
|
|
345
|
+
};
|
|
346
|
+
},
|
|
312
347
|
dustTransfer: async (asset, accountType, recvWindow) => {
|
|
313
348
|
assertParamExists("dustTransfer", "asset", asset);
|
|
314
349
|
const localVarQueryParameter = {};
|
|
@@ -588,6 +623,38 @@ var AssetApi = class {
|
|
|
588
623
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
589
624
|
}
|
|
590
625
|
/**
|
|
626
|
+
* Convert dust assets
|
|
627
|
+
*
|
|
628
|
+
* Weight: 10
|
|
629
|
+
*
|
|
630
|
+
* @summary Dust Convert (USER_DATA)
|
|
631
|
+
* @param {DustConvertRequest} requestParameters Request parameters.
|
|
632
|
+
* @returns {Promise<RestApiResponse<DustConvertResponse>>}
|
|
633
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
634
|
+
* @memberof AssetApi
|
|
635
|
+
* @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convert Binance API Documentation}
|
|
636
|
+
*/
|
|
637
|
+
async dustConvert(requestParameters) {
|
|
638
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
639
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* Query dust convertible assets
|
|
643
|
+
*
|
|
644
|
+
* Weight: 1
|
|
645
|
+
*
|
|
646
|
+
* @summary Dust Convertible Assets (USER_DATA)
|
|
647
|
+
* @param {DustConvertibleAssetsRequest} requestParameters Request parameters.
|
|
648
|
+
* @returns {Promise<RestApiResponse<DustConvertibleAssetsResponse>>}
|
|
649
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
650
|
+
* @memberof AssetApi
|
|
651
|
+
* @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convertible-Assets Binance API Documentation}
|
|
652
|
+
*/
|
|
653
|
+
async dustConvertibleAssets(requestParameters) {
|
|
654
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
655
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
591
658
|
* Convert dust assets to BNB.
|
|
592
659
|
*
|
|
593
660
|
* You need to open`Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.
|
|
@@ -1991,6 +2058,36 @@ var RestAPI = class {
|
|
|
1991
2058
|
return this.assetApi.assetDividendRecord(requestParameters);
|
|
1992
2059
|
}
|
|
1993
2060
|
/**
|
|
2061
|
+
* Convert dust assets
|
|
2062
|
+
*
|
|
2063
|
+
* Weight: 10
|
|
2064
|
+
*
|
|
2065
|
+
* @summary Dust Convert (USER_DATA)
|
|
2066
|
+
* @param {DustConvertRequest} requestParameters Request parameters.
|
|
2067
|
+
*
|
|
2068
|
+
* @returns {Promise<RestApiResponse<DustConvertResponse>>}
|
|
2069
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2070
|
+
* @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convert Binance API Documentation}
|
|
2071
|
+
*/
|
|
2072
|
+
dustConvert(requestParameters) {
|
|
2073
|
+
return this.assetApi.dustConvert(requestParameters);
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* Query dust convertible assets
|
|
2077
|
+
*
|
|
2078
|
+
* Weight: 1
|
|
2079
|
+
*
|
|
2080
|
+
* @summary Dust Convertible Assets (USER_DATA)
|
|
2081
|
+
* @param {DustConvertibleAssetsRequest} requestParameters Request parameters.
|
|
2082
|
+
*
|
|
2083
|
+
* @returns {Promise<RestApiResponse<DustConvertibleAssetsResponse>>}
|
|
2084
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2085
|
+
* @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convertible-Assets Binance API Documentation}
|
|
2086
|
+
*/
|
|
2087
|
+
dustConvertibleAssets(requestParameters) {
|
|
2088
|
+
return this.assetApi.dustConvertibleAssets(requestParameters);
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
1994
2091
|
* Convert dust assets to BNB.
|
|
1995
2092
|
*
|
|
1996
2093
|
* You need to open`Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.
|