snaptrade-typescript-sdk 9.0.35 → 9.0.37
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 +30 -22
- package/dist/api/account-information-api-generated.d.ts +2 -2
- package/dist/api/account-information-api-generated.js +1 -1
- package/dist/api/authentication-api-generated.d.ts +28 -28
- package/dist/api/authentication-api-generated.js +28 -28
- package/dist/api/connections-api-generated.d.ts +4 -4
- package/dist/api/connections-api-generated.js +2 -2
- package/dist/api/transactions-and-reporting-api-generated.d.ts +16 -16
- package/dist/api/transactions-and-reporting-api-generated.js +10 -10
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account-order-record-universal-symbol.d.ts +6 -6
- package/dist/models/account-order-record.d.ts +1 -1
- package/dist/models/account-simple.d.ts +4 -4
- package/dist/models/account.d.ts +7 -7
- package/dist/models/delete-user-response.d.ts +8 -2
- package/dist/models/index.d.ts +5 -2
- package/dist/models/index.js +5 -2
- package/dist/models/login-redirect-uri.d.ts +4 -4
- package/dist/models/snap-trade-login-user-request-body.d.ts +6 -6
- package/dist/models/{universal-symbol-currency.d.ts → symbol-currency.d.ts} +5 -5
- package/dist/models/{universal-symbol-exchange.d.ts → symbol-exchange.d.ts} +10 -10
- package/dist/models/symbol.d.ts +13 -13
- package/dist/models/underlying-symbol.d.ts +3 -3
- package/dist/models/universal-activity-currency.d.ts +25 -0
- package/dist/models/universal-activity-currency.js +2 -0
- package/dist/models/universal-activity-option-symbol.d.ts +52 -0
- package/dist/models/universal-activity-option-symbol.js +2 -0
- package/dist/models/universal-activity-symbol.d.ts +65 -0
- package/dist/models/universal-activity-symbol.js +2 -0
- package/dist/models/universal-activity.d.ts +40 -40
- package/dist/models/universal-symbol.d.ts +6 -6
- package/dist/models/user-idand-secret.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/models/{universal-symbol-currency.js → symbol-currency.js} +0 -0
- /package/dist/models/{universal-symbol-exchange.js → symbol-exchange.js} +0 -0
|
@@ -9,15 +9,15 @@ import { UniversalActivity } from '../models';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const TransactionsAndReportingApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
11
11
|
/**
|
|
12
|
-
* Returns
|
|
12
|
+
* Returns all historical transactions for the specified user and filtering criteria. It\'s recommended to use `startDate` and `endDate` to paginate through the data, as the response may be very large for accounts with a long history and/or a lot of activity. There\'s a max number of 10000 transactions returned per request. There is no guarantee to the ordering of the transactions returned. Please sort the transactions based on the `trade_date` field if you need them in a specific order. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
13
13
|
* @summary Get transaction history for a user
|
|
14
14
|
* @param {string} userId
|
|
15
15
|
* @param {string} userSecret
|
|
16
|
-
* @param {string | Date} [startDate]
|
|
17
|
-
* @param {string | Date} [endDate]
|
|
18
|
-
* @param {string} [accounts] Optional comma
|
|
19
|
-
* @param {string} [brokerageAuthorizations] Optional comma
|
|
20
|
-
* @param {string} [type] Optional comma
|
|
16
|
+
* @param {string | Date} [startDate] The start date (inclusive) of the transaction history to retrieve. If not provided, the default is the first transaction known to SnapTrade based on `trade_date`.
|
|
17
|
+
* @param {string | Date} [endDate] The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
|
|
18
|
+
* @param {string} [accounts] Optional comma separated list of SnapTrade Account IDs used to filter the request to specific accounts. If not provided, the default is all known brokerage accounts for the user. The `brokerageAuthorizations` parameter takes precedence over this parameter.
|
|
19
|
+
* @param {string} [brokerageAuthorizations] Optional comma separated list of SnapTrade Connection (Brokerage Authorization) IDs used to filter the request to only accounts that belong to those connections. If not provided, the default is all connections for the user. This parameter takes precedence over the `accounts` parameter.
|
|
20
|
+
* @param {string} [type] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - BUY - SELL - DIVIDEND - CONTRIBUTION - WITHDRAWAL - REI - INTEREST - FEE
|
|
21
21
|
* @param {*} [options] Override http request option.
|
|
22
22
|
* @throws {RequiredError}
|
|
23
23
|
*/
|
|
@@ -29,7 +29,7 @@ export declare const TransactionsAndReportingApiAxiosParamCreator: (configuratio
|
|
|
29
29
|
* @param {string | Date} endDate
|
|
30
30
|
* @param {string} userId
|
|
31
31
|
* @param {string} userSecret
|
|
32
|
-
* @param {string} [accounts] Optional comma
|
|
32
|
+
* @param {string} [accounts] Optional comma separated list of account IDs used to filter the request on specific accounts
|
|
33
33
|
* @param {boolean} [detailed] Optional, increases frequency of data points for the total value and contribution charts if set to true
|
|
34
34
|
* @param {string} [frequency] Optional frequency for the rate of return chart (defaults to monthly). Possible values are daily, weekly, monthly, quarterly, yearly.
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
@@ -44,7 +44,7 @@ export declare const TransactionsAndReportingApiAxiosParamCreator: (configuratio
|
|
|
44
44
|
*/
|
|
45
45
|
export declare const TransactionsAndReportingApiFp: (configuration?: Configuration) => {
|
|
46
46
|
/**
|
|
47
|
-
* Returns
|
|
47
|
+
* Returns all historical transactions for the specified user and filtering criteria. It\'s recommended to use `startDate` and `endDate` to paginate through the data, as the response may be very large for accounts with a long history and/or a lot of activity. There\'s a max number of 10000 transactions returned per request. There is no guarantee to the ordering of the transactions returned. Please sort the transactions based on the `trade_date` field if you need them in a specific order. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
48
48
|
* @summary Get transaction history for a user
|
|
49
49
|
* @param {TransactionsAndReportingApiGetActivitiesRequest} requestParameters Request parameters.
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
@@ -67,7 +67,7 @@ export declare const TransactionsAndReportingApiFp: (configuration?: Configurati
|
|
|
67
67
|
*/
|
|
68
68
|
export declare const TransactionsAndReportingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
69
69
|
/**
|
|
70
|
-
* Returns
|
|
70
|
+
* Returns all historical transactions for the specified user and filtering criteria. It\'s recommended to use `startDate` and `endDate` to paginate through the data, as the response may be very large for accounts with a long history and/or a lot of activity. There\'s a max number of 10000 transactions returned per request. There is no guarantee to the ordering of the transactions returned. Please sort the transactions based on the `trade_date` field if you need them in a specific order. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
71
71
|
* @summary Get transaction history for a user
|
|
72
72
|
* @param {TransactionsAndReportingApiGetActivitiesRequest} requestParameters Request parameters.
|
|
73
73
|
* @param {*} [options] Override http request option.
|
|
@@ -103,31 +103,31 @@ export type TransactionsAndReportingApiGetActivitiesRequest = {
|
|
|
103
103
|
*/
|
|
104
104
|
readonly userSecret: string;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* The start date (inclusive) of the transaction history to retrieve. If not provided, the default is the first transaction known to SnapTrade based on `trade_date`.
|
|
107
107
|
* @type {string | Date}
|
|
108
108
|
* @memberof TransactionsAndReportingApiGetActivities
|
|
109
109
|
*/
|
|
110
110
|
readonly startDate?: string | Date;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
|
|
113
113
|
* @type {string | Date}
|
|
114
114
|
* @memberof TransactionsAndReportingApiGetActivities
|
|
115
115
|
*/
|
|
116
116
|
readonly endDate?: string | Date;
|
|
117
117
|
/**
|
|
118
|
-
* Optional comma
|
|
118
|
+
* Optional comma separated list of SnapTrade Account IDs used to filter the request to specific accounts. If not provided, the default is all known brokerage accounts for the user. The `brokerageAuthorizations` parameter takes precedence over this parameter.
|
|
119
119
|
* @type {string}
|
|
120
120
|
* @memberof TransactionsAndReportingApiGetActivities
|
|
121
121
|
*/
|
|
122
122
|
readonly accounts?: string;
|
|
123
123
|
/**
|
|
124
|
-
* Optional comma
|
|
124
|
+
* Optional comma separated list of SnapTrade Connection (Brokerage Authorization) IDs used to filter the request to only accounts that belong to those connections. If not provided, the default is all connections for the user. This parameter takes precedence over the `accounts` parameter.
|
|
125
125
|
* @type {string}
|
|
126
126
|
* @memberof TransactionsAndReportingApiGetActivities
|
|
127
127
|
*/
|
|
128
128
|
readonly brokerageAuthorizations?: string;
|
|
129
129
|
/**
|
|
130
|
-
* Optional comma
|
|
130
|
+
* Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - BUY - SELL - DIVIDEND - CONTRIBUTION - WITHDRAWAL - REI - INTEREST - FEE
|
|
131
131
|
* @type {string}
|
|
132
132
|
* @memberof TransactionsAndReportingApiGetActivities
|
|
133
133
|
*/
|
|
@@ -164,7 +164,7 @@ export type TransactionsAndReportingApiGetReportingCustomRangeRequest = {
|
|
|
164
164
|
*/
|
|
165
165
|
readonly userSecret: string;
|
|
166
166
|
/**
|
|
167
|
-
* Optional comma
|
|
167
|
+
* Optional comma separated list of account IDs used to filter the request on specific accounts
|
|
168
168
|
* @type {string}
|
|
169
169
|
* @memberof TransactionsAndReportingApiGetReportingCustomRange
|
|
170
170
|
*/
|
|
@@ -190,7 +190,7 @@ export type TransactionsAndReportingApiGetReportingCustomRangeRequest = {
|
|
|
190
190
|
*/
|
|
191
191
|
export declare class TransactionsAndReportingApiGenerated extends BaseAPI {
|
|
192
192
|
/**
|
|
193
|
-
* Returns
|
|
193
|
+
* Returns all historical transactions for the specified user and filtering criteria. It\'s recommended to use `startDate` and `endDate` to paginate through the data, as the response may be very large for accounts with a long history and/or a lot of activity. There\'s a max number of 10000 transactions returned per request. There is no guarantee to the ordering of the transactions returned. Please sort the transactions based on the `trade_date` field if you need them in a specific order. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
194
194
|
* @summary Get transaction history for a user
|
|
195
195
|
* @param {TransactionsAndReportingApiGetActivitiesRequest} requestParameters Request parameters.
|
|
196
196
|
* @param {*} [options] Override http request option.
|
|
@@ -36,15 +36,15 @@ const requestBeforeHook_1 = require("../requestBeforeHook");
|
|
|
36
36
|
const TransactionsAndReportingApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
38
|
/**
|
|
39
|
-
* Returns
|
|
39
|
+
* Returns all historical transactions for the specified user and filtering criteria. It\'s recommended to use `startDate` and `endDate` to paginate through the data, as the response may be very large for accounts with a long history and/or a lot of activity. There\'s a max number of 10000 transactions returned per request. There is no guarantee to the ordering of the transactions returned. Please sort the transactions based on the `trade_date` field if you need them in a specific order. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
40
40
|
* @summary Get transaction history for a user
|
|
41
41
|
* @param {string} userId
|
|
42
42
|
* @param {string} userSecret
|
|
43
|
-
* @param {string | Date} [startDate]
|
|
44
|
-
* @param {string | Date} [endDate]
|
|
45
|
-
* @param {string} [accounts] Optional comma
|
|
46
|
-
* @param {string} [brokerageAuthorizations] Optional comma
|
|
47
|
-
* @param {string} [type] Optional comma
|
|
43
|
+
* @param {string | Date} [startDate] The start date (inclusive) of the transaction history to retrieve. If not provided, the default is the first transaction known to SnapTrade based on `trade_date`.
|
|
44
|
+
* @param {string | Date} [endDate] The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
|
|
45
|
+
* @param {string} [accounts] Optional comma separated list of SnapTrade Account IDs used to filter the request to specific accounts. If not provided, the default is all known brokerage accounts for the user. The `brokerageAuthorizations` parameter takes precedence over this parameter.
|
|
46
|
+
* @param {string} [brokerageAuthorizations] Optional comma separated list of SnapTrade Connection (Brokerage Authorization) IDs used to filter the request to only accounts that belong to those connections. If not provided, the default is all connections for the user. This parameter takes precedence over the `accounts` parameter.
|
|
47
|
+
* @param {string} [type] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - BUY - SELL - DIVIDEND - CONTRIBUTION - WITHDRAWAL - REI - INTEREST - FEE
|
|
48
48
|
* @param {*} [options] Override http request option.
|
|
49
49
|
* @throws {RequiredError}
|
|
50
50
|
*/
|
|
@@ -117,7 +117,7 @@ const TransactionsAndReportingApiAxiosParamCreator = function (configuration) {
|
|
|
117
117
|
* @param {string | Date} endDate
|
|
118
118
|
* @param {string} userId
|
|
119
119
|
* @param {string} userSecret
|
|
120
|
-
* @param {string} [accounts] Optional comma
|
|
120
|
+
* @param {string} [accounts] Optional comma separated list of account IDs used to filter the request on specific accounts
|
|
121
121
|
* @param {boolean} [detailed] Optional, increases frequency of data points for the total value and contribution charts if set to true
|
|
122
122
|
* @param {string} [frequency] Optional frequency for the rate of return chart (defaults to monthly). Possible values are daily, weekly, monthly, quarterly, yearly.
|
|
123
123
|
* @param {*} [options] Override http request option.
|
|
@@ -201,7 +201,7 @@ const TransactionsAndReportingApiFp = function (configuration) {
|
|
|
201
201
|
const localVarAxiosParamCreator = (0, exports.TransactionsAndReportingApiAxiosParamCreator)(configuration);
|
|
202
202
|
return {
|
|
203
203
|
/**
|
|
204
|
-
* Returns
|
|
204
|
+
* Returns all historical transactions for the specified user and filtering criteria. It\'s recommended to use `startDate` and `endDate` to paginate through the data, as the response may be very large for accounts with a long history and/or a lot of activity. There\'s a max number of 10000 transactions returned per request. There is no guarantee to the ordering of the transactions returned. Please sort the transactions based on the `trade_date` field if you need them in a specific order. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
205
205
|
* @summary Get transaction history for a user
|
|
206
206
|
* @param {TransactionsAndReportingApiGetActivitiesRequest} requestParameters Request parameters.
|
|
207
207
|
* @param {*} [options] Override http request option.
|
|
@@ -238,7 +238,7 @@ const TransactionsAndReportingApiFactory = function (configuration, basePath, ax
|
|
|
238
238
|
const localVarFp = (0, exports.TransactionsAndReportingApiFp)(configuration);
|
|
239
239
|
return {
|
|
240
240
|
/**
|
|
241
|
-
* Returns
|
|
241
|
+
* Returns all historical transactions for the specified user and filtering criteria. It\'s recommended to use `startDate` and `endDate` to paginate through the data, as the response may be very large for accounts with a long history and/or a lot of activity. There\'s a max number of 10000 transactions returned per request. There is no guarantee to the ordering of the transactions returned. Please sort the transactions based on the `trade_date` field if you need them in a specific order. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
242
242
|
* @summary Get transaction history for a user
|
|
243
243
|
* @param {TransactionsAndReportingApiGetActivitiesRequest} requestParameters Request parameters.
|
|
244
244
|
* @param {*} [options] Override http request option.
|
|
@@ -269,7 +269,7 @@ exports.TransactionsAndReportingApiFactory = TransactionsAndReportingApiFactory;
|
|
|
269
269
|
*/
|
|
270
270
|
class TransactionsAndReportingApiGenerated extends base_1.BaseAPI {
|
|
271
271
|
/**
|
|
272
|
-
* Returns
|
|
272
|
+
* Returns all historical transactions for the specified user and filtering criteria. It\'s recommended to use `startDate` and `endDate` to paginate through the data, as the response may be very large for accounts with a long history and/or a lot of activity. There\'s a max number of 10000 transactions returned per request. There is no guarantee to the ordering of the transactions returned. Please sort the transactions based on the `trade_date` field if you need them in a specific order. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
273
273
|
* @summary Get transaction history for a user
|
|
274
274
|
* @param {TransactionsAndReportingApiGetActivitiesRequest} requestParameters Request parameters.
|
|
275
275
|
* @param {*} [options] Override http request option.
|