snaptrade-typescript-sdk 9.0.38 → 9.0.40
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 +89 -76
- package/dist/api/account-information-api-generated.d.ts +4 -4
- package/dist/api/account-information-api-generated.js +4 -4
- package/dist/api/authentication-api-generated.d.ts +4 -4
- package/dist/api/authentication-api-generated.js +4 -4
- package/dist/api/connections-api-generated.d.ts +44 -44
- package/dist/api/connections-api-generated.js +40 -40
- package/dist/api/trading-api-generated.d.ts +47 -47
- package/dist/api/trading-api-generated.js +46 -46
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account.d.ts +2 -2
- package/dist/models/action-strict.d.ts +1 -1
- package/dist/models/brokerage-authorization-disabled-confirmation.d.ts +1 -1
- package/dist/models/brokerage-authorization-refresh-confirmation.d.ts +1 -1
- package/dist/models/brokerage-authorization.d.ts +11 -9
- package/dist/models/brokerage-type.d.ts +1 -1
- package/dist/models/brokerage.d.ts +25 -38
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/manual-trade-and-impact.d.ts +5 -4
- package/dist/models/manual-trade-balance.d.ts +5 -5
- package/dist/models/manual-trade-form.d.ts +21 -21
- package/dist/models/manual-trade-impact.d.ts +38 -0
- package/dist/models/manual-trade-impact.js +2 -0
- package/dist/models/manual-trade-symbol.d.ts +10 -6
- package/dist/models/manual-trade.d.ts +9 -8
- package/dist/models/notional-value.d.ts +1 -1
- package/dist/models/options-place-option-strategy-request.d.ts +2 -2
- package/dist/models/order-type-strict.d.ts +1 -1
- package/dist/models/symbols-quotes-inner.d.ts +8 -8
- package/dist/models/time-in-force-strict.d.ts +1 -1
- package/dist/models/trading-cancel-user-account-order-request.d.ts +1 -1
- package/dist/models/validated-trade-body.d.ts +2 -2
- package/dist/operationParameterMap.js +20 -20
- package/package.json +1 -1
|
@@ -11,9 +11,9 @@ import { ConnectionsSessionEvents200ResponseInner } from '../models';
|
|
|
11
11
|
*/
|
|
12
12
|
export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
13
13
|
/**
|
|
14
|
-
* Returns a single
|
|
15
|
-
* @summary Get
|
|
16
|
-
* @param {string} authorizationId
|
|
14
|
+
* Returns a single connection for the specified ID.
|
|
15
|
+
* @summary Get connection detail
|
|
16
|
+
* @param {string} authorizationId
|
|
17
17
|
* @param {string} userId
|
|
18
18
|
* @param {string} userSecret
|
|
19
19
|
* @param {*} [options] Override http request option.
|
|
@@ -21,9 +21,9 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
21
21
|
*/
|
|
22
22
|
detailBrokerageAuthorization: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
23
23
|
/**
|
|
24
|
-
* Manually
|
|
25
|
-
* @summary
|
|
26
|
-
* @param {string} authorizationId
|
|
24
|
+
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
|
|
25
|
+
* @summary Force disable connection
|
|
26
|
+
* @param {string} authorizationId
|
|
27
27
|
* @param {string} userId
|
|
28
28
|
* @param {string} userSecret
|
|
29
29
|
* @param {*} [options] Override http request option.
|
|
@@ -31,8 +31,8 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
31
31
|
*/
|
|
32
32
|
disableBrokerageAuthorization: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
33
|
/**
|
|
34
|
-
* Returns a list of Brokerage Authorization
|
|
35
|
-
* @summary List all
|
|
34
|
+
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
35
|
+
* @summary List all connections
|
|
36
36
|
* @param {string} userId
|
|
37
37
|
* @param {string} userSecret
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
@@ -40,9 +40,9 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
40
40
|
*/
|
|
41
41
|
listBrokerageAuthorizations: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
42
|
/**
|
|
43
|
-
* Trigger a holdings update for all accounts under this
|
|
43
|
+
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
|
|
44
44
|
* @summary Refresh holdings for a connection
|
|
45
|
-
* @param {string} authorizationId
|
|
45
|
+
* @param {string} authorizationId
|
|
46
46
|
* @param {string} userId
|
|
47
47
|
* @param {string} userSecret
|
|
48
48
|
* @param {*} [options] Override http request option.
|
|
@@ -50,9 +50,9 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
50
50
|
*/
|
|
51
51
|
refreshBrokerageAuthorization: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
52
|
/**
|
|
53
|
-
* Deletes
|
|
54
|
-
* @summary Delete
|
|
55
|
-
* @param {string} authorizationId
|
|
53
|
+
* Deletes the connection specified by the ID. This will also delete all accounts and holdings associated with the connection. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the connection has been successfully deleted.
|
|
54
|
+
* @summary Delete connection
|
|
55
|
+
* @param {string} authorizationId
|
|
56
56
|
* @param {string} userId
|
|
57
57
|
* @param {string} userSecret
|
|
58
58
|
* @param {*} [options] Override http request option.
|
|
@@ -76,31 +76,31 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
76
76
|
*/
|
|
77
77
|
export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
78
78
|
/**
|
|
79
|
-
* Returns a single
|
|
80
|
-
* @summary Get
|
|
79
|
+
* Returns a single connection for the specified ID.
|
|
80
|
+
* @summary Get connection detail
|
|
81
81
|
* @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
82
82
|
* @param {*} [options] Override http request option.
|
|
83
83
|
* @throws {RequiredError}
|
|
84
84
|
*/
|
|
85
85
|
detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrokerageAuthorization>>;
|
|
86
86
|
/**
|
|
87
|
-
* Manually
|
|
88
|
-
* @summary
|
|
87
|
+
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
|
|
88
|
+
* @summary Force disable connection
|
|
89
89
|
* @param {ConnectionsApiDisableBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
90
90
|
* @param {*} [options] Override http request option.
|
|
91
91
|
* @throws {RequiredError}
|
|
92
92
|
*/
|
|
93
93
|
disableBrokerageAuthorization(requestParameters: ConnectionsApiDisableBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrokerageAuthorizationDisabledConfirmation>>;
|
|
94
94
|
/**
|
|
95
|
-
* Returns a list of Brokerage Authorization
|
|
96
|
-
* @summary List all
|
|
95
|
+
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
96
|
+
* @summary List all connections
|
|
97
97
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
98
98
|
* @param {*} [options] Override http request option.
|
|
99
99
|
* @throws {RequiredError}
|
|
100
100
|
*/
|
|
101
101
|
listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BrokerageAuthorization>>>;
|
|
102
102
|
/**
|
|
103
|
-
* Trigger a holdings update for all accounts under this
|
|
103
|
+
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
|
|
104
104
|
* @summary Refresh holdings for a connection
|
|
105
105
|
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
106
106
|
* @param {*} [options] Override http request option.
|
|
@@ -108,8 +108,8 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
108
108
|
*/
|
|
109
109
|
refreshBrokerageAuthorization(requestParameters: ConnectionsApiRefreshBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrokerageAuthorizationRefreshConfirmation>>;
|
|
110
110
|
/**
|
|
111
|
-
* Deletes
|
|
112
|
-
* @summary Delete
|
|
111
|
+
* Deletes the connection specified by the ID. This will also delete all accounts and holdings associated with the connection. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the connection has been successfully deleted.
|
|
112
|
+
* @summary Delete connection
|
|
113
113
|
* @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
114
114
|
* @param {*} [options] Override http request option.
|
|
115
115
|
* @throws {RequiredError}
|
|
@@ -130,31 +130,31 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
130
130
|
*/
|
|
131
131
|
export declare const ConnectionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
132
132
|
/**
|
|
133
|
-
* Returns a single
|
|
134
|
-
* @summary Get
|
|
133
|
+
* Returns a single connection for the specified ID.
|
|
134
|
+
* @summary Get connection detail
|
|
135
135
|
* @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
138
138
|
*/
|
|
139
139
|
detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<BrokerageAuthorization>;
|
|
140
140
|
/**
|
|
141
|
-
* Manually
|
|
142
|
-
* @summary
|
|
141
|
+
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
|
|
142
|
+
* @summary Force disable connection
|
|
143
143
|
* @param {ConnectionsApiDisableBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
144
144
|
* @param {*} [options] Override http request option.
|
|
145
145
|
* @throws {RequiredError}
|
|
146
146
|
*/
|
|
147
147
|
disableBrokerageAuthorization(requestParameters: ConnectionsApiDisableBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<BrokerageAuthorizationDisabledConfirmation>;
|
|
148
148
|
/**
|
|
149
|
-
* Returns a list of Brokerage Authorization
|
|
150
|
-
* @summary List all
|
|
149
|
+
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
150
|
+
* @summary List all connections
|
|
151
151
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
152
152
|
* @param {*} [options] Override http request option.
|
|
153
153
|
* @throws {RequiredError}
|
|
154
154
|
*/
|
|
155
155
|
listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BrokerageAuthorization>>;
|
|
156
156
|
/**
|
|
157
|
-
* Trigger a holdings update for all accounts under this
|
|
157
|
+
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
|
|
158
158
|
* @summary Refresh holdings for a connection
|
|
159
159
|
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
160
160
|
* @param {*} [options] Override http request option.
|
|
@@ -162,8 +162,8 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
162
162
|
*/
|
|
163
163
|
refreshBrokerageAuthorization(requestParameters: ConnectionsApiRefreshBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<BrokerageAuthorizationRefreshConfirmation>;
|
|
164
164
|
/**
|
|
165
|
-
* Deletes
|
|
166
|
-
* @summary Delete
|
|
165
|
+
* Deletes the connection specified by the ID. This will also delete all accounts and holdings associated with the connection. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the connection has been successfully deleted.
|
|
166
|
+
* @summary Delete connection
|
|
167
167
|
* @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
168
168
|
* @param {*} [options] Override http request option.
|
|
169
169
|
* @throws {RequiredError}
|
|
@@ -185,7 +185,7 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
185
185
|
*/
|
|
186
186
|
export type ConnectionsApiDetailBrokerageAuthorizationRequest = {
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
188
|
+
*
|
|
189
189
|
* @type {string}
|
|
190
190
|
* @memberof ConnectionsApiDetailBrokerageAuthorization
|
|
191
191
|
*/
|
|
@@ -210,7 +210,7 @@ export type ConnectionsApiDetailBrokerageAuthorizationRequest = {
|
|
|
210
210
|
*/
|
|
211
211
|
export type ConnectionsApiDisableBrokerageAuthorizationRequest = {
|
|
212
212
|
/**
|
|
213
|
-
*
|
|
213
|
+
*
|
|
214
214
|
* @type {string}
|
|
215
215
|
* @memberof ConnectionsApiDisableBrokerageAuthorization
|
|
216
216
|
*/
|
|
@@ -254,7 +254,7 @@ export type ConnectionsApiListBrokerageAuthorizationsRequest = {
|
|
|
254
254
|
*/
|
|
255
255
|
export type ConnectionsApiRefreshBrokerageAuthorizationRequest = {
|
|
256
256
|
/**
|
|
257
|
-
*
|
|
257
|
+
*
|
|
258
258
|
* @type {string}
|
|
259
259
|
* @memberof ConnectionsApiRefreshBrokerageAuthorization
|
|
260
260
|
*/
|
|
@@ -279,7 +279,7 @@ export type ConnectionsApiRefreshBrokerageAuthorizationRequest = {
|
|
|
279
279
|
*/
|
|
280
280
|
export type ConnectionsApiRemoveBrokerageAuthorizationRequest = {
|
|
281
281
|
/**
|
|
282
|
-
*
|
|
282
|
+
*
|
|
283
283
|
* @type {string}
|
|
284
284
|
* @memberof ConnectionsApiRemoveBrokerageAuthorization
|
|
285
285
|
*/
|
|
@@ -330,8 +330,8 @@ export type ConnectionsApiSessionEventsRequest = {
|
|
|
330
330
|
*/
|
|
331
331
|
export declare class ConnectionsApiGenerated extends BaseAPI {
|
|
332
332
|
/**
|
|
333
|
-
* Returns a single
|
|
334
|
-
* @summary Get
|
|
333
|
+
* Returns a single connection for the specified ID.
|
|
334
|
+
* @summary Get connection detail
|
|
335
335
|
* @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
336
336
|
* @param {*} [options] Override http request option.
|
|
337
337
|
* @throws {RequiredError}
|
|
@@ -339,8 +339,8 @@ export declare class ConnectionsApiGenerated extends BaseAPI {
|
|
|
339
339
|
*/
|
|
340
340
|
detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorization, any>>;
|
|
341
341
|
/**
|
|
342
|
-
* Manually
|
|
343
|
-
* @summary
|
|
342
|
+
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
|
|
343
|
+
* @summary Force disable connection
|
|
344
344
|
* @param {ConnectionsApiDisableBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
345
345
|
* @param {*} [options] Override http request option.
|
|
346
346
|
* @throws {RequiredError}
|
|
@@ -348,8 +348,8 @@ export declare class ConnectionsApiGenerated extends BaseAPI {
|
|
|
348
348
|
*/
|
|
349
349
|
disableBrokerageAuthorization(requestParameters: ConnectionsApiDisableBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorizationDisabledConfirmation, any>>;
|
|
350
350
|
/**
|
|
351
|
-
* Returns a list of Brokerage Authorization
|
|
352
|
-
* @summary List all
|
|
351
|
+
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
352
|
+
* @summary List all connections
|
|
353
353
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
354
354
|
* @param {*} [options] Override http request option.
|
|
355
355
|
* @throws {RequiredError}
|
|
@@ -357,7 +357,7 @@ export declare class ConnectionsApiGenerated extends BaseAPI {
|
|
|
357
357
|
*/
|
|
358
358
|
listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorization[], any>>;
|
|
359
359
|
/**
|
|
360
|
-
* Trigger a holdings update for all accounts under this
|
|
360
|
+
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
|
|
361
361
|
* @summary Refresh holdings for a connection
|
|
362
362
|
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
363
363
|
* @param {*} [options] Override http request option.
|
|
@@ -366,8 +366,8 @@ export declare class ConnectionsApiGenerated extends BaseAPI {
|
|
|
366
366
|
*/
|
|
367
367
|
refreshBrokerageAuthorization(requestParameters: ConnectionsApiRefreshBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorizationRefreshConfirmation, any>>;
|
|
368
368
|
/**
|
|
369
|
-
* Deletes
|
|
370
|
-
* @summary Delete
|
|
369
|
+
* Deletes the connection specified by the ID. This will also delete all accounts and holdings associated with the connection. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the connection has been successfully deleted.
|
|
370
|
+
* @summary Delete connection
|
|
371
371
|
* @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
372
372
|
* @param {*} [options] Override http request option.
|
|
373
373
|
* @throws {RequiredError}
|
|
@@ -36,9 +36,9 @@ const requestBeforeHook_1 = require("../requestBeforeHook");
|
|
|
36
36
|
const ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
38
|
/**
|
|
39
|
-
* Returns a single
|
|
40
|
-
* @summary Get
|
|
41
|
-
* @param {string} authorizationId
|
|
39
|
+
* Returns a single connection for the specified ID.
|
|
40
|
+
* @summary Get connection detail
|
|
41
|
+
* @param {string} authorizationId
|
|
42
42
|
* @param {string} userId
|
|
43
43
|
* @param {string} userSecret
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
@@ -91,9 +91,9 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
91
91
|
};
|
|
92
92
|
}),
|
|
93
93
|
/**
|
|
94
|
-
* Manually
|
|
95
|
-
* @summary
|
|
96
|
-
* @param {string} authorizationId
|
|
94
|
+
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
|
|
95
|
+
* @summary Force disable connection
|
|
96
|
+
* @param {string} authorizationId
|
|
97
97
|
* @param {string} userId
|
|
98
98
|
* @param {string} userSecret
|
|
99
99
|
* @param {*} [options] Override http request option.
|
|
@@ -146,8 +146,8 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
};
|
|
147
147
|
}),
|
|
148
148
|
/**
|
|
149
|
-
* Returns a list of Brokerage Authorization
|
|
150
|
-
* @summary List all
|
|
149
|
+
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
150
|
+
* @summary List all connections
|
|
151
151
|
* @param {string} userId
|
|
152
152
|
* @param {string} userSecret
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
@@ -197,9 +197,9 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
197
197
|
};
|
|
198
198
|
}),
|
|
199
199
|
/**
|
|
200
|
-
* Trigger a holdings update for all accounts under this
|
|
200
|
+
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
|
|
201
201
|
* @summary Refresh holdings for a connection
|
|
202
|
-
* @param {string} authorizationId
|
|
202
|
+
* @param {string} authorizationId
|
|
203
203
|
* @param {string} userId
|
|
204
204
|
* @param {string} userSecret
|
|
205
205
|
* @param {*} [options] Override http request option.
|
|
@@ -252,9 +252,9 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
252
252
|
};
|
|
253
253
|
}),
|
|
254
254
|
/**
|
|
255
|
-
* Deletes
|
|
256
|
-
* @summary Delete
|
|
257
|
-
* @param {string} authorizationId
|
|
255
|
+
* Deletes the connection specified by the ID. This will also delete all accounts and holdings associated with the connection. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the connection has been successfully deleted.
|
|
256
|
+
* @summary Delete connection
|
|
257
|
+
* @param {string} authorizationId
|
|
258
258
|
* @param {string} userId
|
|
259
259
|
* @param {string} userSecret
|
|
260
260
|
* @param {*} [options] Override http request option.
|
|
@@ -370,8 +370,8 @@ const ConnectionsApiFp = function (configuration) {
|
|
|
370
370
|
const localVarAxiosParamCreator = (0, exports.ConnectionsApiAxiosParamCreator)(configuration);
|
|
371
371
|
return {
|
|
372
372
|
/**
|
|
373
|
-
* Returns a single
|
|
374
|
-
* @summary Get
|
|
373
|
+
* Returns a single connection for the specified ID.
|
|
374
|
+
* @summary Get connection detail
|
|
375
375
|
* @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
376
376
|
* @param {*} [options] Override http request option.
|
|
377
377
|
* @throws {RequiredError}
|
|
@@ -383,8 +383,8 @@ const ConnectionsApiFp = function (configuration) {
|
|
|
383
383
|
});
|
|
384
384
|
},
|
|
385
385
|
/**
|
|
386
|
-
* Manually
|
|
387
|
-
* @summary
|
|
386
|
+
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
|
|
387
|
+
* @summary Force disable connection
|
|
388
388
|
* @param {ConnectionsApiDisableBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
389
389
|
* @param {*} [options] Override http request option.
|
|
390
390
|
* @throws {RequiredError}
|
|
@@ -396,8 +396,8 @@ const ConnectionsApiFp = function (configuration) {
|
|
|
396
396
|
});
|
|
397
397
|
},
|
|
398
398
|
/**
|
|
399
|
-
* Returns a list of Brokerage Authorization
|
|
400
|
-
* @summary List all
|
|
399
|
+
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
400
|
+
* @summary List all connections
|
|
401
401
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
402
402
|
* @param {*} [options] Override http request option.
|
|
403
403
|
* @throws {RequiredError}
|
|
@@ -409,7 +409,7 @@ const ConnectionsApiFp = function (configuration) {
|
|
|
409
409
|
});
|
|
410
410
|
},
|
|
411
411
|
/**
|
|
412
|
-
* Trigger a holdings update for all accounts under this
|
|
412
|
+
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
|
|
413
413
|
* @summary Refresh holdings for a connection
|
|
414
414
|
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
415
415
|
* @param {*} [options] Override http request option.
|
|
@@ -422,8 +422,8 @@ const ConnectionsApiFp = function (configuration) {
|
|
|
422
422
|
});
|
|
423
423
|
},
|
|
424
424
|
/**
|
|
425
|
-
* Deletes
|
|
426
|
-
* @summary Delete
|
|
425
|
+
* Deletes the connection specified by the ID. This will also delete all accounts and holdings associated with the connection. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the connection has been successfully deleted.
|
|
426
|
+
* @summary Delete connection
|
|
427
427
|
* @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
428
428
|
* @param {*} [options] Override http request option.
|
|
429
429
|
* @throws {RequiredError}
|
|
@@ -458,8 +458,8 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
458
458
|
const localVarFp = (0, exports.ConnectionsApiFp)(configuration);
|
|
459
459
|
return {
|
|
460
460
|
/**
|
|
461
|
-
* Returns a single
|
|
462
|
-
* @summary Get
|
|
461
|
+
* Returns a single connection for the specified ID.
|
|
462
|
+
* @summary Get connection detail
|
|
463
463
|
* @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
464
464
|
* @param {*} [options] Override http request option.
|
|
465
465
|
* @throws {RequiredError}
|
|
@@ -468,8 +468,8 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
468
468
|
return localVarFp.detailBrokerageAuthorization(requestParameters, options).then((request) => request(axios, basePath));
|
|
469
469
|
},
|
|
470
470
|
/**
|
|
471
|
-
* Manually
|
|
472
|
-
* @summary
|
|
471
|
+
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
|
|
472
|
+
* @summary Force disable connection
|
|
473
473
|
* @param {ConnectionsApiDisableBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
474
474
|
* @param {*} [options] Override http request option.
|
|
475
475
|
* @throws {RequiredError}
|
|
@@ -478,8 +478,8 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
478
478
|
return localVarFp.disableBrokerageAuthorization(requestParameters, options).then((request) => request(axios, basePath));
|
|
479
479
|
},
|
|
480
480
|
/**
|
|
481
|
-
* Returns a list of Brokerage Authorization
|
|
482
|
-
* @summary List all
|
|
481
|
+
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
482
|
+
* @summary List all connections
|
|
483
483
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
484
484
|
* @param {*} [options] Override http request option.
|
|
485
485
|
* @throws {RequiredError}
|
|
@@ -488,7 +488,7 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
488
488
|
return localVarFp.listBrokerageAuthorizations(requestParameters, options).then((request) => request(axios, basePath));
|
|
489
489
|
},
|
|
490
490
|
/**
|
|
491
|
-
* Trigger a holdings update for all accounts under this
|
|
491
|
+
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
|
|
492
492
|
* @summary Refresh holdings for a connection
|
|
493
493
|
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
494
494
|
* @param {*} [options] Override http request option.
|
|
@@ -498,8 +498,8 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
498
498
|
return localVarFp.refreshBrokerageAuthorization(requestParameters, options).then((request) => request(axios, basePath));
|
|
499
499
|
},
|
|
500
500
|
/**
|
|
501
|
-
* Deletes
|
|
502
|
-
* @summary Delete
|
|
501
|
+
* Deletes the connection specified by the ID. This will also delete all accounts and holdings associated with the connection. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the connection has been successfully deleted.
|
|
502
|
+
* @summary Delete connection
|
|
503
503
|
* @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
504
504
|
* @param {*} [options] Override http request option.
|
|
505
505
|
* @throws {RequiredError}
|
|
@@ -528,8 +528,8 @@ exports.ConnectionsApiFactory = ConnectionsApiFactory;
|
|
|
528
528
|
*/
|
|
529
529
|
class ConnectionsApiGenerated extends base_1.BaseAPI {
|
|
530
530
|
/**
|
|
531
|
-
* Returns a single
|
|
532
|
-
* @summary Get
|
|
531
|
+
* Returns a single connection for the specified ID.
|
|
532
|
+
* @summary Get connection detail
|
|
533
533
|
* @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
534
534
|
* @param {*} [options] Override http request option.
|
|
535
535
|
* @throws {RequiredError}
|
|
@@ -539,8 +539,8 @@ class ConnectionsApiGenerated extends base_1.BaseAPI {
|
|
|
539
539
|
return (0, exports.ConnectionsApiFp)(this.configuration).detailBrokerageAuthorization(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
540
540
|
}
|
|
541
541
|
/**
|
|
542
|
-
* Manually
|
|
543
|
-
* @summary
|
|
542
|
+
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_broken) for the connection. *Please contact us in order to use this endpoint as it is disabled by default.*
|
|
543
|
+
* @summary Force disable connection
|
|
544
544
|
* @param {ConnectionsApiDisableBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
545
545
|
* @param {*} [options] Override http request option.
|
|
546
546
|
* @throws {RequiredError}
|
|
@@ -550,8 +550,8 @@ class ConnectionsApiGenerated extends base_1.BaseAPI {
|
|
|
550
550
|
return (0, exports.ConnectionsApiFp)(this.configuration).disableBrokerageAuthorization(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
551
551
|
}
|
|
552
552
|
/**
|
|
553
|
-
* Returns a list of Brokerage Authorization
|
|
554
|
-
* @summary List all
|
|
553
|
+
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
554
|
+
* @summary List all connections
|
|
555
555
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
556
556
|
* @param {*} [options] Override http request option.
|
|
557
557
|
* @throws {RequiredError}
|
|
@@ -561,7 +561,7 @@ class ConnectionsApiGenerated extends base_1.BaseAPI {
|
|
|
561
561
|
return (0, exports.ConnectionsApiFp)(this.configuration).listBrokerageAuthorizations(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
562
562
|
}
|
|
563
563
|
/**
|
|
564
|
-
* Trigger a holdings update for all accounts under this
|
|
564
|
+
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. *Please contact support for access as this endpoint is not enabled by default.*
|
|
565
565
|
* @summary Refresh holdings for a connection
|
|
566
566
|
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
567
567
|
* @param {*} [options] Override http request option.
|
|
@@ -572,8 +572,8 @@ class ConnectionsApiGenerated extends base_1.BaseAPI {
|
|
|
572
572
|
return (0, exports.ConnectionsApiFp)(this.configuration).refreshBrokerageAuthorization(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
573
573
|
}
|
|
574
574
|
/**
|
|
575
|
-
* Deletes
|
|
576
|
-
* @summary Delete
|
|
575
|
+
* Deletes the connection specified by the ID. This will also delete all accounts and holdings associated with the connection. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the connection has been successfully deleted.
|
|
576
|
+
* @summary Delete connection
|
|
577
577
|
* @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
578
578
|
* @param {*} [options] Override http request option.
|
|
579
579
|
* @throws {RequiredError}
|