@binance/wallet 14.0.0 → 15.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 +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -3351,12 +3351,6 @@ interface WithdrawHistoryV2ResponseInner {
|
|
|
3351
3351
|
* @memberof WithdrawHistoryV2ResponseInner
|
|
3352
3352
|
*/
|
|
3353
3353
|
address?: string;
|
|
3354
|
-
/**
|
|
3355
|
-
*
|
|
3356
|
-
* @type {string}
|
|
3357
|
-
* @memberof WithdrawHistoryV2ResponseInner
|
|
3358
|
-
*/
|
|
3359
|
-
addressTag?: string;
|
|
3360
3354
|
/**
|
|
3361
3355
|
*
|
|
3362
3356
|
* @type {string}
|
|
@@ -4097,6 +4091,12 @@ interface AssetApiInterface {
|
|
|
4097
4091
|
* @interface AssetDetailRequest
|
|
4098
4092
|
*/
|
|
4099
4093
|
interface AssetDetailRequest {
|
|
4094
|
+
/**
|
|
4095
|
+
* If asset is blank, then query all positive assets user have.
|
|
4096
|
+
* @type {string}
|
|
4097
|
+
* @memberof AssetApiAssetDetail
|
|
4098
|
+
*/
|
|
4099
|
+
readonly asset?: string;
|
|
4100
4100
|
/**
|
|
4101
4101
|
*
|
|
4102
4102
|
* @type {number | bigint}
|
|
@@ -4223,6 +4223,12 @@ interface DustTransferRequest {
|
|
|
4223
4223
|
* @interface DustlogRequest
|
|
4224
4224
|
*/
|
|
4225
4225
|
interface DustlogRequest {
|
|
4226
|
+
/**
|
|
4227
|
+
* `SPOT` or `MARGIN`,default `SPOT`
|
|
4228
|
+
* @type {string}
|
|
4229
|
+
* @memberof AssetApiDustlog
|
|
4230
|
+
*/
|
|
4231
|
+
readonly accountType?: string;
|
|
4226
4232
|
/**
|
|
4227
4233
|
*
|
|
4228
4234
|
* @type {number | bigint}
|
package/dist/index.d.ts
CHANGED
|
@@ -3351,12 +3351,6 @@ interface WithdrawHistoryV2ResponseInner {
|
|
|
3351
3351
|
* @memberof WithdrawHistoryV2ResponseInner
|
|
3352
3352
|
*/
|
|
3353
3353
|
address?: string;
|
|
3354
|
-
/**
|
|
3355
|
-
*
|
|
3356
|
-
* @type {string}
|
|
3357
|
-
* @memberof WithdrawHistoryV2ResponseInner
|
|
3358
|
-
*/
|
|
3359
|
-
addressTag?: string;
|
|
3360
3354
|
/**
|
|
3361
3355
|
*
|
|
3362
3356
|
* @type {string}
|
|
@@ -4097,6 +4091,12 @@ interface AssetApiInterface {
|
|
|
4097
4091
|
* @interface AssetDetailRequest
|
|
4098
4092
|
*/
|
|
4099
4093
|
interface AssetDetailRequest {
|
|
4094
|
+
/**
|
|
4095
|
+
* If asset is blank, then query all positive assets user have.
|
|
4096
|
+
* @type {string}
|
|
4097
|
+
* @memberof AssetApiAssetDetail
|
|
4098
|
+
*/
|
|
4099
|
+
readonly asset?: string;
|
|
4100
4100
|
/**
|
|
4101
4101
|
*
|
|
4102
4102
|
* @type {number | bigint}
|
|
@@ -4223,6 +4223,12 @@ interface DustTransferRequest {
|
|
|
4223
4223
|
* @interface DustlogRequest
|
|
4224
4224
|
*/
|
|
4225
4225
|
interface DustlogRequest {
|
|
4226
|
+
/**
|
|
4227
|
+
* `SPOT` or `MARGIN`,default `SPOT`
|
|
4228
|
+
* @type {string}
|
|
4229
|
+
* @memberof AssetApiDustlog
|
|
4230
|
+
*/
|
|
4231
|
+
readonly accountType?: string;
|
|
4226
4232
|
/**
|
|
4227
4233
|
*
|
|
4228
4234
|
* @type {number | bigint}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/wallet";
|
|
17
|
-
var version = "
|
|
17
|
+
var version = "15.0.0";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -288,9 +288,10 @@ var AccountApi = class {
|
|
|
288
288
|
*/
|
|
289
289
|
const AssetApiAxiosParamCreator = function(configuration) {
|
|
290
290
|
return {
|
|
291
|
-
assetDetail: async (recvWindow) => {
|
|
291
|
+
assetDetail: async (asset, recvWindow) => {
|
|
292
292
|
const localVarQueryParameter = {};
|
|
293
293
|
const localVarBodyParameter = {};
|
|
294
|
+
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
294
295
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
295
296
|
let _timeUnit;
|
|
296
297
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -372,9 +373,10 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
372
373
|
timeUnit: _timeUnit
|
|
373
374
|
};
|
|
374
375
|
},
|
|
375
|
-
dustlog: async (startTime, endTime, recvWindow) => {
|
|
376
|
+
dustlog: async (accountType, startTime, endTime, recvWindow) => {
|
|
376
377
|
const localVarQueryParameter = {};
|
|
377
378
|
const localVarBodyParameter = {};
|
|
379
|
+
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
378
380
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
379
381
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
380
382
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -611,7 +613,7 @@ var AssetApi = class {
|
|
|
611
613
|
* @see {@link https://developers.binance.com/docs/wallet/asset/Asset-Detail Binance API Documentation}
|
|
612
614
|
*/
|
|
613
615
|
async assetDetail(requestParameters = {}) {
|
|
614
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.recvWindow);
|
|
616
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.asset, requestParameters?.recvWindow);
|
|
615
617
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
616
618
|
}
|
|
617
619
|
/**
|
|
@@ -699,7 +701,7 @@ var AssetApi = class {
|
|
|
699
701
|
* @see {@link https://developers.binance.com/docs/wallet/asset/dust-log Binance API Documentation}
|
|
700
702
|
*/
|
|
701
703
|
async dustlog(requestParameters = {}) {
|
|
702
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustlog(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
704
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustlog(requestParameters?.accountType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
703
705
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
704
706
|
}
|
|
705
707
|
/**
|