@binance/derivatives-trading-portfolio-margin 13.0.0 → 14.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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![npm version](https://badge.fury.io/js/@binance%2Fderivatives-trading-portfolio-margin.svg)](https://badge.fury.io/js/@binance%2Fderivatives-trading-portfolio-margin)
6
6
  [![npm Downloads](https://img.shields.io/npm/dm/@binance/derivatives-trading-portfolio-margin.svg)](https://www.npmjs.com/package/@binance/derivatives-trading-portfolio-margin)
7
7
  ![Node.js Version](https://img.shields.io/badge/Node.js-%3E=22.12.0-brightgreen)
8
- [![Known Vulnerabilities](https://snyk.io/test/github/binance/binance-connector-js/badge.svg)](https://snyk.io/test/github/binance/binance-connector-js)
8
+ [![Socket Badge](https://socket.dev/api/badge/npm/package/@binance/derivatives-trading-portfolio-margin)](https://socket.dev/npm/package/@binance/derivatives-trading-portfolio-margin)
9
9
  [![Docs](https://img.shields.io/badge/docs-online-blue?style=flat-square)](https://binance.github.io/binance-connector-js/modules/_binance_derivatives-trading-portfolio-margin.html)
10
10
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
11
11
 
package/dist/index.d.mts CHANGED
@@ -1342,28 +1342,10 @@ interface CancelMarginAccountOrderResponse {
1342
1342
  interface CancelUmAlgoOrderResponse {
1343
1343
  /**
1344
1344
  *
1345
- * @type {number | bigint}
1346
- * @memberof CancelUmAlgoOrderResponse
1347
- */
1348
- algoId?: number | bigint;
1349
- /**
1350
- *
1351
- * @type {string}
1352
- * @memberof CancelUmAlgoOrderResponse
1353
- */
1354
- clientAlgoId?: string;
1355
- /**
1356
- *
1357
- * @type {string}
1358
- * @memberof CancelUmAlgoOrderResponse
1359
- */
1360
- code?: string;
1361
- /**
1362
- *
1363
- * @type {string}
1345
+ * @type {boolean}
1364
1346
  * @memberof CancelUmAlgoOrderResponse
1365
1347
  */
1366
- msg?: string;
1348
+ complete?: boolean;
1367
1349
  }
1368
1350
  //#endregion
1369
1351
  //#region src/rest-api/types/cancel-um-conditional-order-response.d.ts
@@ -4616,12 +4598,6 @@ interface NewUmAlgoOrderResponse {
4616
4598
  * @memberof NewUmAlgoOrderResponse
4617
4599
  */
4618
4600
  priceMatch?: string;
4619
- /**
4620
- *
4621
- * @type {boolean}
4622
- * @memberof NewUmAlgoOrderResponse
4623
- */
4624
- closePosition?: boolean;
4625
4601
  /**
4626
4602
  *
4627
4603
  * @type {boolean}
@@ -10290,7 +10266,7 @@ interface AccountApiInterface {
10290
10266
  /**
10291
10267
  * Get UM futures order download link by Id
10292
10268
  *
10293
- * Download link expiration: 24h
10269
+ * Download link expiration: 7 days
10294
10270
  *
10295
10271
  * Weight: 10
10296
10272
  *
@@ -10304,7 +10280,7 @@ interface AccountApiInterface {
10304
10280
  /**
10305
10281
  * Get UM futures trade download link by Id
10306
10282
  *
10307
- * Download link expiration: 24h
10283
+ * Download link expiration: 7 days
10308
10284
  *
10309
10285
  * Weight: 10
10310
10286
  *
@@ -10318,7 +10294,7 @@ interface AccountApiInterface {
10318
10294
  /**
10319
10295
  * Get UM futures Transaction download link by Id
10320
10296
  *
10321
- * Download link expiration: 24h
10297
+ * Download link expiration: 7 days
10322
10298
  *
10323
10299
  * Weight: 10
10324
10300
  *
@@ -11820,7 +11796,7 @@ declare class AccountApi implements AccountApiInterface {
11820
11796
  /**
11821
11797
  * Get UM futures order download link by Id
11822
11798
  *
11823
- * Download link expiration: 24h
11799
+ * Download link expiration: 7 days
11824
11800
  *
11825
11801
  * Weight: 10
11826
11802
  *
@@ -11835,7 +11811,7 @@ declare class AccountApi implements AccountApiInterface {
11835
11811
  /**
11836
11812
  * Get UM futures trade download link by Id
11837
11813
  *
11838
- * Download link expiration: 24h
11814
+ * Download link expiration: 7 days
11839
11815
  *
11840
11816
  * Weight: 10
11841
11817
  *
@@ -11850,7 +11826,7 @@ declare class AccountApi implements AccountApiInterface {
11850
11826
  /**
11851
11827
  * Get UM futures Transaction download link by Id
11852
11828
  *
11853
- * Download link expiration: 24h
11829
+ * Download link expiration: 7 days
11854
11830
  *
11855
11831
  * Weight: 10
11856
11832
  *
@@ -12606,12 +12582,6 @@ interface TradeApiInterface {
12606
12582
  * BUY: `activatePrice` should be smaller than latest price.
12607
12583
  * SELL: `activatePrice` should be larger than latest price.
12608
12584
  *
12609
- * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition`=`true`:
12610
- * Follow the same rules for condition orders.
12611
- * If triggered, **close all** current long position( if `SELL`) or current short position( if `BUY`).
12612
- * Cannot be used with `quantity` paremeter
12613
- * Cannot be used with `reduceOnly` parameter
12614
- * In Hedge Mode,cannot be used with `BUY` orders in `LONG` position side. and cannot be used with `SELL` orders in `SHORT` position side
12615
12585
  * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
12616
12586
  *
12617
12587
  * Weight: 1
@@ -14003,7 +13973,7 @@ interface NewCmConditionalOrderRequest {
14003
13973
  */
14004
13974
  readonly workingType?: NewCmConditionalOrderWorkingTypeEnum;
14005
13975
  /**
14006
- * "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
13976
+ * "true" or "false", default "false". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
14007
13977
  * @type {string}
14008
13978
  * @memberof TradeApiNewCmConditionalOrder
14009
13979
  */
@@ -14242,6 +14212,12 @@ interface NewUmAlgoOrderRequest {
14242
14212
  * @memberof TradeApiNewUmAlgoOrder
14243
14213
  */
14244
14214
  readonly type: NewUmAlgoOrderTypeEnum;
14215
+ /**
14216
+ * Order quantity
14217
+ * @type {number}
14218
+ * @memberof TradeApiNewUmAlgoOrder
14219
+ */
14220
+ readonly quantity: number;
14245
14221
  /**
14246
14222
  * Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
14247
14223
  * @type {'BOTH' | 'LONG' | 'SHORT'}
@@ -14254,12 +14230,6 @@ interface NewUmAlgoOrderRequest {
14254
14230
  * @memberof TradeApiNewUmAlgoOrder
14255
14231
  */
14256
14232
  readonly timeInForce?: NewUmAlgoOrderTimeInForceEnum;
14257
- /**
14258
- *
14259
- * @type {number}
14260
- * @memberof TradeApiNewUmAlgoOrder
14261
- */
14262
- readonly quantity?: number;
14263
14233
  /**
14264
14234
  *
14265
14235
  * @type {number}
@@ -14285,13 +14255,7 @@ interface NewUmAlgoOrderRequest {
14285
14255
  */
14286
14256
  readonly priceMatch?: NewUmAlgoOrderPriceMatchEnum;
14287
14257
  /**
14288
- * true, false; Close-All, used with `STOP_MARKET` or `TAKE_PROFIT_MARKET`.
14289
- * @type {string}
14290
- * @memberof TradeApiNewUmAlgoOrder
14291
- */
14292
- readonly closePosition?: string;
14293
- /**
14294
- * "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
14258
+ * "true" or "false", default "false". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
14295
14259
  * @type {string}
14296
14260
  * @memberof TradeApiNewUmAlgoOrder
14297
14261
  */
@@ -14405,7 +14369,7 @@ interface NewUmConditionalOrderRequest {
14405
14369
  */
14406
14370
  readonly workingType?: NewUmConditionalOrderWorkingTypeEnum;
14407
14371
  /**
14408
- * "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
14372
+ * "true" or "false", default "false". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
14409
14373
  * @type {string}
14410
14374
  * @memberof TradeApiNewUmConditionalOrder
14411
14375
  */
@@ -16065,12 +16029,6 @@ declare class TradeApi implements TradeApiInterface {
16065
16029
  * BUY: `activatePrice` should be smaller than latest price.
16066
16030
  * SELL: `activatePrice` should be larger than latest price.
16067
16031
  *
16068
- * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition`=`true`:
16069
- * Follow the same rules for condition orders.
16070
- * If triggered, **close all** current long position( if `SELL`) or current short position( if `BUY`).
16071
- * Cannot be used with `quantity` paremeter
16072
- * Cannot be used with `reduceOnly` parameter
16073
- * In Hedge Mode,cannot be used with `BUY` orders in `LONG` position side. and cannot be used with `SELL` orders in `SHORT` position side
16074
16032
  * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
16075
16033
  *
16076
16034
  * Weight: 1
@@ -17399,7 +17357,7 @@ declare class RestAPI {
17399
17357
  /**
17400
17358
  * Get UM futures order download link by Id
17401
17359
  *
17402
- * Download link expiration: 24h
17360
+ * Download link expiration: 7 days
17403
17361
  *
17404
17362
  * Weight: 10
17405
17363
  *
@@ -17414,7 +17372,7 @@ declare class RestAPI {
17414
17372
  /**
17415
17373
  * Get UM futures trade download link by Id
17416
17374
  *
17417
- * Download link expiration: 24h
17375
+ * Download link expiration: 7 days
17418
17376
  *
17419
17377
  * Weight: 10
17420
17378
  *
@@ -17429,7 +17387,7 @@ declare class RestAPI {
17429
17387
  /**
17430
17388
  * Get UM futures Transaction download link by Id
17431
17389
  *
17432
- * Download link expiration: 24h
17390
+ * Download link expiration: 7 days
17433
17391
  *
17434
17392
  * Weight: 10
17435
17393
  *
@@ -18174,12 +18132,6 @@ declare class RestAPI {
18174
18132
  * BUY: `activatePrice` should be smaller than latest price.
18175
18133
  * SELL: `activatePrice` should be larger than latest price.
18176
18134
  *
18177
- * `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition`=`true`:
18178
- * Follow the same rules for condition orders.
18179
- * If triggered, **close all** current long position( if `SELL`) or current short position( if `BUY`).
18180
- * Cannot be used with `quantity` paremeter
18181
- * Cannot be used with `reduceOnly` parameter
18182
- * In Hedge Mode,cannot be used with `BUY` orders in `LONG` position side. and cannot be used with `SELL` orders in `SHORT` position side
18183
18135
  * `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
18184
18136
  *
18185
18137
  * Weight: 1
@@ -19078,7 +19030,7 @@ interface AccountUpdate {
19078
19030
  a?: AccountUpdateA;
19079
19031
  }
19080
19032
  //#endregion
19081
- //#region src/websocket-streams/types/algo-update-o.d.ts
19033
+ //#region src/websocket-streams/types/algo-update-ao.d.ts
19082
19034
  /**
19083
19035
  * Binance Derivatives Trading Portfolio Margin WebSocket Market Streams
19084
19036
  *
@@ -19094,157 +19046,157 @@ interface AccountUpdate {
19094
19046
  /**
19095
19047
  *
19096
19048
  * @export
19097
- * @interface AlgoUpdateO
19049
+ * @interface AlgoUpdateAo
19098
19050
  */
19099
- interface AlgoUpdateO {
19051
+ interface AlgoUpdateAo {
19100
19052
  /**
19101
19053
  *
19102
19054
  * @type {string}
19103
- * @memberof AlgoUpdateO
19055
+ * @memberof AlgoUpdateAo
19104
19056
  */
19105
19057
  caid?: string;
19106
19058
  /**
19107
19059
  *
19108
19060
  * @type {number | bigint}
19109
- * @memberof AlgoUpdateO
19061
+ * @memberof AlgoUpdateAo
19110
19062
  */
19111
19063
  aid?: number | bigint;
19112
19064
  /**
19113
19065
  *
19114
19066
  * @type {string}
19115
- * @memberof AlgoUpdateO
19067
+ * @memberof AlgoUpdateAo
19116
19068
  */
19117
19069
  at?: string;
19118
19070
  /**
19119
19071
  *
19120
19072
  * @type {string}
19121
- * @memberof AlgoUpdateO
19073
+ * @memberof AlgoUpdateAo
19122
19074
  */
19123
19075
  o?: string;
19124
19076
  /**
19125
19077
  *
19126
19078
  * @type {string}
19127
- * @memberof AlgoUpdateO
19079
+ * @memberof AlgoUpdateAo
19128
19080
  */
19129
19081
  s?: string;
19130
19082
  /**
19131
19083
  *
19132
19084
  * @type {string}
19133
- * @memberof AlgoUpdateO
19085
+ * @memberof AlgoUpdateAo
19134
19086
  */
19135
19087
  S?: string;
19136
19088
  /**
19137
19089
  *
19138
19090
  * @type {string}
19139
- * @memberof AlgoUpdateO
19091
+ * @memberof AlgoUpdateAo
19140
19092
  */
19141
19093
  ps?: string;
19142
19094
  /**
19143
19095
  *
19144
19096
  * @type {string}
19145
- * @memberof AlgoUpdateO
19097
+ * @memberof AlgoUpdateAo
19146
19098
  */
19147
19099
  f?: string;
19148
19100
  /**
19149
19101
  *
19150
19102
  * @type {string}
19151
- * @memberof AlgoUpdateO
19103
+ * @memberof AlgoUpdateAo
19152
19104
  */
19153
19105
  q?: string;
19154
19106
  /**
19155
19107
  *
19156
19108
  * @type {string}
19157
- * @memberof AlgoUpdateO
19109
+ * @memberof AlgoUpdateAo
19158
19110
  */
19159
19111
  X?: string;
19160
19112
  /**
19161
19113
  *
19162
19114
  * @type {string}
19163
- * @memberof AlgoUpdateO
19115
+ * @memberof AlgoUpdateAo
19164
19116
  */
19165
19117
  ai?: string;
19166
19118
  /**
19167
19119
  *
19168
19120
  * @type {string}
19169
- * @memberof AlgoUpdateO
19121
+ * @memberof AlgoUpdateAo
19170
19122
  */
19171
19123
  ap?: string;
19172
19124
  /**
19173
19125
  *
19174
19126
  * @type {string}
19175
- * @memberof AlgoUpdateO
19127
+ * @memberof AlgoUpdateAo
19176
19128
  */
19177
19129
  aq?: string;
19178
19130
  /**
19179
19131
  *
19180
19132
  * @type {string}
19181
- * @memberof AlgoUpdateO
19133
+ * @memberof AlgoUpdateAo
19182
19134
  */
19183
19135
  act?: string;
19184
19136
  /**
19185
19137
  *
19186
19138
  * @type {string}
19187
- * @memberof AlgoUpdateO
19139
+ * @memberof AlgoUpdateAo
19188
19140
  */
19189
19141
  tp?: string;
19190
19142
  /**
19191
19143
  *
19192
19144
  * @type {string}
19193
- * @memberof AlgoUpdateO
19145
+ * @memberof AlgoUpdateAo
19194
19146
  */
19195
19147
  p?: string;
19196
19148
  /**
19197
19149
  *
19198
19150
  * @type {string}
19199
- * @memberof AlgoUpdateO
19151
+ * @memberof AlgoUpdateAo
19200
19152
  */
19201
19153
  V?: string;
19202
19154
  /**
19203
19155
  *
19204
19156
  * @type {string}
19205
- * @memberof AlgoUpdateO
19157
+ * @memberof AlgoUpdateAo
19206
19158
  */
19207
19159
  wt?: string;
19208
19160
  /**
19209
19161
  *
19210
19162
  * @type {string}
19211
- * @memberof AlgoUpdateO
19163
+ * @memberof AlgoUpdateAo
19212
19164
  */
19213
19165
  pm?: string;
19214
19166
  /**
19215
19167
  *
19216
19168
  * @type {boolean}
19217
- * @memberof AlgoUpdateO
19169
+ * @memberof AlgoUpdateAo
19218
19170
  */
19219
19171
  cp?: boolean;
19220
19172
  /**
19221
19173
  *
19222
19174
  * @type {boolean}
19223
- * @memberof AlgoUpdateO
19175
+ * @memberof AlgoUpdateAo
19224
19176
  */
19225
19177
  pP?: boolean;
19226
19178
  /**
19227
19179
  *
19228
19180
  * @type {boolean}
19229
- * @memberof AlgoUpdateO
19181
+ * @memberof AlgoUpdateAo
19230
19182
  */
19231
19183
  R?: boolean;
19232
19184
  /**
19233
19185
  *
19234
19186
  * @type {number | bigint}
19235
- * @memberof AlgoUpdateO
19187
+ * @memberof AlgoUpdateAo
19236
19188
  */
19237
19189
  tt?: number | bigint;
19238
19190
  /**
19239
19191
  *
19240
19192
  * @type {number | bigint}
19241
- * @memberof AlgoUpdateO
19193
+ * @memberof AlgoUpdateAo
19242
19194
  */
19243
19195
  gtd?: number | bigint;
19244
19196
  /**
19245
19197
  *
19246
19198
  * @type {string}
19247
- * @memberof AlgoUpdateO
19199
+ * @memberof AlgoUpdateAo
19248
19200
  */
19249
19201
  rm?: string;
19250
19202
  }
@@ -19270,10 +19222,16 @@ interface AlgoUpdate {
19270
19222
  E?: number | bigint;
19271
19223
  /**
19272
19224
  *
19273
- * @type {AlgoUpdateO}
19225
+ * @type {string}
19226
+ * @memberof AlgoUpdate
19227
+ */
19228
+ fs?: string;
19229
+ /**
19230
+ *
19231
+ * @type {AlgoUpdateAo}
19274
19232
  * @memberof AlgoUpdate
19275
19233
  */
19276
- o?: AlgoUpdateO;
19234
+ ao?: AlgoUpdateAo;
19277
19235
  }
19278
19236
  //#endregion
19279
19237
  //#region src/websocket-streams/types/balanceupdate.d.ts
@@ -20434,7 +20392,7 @@ declare class WebsocketStreams {
20434
20392
  }): Promise<WebsocketStreamsConnection>;
20435
20393
  }
20436
20394
  declare namespace index_d_exports$1 {
20437
- export { AccountConfigUpdate, AccountConfigUpdateAc, AccountUpdate, AccountUpdateA, AccountUpdateABInner, AccountUpdateAPInner, AlgoUpdate, AlgoUpdateO, Balanceupdate, ConditionalOrderTradeUpdate, ConditionalOrderTradeUpdateSo, Executionreport, Liabilitychange, Listenkeyexpired, Openorderloss, OpenorderlossOInner, OrderTradeUpdate, OrderTradeUpdateO, Outboundaccountposition, OutboundaccountpositionBInner, Risklevelchange, UserDataStreamEventsResponse, WebsocketStreams, WebsocketStreamsConnection };
20395
+ export { AccountConfigUpdate, AccountConfigUpdateAc, AccountUpdate, AccountUpdateA, AccountUpdateABInner, AccountUpdateAPInner, AlgoUpdate, AlgoUpdateAo, Balanceupdate, ConditionalOrderTradeUpdate, ConditionalOrderTradeUpdateSo, Executionreport, Liabilitychange, Listenkeyexpired, Openorderloss, OpenorderlossOInner, OrderTradeUpdate, OrderTradeUpdateO, Outboundaccountposition, OutboundaccountpositionBInner, Risklevelchange, UserDataStreamEventsResponse, WebsocketStreams, WebsocketStreamsConnection };
20438
20396
  }
20439
20397
  //#endregion
20440
20398
  //#region src/derivatives-trading-portfolio-margin.d.ts