@binance/margin-trading 4.0.0 → 5.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.mjs CHANGED
@@ -10,7 +10,7 @@ import { ConfigurationRestAPI as ConfigurationRestAPI9, MARGIN_TRADING_REST_API_
10
10
 
11
11
  // package.json
12
12
  var name = "@binance/margin-trading";
13
- var version = "4.0.0";
13
+ var version = "5.0.0";
14
14
 
15
15
  // src/rest-api/index.ts
16
16
  var rest_api_exports = {};
@@ -1291,6 +1291,30 @@ var MarketDataApiAxiosParamCreator = function(configuration) {
1291
1291
  timeUnit: _timeUnit
1292
1292
  };
1293
1293
  },
1294
+ /**
1295
+ * Get the upcoming tokens or symbols listing schedule for Cross Margin and Isolated Margin.
1296
+ *
1297
+ * Weight: 100
1298
+ *
1299
+ * @summary Get list Schedule (MARKET_DATA)
1300
+ * @param {number} [recvWindow] No more than 60000
1301
+ *
1302
+ * @throws {RequiredError}
1303
+ */
1304
+ getListSchedule: async (recvWindow) => {
1305
+ const localVarQueryParameter = {};
1306
+ if (recvWindow !== void 0 && recvWindow !== null) {
1307
+ localVarQueryParameter["recvWindow"] = recvWindow;
1308
+ }
1309
+ let _timeUnit;
1310
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1311
+ return {
1312
+ endpoint: "/sapi/v1/margin/list-schedule",
1313
+ method: "GET",
1314
+ params: localVarQueryParameter,
1315
+ timeUnit: _timeUnit
1316
+ };
1317
+ },
1294
1318
  /**
1295
1319
  * Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
1296
1320
  *
@@ -1524,6 +1548,31 @@ var MarketDataApi = class {
1524
1548
  { isSigned: false }
1525
1549
  );
1526
1550
  }
1551
+ /**
1552
+ * Get the upcoming tokens or symbols listing schedule for Cross Margin and Isolated Margin.
1553
+ *
1554
+ * Weight: 100
1555
+ *
1556
+ * @summary Get list Schedule (MARKET_DATA)
1557
+ * @param {GetListScheduleRequest} requestParameters Request parameters.
1558
+ * @returns {Promise<RestApiResponse<GetListScheduleResponse>>}
1559
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1560
+ * @memberof MarketDataApi
1561
+ * @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-list-Schedule Binance API Documentation}
1562
+ */
1563
+ async getListSchedule(requestParameters = {}) {
1564
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getListSchedule(
1565
+ requestParameters?.recvWindow
1566
+ );
1567
+ return sendRequest3(
1568
+ this.configuration,
1569
+ localVarAxiosArgs.endpoint,
1570
+ localVarAxiosArgs.method,
1571
+ localVarAxiosArgs.params,
1572
+ localVarAxiosArgs?.timeUnit,
1573
+ { isSigned: false }
1574
+ );
1575
+ }
1527
1576
  /**
1528
1577
  * Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
1529
1578
  *
@@ -4859,6 +4908,20 @@ var RestAPI = class {
4859
4908
  getDelistSchedule(requestParameters = {}) {
4860
4909
  return this.marketDataApi.getDelistSchedule(requestParameters);
4861
4910
  }
4911
+ /**
4912
+ * Get the upcoming tokens or symbols listing schedule for Cross Margin and Isolated Margin.
4913
+ *
4914
+ * Weight: 100
4915
+ *
4916
+ * @summary Get list Schedule (MARKET_DATA)
4917
+ * @param {GetListScheduleRequest} requestParameters Request parameters.
4918
+ * @returns {Promise<RestApiResponse<GetListScheduleResponse>>}
4919
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4920
+ * @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-list-Schedule Binance API Documentation}
4921
+ */
4922
+ getListSchedule(requestParameters = {}) {
4923
+ return this.marketDataApi.getListSchedule(requestParameters);
4924
+ }
4862
4925
  /**
4863
4926
  * Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
4864
4927
  *