@binance/derivatives-trading-portfolio-margin 14.0.3 → 14.0.4

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
@@ -142,21 +142,6 @@ The REST API provides detailed error types to help you handle issues effectively
142
142
 
143
143
  See the [Error Handling example](./docs/rest-api/error-handling.md) for detailed usage.
144
144
 
145
- #### Testnet
146
-
147
- For testing purposes, `/papi/*` endpoints can be used in the [Futures Testnet](https://testnet.binancefuture.com/). Update the `basePath` in your configuration:
148
-
149
- ```typescript
150
- import { DerivativesTradingPortfolioMargin, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL } from '@binance/derivatives-trading-portfolio-margin';
151
-
152
- const configurationRestAPI = {
153
- apiKey: 'your-api-key',
154
- apiSecret: 'your-api-secret',
155
- basePath: DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL,
156
- };
157
- const client = new DerivativesTradingPortfolioMargin({ configurationRestAPI });
158
- ```
159
-
160
145
  If `basePath` is not provided, it defaults to `https://papi.binance.com`.
161
146
 
162
147
  ### Websocket Streams
@@ -248,19 +233,6 @@ client.websocketStreams
248
233
  .catch((err) => console.error(err));
249
234
  ```
250
235
 
251
- #### Testnet
252
-
253
- Websocket Streams also support a testnet environment for development and testing. Update the `wsURL` in your configuration:
254
-
255
- ```typescript
256
- import { DerivativesTradingPortfolioMargin, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_TESTNET_URL } from '@binance/derivatives-trading-portfolio-margin';
257
-
258
- const configurationWebsocketStreams = {
259
- wsURL: DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_TESTNET_URL,
260
- };
261
- const client = new DerivativesTradingPortfolioMargin({ configurationWebsocketStreams });
262
- ```
263
-
264
236
  If `wsURL` is not provided, it defaults to `wss://fstream.binance.com/pm`.
265
237
 
266
238
  ### Automatic Connection Renewal
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_TESTNET_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError, WebsocketStream, WebsocketStreamsBase } from "@binance/common";
1
+ import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError, WebsocketStream, WebsocketStreamsBase } from "@binance/common";
2
2
 
3
3
  //#region src/rest-api/types/account-balance-response1-inner.d.ts
4
4
 
@@ -20406,5 +20406,5 @@ declare class DerivativesTradingPortfolioMargin {
20406
20406
  constructor(config: ConfigurationDerivativesTradingPortfolioMargin);
20407
20407
  }
20408
20408
  //#endregion
20409
- export { BadRequestError, type ConfigurationDerivativesTradingPortfolioMargin, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_TESTNET_URL, DerivativesTradingPortfolioMargin, index_d_exports as DerivativesTradingPortfolioMarginRestAPI, index_d_exports$1 as DerivativesTradingPortfolioMarginWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
20409
+ export { BadRequestError, type ConfigurationDerivativesTradingPortfolioMargin, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, DerivativesTradingPortfolioMargin, index_d_exports as DerivativesTradingPortfolioMarginRestAPI, index_d_exports$1 as DerivativesTradingPortfolioMarginWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
20410
20410
  //# sourceMappingURL=index.d.mts.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_TESTNET_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError, WebsocketStream, WebsocketStreamsBase } from "@binance/common";
1
+ import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError, WebsocketStream, WebsocketStreamsBase } from "@binance/common";
2
2
 
3
3
  //#region rolldown:runtime
4
4
 
@@ -20407,5 +20407,5 @@ declare class DerivativesTradingPortfolioMargin {
20407
20407
  constructor(config: ConfigurationDerivativesTradingPortfolioMargin);
20408
20408
  }
20409
20409
  //#endregion
20410
- export { BadRequestError, type ConfigurationDerivativesTradingPortfolioMargin, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_TESTNET_URL, DerivativesTradingPortfolioMargin, index_d_exports as DerivativesTradingPortfolioMarginRestAPI, index_d_exports$1 as DerivativesTradingPortfolioMarginWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
20410
+ export { BadRequestError, type ConfigurationDerivativesTradingPortfolioMargin, ConnectorClientError, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL, DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL, DerivativesTradingPortfolioMargin, index_d_exports as DerivativesTradingPortfolioMarginRestAPI, index_d_exports$1 as DerivativesTradingPortfolioMarginWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
20411
20411
  //# sourceMappingURL=index.d.ts.map
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/derivatives-trading-portfolio-margin";
17
- var version = "14.0.3";
17
+ var version = "14.0.4";
18
18
 
19
19
  //#endregion
20
20
  //#region src/rest-api/modules/account-api.ts
@@ -6984,24 +6984,12 @@ Object.defineProperty(exports, 'DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PR
6984
6984
  return __binance_common.DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL;
6985
6985
  }
6986
6986
  });
6987
- Object.defineProperty(exports, 'DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL', {
6988
- enumerable: true,
6989
- get: function () {
6990
- return __binance_common.DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_TESTNET_URL;
6991
- }
6992
- });
6993
6987
  Object.defineProperty(exports, 'DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL', {
6994
6988
  enumerable: true,
6995
6989
  get: function () {
6996
6990
  return __binance_common.DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_PROD_URL;
6997
6991
  }
6998
6992
  });
6999
- Object.defineProperty(exports, 'DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_TESTNET_URL', {
7000
- enumerable: true,
7001
- get: function () {
7002
- return __binance_common.DERIVATIVES_TRADING_PORTFOLIO_MARGIN_WS_STREAMS_TESTNET_URL;
7003
- }
7004
- });
7005
6993
  exports.DerivativesTradingPortfolioMargin = DerivativesTradingPortfolioMargin;
7006
6994
  Object.defineProperty(exports, 'DerivativesTradingPortfolioMarginRestAPI', {
7007
6995
  enumerable: true,