snaptrade-typescript-sdk 9.0.38 → 9.0.39

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.
@@ -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.38/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/9.0.39/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
@@ -14,7 +14,7 @@ export interface Account {
14
14
  */
15
15
  'id'?: string;
16
16
  /**
17
- * Unique identifier for the connection (brokerage authorization). This is the UUID used to reference the connection in SnapTrade.
17
+ * Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.
18
18
  * @type {string}
19
19
  * @memberof Account
20
20
  */
@@ -51,7 +51,7 @@ export interface Account {
51
51
  */
52
52
  'created_date'?: string;
53
53
  /**
54
- * Additional information about the account, such as account type, status, etc. This information is specific to the brokerage and there\'s no standard format for this data. Please use at your own risk.
54
+ * Additional information about the account, such as account type, status, etc. This information is specific to the brokerage and there\'s no standard format for this data. This field is deprecated and subject to removal in a future version.
55
55
  * @type {{ [key: string]: any; }}
56
56
  * @memberof Account
57
57
  * @deprecated
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ * Confirmation that the connection has been disabled.
3
3
  * @export
4
4
  * @interface BrokerageAuthorizationDisabledConfirmation
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ * Confirmation that the syncs have been scheduled.
3
3
  * @export
4
4
  * @interface BrokerageAuthorizationRefreshConfirmation
5
5
  */
@@ -1,27 +1,28 @@
1
1
  import { Brokerage } from './brokerage';
2
2
  /**
3
- *
3
+ * A single connection with a brokerage. 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.
4
4
  * @export
5
5
  * @interface BrokerageAuthorization
6
6
  */
7
7
  export interface BrokerageAuthorization {
8
8
  [key: string]: any;
9
9
  /**
10
- *
10
+ * Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.
11
11
  * @type {string}
12
12
  * @memberof BrokerageAuthorization
13
13
  */
14
14
  'id'?: string;
15
15
  /**
16
- * Time
16
+ * Timestamp of when the connection was established in SnapTrade.
17
17
  * @type {string}
18
18
  * @memberof BrokerageAuthorization
19
19
  */
20
20
  'created_date'?: string;
21
21
  /**
22
- * Time
22
+ * Timestamp of when the connection was last updated in SnapTrade. This field is deprecated. Please let us know if you have a valid use case for this field.
23
23
  * @type {string}
24
24
  * @memberof BrokerageAuthorization
25
+ * @deprecated
25
26
  */
26
27
  'updated_date'?: string;
27
28
  /**
@@ -31,33 +32,34 @@ export interface BrokerageAuthorization {
31
32
  */
32
33
  'brokerage'?: Brokerage;
33
34
  /**
34
- * Connection Name
35
+ * A short, human-readable name for the connection.
35
36
  * @type {string}
36
37
  * @memberof BrokerageAuthorization
37
38
  */
38
39
  'name'?: string;
39
40
  /**
40
- *
41
+ * Whether the connection is read-only or trade-enabled. A read-only connection can only be used to fetch data, while a trade-enabled connection can be used to place trades. Valid values are `read` and `trade`.
41
42
  * @type {string}
42
43
  * @memberof BrokerageAuthorization
43
44
  */
44
45
  'type'?: string;
45
46
  /**
46
- *
47
+ * Whether the connection is disabled. A disabled connection can no longer access the latest data from the brokerage, but will continue to return the last cached state. A connection can become disabled for many reasons and differs by brokerage. Here are some common scenarios: - The user has changed their username or password at the brokerage. - The user has explicitly removed the access grant at the brokerage. - The session has expired at the brokerage and now requires explicit user re-authentication. Please see [this guide](https://docs.snaptrade.com/docs/fix-broken-connections) on how to fix a disabled connection.
47
48
  * @type {boolean}
48
49
  * @memberof BrokerageAuthorization
49
50
  */
50
51
  'disabled'?: boolean;
51
52
  /**
52
- * Disabled date
53
+ * Timestamp of when the connection was disabled in SnapTrade.
53
54
  * @type {string}
54
55
  * @memberof BrokerageAuthorization
55
56
  */
56
57
  'disabled_date'?: string | null;
57
58
  /**
58
- * Additional data about brokerage authorization
59
+ * Additional data about the connection. This information is specific to the brokerage and there\'s no standard format for this data. This field is deprecated and subject to removal in a future version.
59
60
  * @type {{ [key: string]: any; }}
60
61
  * @memberof BrokerageAuthorization
62
+ * @deprecated
61
63
  */
62
64
  'meta'?: {
63
65
  [key: string]: any;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Type of brokerage
2
+ * Type of brokerage. Currently supports traditional brokerages and crypto exchanges.
3
3
  * @export
4
4
  * @interface BrokerageType
5
5
  */
@@ -1,17 +1,23 @@
1
1
  import { BrokerageType } from './brokerage-type';
2
2
  /**
3
- *
3
+ * Describes a brokerage that SnapTrade supports.
4
4
  * @export
5
5
  * @interface Brokerage
6
6
  */
7
7
  export interface Brokerage {
8
8
  [key: string]: any;
9
9
  /**
10
- *
10
+ * Unique identifier for the brokerage firm. This is the UUID used to reference the brokerage in SnapTrade.
11
11
  * @type {string}
12
12
  * @memberof Brokerage
13
13
  */
14
14
  'id'?: string;
15
+ /**
16
+ * A short, unique identifier for the brokerage. It is usually the name of the brokerage in capital letters and will never change.
17
+ * @type {string}
18
+ * @memberof Brokerage
19
+ */
20
+ 'slug'?: string;
15
21
  /**
16
22
  * Full name of the brokerage.
17
23
  * @type {string}
@@ -25,95 +31,75 @@ export interface Brokerage {
25
31
  */
26
32
  'display_name'?: string;
27
33
  /**
28
- *
34
+ * A brief description of the brokerage.
29
35
  * @type {string}
30
36
  * @memberof Brokerage
31
37
  */
32
38
  'description'?: string;
33
39
  /**
34
- *
40
+ * URL to the brokerage\'s logo.
35
41
  * @type {string}
36
42
  * @memberof Brokerage
37
43
  */
38
44
  'aws_s3_logo_url'?: string;
39
45
  /**
40
- *
46
+ * URL to the brokerage\'s logo in square format.
41
47
  * @type {string}
42
48
  * @memberof Brokerage
43
49
  */
44
50
  'aws_s3_square_logo_url'?: string | null;
45
51
  /**
46
- *
52
+ * This field is deprecated.
47
53
  * @type {string}
48
54
  * @memberof Brokerage
55
+ * @deprecated
49
56
  */
50
57
  'open_url'?: string | null;
51
58
  /**
52
- * A unique identifier for that brokerage. It is usually the name of the brokerage in capital letters and will never change.
53
- * @type {string}
54
- * @memberof Brokerage
55
- */
56
- 'slug'?: string;
57
- /**
58
- *
59
+ * URL to the brokerage\'s website.
59
60
  * @type {string}
60
61
  * @memberof Brokerage
61
62
  */
62
63
  'url'?: string;
63
64
  /**
64
- *
65
+ * Whether the brokerage is enabled in SnapTrade. A disabled brokerage will not be available for new connections.
65
66
  * @type {boolean}
66
67
  * @memberof Brokerage
67
68
  */
68
69
  'enabled'?: boolean;
69
70
  /**
70
- *
71
+ * Whether the brokerage is currently in maintenance mode. A brokerage in maintenance mode will not be available for new connections.
71
72
  * @type {boolean}
72
73
  * @memberof Brokerage
73
74
  */
74
75
  'maintenance_mode'?: boolean;
75
76
  /**
76
- *
77
+ * This field is deprecated. Please contact us if you have a valid use case for it.
77
78
  * @type {boolean}
78
79
  * @memberof Brokerage
80
+ * @deprecated
79
81
  */
80
82
  'allows_fractional_units'?: boolean | null;
81
83
  /**
82
- *
84
+ * Whether the brokerage allows trading through SnapTrade.
83
85
  * @type {boolean}
84
86
  * @memberof Brokerage
85
87
  */
86
88
  'allows_trading'?: boolean | null;
87
89
  /**
88
- *
90
+ * This field is deprecated. Please contact us if you have a valid use case for it.
89
91
  * @type {boolean}
90
92
  * @memberof Brokerage
93
+ * @deprecated
91
94
  */
92
95
  'has_reporting'?: boolean | null;
93
96
  /**
94
- *
97
+ * This field is deprecated. Please contact us if you have a valid use case for it.
95
98
  * @type {boolean}
96
99
  * @memberof Brokerage
100
+ * @deprecated
97
101
  */
98
102
  'is_real_time_connection'?: boolean;
99
- /**
100
- *
101
- * @type {boolean}
102
- * @memberof Brokerage
103
- */
104
- 'allows_trading_through_snaptrade_api'?: boolean | null;
105
- /**
106
- *
107
- * @type {boolean}
108
- * @memberof Brokerage
109
- */
110
- 'is_scraping_integration'?: boolean;
111
- /**
112
- *
113
- * @type {string}
114
- * @memberof Brokerage
115
- */
116
- 'default_currency'?: string;
117
103
  /**
118
104
  *
119
105
  * @type {BrokerageType}
@@ -121,9 +107,10 @@ export interface Brokerage {
121
107
  */
122
108
  'brokerage_type'?: BrokerageType;
123
109
  /**
124
- * List of exchange ID supported by brokerage
110
+ * This field is deprecated. Please contact us if you have a valid use case for it.
125
111
  * @type {Array<any>}
126
112
  * @memberof Brokerage
113
+ * @deprecated
127
114
  */
128
115
  'exchanges'?: Array<any>;
129
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "9.0.38",
3
+ "version": "9.0.39",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {