snaptrade-typescript-sdk 12.2.11 → 12.2.13

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
@@ -394,7 +394,7 @@ const AccountInformationApiAxiosParamCreator = function(configuration) {
394
394
  };
395
395
  },
396
396
  /**
397
- * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the Add-on section of the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)
397
+ * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
398
398
  * @summary List historical account total value
399
399
  * @param {string} accountId
400
400
  * @param {string} [userId]
@@ -916,7 +916,7 @@ const AccountInformationApiAxiosParamCreator = function(configuration) {
916
916
  };
917
917
  },
918
918
  /**
919
- * Returns a list of rate of return percents for a given account.
919
+ * DEPRECATED. Returns a list of rate of return percents for a given account.
920
920
  * @summary List account rate of returns
921
921
  * @param {string} accountId
922
922
  * @param {string} [timeframes] Optional comma separated list of rate-of-return timeframes to return. Supported values are `ALL`, `1Y`, `YTD`, `1M`, `1W`, and `1D`. If omitted, SnapTrade returns all six supported timeframes.
@@ -1241,7 +1241,7 @@ const AccountInformationApiFp = function(configuration) {
1241
1241
  });
1242
1242
  },
1243
1243
  /**
1244
- * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the Add-on section of the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)
1244
+ * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
1245
1245
  * @summary List historical account total value
1246
1246
  * @param {AccountInformationApiGetAccountBalanceHistoryRequest<TAuth>} requestParameters Request parameters.
1247
1247
  * @param {*} [options] Override http request option.
@@ -1403,7 +1403,7 @@ const AccountInformationApiFp = function(configuration) {
1403
1403
  });
1404
1404
  },
1405
1405
  /**
1406
- * Returns a list of rate of return percents for a given account.
1406
+ * DEPRECATED. Returns a list of rate of return percents for a given account.
1407
1407
  * @summary List account rate of returns
1408
1408
  * @param {AccountInformationApiGetUserAccountReturnRatesRequest<TAuth>} requestParameters Request parameters.
1409
1409
  * @param {*} [options] Override http request option.
@@ -1515,7 +1515,7 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1515
1515
  return localVarFp.getAccountActivities(...args).then((request) => request(axios, basePath));
1516
1516
  },
1517
1517
  /**
1518
- * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the Add-on section of the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)
1518
+ * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
1519
1519
  * @summary List historical account total value
1520
1520
  * @param {AccountInformationApiGetAccountBalanceHistoryRequest<TAuth>} requestParameters Request parameters.
1521
1521
  * @param {*} [options] Override http request option.
@@ -1585,7 +1585,7 @@ const AccountInformationApiFactory = function(configuration, basePath, axios) {
1585
1585
  return localVarFp.getUserAccountRecentOrders(...args).then((request) => request(axios, basePath));
1586
1586
  },
1587
1587
  /**
1588
- * Returns a list of rate of return percents for a given account.
1588
+ * DEPRECATED. Returns a list of rate of return percents for a given account.
1589
1589
  * @summary List account rate of returns
1590
1590
  * @param {AccountInformationApiGetUserAccountReturnRatesRequest<TAuth>} requestParameters Request parameters.
1591
1591
  * @param {*} [options] Override http request option.
@@ -1646,7 +1646,7 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1646
1646
  return AccountInformationApiFp(this.configuration).getAccountActivities(...args).then((request) => request(this.axios, this.basePath));
1647
1647
  }
1648
1648
  /**
1649
- * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the Add-on section of the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)
1649
+ * An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
1650
1650
  * @summary List historical account total value
1651
1651
  * @param {AccountInformationApiGetAccountBalanceHistoryRequest<TAuth>} requestParameters Request parameters.
1652
1652
  * @param {*} [options] Override http request option.
@@ -1723,7 +1723,7 @@ var AccountInformationApiGenerated = class extends BaseAPI {
1723
1723
  return AccountInformationApiFp(this.configuration).getUserAccountRecentOrders(...args).then((request) => request(this.axios, this.basePath));
1724
1724
  }
1725
1725
  /**
1726
- * Returns a list of rate of return percents for a given account.
1726
+ * DEPRECATED. Returns a list of rate of return percents for a given account.
1727
1727
  * @summary List account rate of returns
1728
1728
  * @param {AccountInformationApiGetUserAccountReturnRatesRequest<TAuth>} requestParameters Request parameters.
1729
1729
  * @param {*} [options] Override http request option.
@@ -2945,7 +2945,7 @@ const ConnectionsApiAxiosParamCreator = function(configuration) {
2945
2945
  };
2946
2946
  },
2947
2947
  /**
2948
- * Returns a list of rate of return percents for a given connection.
2948
+ * DEPRECATED. Returns a list of rate of return percents for a given connection.
2949
2949
  * @summary List connection rate of returns
2950
2950
  * @param {string} authorizationId
2951
2951
  * @param {string} [timeframes] Optional comma separated list of rate-of-return timeframes to return. Supported values are &#x60;ALL&#x60;, &#x60;1Y&#x60;, &#x60;YTD&#x60;, &#x60;1M&#x60;, &#x60;1W&#x60;, and &#x60;1D&#x60;. If omitted, SnapTrade returns all six supported timeframes.
@@ -3263,7 +3263,7 @@ const ConnectionsApiFp = function(configuration) {
3263
3263
  });
3264
3264
  },
3265
3265
  /**
3266
- * Returns a list of rate of return percents for a given connection.
3266
+ * DEPRECATED. Returns a list of rate of return percents for a given connection.
3267
3267
  * @summary List connection rate of returns
3268
3268
  * @param {ConnectionsApiReturnRatesRequest<TAuth>} requestParameters Request parameters.
3269
3269
  * @param {*} [options] Override http request option.
@@ -3388,7 +3388,7 @@ const ConnectionsApiFactory = function(configuration, basePath, axios) {
3388
3388
  return localVarFp.refreshBrokerageAuthorization(...args).then((request) => request(axios, basePath));
3389
3389
  },
3390
3390
  /**
3391
- * Returns a list of rate of return percents for a given connection.
3391
+ * DEPRECATED. Returns a list of rate of return percents for a given connection.
3392
3392
  * @summary List connection rate of returns
3393
3393
  * @param {ConnectionsApiReturnRatesRequest<TAuth>} requestParameters Request parameters.
3394
3394
  * @param {*} [options] Override http request option.
@@ -3494,7 +3494,7 @@ var ConnectionsApiGenerated = class extends BaseAPI {
3494
3494
  return ConnectionsApiFp(this.configuration).refreshBrokerageAuthorization(...args).then((request) => request(this.axios, this.basePath));
3495
3495
  }
3496
3496
  /**
3497
- * Returns a list of rate of return percents for a given connection.
3497
+ * DEPRECATED. Returns a list of rate of return percents for a given connection.
3498
3498
  * @summary List connection rate of returns
3499
3499
  * @param {ConnectionsApiReturnRatesRequest<TAuth>} requestParameters Request parameters.
3500
3500
  * @param {*} [options] Override http request option.
@@ -4736,6 +4736,49 @@ const ReferenceDataApiAxiosParamCreator = function(configuration) {
4736
4736
  };
4737
4737
  },
4738
4738
  /**
4739
+ * Returns the public catalog of institutions SnapTrade supports and what each one supports. The response is the same for every caller and needs no authentication. To list the brokerages a specific Client ID can connect to right now, use `GET /brokerages` instead. A `null` field means the information is not documented yet, never that the institution lacks it. New fields and new enum values may be added over time, so ignore any you don\'t recognize.
4740
+ * @summary List institutions
4741
+ * @param {*} [options] Override http request option.
4742
+ * @throws {RequiredError}
4743
+ */
4744
+ listInstitutions: async (options = {}) => {
4745
+ const localVarPath = `/institutions`;
4746
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4747
+ let baseOptions;
4748
+ if (configuration) baseOptions = configuration.baseOptions;
4749
+ const localVarRequestOptions = {
4750
+ method: "GET",
4751
+ ...baseOptions,
4752
+ ...options
4753
+ };
4754
+ const localVarHeaderParameter = configuration && !isBrowser() ? { "User-Agent": configuration.userAgent } : {};
4755
+ const localVarQueryParameter = {};
4756
+ const localVarOperationAuth = {
4757
+ authModes: ["public"],
4758
+ selectedAuthMode: configuration?.authMode
4759
+ };
4760
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4761
+ localVarRequestOptions.headers = {
4762
+ ...localVarHeaderParameter,
4763
+ ...headersFromBaseOptions,
4764
+ ...options.headers
4765
+ };
4766
+ requestBeforeHook({
4767
+ queryParameters: localVarQueryParameter,
4768
+ requestConfig: localVarRequestOptions,
4769
+ path: localVarPath,
4770
+ configuration,
4771
+ pathTemplate: "/institutions",
4772
+ httpMethod: "GET",
4773
+ operationAuth: localVarOperationAuth
4774
+ });
4775
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4776
+ return {
4777
+ url: toPathString(localVarUrlObj),
4778
+ options: localVarRequestOptions
4779
+ };
4780
+ },
4781
+ /**
4739
4782
  * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
4740
4783
  * @summary Search account symbols
4741
4784
  * @param {string} accountId
@@ -4981,6 +5024,15 @@ const ReferenceDataApiFp = function(configuration) {
4981
5024
  });
4982
5025
  },
4983
5026
  /**
5027
+ * Returns the public catalog of institutions SnapTrade supports and what each one supports. The response is the same for every caller and needs no authentication. To list the brokerages a specific Client ID can connect to right now, use `GET /brokerages` instead. A `null` field means the information is not documented yet, never that the institution lacks it. New fields and new enum values may be added over time, so ignore any you don\'t recognize.
5028
+ * @summary List institutions
5029
+ * @param {*} [options] Override http request option.
5030
+ * @throws {RequiredError}
5031
+ */
5032
+ async listInstitutions(options) {
5033
+ return createRequestFunction(await localVarAxiosParamCreator.listInstitutions(options), globalAxios, BASE_PATH, configuration, { authModes: ["public"] });
5034
+ },
5035
+ /**
4984
5036
  * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
4985
5037
  * @summary Search account symbols
4986
5038
  * @param {ReferenceDataApiSymbolSearchUserAccountRequest<TAuth>} requestParameters Request parameters.
@@ -5081,6 +5133,15 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios) {
5081
5133
  return localVarFp.listAllBrokerages(...args).then((request) => request(axios, basePath));
5082
5134
  },
5083
5135
  /**
5136
+ * Returns the public catalog of institutions SnapTrade supports and what each one supports. The response is the same for every caller and needs no authentication. To list the brokerages a specific Client ID can connect to right now, use `GET /brokerages` instead. A `null` field means the information is not documented yet, never that the institution lacks it. New fields and new enum values may be added over time, so ignore any you don\'t recognize.
5137
+ * @summary List institutions
5138
+ * @param {*} [options] Override http request option.
5139
+ * @throws {RequiredError}
5140
+ */
5141
+ listInstitutions(options) {
5142
+ return localVarFp.listInstitutions(options).then((request) => request(axios, basePath));
5143
+ },
5144
+ /**
5084
5145
  * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
5085
5146
  * @summary Search account symbols
5086
5147
  * @param {ReferenceDataApiSymbolSearchUserAccountRequest<TAuth>} requestParameters Request parameters.
@@ -5174,6 +5235,16 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
5174
5235
  return ReferenceDataApiFp(this.configuration).listAllBrokerages(...args).then((request) => request(this.axios, this.basePath));
5175
5236
  }
5176
5237
  /**
5238
+ * Returns the public catalog of institutions SnapTrade supports and what each one supports. The response is the same for every caller and needs no authentication. To list the brokerages a specific Client ID can connect to right now, use `GET /brokerages` instead. A `null` field means the information is not documented yet, never that the institution lacks it. New fields and new enum values may be added over time, so ignore any you don\'t recognize.
5239
+ * @summary List institutions
5240
+ * @param {*} [options] Override http request option.
5241
+ * @throws {RequiredError}
5242
+ * @memberof ReferenceDataApiGenerated
5243
+ */
5244
+ listInstitutions(options) {
5245
+ return ReferenceDataApiFp(this.configuration).listInstitutions(options).then((request) => request(this.axios, this.basePath));
5246
+ }
5247
+ /**
5177
5248
  * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
5178
5249
  * @summary Search account symbols
5179
5250
  * @param {ReferenceDataApiSymbolSearchUserAccountRequest<TAuth>} requestParameters Request parameters.
@@ -7056,7 +7127,7 @@ var Configuration = class {
7056
7127
  }
7057
7128
  this.basePath = param.basePath;
7058
7129
  this.baseOptions = param.baseOptions ?? {};
7059
- this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.11/typescript" : param.userAgent;
7130
+ this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.13/typescript" : param.userAgent;
7060
7131
  this.formDataCtor = param.formDataCtor;
7061
7132
  }
7062
7133
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "12.2.11",
3
+ "version": "12.2.13",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {