@binance/wallet 14.0.0 → 16.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 CHANGED
@@ -630,6 +630,12 @@ interface AssetDividendRecordResponseRowsInner {
630
630
  * @memberof AssetDividendRecordResponseRowsInner
631
631
  */
632
632
  tranId?: number | bigint;
633
+ /**
634
+ *
635
+ * @type {number | bigint}
636
+ * @memberof AssetDividendRecordResponseRowsInner
637
+ */
638
+ direction?: number | bigint;
633
639
  }
634
640
  //#endregion
635
641
  //#region src/rest-api/types/asset-dividend-record-response.d.ts
@@ -3351,12 +3357,6 @@ interface WithdrawHistoryV2ResponseInner {
3351
3357
  * @memberof WithdrawHistoryV2ResponseInner
3352
3358
  */
3353
3359
  address?: string;
3354
- /**
3355
- *
3356
- * @type {string}
3357
- * @memberof WithdrawHistoryV2ResponseInner
3358
- */
3359
- addressTag?: string;
3360
3360
  /**
3361
3361
  *
3362
3362
  * @type {string}
@@ -4097,6 +4097,12 @@ interface AssetApiInterface {
4097
4097
  * @interface AssetDetailRequest
4098
4098
  */
4099
4099
  interface AssetDetailRequest {
4100
+ /**
4101
+ * If asset is blank, then query all positive assets user have.
4102
+ * @type {string}
4103
+ * @memberof AssetApiAssetDetail
4104
+ */
4105
+ readonly asset?: string;
4100
4106
  /**
4101
4107
  *
4102
4108
  * @type {number | bigint}
@@ -4223,6 +4229,12 @@ interface DustTransferRequest {
4223
4229
  * @interface DustlogRequest
4224
4230
  */
4225
4231
  interface DustlogRequest {
4232
+ /**
4233
+ * `SPOT` or `MARGIN`,default `SPOT`
4234
+ * @type {string}
4235
+ * @memberof AssetApiDustlog
4236
+ */
4237
+ readonly accountType?: string;
4226
4238
  /**
4227
4239
  *
4228
4240
  * @type {number | bigint}
package/dist/index.d.ts CHANGED
@@ -630,6 +630,12 @@ interface AssetDividendRecordResponseRowsInner {
630
630
  * @memberof AssetDividendRecordResponseRowsInner
631
631
  */
632
632
  tranId?: number | bigint;
633
+ /**
634
+ *
635
+ * @type {number | bigint}
636
+ * @memberof AssetDividendRecordResponseRowsInner
637
+ */
638
+ direction?: number | bigint;
633
639
  }
634
640
  //#endregion
635
641
  //#region src/rest-api/types/asset-dividend-record-response.d.ts
@@ -3351,12 +3357,6 @@ interface WithdrawHistoryV2ResponseInner {
3351
3357
  * @memberof WithdrawHistoryV2ResponseInner
3352
3358
  */
3353
3359
  address?: string;
3354
- /**
3355
- *
3356
- * @type {string}
3357
- * @memberof WithdrawHistoryV2ResponseInner
3358
- */
3359
- addressTag?: string;
3360
3360
  /**
3361
3361
  *
3362
3362
  * @type {string}
@@ -4097,6 +4097,12 @@ interface AssetApiInterface {
4097
4097
  * @interface AssetDetailRequest
4098
4098
  */
4099
4099
  interface AssetDetailRequest {
4100
+ /**
4101
+ * If asset is blank, then query all positive assets user have.
4102
+ * @type {string}
4103
+ * @memberof AssetApiAssetDetail
4104
+ */
4105
+ readonly asset?: string;
4100
4106
  /**
4101
4107
  *
4102
4108
  * @type {number | bigint}
@@ -4223,6 +4229,12 @@ interface DustTransferRequest {
4223
4229
  * @interface DustlogRequest
4224
4230
  */
4225
4231
  interface DustlogRequest {
4232
+ /**
4233
+ * `SPOT` or `MARGIN`,default `SPOT`
4234
+ * @type {string}
4235
+ * @memberof AssetApiDustlog
4236
+ */
4237
+ readonly accountType?: string;
4226
4238
  /**
4227
4239
  *
4228
4240
  * @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 = "14.0.0";
17
+ var version = "16.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
  /**