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/README.md +52 -16
- package/dist/browser.umd.js +1 -1
- package/dist/index.cjs +84 -13
- package/dist/index.d.cts +581 -639
- package/dist/index.d.mts +581 -639
- package/dist/index.d.ts +581 -639
- package/dist/index.mjs +84 -13
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -418,7 +418,7 @@ const AccountInformationApiAxiosParamCreator = function(configuration) {
|
|
|
418
418
|
};
|
|
419
419
|
},
|
|
420
420
|
/**
|
|
421
|
-
* 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
|
|
421
|
+
* 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)
|
|
422
422
|
* @summary List historical account total value
|
|
423
423
|
* @param {string} accountId
|
|
424
424
|
* @param {string} [userId]
|
|
@@ -940,7 +940,7 @@ const AccountInformationApiAxiosParamCreator = function(configuration) {
|
|
|
940
940
|
};
|
|
941
941
|
},
|
|
942
942
|
/**
|
|
943
|
-
* Returns a list of rate of return percents for a given account.
|
|
943
|
+
* DEPRECATED. Returns a list of rate of return percents for a given account.
|
|
944
944
|
* @summary List account rate of returns
|
|
945
945
|
* @param {string} accountId
|
|
946
946
|
* @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.
|
|
@@ -1265,7 +1265,7 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1265
1265
|
});
|
|
1266
1266
|
},
|
|
1267
1267
|
/**
|
|
1268
|
-
* 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
|
|
1268
|
+
* 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)
|
|
1269
1269
|
* @summary List historical account total value
|
|
1270
1270
|
* @param {AccountInformationApiGetAccountBalanceHistoryRequest<TAuth>} requestParameters Request parameters.
|
|
1271
1271
|
* @param {*} [options] Override http request option.
|
|
@@ -1427,7 +1427,7 @@ const AccountInformationApiFp = function(configuration) {
|
|
|
1427
1427
|
});
|
|
1428
1428
|
},
|
|
1429
1429
|
/**
|
|
1430
|
-
* Returns a list of rate of return percents for a given account.
|
|
1430
|
+
* DEPRECATED. Returns a list of rate of return percents for a given account.
|
|
1431
1431
|
* @summary List account rate of returns
|
|
1432
1432
|
* @param {AccountInformationApiGetUserAccountReturnRatesRequest<TAuth>} requestParameters Request parameters.
|
|
1433
1433
|
* @param {*} [options] Override http request option.
|
|
@@ -1539,7 +1539,7 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1539
1539
|
return localVarFp.getAccountActivities(...args).then((request) => request(axios$8, basePath));
|
|
1540
1540
|
},
|
|
1541
1541
|
/**
|
|
1542
|
-
* 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
|
|
1542
|
+
* 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)
|
|
1543
1543
|
* @summary List historical account total value
|
|
1544
1544
|
* @param {AccountInformationApiGetAccountBalanceHistoryRequest<TAuth>} requestParameters Request parameters.
|
|
1545
1545
|
* @param {*} [options] Override http request option.
|
|
@@ -1609,7 +1609,7 @@ const AccountInformationApiFactory = function(configuration, basePath, axios$8)
|
|
|
1609
1609
|
return localVarFp.getUserAccountRecentOrders(...args).then((request) => request(axios$8, basePath));
|
|
1610
1610
|
},
|
|
1611
1611
|
/**
|
|
1612
|
-
* Returns a list of rate of return percents for a given account.
|
|
1612
|
+
* DEPRECATED. Returns a list of rate of return percents for a given account.
|
|
1613
1613
|
* @summary List account rate of returns
|
|
1614
1614
|
* @param {AccountInformationApiGetUserAccountReturnRatesRequest<TAuth>} requestParameters Request parameters.
|
|
1615
1615
|
* @param {*} [options] Override http request option.
|
|
@@ -1670,7 +1670,7 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1670
1670
|
return AccountInformationApiFp(this.configuration).getAccountActivities(...args).then((request) => request(this.axios, this.basePath));
|
|
1671
1671
|
}
|
|
1672
1672
|
/**
|
|
1673
|
-
* 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
|
|
1673
|
+
* 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)
|
|
1674
1674
|
* @summary List historical account total value
|
|
1675
1675
|
* @param {AccountInformationApiGetAccountBalanceHistoryRequest<TAuth>} requestParameters Request parameters.
|
|
1676
1676
|
* @param {*} [options] Override http request option.
|
|
@@ -1747,7 +1747,7 @@ var AccountInformationApiGenerated = class extends BaseAPI {
|
|
|
1747
1747
|
return AccountInformationApiFp(this.configuration).getUserAccountRecentOrders(...args).then((request) => request(this.axios, this.basePath));
|
|
1748
1748
|
}
|
|
1749
1749
|
/**
|
|
1750
|
-
* Returns a list of rate of return percents for a given account.
|
|
1750
|
+
* DEPRECATED. Returns a list of rate of return percents for a given account.
|
|
1751
1751
|
* @summary List account rate of returns
|
|
1752
1752
|
* @param {AccountInformationApiGetUserAccountReturnRatesRequest<TAuth>} requestParameters Request parameters.
|
|
1753
1753
|
* @param {*} [options] Override http request option.
|
|
@@ -2969,7 +2969,7 @@ const ConnectionsApiAxiosParamCreator = function(configuration) {
|
|
|
2969
2969
|
};
|
|
2970
2970
|
},
|
|
2971
2971
|
/**
|
|
2972
|
-
* Returns a list of rate of return percents for a given connection.
|
|
2972
|
+
* DEPRECATED. Returns a list of rate of return percents for a given connection.
|
|
2973
2973
|
* @summary List connection rate of returns
|
|
2974
2974
|
* @param {string} authorizationId
|
|
2975
2975
|
* @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.
|
|
@@ -3287,7 +3287,7 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3287
3287
|
});
|
|
3288
3288
|
},
|
|
3289
3289
|
/**
|
|
3290
|
-
* Returns a list of rate of return percents for a given connection.
|
|
3290
|
+
* DEPRECATED. Returns a list of rate of return percents for a given connection.
|
|
3291
3291
|
* @summary List connection rate of returns
|
|
3292
3292
|
* @param {ConnectionsApiReturnRatesRequest<TAuth>} requestParameters Request parameters.
|
|
3293
3293
|
* @param {*} [options] Override http request option.
|
|
@@ -3412,7 +3412,7 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3412
3412
|
return localVarFp.refreshBrokerageAuthorization(...args).then((request) => request(axios$5, basePath));
|
|
3413
3413
|
},
|
|
3414
3414
|
/**
|
|
3415
|
-
* Returns a list of rate of return percents for a given connection.
|
|
3415
|
+
* DEPRECATED. Returns a list of rate of return percents for a given connection.
|
|
3416
3416
|
* @summary List connection rate of returns
|
|
3417
3417
|
* @param {ConnectionsApiReturnRatesRequest<TAuth>} requestParameters Request parameters.
|
|
3418
3418
|
* @param {*} [options] Override http request option.
|
|
@@ -3518,7 +3518,7 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3518
3518
|
return ConnectionsApiFp(this.configuration).refreshBrokerageAuthorization(...args).then((request) => request(this.axios, this.basePath));
|
|
3519
3519
|
}
|
|
3520
3520
|
/**
|
|
3521
|
-
* Returns a list of rate of return percents for a given connection.
|
|
3521
|
+
* DEPRECATED. Returns a list of rate of return percents for a given connection.
|
|
3522
3522
|
* @summary List connection rate of returns
|
|
3523
3523
|
* @param {ConnectionsApiReturnRatesRequest<TAuth>} requestParameters Request parameters.
|
|
3524
3524
|
* @param {*} [options] Override http request option.
|
|
@@ -4760,6 +4760,49 @@ const ReferenceDataApiAxiosParamCreator = function(configuration) {
|
|
|
4760
4760
|
};
|
|
4761
4761
|
},
|
|
4762
4762
|
/**
|
|
4763
|
+
* 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.
|
|
4764
|
+
* @summary List institutions
|
|
4765
|
+
* @param {*} [options] Override http request option.
|
|
4766
|
+
* @throws {RequiredError}
|
|
4767
|
+
*/
|
|
4768
|
+
listInstitutions: async (options = {}) => {
|
|
4769
|
+
const localVarPath = `/institutions`;
|
|
4770
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4771
|
+
let baseOptions;
|
|
4772
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
4773
|
+
const localVarRequestOptions = {
|
|
4774
|
+
method: "GET",
|
|
4775
|
+
...baseOptions,
|
|
4776
|
+
...options
|
|
4777
|
+
};
|
|
4778
|
+
const localVarHeaderParameter = configuration && !isBrowser() ? { "User-Agent": configuration.userAgent } : {};
|
|
4779
|
+
const localVarQueryParameter = {};
|
|
4780
|
+
const localVarOperationAuth = {
|
|
4781
|
+
authModes: ["public"],
|
|
4782
|
+
selectedAuthMode: configuration?.authMode
|
|
4783
|
+
};
|
|
4784
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4785
|
+
localVarRequestOptions.headers = {
|
|
4786
|
+
...localVarHeaderParameter,
|
|
4787
|
+
...headersFromBaseOptions,
|
|
4788
|
+
...options.headers
|
|
4789
|
+
};
|
|
4790
|
+
requestBeforeHook({
|
|
4791
|
+
queryParameters: localVarQueryParameter,
|
|
4792
|
+
requestConfig: localVarRequestOptions,
|
|
4793
|
+
path: localVarPath,
|
|
4794
|
+
configuration,
|
|
4795
|
+
pathTemplate: "/institutions",
|
|
4796
|
+
httpMethod: "GET",
|
|
4797
|
+
operationAuth: localVarOperationAuth
|
|
4798
|
+
});
|
|
4799
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4800
|
+
return {
|
|
4801
|
+
url: toPathString(localVarUrlObj),
|
|
4802
|
+
options: localVarRequestOptions
|
|
4803
|
+
};
|
|
4804
|
+
},
|
|
4805
|
+
/**
|
|
4763
4806
|
* 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.
|
|
4764
4807
|
* @summary Search account symbols
|
|
4765
4808
|
* @param {string} accountId
|
|
@@ -5005,6 +5048,15 @@ const ReferenceDataApiFp = function(configuration) {
|
|
|
5005
5048
|
});
|
|
5006
5049
|
},
|
|
5007
5050
|
/**
|
|
5051
|
+
* 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.
|
|
5052
|
+
* @summary List institutions
|
|
5053
|
+
* @param {*} [options] Override http request option.
|
|
5054
|
+
* @throws {RequiredError}
|
|
5055
|
+
*/
|
|
5056
|
+
async listInstitutions(options) {
|
|
5057
|
+
return createRequestFunction(await localVarAxiosParamCreator.listInstitutions(options), axios.default, BASE_PATH, configuration, { authModes: ["public"] });
|
|
5058
|
+
},
|
|
5059
|
+
/**
|
|
5008
5060
|
* 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.
|
|
5009
5061
|
* @summary Search account symbols
|
|
5010
5062
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest<TAuth>} requestParameters Request parameters.
|
|
@@ -5105,6 +5157,15 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios$3) {
|
|
|
5105
5157
|
return localVarFp.listAllBrokerages(...args).then((request) => request(axios$3, basePath));
|
|
5106
5158
|
},
|
|
5107
5159
|
/**
|
|
5160
|
+
* 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.
|
|
5161
|
+
* @summary List institutions
|
|
5162
|
+
* @param {*} [options] Override http request option.
|
|
5163
|
+
* @throws {RequiredError}
|
|
5164
|
+
*/
|
|
5165
|
+
listInstitutions(options) {
|
|
5166
|
+
return localVarFp.listInstitutions(options).then((request) => request(axios$3, basePath));
|
|
5167
|
+
},
|
|
5168
|
+
/**
|
|
5108
5169
|
* 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.
|
|
5109
5170
|
* @summary Search account symbols
|
|
5110
5171
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest<TAuth>} requestParameters Request parameters.
|
|
@@ -5198,6 +5259,16 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
|
|
|
5198
5259
|
return ReferenceDataApiFp(this.configuration).listAllBrokerages(...args).then((request) => request(this.axios, this.basePath));
|
|
5199
5260
|
}
|
|
5200
5261
|
/**
|
|
5262
|
+
* 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.
|
|
5263
|
+
* @summary List institutions
|
|
5264
|
+
* @param {*} [options] Override http request option.
|
|
5265
|
+
* @throws {RequiredError}
|
|
5266
|
+
* @memberof ReferenceDataApiGenerated
|
|
5267
|
+
*/
|
|
5268
|
+
listInstitutions(options) {
|
|
5269
|
+
return ReferenceDataApiFp(this.configuration).listInstitutions(options).then((request) => request(this.axios, this.basePath));
|
|
5270
|
+
}
|
|
5271
|
+
/**
|
|
5201
5272
|
* 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.
|
|
5202
5273
|
* @summary Search account symbols
|
|
5203
5274
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest<TAuth>} requestParameters Request parameters.
|
|
@@ -7080,7 +7151,7 @@ var Configuration = class {
|
|
|
7080
7151
|
}
|
|
7081
7152
|
this.basePath = param.basePath;
|
|
7082
7153
|
this.baseOptions = param.baseOptions ?? {};
|
|
7083
|
-
this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.
|
|
7154
|
+
this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.13/typescript" : param.userAgent;
|
|
7084
7155
|
this.formDataCtor = param.formDataCtor;
|
|
7085
7156
|
}
|
|
7086
7157
|
/**
|