snaptrade-typescript-sdk 8.29.1 → 8.29.2
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 +19 -15
- package/dist/api/account-information-api-generated.d.ts +12 -12
- package/dist/api/account-information-api-generated.js +12 -12
- package/dist/api/authentication-api-generated.d.ts +12 -12
- package/dist/api/authentication-api-generated.js +12 -12
- package/dist/api/reference-data-api-generated.d.ts +8 -8
- package/dist/api/reference-data-api-generated.js +8 -8
- package/dist/api/transactions-and-reporting-api-generated.d.ts +4 -4
- package/dist/api/transactions-and-reporting-api-generated.js +4 -4
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/model500-unexpected-exception-response.d.ts +26 -0
- package/dist/models/model500-unexpected-exception-response.js +12 -0
- package/dist/models/snap-trade-login-user-request-body.d.ts +5 -5
- package/dist/models/snap-trade-register-user-request-body.d.ts +0 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Connect brokerage accounts to your app for live positions and trading
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/8.29.2)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -198,7 +198,7 @@ Optional. Comma seperated list of authorization IDs (only use if filtering is ne
|
|
|
198
198
|
|
|
199
199
|
### `snaptrade.accountInformation.getUserAccountBalance`
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
A list of account balances for the specified account (one per currency that the account holds).
|
|
202
202
|
|
|
203
203
|
#### 🛠️ Usage
|
|
204
204
|
|
|
@@ -274,7 +274,7 @@ The ID of the account to get detail of.
|
|
|
274
274
|
|
|
275
275
|
### `snaptrade.accountInformation.getUserAccountOrders`
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
Fetch all recent orders from a user\'s account.
|
|
278
278
|
|
|
279
279
|
#### 🛠️ Usage
|
|
280
280
|
|
|
@@ -355,7 +355,7 @@ The ID of the account to get positions.
|
|
|
355
355
|
|
|
356
356
|
### `snaptrade.accountInformation.getUserHoldings`
|
|
357
357
|
|
|
358
|
-
List balances, positions and orders for the specified account
|
|
358
|
+
List balances, positions and orders for the specified account
|
|
359
359
|
|
|
360
360
|
#### 🛠️ Usage
|
|
361
361
|
|
|
@@ -487,7 +487,7 @@ const checkResponse = await snaptrade.apiStatus.check();
|
|
|
487
487
|
|
|
488
488
|
### `snaptrade.authentication.deleteSnapTradeUser`
|
|
489
489
|
|
|
490
|
-
|
|
490
|
+
Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
|
|
491
491
|
|
|
492
492
|
#### 🛠️ Usage
|
|
493
493
|
|
|
@@ -545,7 +545,7 @@ const getUserJWTResponse = await snaptrade.authentication.getUserJWT({
|
|
|
545
545
|
|
|
546
546
|
### `snaptrade.authentication.listSnapTradeUsers`
|
|
547
547
|
|
|
548
|
-
|
|
548
|
+
Returns a list of users you\'ve registered over the SnapTrade API.
|
|
549
549
|
|
|
550
550
|
#### 🛠️ Usage
|
|
551
551
|
|
|
@@ -565,7 +565,7 @@ const listSnapTradeUsersResponse =
|
|
|
565
565
|
|
|
566
566
|
### `snaptrade.authentication.loginSnapTradeUser`
|
|
567
567
|
|
|
568
|
-
|
|
568
|
+
Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
|
|
569
569
|
|
|
570
570
|
#### 🛠️ Usage
|
|
571
571
|
|
|
@@ -590,14 +590,24 @@ const loginSnapTradeUserResponse =
|
|
|
590
590
|
|
|
591
591
|
##### broker: `string`
|
|
592
592
|
|
|
593
|
+
Slug of the brokerage to connect the user to
|
|
594
|
+
|
|
593
595
|
##### immediateRedirect: `boolean`
|
|
594
596
|
|
|
597
|
+
When set to True, user will be redirected back to the partner\\\'s site instead of the connection portal
|
|
598
|
+
|
|
595
599
|
##### customRedirect: `string`
|
|
596
600
|
|
|
601
|
+
URL to redirect the user to after the user connects their brokerage account
|
|
602
|
+
|
|
597
603
|
##### reconnect: `string`
|
|
598
604
|
|
|
605
|
+
The UUID of the brokerage connection to be reconnected
|
|
606
|
+
|
|
599
607
|
##### connectionType: `string`
|
|
600
608
|
|
|
609
|
+
Sets whether the connection should be read or trade
|
|
610
|
+
|
|
601
611
|
#### 🌐 Endpoint
|
|
602
612
|
|
|
603
613
|
`/snapTrade/login` `POST`
|
|
@@ -617,8 +627,6 @@ Create SnapTrade user
|
|
|
617
627
|
const registerSnapTradeUserResponse =
|
|
618
628
|
await snaptrade.authentication.registerSnapTradeUser({
|
|
619
629
|
userId: "snaptrade-user-123",
|
|
620
|
-
rsaPublicKey:
|
|
621
|
-
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC7vbqajDw4o6gJy8UtmIbkcpnkO3Kwc4qsEnSZp/TR+fQi62F79RHWmwKOtFmwteURgLbj7D/WGuNLGOfa/2vse3G2eHnHl5CB8ruRX9fBl/KgwCVr2JaEuUm66bBQeP5XeBotdR4cvX38uPYivCDdPjJ1QWPdspTBKcxeFbccDw==",
|
|
622
630
|
});
|
|
623
631
|
```
|
|
624
632
|
|
|
@@ -628,10 +636,6 @@ const registerSnapTradeUserResponse =
|
|
|
628
636
|
|
|
629
637
|
SnapTrade User ID. Provided by SnapTrade Partner. Can be any string, as long as it\\\'s unique to a user
|
|
630
638
|
|
|
631
|
-
##### rsaPublicKey: `string`
|
|
632
|
-
|
|
633
|
-
Open SSH RSA public key
|
|
634
|
-
|
|
635
639
|
#### 🔄 Return
|
|
636
640
|
|
|
637
641
|
[UserIDandSecret](./models/user-idand-secret.ts)
|
|
@@ -1102,7 +1106,7 @@ const getPartnerInfoResponse = await snaptrade.referenceData.getPartnerInfo();
|
|
|
1102
1106
|
|
|
1103
1107
|
### `snaptrade.referenceData.getSecurityTypes`
|
|
1104
1108
|
|
|
1105
|
-
List
|
|
1109
|
+
List security types available on SnapTrade.
|
|
1106
1110
|
|
|
1107
1111
|
#### 🛠️ Usage
|
|
1108
1112
|
|
|
@@ -1643,7 +1647,7 @@ The ID of trade object obtained from trade/impact endpoint
|
|
|
1643
1647
|
|
|
1644
1648
|
### `snaptrade.transactionsAndReporting.getActivities`
|
|
1645
1649
|
|
|
1646
|
-
Returns activities (transactions) for a user. Specifing start and end date is highly recommended for
|
|
1650
|
+
Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
|
|
1647
1651
|
|
|
1648
1652
|
#### 🛠️ Usage
|
|
1649
1653
|
|
|
@@ -24,7 +24,7 @@ export declare const AccountInformationApiAxiosParamCreator: (configuration?: Co
|
|
|
24
24
|
*/
|
|
25
25
|
getAllUserHoldings: (userId: string, userSecret: string, brokerageAuthorizations?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* A list of account balances for the specified account (one per currency that the account holds).
|
|
28
28
|
* @summary List account balances
|
|
29
29
|
* @param {string} userId
|
|
30
30
|
* @param {string} userSecret
|
|
@@ -44,7 +44,7 @@ export declare const AccountInformationApiAxiosParamCreator: (configuration?: Co
|
|
|
44
44
|
*/
|
|
45
45
|
getUserAccountDetails: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Fetch all recent orders from a user\'s account.
|
|
48
48
|
* @summary Get history of orders placed in account
|
|
49
49
|
* @param {string} userId
|
|
50
50
|
* @param {string} userSecret
|
|
@@ -66,7 +66,7 @@ export declare const AccountInformationApiAxiosParamCreator: (configuration?: Co
|
|
|
66
66
|
getUserAccountPositions: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @summary List balances, positions and orders for the specified account
|
|
69
|
+
* @summary List balances, positions and orders for the specified account
|
|
70
70
|
* @param {string} accountId The ID of the account to fetch holdings for.
|
|
71
71
|
* @param {string} userId
|
|
72
72
|
* @param {string} userSecret
|
|
@@ -109,7 +109,7 @@ export declare const AccountInformationApiFp: (configuration?: Configuration) =>
|
|
|
109
109
|
*/
|
|
110
110
|
getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountHoldings>>>;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* A list of account balances for the specified account (one per currency that the account holds).
|
|
113
113
|
* @summary List account balances
|
|
114
114
|
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
115
115
|
* @param {*} [options] Override http request option.
|
|
@@ -125,7 +125,7 @@ export declare const AccountInformationApiFp: (configuration?: Configuration) =>
|
|
|
125
125
|
*/
|
|
126
126
|
getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>>;
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* Fetch all recent orders from a user\'s account.
|
|
129
129
|
* @summary Get history of orders placed in account
|
|
130
130
|
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
131
131
|
* @param {*} [options] Override http request option.
|
|
@@ -142,7 +142,7 @@ export declare const AccountInformationApiFp: (configuration?: Configuration) =>
|
|
|
142
142
|
getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Position>>>;
|
|
143
143
|
/**
|
|
144
144
|
*
|
|
145
|
-
* @summary List balances, positions and orders for the specified account
|
|
145
|
+
* @summary List balances, positions and orders for the specified account
|
|
146
146
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
147
147
|
* @param {*} [options] Override http request option.
|
|
148
148
|
* @throws {RequiredError}
|
|
@@ -180,7 +180,7 @@ export declare const AccountInformationApiFactory: (configuration?: Configuratio
|
|
|
180
180
|
*/
|
|
181
181
|
getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AccountHoldings>>;
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
* A list of account balances for the specified account (one per currency that the account holds).
|
|
184
184
|
* @summary List account balances
|
|
185
185
|
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
186
186
|
* @param {*} [options] Override http request option.
|
|
@@ -196,7 +196,7 @@ export declare const AccountInformationApiFactory: (configuration?: Configuratio
|
|
|
196
196
|
*/
|
|
197
197
|
getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): AxiosPromise<Account>;
|
|
198
198
|
/**
|
|
199
|
-
*
|
|
199
|
+
* Fetch all recent orders from a user\'s account.
|
|
200
200
|
* @summary Get history of orders placed in account
|
|
201
201
|
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
@@ -213,7 +213,7 @@ export declare const AccountInformationApiFactory: (configuration?: Configuratio
|
|
|
213
213
|
getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Position>>;
|
|
214
214
|
/**
|
|
215
215
|
*
|
|
216
|
-
* @summary List balances, positions and orders for the specified account
|
|
216
|
+
* @summary List balances, positions and orders for the specified account
|
|
217
217
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
218
218
|
* @param {*} [options] Override http request option.
|
|
219
219
|
* @throws {RequiredError}
|
|
@@ -454,7 +454,7 @@ export declare class AccountInformationApiGenerated extends BaseAPI {
|
|
|
454
454
|
*/
|
|
455
455
|
getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountHoldings[], any>>;
|
|
456
456
|
/**
|
|
457
|
-
*
|
|
457
|
+
* A list of account balances for the specified account (one per currency that the account holds).
|
|
458
458
|
* @summary List account balances
|
|
459
459
|
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
460
460
|
* @param {*} [options] Override http request option.
|
|
@@ -472,7 +472,7 @@ export declare class AccountInformationApiGenerated extends BaseAPI {
|
|
|
472
472
|
*/
|
|
473
473
|
getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account, any>>;
|
|
474
474
|
/**
|
|
475
|
-
*
|
|
475
|
+
* Fetch all recent orders from a user\'s account.
|
|
476
476
|
* @summary Get history of orders placed in account
|
|
477
477
|
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
478
478
|
* @param {*} [options] Override http request option.
|
|
@@ -491,7 +491,7 @@ export declare class AccountInformationApiGenerated extends BaseAPI {
|
|
|
491
491
|
getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Position[], any>>;
|
|
492
492
|
/**
|
|
493
493
|
*
|
|
494
|
-
* @summary List balances, positions and orders for the specified account
|
|
494
|
+
* @summary List balances, positions and orders for the specified account
|
|
495
495
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
496
496
|
* @param {*} [options] Override http request option.
|
|
497
497
|
* @throws {RequiredError}
|
|
@@ -90,7 +90,7 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
90
90
|
};
|
|
91
91
|
}),
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* A list of account balances for the specified account (one per currency that the account holds).
|
|
94
94
|
* @summary List account balances
|
|
95
95
|
* @param {string} userId
|
|
96
96
|
* @param {string} userSecret
|
|
@@ -196,7 +196,7 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
196
196
|
};
|
|
197
197
|
}),
|
|
198
198
|
/**
|
|
199
|
-
*
|
|
199
|
+
* Fetch all recent orders from a user\'s account.
|
|
200
200
|
* @summary Get history of orders placed in account
|
|
201
201
|
* @param {string} userId
|
|
202
202
|
* @param {string} userSecret
|
|
@@ -307,7 +307,7 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
307
307
|
}),
|
|
308
308
|
/**
|
|
309
309
|
*
|
|
310
|
-
* @summary List balances, positions and orders for the specified account
|
|
310
|
+
* @summary List balances, positions and orders for the specified account
|
|
311
311
|
* @param {string} accountId The ID of the account to fetch holdings for.
|
|
312
312
|
* @param {string} userId
|
|
313
313
|
* @param {string} userSecret
|
|
@@ -485,7 +485,7 @@ const AccountInformationApiFp = function (configuration) {
|
|
|
485
485
|
});
|
|
486
486
|
},
|
|
487
487
|
/**
|
|
488
|
-
*
|
|
488
|
+
* A list of account balances for the specified account (one per currency that the account holds).
|
|
489
489
|
* @summary List account balances
|
|
490
490
|
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
491
491
|
* @param {*} [options] Override http request option.
|
|
@@ -511,7 +511,7 @@ const AccountInformationApiFp = function (configuration) {
|
|
|
511
511
|
});
|
|
512
512
|
},
|
|
513
513
|
/**
|
|
514
|
-
*
|
|
514
|
+
* Fetch all recent orders from a user\'s account.
|
|
515
515
|
* @summary Get history of orders placed in account
|
|
516
516
|
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
517
517
|
* @param {*} [options] Override http request option.
|
|
@@ -538,7 +538,7 @@ const AccountInformationApiFp = function (configuration) {
|
|
|
538
538
|
},
|
|
539
539
|
/**
|
|
540
540
|
*
|
|
541
|
-
* @summary List balances, positions and orders for the specified account
|
|
541
|
+
* @summary List balances, positions and orders for the specified account
|
|
542
542
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
543
543
|
* @param {*} [options] Override http request option.
|
|
544
544
|
* @throws {RequiredError}
|
|
@@ -597,7 +597,7 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
|
|
|
597
597
|
return localVarFp.getAllUserHoldings(requestParameters, options).then((request) => request(axios, basePath));
|
|
598
598
|
},
|
|
599
599
|
/**
|
|
600
|
-
*
|
|
600
|
+
* A list of account balances for the specified account (one per currency that the account holds).
|
|
601
601
|
* @summary List account balances
|
|
602
602
|
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
603
603
|
* @param {*} [options] Override http request option.
|
|
@@ -617,7 +617,7 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
|
|
|
617
617
|
return localVarFp.getUserAccountDetails(requestParameters, options).then((request) => request(axios, basePath));
|
|
618
618
|
},
|
|
619
619
|
/**
|
|
620
|
-
*
|
|
620
|
+
* Fetch all recent orders from a user\'s account.
|
|
621
621
|
* @summary Get history of orders placed in account
|
|
622
622
|
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
623
623
|
* @param {*} [options] Override http request option.
|
|
@@ -638,7 +638,7 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
|
|
|
638
638
|
},
|
|
639
639
|
/**
|
|
640
640
|
*
|
|
641
|
-
* @summary List balances, positions and orders for the specified account
|
|
641
|
+
* @summary List balances, positions and orders for the specified account
|
|
642
642
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
643
643
|
* @param {*} [options] Override http request option.
|
|
644
644
|
* @throws {RequiredError}
|
|
@@ -689,7 +689,7 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
|
|
|
689
689
|
return (0, exports.AccountInformationApiFp)(this.configuration).getAllUserHoldings(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
690
690
|
}
|
|
691
691
|
/**
|
|
692
|
-
*
|
|
692
|
+
* A list of account balances for the specified account (one per currency that the account holds).
|
|
693
693
|
* @summary List account balances
|
|
694
694
|
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
695
695
|
* @param {*} [options] Override http request option.
|
|
@@ -711,7 +711,7 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
|
|
|
711
711
|
return (0, exports.AccountInformationApiFp)(this.configuration).getUserAccountDetails(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
712
712
|
}
|
|
713
713
|
/**
|
|
714
|
-
*
|
|
714
|
+
* Fetch all recent orders from a user\'s account.
|
|
715
715
|
* @summary Get history of orders placed in account
|
|
716
716
|
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
717
717
|
* @param {*} [options] Override http request option.
|
|
@@ -734,7 +734,7 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
|
|
|
734
734
|
}
|
|
735
735
|
/**
|
|
736
736
|
*
|
|
737
|
-
* @summary List balances, positions and orders for the specified account
|
|
737
|
+
* @summary List balances, positions and orders for the specified account
|
|
738
738
|
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
739
739
|
* @param {*} [options] Override http request option.
|
|
740
740
|
* @throws {RequiredError}
|
|
@@ -13,7 +13,7 @@ import { UserIDandSecret } from '../models';
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
|
|
17
17
|
* @summary Delete SnapTrade user
|
|
18
18
|
* @param {string} userId
|
|
19
19
|
* @param {*} [options] Override http request option.
|
|
@@ -30,14 +30,14 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
|
|
|
30
30
|
*/
|
|
31
31
|
getUserJWT: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Returns a list of users you\'ve registered over the SnapTrade API.
|
|
34
34
|
* @summary List SnapTrade users
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
37
37
|
*/
|
|
38
38
|
listSnapTradeUsers: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
|
|
41
41
|
* @summary Login user & generate connection link
|
|
42
42
|
* @param {string} userId
|
|
43
43
|
* @param {string} userSecret
|
|
@@ -61,7 +61,7 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
|
|
|
61
61
|
*/
|
|
62
62
|
export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
|
|
65
65
|
* @summary Delete SnapTrade user
|
|
66
66
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
67
67
|
* @param {*} [options] Override http request option.
|
|
@@ -77,14 +77,14 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
|
77
77
|
*/
|
|
78
78
|
getUserJWT(requestParameters: AuthenticationApiGetUserJWTRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EncryptedResponse>>;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Returns a list of users you\'ve registered over the SnapTrade API.
|
|
81
81
|
* @summary List SnapTrade users
|
|
82
82
|
* @param {*} [options] Override http request option.
|
|
83
83
|
* @throws {RequiredError}
|
|
84
84
|
*/
|
|
85
85
|
listSnapTradeUsers(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
|
|
88
88
|
* @summary Login user & generate connection link
|
|
89
89
|
* @param {AuthenticationApiLoginSnapTradeUserRequest} requestParameters Request parameters.
|
|
90
90
|
* @param {*} [options] Override http request option.
|
|
@@ -106,7 +106,7 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
|
106
106
|
*/
|
|
107
107
|
export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
|
|
110
110
|
* @summary Delete SnapTrade user
|
|
111
111
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
112
112
|
* @param {*} [options] Override http request option.
|
|
@@ -122,14 +122,14 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
|
|
|
122
122
|
*/
|
|
123
123
|
getUserJWT(requestParameters: AuthenticationApiGetUserJWTRequest, options?: AxiosRequestConfig): AxiosPromise<EncryptedResponse>;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* Returns a list of users you\'ve registered over the SnapTrade API.
|
|
126
126
|
* @summary List SnapTrade users
|
|
127
127
|
* @param {*} [options] Override http request option.
|
|
128
128
|
* @throws {RequiredError}
|
|
129
129
|
*/
|
|
130
130
|
listSnapTradeUsers(options?: AxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
|
|
133
133
|
* @summary Login user & generate connection link
|
|
134
134
|
* @param {AuthenticationApiLoginSnapTradeUserRequest} requestParameters Request parameters.
|
|
135
135
|
* @param {*} [options] Override http request option.
|
|
@@ -210,7 +210,7 @@ export type AuthenticationApiRegisterSnapTradeUserRequest = {} & SnapTradeRegist
|
|
|
210
210
|
*/
|
|
211
211
|
export declare class AuthenticationApiGenerated extends BaseAPI {
|
|
212
212
|
/**
|
|
213
|
-
*
|
|
213
|
+
* Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
|
|
214
214
|
* @summary Delete SnapTrade user
|
|
215
215
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
216
216
|
* @param {*} [options] Override http request option.
|
|
@@ -228,7 +228,7 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
|
|
|
228
228
|
*/
|
|
229
229
|
getUserJWT(requestParameters: AuthenticationApiGetUserJWTRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EncryptedResponse, any>>;
|
|
230
230
|
/**
|
|
231
|
-
*
|
|
231
|
+
* Returns a list of users you\'ve registered over the SnapTrade API.
|
|
232
232
|
* @summary List SnapTrade users
|
|
233
233
|
* @param {*} [options] Override http request option.
|
|
234
234
|
* @throws {RequiredError}
|
|
@@ -236,7 +236,7 @@ export declare class AuthenticationApiGenerated extends BaseAPI {
|
|
|
236
236
|
*/
|
|
237
237
|
listSnapTradeUsers(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
|
|
238
238
|
/**
|
|
239
|
-
*
|
|
239
|
+
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
|
|
240
240
|
* @summary Login user & generate connection link
|
|
241
241
|
* @param {AuthenticationApiLoginSnapTradeUserRequest} requestParameters Request parameters.
|
|
242
242
|
* @param {*} [options] Override http request option.
|
|
@@ -36,7 +36,7 @@ const requestBeforeHook_1 = require("../requestBeforeHook");
|
|
|
36
36
|
const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
|
|
40
40
|
* @summary Delete SnapTrade user
|
|
41
41
|
* @param {string} userId
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
@@ -128,7 +128,7 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
128
128
|
};
|
|
129
129
|
}),
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* Returns a list of users you\'ve registered over the SnapTrade API.
|
|
132
132
|
* @summary List SnapTrade users
|
|
133
133
|
* @param {*} [options] Override http request option.
|
|
134
134
|
* @throws {RequiredError}
|
|
@@ -165,7 +165,7 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
165
165
|
};
|
|
166
166
|
}),
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
|
|
169
169
|
* @summary Login user & generate connection link
|
|
170
170
|
* @param {string} userId
|
|
171
171
|
* @param {string} userSecret
|
|
@@ -271,7 +271,7 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
271
271
|
const localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
|
|
272
272
|
return {
|
|
273
273
|
/**
|
|
274
|
-
*
|
|
274
|
+
* Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
|
|
275
275
|
* @summary Delete SnapTrade user
|
|
276
276
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
277
277
|
* @param {*} [options] Override http request option.
|
|
@@ -297,7 +297,7 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
297
297
|
});
|
|
298
298
|
},
|
|
299
299
|
/**
|
|
300
|
-
*
|
|
300
|
+
* Returns a list of users you\'ve registered over the SnapTrade API.
|
|
301
301
|
* @summary List SnapTrade users
|
|
302
302
|
* @param {*} [options] Override http request option.
|
|
303
303
|
* @throws {RequiredError}
|
|
@@ -309,7 +309,7 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
309
309
|
});
|
|
310
310
|
},
|
|
311
311
|
/**
|
|
312
|
-
*
|
|
312
|
+
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
|
|
313
313
|
* @summary Login user & generate connection link
|
|
314
314
|
* @param {AuthenticationApiLoginSnapTradeUserRequest} requestParameters Request parameters.
|
|
315
315
|
* @param {*} [options] Override http request option.
|
|
@@ -345,7 +345,7 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
345
345
|
const localVarFp = (0, exports.AuthenticationApiFp)(configuration);
|
|
346
346
|
return {
|
|
347
347
|
/**
|
|
348
|
-
*
|
|
348
|
+
* Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
|
|
349
349
|
* @summary Delete SnapTrade user
|
|
350
350
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
351
351
|
* @param {*} [options] Override http request option.
|
|
@@ -365,7 +365,7 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
365
365
|
return localVarFp.getUserJWT(requestParameters, options).then((request) => request(axios, basePath));
|
|
366
366
|
},
|
|
367
367
|
/**
|
|
368
|
-
*
|
|
368
|
+
* Returns a list of users you\'ve registered over the SnapTrade API.
|
|
369
369
|
* @summary List SnapTrade users
|
|
370
370
|
* @param {*} [options] Override http request option.
|
|
371
371
|
* @throws {RequiredError}
|
|
@@ -374,7 +374,7 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
374
374
|
return localVarFp.listSnapTradeUsers(options).then((request) => request(axios, basePath));
|
|
375
375
|
},
|
|
376
376
|
/**
|
|
377
|
-
*
|
|
377
|
+
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
|
|
378
378
|
* @summary Login user & generate connection link
|
|
379
379
|
* @param {AuthenticationApiLoginSnapTradeUserRequest} requestParameters Request parameters.
|
|
380
380
|
* @param {*} [options] Override http request option.
|
|
@@ -404,7 +404,7 @@ exports.AuthenticationApiFactory = AuthenticationApiFactory;
|
|
|
404
404
|
*/
|
|
405
405
|
class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
406
406
|
/**
|
|
407
|
-
*
|
|
407
|
+
* Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
|
|
408
408
|
* @summary Delete SnapTrade user
|
|
409
409
|
* @param {AuthenticationApiDeleteSnapTradeUserRequest} requestParameters Request parameters.
|
|
410
410
|
* @param {*} [options] Override http request option.
|
|
@@ -426,7 +426,7 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
|
426
426
|
return (0, exports.AuthenticationApiFp)(this.configuration).getUserJWT(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
427
427
|
}
|
|
428
428
|
/**
|
|
429
|
-
*
|
|
429
|
+
* Returns a list of users you\'ve registered over the SnapTrade API.
|
|
430
430
|
* @summary List SnapTrade users
|
|
431
431
|
* @param {*} [options] Override http request option.
|
|
432
432
|
* @throws {RequiredError}
|
|
@@ -436,7 +436,7 @@ class AuthenticationApiGenerated extends base_1.BaseAPI {
|
|
|
436
436
|
return (0, exports.AuthenticationApiFp)(this.configuration).listSnapTradeUsers(options).then((request) => request(this.axios, this.basePath));
|
|
437
437
|
}
|
|
438
438
|
/**
|
|
439
|
-
*
|
|
439
|
+
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
|
|
440
440
|
* @summary Login user & generate connection link
|
|
441
441
|
* @param {AuthenticationApiLoginSnapTradeUserRequest} requestParameters Request parameters.
|
|
442
442
|
* @param {*} [options] Override http request option.
|
|
@@ -31,8 +31,8 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
|
|
|
31
31
|
*/
|
|
32
32
|
getPartnerInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
* @summary List of all security types
|
|
34
|
+
* List security types available on SnapTrade.
|
|
35
|
+
* @summary List of all security types
|
|
36
36
|
* @param {*} [options] Override http request option.
|
|
37
37
|
* @throws {RequiredError}
|
|
38
38
|
*/
|
|
@@ -123,8 +123,8 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
|
|
|
123
123
|
*/
|
|
124
124
|
getPartnerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerData>>;
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
127
|
-
* @summary List of all security types
|
|
126
|
+
* List security types available on SnapTrade.
|
|
127
|
+
* @summary List of all security types
|
|
128
128
|
* @param {*} [options] Override http request option.
|
|
129
129
|
* @throws {RequiredError}
|
|
130
130
|
*/
|
|
@@ -211,8 +211,8 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
|
|
|
211
211
|
*/
|
|
212
212
|
getPartnerInfo(options?: AxiosRequestConfig): AxiosPromise<PartnerData>;
|
|
213
213
|
/**
|
|
214
|
-
*
|
|
215
|
-
* @summary List of all security types
|
|
214
|
+
* List security types available on SnapTrade.
|
|
215
|
+
* @summary List of all security types
|
|
216
216
|
* @param {*} [options] Override http request option.
|
|
217
217
|
* @throws {RequiredError}
|
|
218
218
|
*/
|
|
@@ -379,8 +379,8 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
|
379
379
|
*/
|
|
380
380
|
getPartnerInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PartnerData, any>>;
|
|
381
381
|
/**
|
|
382
|
-
*
|
|
383
|
-
* @summary List of all security types
|
|
382
|
+
* List security types available on SnapTrade.
|
|
383
|
+
* @summary List of all security types
|
|
384
384
|
* @param {*} [options] Override http request option.
|
|
385
385
|
* @throws {RequiredError}
|
|
386
386
|
* @memberof ReferenceDataApiGenerated
|
|
@@ -114,8 +114,8 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
114
114
|
};
|
|
115
115
|
}),
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
118
|
-
* @summary List of all security types
|
|
117
|
+
* List security types available on SnapTrade.
|
|
118
|
+
* @summary List of all security types
|
|
119
119
|
* @param {*} [options] Override http request option.
|
|
120
120
|
* @throws {RequiredError}
|
|
121
121
|
*/
|
|
@@ -518,8 +518,8 @@ const ReferenceDataApiFp = function (configuration) {
|
|
|
518
518
|
});
|
|
519
519
|
},
|
|
520
520
|
/**
|
|
521
|
-
*
|
|
522
|
-
* @summary List of all security types
|
|
521
|
+
* List security types available on SnapTrade.
|
|
522
|
+
* @summary List of all security types
|
|
523
523
|
* @param {*} [options] Override http request option.
|
|
524
524
|
* @throws {RequiredError}
|
|
525
525
|
*/
|
|
@@ -659,8 +659,8 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
|
|
|
659
659
|
return localVarFp.getPartnerInfo(options).then((request) => request(axios, basePath));
|
|
660
660
|
},
|
|
661
661
|
/**
|
|
662
|
-
*
|
|
663
|
-
* @summary List of all security types
|
|
662
|
+
* List security types available on SnapTrade.
|
|
663
|
+
* @summary List of all security types
|
|
664
664
|
* @param {*} [options] Override http request option.
|
|
665
665
|
* @throws {RequiredError}
|
|
666
666
|
*/
|
|
@@ -775,8 +775,8 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
|
|
|
775
775
|
return (0, exports.ReferenceDataApiFp)(this.configuration).getPartnerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
776
776
|
}
|
|
777
777
|
/**
|
|
778
|
-
*
|
|
779
|
-
* @summary List of all security types
|
|
778
|
+
* List security types available on SnapTrade.
|
|
779
|
+
* @summary List of all security types
|
|
780
780
|
* @param {*} [options] Override http request option.
|
|
781
781
|
* @throws {RequiredError}
|
|
782
782
|
* @memberof ReferenceDataApiGenerated
|
|
@@ -9,7 +9,7 @@ import { UniversalActivity } from '../models';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const TransactionsAndReportingApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
11
11
|
/**
|
|
12
|
-
* Returns activities (transactions) for a user. Specifing start and end date is highly recommended for
|
|
12
|
+
* Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
|
|
13
13
|
* @summary Get transaction history for a user
|
|
14
14
|
* @param {string} userId
|
|
15
15
|
* @param {string} userSecret
|
|
@@ -43,7 +43,7 @@ export declare const TransactionsAndReportingApiAxiosParamCreator: (configuratio
|
|
|
43
43
|
*/
|
|
44
44
|
export declare const TransactionsAndReportingApiFp: (configuration?: Configuration) => {
|
|
45
45
|
/**
|
|
46
|
-
* Returns activities (transactions) for a user. Specifing start and end date is highly recommended for
|
|
46
|
+
* Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
|
|
47
47
|
* @summary Get transaction history for a user
|
|
48
48
|
* @param {TransactionsAndReportingApiGetActivitiesRequest} requestParameters Request parameters.
|
|
49
49
|
* @param {*} [options] Override http request option.
|
|
@@ -65,7 +65,7 @@ export declare const TransactionsAndReportingApiFp: (configuration?: Configurati
|
|
|
65
65
|
*/
|
|
66
66
|
export declare const TransactionsAndReportingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
67
67
|
/**
|
|
68
|
-
* Returns activities (transactions) for a user. Specifing start and end date is highly recommended for
|
|
68
|
+
* Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
|
|
69
69
|
* @summary Get transaction history for a user
|
|
70
70
|
* @param {TransactionsAndReportingApiGetActivitiesRequest} requestParameters Request parameters.
|
|
71
71
|
* @param {*} [options] Override http request option.
|
|
@@ -187,7 +187,7 @@ export type TransactionsAndReportingApiGetReportingCustomRangeRequest = {
|
|
|
187
187
|
*/
|
|
188
188
|
export declare class TransactionsAndReportingApiGenerated extends BaseAPI {
|
|
189
189
|
/**
|
|
190
|
-
* Returns activities (transactions) for a user. Specifing start and end date is highly recommended for
|
|
190
|
+
* Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
|
|
191
191
|
* @summary Get transaction history for a user
|
|
192
192
|
* @param {TransactionsAndReportingApiGetActivitiesRequest} requestParameters Request parameters.
|
|
193
193
|
* @param {*} [options] Override http request option.
|