snaptrade-typescript-sdk 9.0.55 → 9.0.57
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 +76 -1
- package/dist/api/account-information-api-generated.d.ts +61 -0
- package/dist/api/account-information-api-generated.js +89 -0
- package/dist/api/connections-api-generated.d.ts +61 -0
- package/dist/api/connections-api-generated.js +89 -0
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/rate-of-return-object.d.ts +28 -0
- package/dist/models/rate-of-return-object.js +2 -0
- package/dist/models/rate-of-return-response.d.ts +15 -0
- package/dist/models/rate-of-return-response.js +2 -0
- package/dist/models/security-type.d.ts +1 -1
- package/dist/models/underlying-symbol-type.d.ts +1 -1
- package/dist/operationParameterMap.js +26 -0
- package/package.json +1 -1
package/dist/configuration.js
CHANGED
|
@@ -32,7 +32,7 @@ class Configuration {
|
|
|
32
32
|
this.accessToken = param.accessToken;
|
|
33
33
|
this.basePath = param.basePath;
|
|
34
34
|
this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
|
|
35
|
-
this.userAgent = param.userAgent === undefined ? "Konfig/9.0.
|
|
35
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/9.0.57/typescript" : param.userAgent;
|
|
36
36
|
this.formDataCtor = param.formDataCtor;
|
|
37
37
|
}
|
|
38
38
|
/**
|
package/dist/models/index.d.ts
CHANGED
|
@@ -71,6 +71,8 @@ export * from './past-value';
|
|
|
71
71
|
export * from './performance-custom';
|
|
72
72
|
export * from './position';
|
|
73
73
|
export * from './position-symbol';
|
|
74
|
+
export * from './rate-of-return-object';
|
|
75
|
+
export * from './rate-of-return-response';
|
|
74
76
|
export * from './recent-orders-response';
|
|
75
77
|
export * from './security-type';
|
|
76
78
|
export * from './session-event';
|
package/dist/models/index.js
CHANGED
|
@@ -87,6 +87,8 @@ __exportStar(require("./past-value"), exports);
|
|
|
87
87
|
__exportStar(require("./performance-custom"), exports);
|
|
88
88
|
__exportStar(require("./position"), exports);
|
|
89
89
|
__exportStar(require("./position-symbol"), exports);
|
|
90
|
+
__exportStar(require("./rate-of-return-object"), exports);
|
|
91
|
+
__exportStar(require("./rate-of-return-response"), exports);
|
|
90
92
|
__exportStar(require("./recent-orders-response"), exports);
|
|
91
93
|
__exportStar(require("./security-type"), exports);
|
|
92
94
|
__exportStar(require("./session-event"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Individual rate of return object with return percent and timeframe
|
|
3
|
+
* @export
|
|
4
|
+
* @interface RateOfReturnObject
|
|
5
|
+
*/
|
|
6
|
+
export interface RateOfReturnObject {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
/**
|
|
9
|
+
* The timeframe this return percent is reflecting
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @memberof RateOfReturnObject
|
|
12
|
+
*/
|
|
13
|
+
'timeframe'?: RateOfReturnObjectTimeframeEnum;
|
|
14
|
+
/**
|
|
15
|
+
* The percent return of the portfolio, directly from the brokerage. 5.97 indicates a 5.97% return over the timeframe
|
|
16
|
+
* @type {number}
|
|
17
|
+
* @memberof RateOfReturnObject
|
|
18
|
+
*/
|
|
19
|
+
'return_percent'?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The date this was fetched
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof RateOfReturnObject
|
|
24
|
+
*/
|
|
25
|
+
'created_date'?: string;
|
|
26
|
+
}
|
|
27
|
+
type RateOfReturnObjectTimeframeEnum = 'ALL' | '1Y' | '6M' | '3M' | '1M';
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RateOfReturnObject } from './rate-of-return-object';
|
|
2
|
+
/**
|
|
3
|
+
* List of return rates with their timeframe
|
|
4
|
+
* @export
|
|
5
|
+
* @interface RateOfReturnResponse
|
|
6
|
+
*/
|
|
7
|
+
export interface RateOfReturnResponse {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
/**
|
|
10
|
+
* List of return percentages
|
|
11
|
+
* @type {Array<RateOfReturnObject>}
|
|
12
|
+
* @memberof RateOfReturnResponse
|
|
13
|
+
*/
|
|
14
|
+
'data'?: Array<RateOfReturnObject>;
|
|
15
|
+
}
|
|
@@ -12,7 +12,7 @@ export interface SecurityType {
|
|
|
12
12
|
*/
|
|
13
13
|
'id'?: string;
|
|
14
14
|
/**
|
|
15
|
-
* A short code representing the security type. For example, \"cs\" for Common Stock. Here are some common values: ad - ADR bnd - Bond cs - Common Stock cef - Closed End Fund et - ETF oef - Open Ended Fund ps - Preferred Stock rt - Right struct - Structured Product ut - Unit wi - When Issued wt - Warrant
|
|
15
|
+
* A short code representing the security type. For example, \"cs\" for Common Stock. Here are some common values: - `ad` - ADR - `bnd` - Bond - `cs` - Common Stock - `cef` - Closed End Fund - `et` - ETF - `oef` - Open Ended Fund - `ps` - Preferred Stock - `rt` - Right - `struct` - Structured Product - `ut` - Unit - `wi` - When Issued - `wt` - Warrant
|
|
16
16
|
* @type {string}
|
|
17
17
|
* @memberof SecurityType
|
|
18
18
|
*/
|
|
@@ -11,7 +11,7 @@ export interface UnderlyingSymbolType {
|
|
|
11
11
|
*/
|
|
12
12
|
'id'?: string;
|
|
13
13
|
/**
|
|
14
|
-
* A short code representing the security type. For example, \"cs\" for Common Stock. Here are some common values: ad - ADR bnd - Bond cs - Common Stock cef - Closed End Fund et - ETF oef - Open Ended Fund ps - Preferred Stock rt - Right struct - Structured Product ut - Unit wi - When Issued wt - Warrant
|
|
14
|
+
* A short code representing the security type. For example, \"cs\" for Common Stock. Here are some common values: - `ad` - ADR - `bnd` - Bond - `cs` - Common Stock - `cef` - Closed End Fund - `et` - ETF - `oef` - Open Ended Fund - `ps` - Preferred Stock - `rt` - Right - `struct` - Structured Product - `ut` - Unit - `wi` - When Issued - `wt` - Warrant
|
|
15
15
|
* @type {string}
|
|
16
16
|
* @memberof UnderlyingSymbolType
|
|
17
17
|
*/
|
|
@@ -86,6 +86,19 @@ exports.operationParameterMap = {
|
|
|
86
86
|
},
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
|
+
'/accounts/{accountId}/returnRates-GET': {
|
|
90
|
+
parameters: [
|
|
91
|
+
{
|
|
92
|
+
name: 'userId'
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'userSecret'
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'accountId'
|
|
99
|
+
},
|
|
100
|
+
]
|
|
101
|
+
},
|
|
89
102
|
'/accounts/{accountId}/holdings-GET': {
|
|
90
103
|
parameters: [
|
|
91
104
|
{
|
|
@@ -242,6 +255,19 @@ exports.operationParameterMap = {
|
|
|
242
255
|
},
|
|
243
256
|
]
|
|
244
257
|
},
|
|
258
|
+
'/authorizations/{authorizationId}/returnRates-GET': {
|
|
259
|
+
parameters: [
|
|
260
|
+
{
|
|
261
|
+
name: 'userId'
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'userSecret'
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
name: 'authorizationId'
|
|
268
|
+
},
|
|
269
|
+
]
|
|
270
|
+
},
|
|
245
271
|
'/sessionEvents-GET': {
|
|
246
272
|
parameters: [
|
|
247
273
|
{
|