snaptrade-typescript-sdk 9.0.40 → 9.0.42
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 +15 -8
- package/dist/api/authentication-api-generated.d.ts +8 -8
- package/dist/api/authentication-api-generated.js +8 -8
- package/dist/api/connections-api-generated.d.ts +8 -8
- package/dist/api/connections-api-generated.js +8 -8
- package/dist/api/trading-api-generated.d.ts +8 -8
- package/dist/api/trading-api-generated.js +8 -8
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/brokerage-authorization.d.ts +1 -1
- package/dist/models/options-position.d.ts +1 -1
- package/dist/models/snap-trade-login-user-request-body.d.ts +4 -4
- package/dist/models/universal-activity.d.ts +1 -1
- package/package.json +2 -2
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.42/typescript" : param.userAgent;
|
|
36
36
|
this.formDataCtor = param.formDataCtor;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -44,7 +44,7 @@ export interface BrokerageAuthorization {
|
|
|
44
44
|
*/
|
|
45
45
|
'type'?: string;
|
|
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](
|
|
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](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
48
48
|
* @type {boolean}
|
|
49
49
|
* @memberof BrokerageAuthorization
|
|
50
50
|
*/
|
|
@@ -14,7 +14,7 @@ export interface OptionsPosition {
|
|
|
14
14
|
*/
|
|
15
15
|
'symbol'?: OptionBrokerageSymbol;
|
|
16
16
|
/**
|
|
17
|
-
* Last known market price
|
|
17
|
+
* Last known market price _per share_ of the option contract. The freshness of this price depends on the brokerage. Some brokerages provide real-time prices, while others provide delayed prices. It is recommended that you rely on your own third-party market data provider for most up to date prices.
|
|
18
18
|
* @type {number}
|
|
19
19
|
* @memberof OptionsPosition
|
|
20
20
|
*/
|
|
@@ -11,19 +11,19 @@ export interface SnapTradeLoginUserRequestBody {
|
|
|
11
11
|
*/
|
|
12
12
|
'broker'?: string;
|
|
13
13
|
/**
|
|
14
|
-
* When set to `true`, user will be redirected back to the partner\'s site instead of the connection portal. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](
|
|
14
|
+
* When set to `true`, user will be redirected back to the partner\'s site instead of the connection portal. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
|
|
15
15
|
* @type {boolean}
|
|
16
16
|
* @memberof SnapTradeLoginUserRequestBody
|
|
17
17
|
*/
|
|
18
18
|
'immediateRedirect'?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
* URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](
|
|
20
|
+
* URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof SnapTradeLoginUserRequestBody
|
|
23
23
|
*/
|
|
24
24
|
'customRedirect'?: string;
|
|
25
25
|
/**
|
|
26
|
-
* The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](
|
|
26
|
+
* The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof SnapTradeLoginUserRequestBody
|
|
29
29
|
*/
|
|
@@ -42,5 +42,5 @@ export interface SnapTradeLoginUserRequestBody {
|
|
|
42
42
|
'connectionPortalVersion'?: SnapTradeLoginUserRequestBodyConnectionPortalVersionEnum;
|
|
43
43
|
}
|
|
44
44
|
type SnapTradeLoginUserRequestBodyConnectionTypeEnum = 'read' | 'trade';
|
|
45
|
-
type SnapTradeLoginUserRequestBodyConnectionPortalVersionEnum = '
|
|
45
|
+
type SnapTradeLoginUserRequestBodyConnectionPortalVersionEnum = 'v4' | 'v3' | 'v2';
|
|
46
46
|
export {};
|
|
@@ -10,7 +10,7 @@ import { UniversalActivitySymbol } from './universal-activity-symbol';
|
|
|
10
10
|
export interface UniversalActivity {
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
/**
|
|
13
|
-
* Unique identifier for the transaction. This is the ID used to reference the transaction in SnapTrade.
|
|
13
|
+
* Unique identifier for the transaction. This is the ID used to reference the transaction in SnapTrade. Please note that this ID _can_ change if the transaction is deleted and re-added. Under normal circumstances, SnapTrade does not delete transactions. The only time this would happen is if SnapTrade re-fetches and reprocesses the data from the brokerage, which is rare. If you require a stable ID, please let us know and we can work with you to provide one.
|
|
14
14
|
* @type {string}
|
|
15
15
|
* @memberof UniversalActivity
|
|
16
16
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snaptrade-typescript-sdk",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.42",
|
|
4
4
|
"description": "Client for SnapTrade",
|
|
5
5
|
"author": "Konfig",
|
|
6
6
|
"engines": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "jest"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"axios": "1.
|
|
34
|
+
"axios": "1.7.4"
|
|
35
35
|
},
|
|
36
36
|
"resolutions": {
|
|
37
37
|
"semver": "^7.5.2",
|