@binance/margin-trading 13.0.5 → 13.0.6
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 +72 -12
- package/dist/index.d.ts +72 -12
- package/dist/index.js +49 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, C
|
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@binance/margin-trading";
|
|
6
|
-
var version = "13.0.
|
|
6
|
+
var version = "13.0.6";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -333,8 +333,21 @@ var AccountApi = class {
|
|
|
333
333
|
*
|
|
334
334
|
* - The time between startTime and endTime cannot be longer than 7 days.
|
|
335
335
|
*
|
|
336
|
-
* - If
|
|
337
|
-
*
|
|
336
|
+
* - If both startTime and endTime are omitted, the most recent 7 days are
|
|
337
|
+
* queried (endTime defaults to the current time, and startTime to the
|
|
338
|
+
* current time minus 7 days).
|
|
339
|
+
*
|
|
340
|
+
* - If startTime is provided without endTime, endTime defaults to
|
|
341
|
+
* startTime plus 7 days.
|
|
342
|
+
*
|
|
343
|
+
* - If endTime is provided without startTime, startTime defaults to
|
|
344
|
+
* endTime minus 7 days.
|
|
345
|
+
*
|
|
346
|
+
* - If fromId is set, the data with id > fromId within the queried time
|
|
347
|
+
* range will be returned. Otherwise the latest data within that range will
|
|
348
|
+
* be returned. fromId does not extend the time range; to retrieve older
|
|
349
|
+
* records, move startTime and endTime backwards in windows of up to 7
|
|
350
|
+
* days.
|
|
338
351
|
*
|
|
339
352
|
* - To query isolated data, Symbol needs to be entered.
|
|
340
353
|
*
|
|
@@ -2379,8 +2392,15 @@ var TradeApi = class {
|
|
|
2379
2392
|
*
|
|
2380
2393
|
* Notes:
|
|
2381
2394
|
* - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
|
|
2382
|
-
* - Depending on the `pendingType` or `workingType`, some optional
|
|
2383
|
-
*
|
|
2395
|
+
* - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
|
|
2396
|
+
*
|
|
2397
|
+
* | Type | Additional mandatory parameters | Additional information |
|
|
2398
|
+
* | --- | --- | --- |
|
|
2399
|
+
* | `workingType` = `LIMIT` | `workingTimeInForce` | |
|
|
2400
|
+
* | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
|
|
2401
|
+
* | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
|
|
2402
|
+
* | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
|
|
2403
|
+
* | `pendingTrailingDelta` is provided | `pendingPrice` | |
|
|
2384
2404
|
*
|
|
2385
2405
|
* @summary Margin Account New OTO (TRADE)
|
|
2386
2406
|
* @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
|
|
@@ -3450,8 +3470,21 @@ var RestAPI = class {
|
|
|
3450
3470
|
*
|
|
3451
3471
|
* - The time between startTime and endTime cannot be longer than 7 days.
|
|
3452
3472
|
*
|
|
3453
|
-
* - If
|
|
3454
|
-
*
|
|
3473
|
+
* - If both startTime and endTime are omitted, the most recent 7 days are
|
|
3474
|
+
* queried (endTime defaults to the current time, and startTime to the
|
|
3475
|
+
* current time minus 7 days).
|
|
3476
|
+
*
|
|
3477
|
+
* - If startTime is provided without endTime, endTime defaults to
|
|
3478
|
+
* startTime plus 7 days.
|
|
3479
|
+
*
|
|
3480
|
+
* - If endTime is provided without startTime, startTime defaults to
|
|
3481
|
+
* endTime minus 7 days.
|
|
3482
|
+
*
|
|
3483
|
+
* - If fromId is set, the data with id > fromId within the queried time
|
|
3484
|
+
* range will be returned. Otherwise the latest data within that range will
|
|
3485
|
+
* be returned. fromId does not extend the time range; to retrieve older
|
|
3486
|
+
* records, move startTime and endTime backwards in windows of up to 7
|
|
3487
|
+
* days.
|
|
3455
3488
|
*
|
|
3456
3489
|
* - To query isolated data, Symbol needs to be entered.
|
|
3457
3490
|
*
|
|
@@ -4295,8 +4328,15 @@ var RestAPI = class {
|
|
|
4295
4328
|
*
|
|
4296
4329
|
* Notes:
|
|
4297
4330
|
* - autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
|
|
4298
|
-
* - Depending on the `pendingType` or `workingType`, some optional
|
|
4299
|
-
*
|
|
4331
|
+
* - Depending on the `pendingType` or `workingType`, some optional parameters will become mandatory:
|
|
4332
|
+
*
|
|
4333
|
+
* | Type | Additional mandatory parameters | Additional information |
|
|
4334
|
+
* | --- | --- | --- |
|
|
4335
|
+
* | `workingType` = `LIMIT` | `workingTimeInForce` | |
|
|
4336
|
+
* | `pendingType` = `LIMIT` | `pendingPrice`, `pendingTimeInForce` | |
|
|
4337
|
+
* | `pendingType` = `STOP_LOSS` or `TAKE_PROFIT` | `pendingStopPrice` and/or `pendingTrailingDelta` | |
|
|
4338
|
+
* | `pendingType` = `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT` | `pendingPrice`, `pendingStopPrice` and/or `pendingTrailingDelta`, `pendingTimeInForce` | |
|
|
4339
|
+
* | `pendingTrailingDelta` is provided | `pendingPrice` | |
|
|
4300
4340
|
*
|
|
4301
4341
|
* @summary Margin Account New OTO (TRADE)
|
|
4302
4342
|
* @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
|