@binance/margin-trading 6.0.3 → 7.0.1

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.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
 
16
16
  // package.json
17
17
  var name = "@binance/margin-trading";
18
- var version = "6.0.3";
18
+ var version = "7.0.1";
19
19
 
20
20
  // src/rest-api/index.ts
21
21
  var rest_api_exports = {};
@@ -1296,6 +1296,31 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
1296
1296
  timeUnit: _timeUnit
1297
1297
  };
1298
1298
  },
1299
+ /**
1300
+ * Query trading pairs with restriction on limit price range.
1301
+ * In margin trading, you can place orders with limit price. Limit price should be within (-15%, 15%) of current index price for a list of margin trading pairs. This rule only impacts limit sell orders with limit price that is lower than current index price and limit buy orders with limit price that is higher than current index price.
1302
+ *
1303
+ * - Buy order: Your order will be rejected with an error message notification if the limit price is 15% above the index price.
1304
+ * - Sell order: Your order will be rejected with an error message notification if the limit price is 15% below the index price.
1305
+ * Please review the limit price order placing strategy, backtest and calibrate the planned order size with the trading volume and order book depth to prevent trading loss.
1306
+ *
1307
+ * Weight: 1
1308
+ *
1309
+ * @summary Get Limit Price Pairs(MARKET_DATA)
1310
+ *
1311
+ * @throws {RequiredError}
1312
+ */
1313
+ getLimitPricePairs: async () => {
1314
+ const localVarQueryParameter = {};
1315
+ let _timeUnit;
1316
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1317
+ return {
1318
+ endpoint: "/sapi/v1/margin/limit-price-pairs",
1319
+ method: "GET",
1320
+ params: localVarQueryParameter,
1321
+ timeUnit: _timeUnit
1322
+ };
1323
+ },
1299
1324
  /**
1300
1325
  * Get the upcoming tokens or symbols listing schedule for Cross Margin and Isolated Margin.
1301
1326
  *
@@ -1553,6 +1578,33 @@ var MarketDataApi = class {
1553
1578
  { isSigned: false }
1554
1579
  );
1555
1580
  }
1581
+ /**
1582
+ * Query trading pairs with restriction on limit price range.
1583
+ * In margin trading, you can place orders with limit price. Limit price should be within (-15%, 15%) of current index price for a list of margin trading pairs. This rule only impacts limit sell orders with limit price that is lower than current index price and limit buy orders with limit price that is higher than current index price.
1584
+ *
1585
+ * - Buy order: Your order will be rejected with an error message notification if the limit price is 15% above the index price.
1586
+ * - Sell order: Your order will be rejected with an error message notification if the limit price is 15% below the index price.
1587
+ * Please review the limit price order placing strategy, backtest and calibrate the planned order size with the trading volume and order book depth to prevent trading loss.
1588
+ *
1589
+ * Weight: 1
1590
+ *
1591
+ * @summary Get Limit Price Pairs(MARKET_DATA)
1592
+ * @returns {Promise<RestApiResponse<GetLimitPricePairsResponse>>}
1593
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1594
+ * @memberof MarketDataApi
1595
+ * @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Limit-Price-Pairs Binance API Documentation}
1596
+ */
1597
+ async getLimitPricePairs() {
1598
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLimitPricePairs();
1599
+ return sendRequest3(
1600
+ this.configuration,
1601
+ localVarAxiosArgs.endpoint,
1602
+ localVarAxiosArgs.method,
1603
+ localVarAxiosArgs.params,
1604
+ localVarAxiosArgs?.timeUnit,
1605
+ { isSigned: false }
1606
+ );
1607
+ }
1556
1608
  /**
1557
1609
  * Get the upcoming tokens or symbols listing schedule for Cross Margin and Isolated Margin.
1558
1610
  *
@@ -4913,6 +4965,24 @@ var RestAPI = class {
4913
4965
  getDelistSchedule(requestParameters = {}) {
4914
4966
  return this.marketDataApi.getDelistSchedule(requestParameters);
4915
4967
  }
4968
+ /**
4969
+ * Query trading pairs with restriction on limit price range.
4970
+ * In margin trading, you can place orders with limit price. Limit price should be within (-15%, 15%) of current index price for a list of margin trading pairs. This rule only impacts limit sell orders with limit price that is lower than current index price and limit buy orders with limit price that is higher than current index price.
4971
+ *
4972
+ * - Buy order: Your order will be rejected with an error message notification if the limit price is 15% above the index price.
4973
+ * - Sell order: Your order will be rejected with an error message notification if the limit price is 15% below the index price.
4974
+ * Please review the limit price order placing strategy, backtest and calibrate the planned order size with the trading volume and order book depth to prevent trading loss.
4975
+ *
4976
+ * Weight: 1
4977
+ *
4978
+ * @summary Get Limit Price Pairs(MARKET_DATA)
4979
+ * @returns {Promise<RestApiResponse<GetLimitPricePairsResponse>>}
4980
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4981
+ * @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Limit-Price-Pairs Binance API Documentation}
4982
+ */
4983
+ getLimitPricePairs() {
4984
+ return this.marketDataApi.getLimitPricePairs();
4985
+ }
4916
4986
  /**
4917
4987
  * Get the upcoming tokens or symbols listing schedule for Cross Margin and Isolated Margin.
4918
4988
  *