snaptrade-typescript-sdk 7.0.0 → 8.1.0
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/.konfig/generate-id.txt +1 -1
- package/README.md +1 -1
- package/configuration.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account-simple.d.ts +7 -0
- package/dist/models/account-sync-status.d.ts +25 -0
- package/dist/models/account-sync-status.js +15 -0
- package/dist/models/brokerage.d.ts +2 -2
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/snap-trade-holdings-account.d.ts +7 -0
- package/dist/models/transactions-status.d.ts +30 -0
- package/dist/models/transactions-status.js +15 -0
- package/dist/models/universal-activity.d.ts +2 -23
- package/dist/models/universal-activity.js +0 -21
- package/models/account-simple.ts +9 -0
- package/models/account-sync-status.ts +32 -0
- package/models/brokerage.ts +2 -2
- package/models/index.ts +2 -0
- package/models/snap-trade-holdings-account.ts +9 -0
- package/models/transactions-status.ts +35 -0
- package/models/universal-activity.ts +2 -26
- package/package.json +4 -1
package/.konfig/generate-id.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bb289208-7395-456e-a499-f2a02971d3fc
|
package/README.md
CHANGED
package/configuration.ts
CHANGED
|
@@ -110,7 +110,7 @@ export class Configuration {
|
|
|
110
110
|
this.accessToken = param.accessToken;
|
|
111
111
|
this.basePath = param.basePath;
|
|
112
112
|
this.baseOptions = param.baseOptions ?? {};
|
|
113
|
-
this.userAgent = param.userAgent === undefined ? "Konfig/
|
|
113
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/8.1.0/typescript" : param.userAgent;
|
|
114
114
|
this.formDataCtor = param.formDataCtor;
|
|
115
115
|
}
|
|
116
116
|
|
package/dist/configuration.js
CHANGED
|
@@ -34,7 +34,7 @@ var Configuration = /** @class */ (function () {
|
|
|
34
34
|
this.accessToken = param.accessToken;
|
|
35
35
|
this.basePath = param.basePath;
|
|
36
36
|
this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
|
|
37
|
-
this.userAgent = param.userAgent === undefined ? "Konfig/
|
|
37
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/8.1.0/typescript" : param.userAgent;
|
|
38
38
|
this.formDataCtor = param.formDataCtor;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://konfigthis.com
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AccountSyncStatus } from './account-sync-status';
|
|
12
13
|
/**
|
|
13
14
|
* SnapTradeUser Investment Account
|
|
14
15
|
* @export
|
|
@@ -34,4 +35,10 @@ export interface AccountSimple {
|
|
|
34
35
|
* @memberof AccountSimple
|
|
35
36
|
*/
|
|
36
37
|
'number'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {AccountSyncStatus}
|
|
41
|
+
* @memberof AccountSimple
|
|
42
|
+
*/
|
|
43
|
+
'sync_status'?: AccountSyncStatus;
|
|
37
44
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SnapTrade
|
|
3
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: api@snaptrade.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
9
|
+
* https://konfigthis.com
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { TransactionsStatus } from './transactions-status';
|
|
13
|
+
/**
|
|
14
|
+
* Status of account
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountSyncStatus
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountSyncStatus {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {TransactionsStatus}
|
|
22
|
+
* @memberof AccountSyncStatus
|
|
23
|
+
*/
|
|
24
|
+
'transactions'?: TransactionsStatus;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SnapTrade
|
|
6
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: api@snaptrade.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
+
* https://konfigthis.com
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -82,13 +82,13 @@ export interface Brokerage {
|
|
|
82
82
|
* @type {boolean}
|
|
83
83
|
* @memberof Brokerage
|
|
84
84
|
*/
|
|
85
|
-
'allows_trading'?: boolean;
|
|
85
|
+
'allows_trading'?: boolean | null;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @type {boolean}
|
|
89
89
|
* @memberof Brokerage
|
|
90
90
|
*/
|
|
91
|
-
'has_reporting'?: boolean;
|
|
91
|
+
'has_reporting'?: boolean | null;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {boolean}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './account-holdings';
|
|
|
4
4
|
export * from './account-order-record';
|
|
5
5
|
export * from './account-order-record-status';
|
|
6
6
|
export * from './account-simple';
|
|
7
|
+
export * from './account-sync-status';
|
|
7
8
|
export * from './action';
|
|
8
9
|
export * from './authentication-login-snap-trade-user200-response';
|
|
9
10
|
export * from './balance';
|
|
@@ -95,6 +96,7 @@ export * from './trade-execution-status';
|
|
|
95
96
|
export * from './trade-impact';
|
|
96
97
|
export * from './trading-cancel-user-account-order-request';
|
|
97
98
|
export * from './trading-place-ocoorder-request';
|
|
99
|
+
export * from './transactions-status';
|
|
98
100
|
export * from './usexchange';
|
|
99
101
|
export * from './underlying-symbol';
|
|
100
102
|
export * from './universal-activity';
|
package/dist/models/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./account-holdings"), exports);
|
|
|
20
20
|
__exportStar(require("./account-order-record"), exports);
|
|
21
21
|
__exportStar(require("./account-order-record-status"), exports);
|
|
22
22
|
__exportStar(require("./account-simple"), exports);
|
|
23
|
+
__exportStar(require("./account-sync-status"), exports);
|
|
23
24
|
__exportStar(require("./action"), exports);
|
|
24
25
|
__exportStar(require("./authentication-login-snap-trade-user200-response"), exports);
|
|
25
26
|
__exportStar(require("./balance"), exports);
|
|
@@ -111,6 +112,7 @@ __exportStar(require("./trade-execution-status"), exports);
|
|
|
111
112
|
__exportStar(require("./trade-impact"), exports);
|
|
112
113
|
__exportStar(require("./trading-cancel-user-account-order-request"), exports);
|
|
113
114
|
__exportStar(require("./trading-place-ocoorder-request"), exports);
|
|
115
|
+
__exportStar(require("./transactions-status"), exports);
|
|
114
116
|
__exportStar(require("./usexchange"), exports);
|
|
115
117
|
__exportStar(require("./underlying-symbol"), exports);
|
|
116
118
|
__exportStar(require("./universal-activity"), exports);
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://konfigthis.com
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AccountSyncStatus } from './account-sync-status';
|
|
12
13
|
/**
|
|
13
14
|
* SnapTradeUser Investment Account
|
|
14
15
|
* @export
|
|
@@ -52,6 +53,12 @@ export interface SnapTradeHoldingsAccount {
|
|
|
52
53
|
* @memberof SnapTradeHoldingsAccount
|
|
53
54
|
*/
|
|
54
55
|
'institution_name'?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {AccountSyncStatus}
|
|
59
|
+
* @memberof SnapTradeHoldingsAccount
|
|
60
|
+
*/
|
|
61
|
+
'sync_status'?: AccountSyncStatus;
|
|
55
62
|
/**
|
|
56
63
|
*
|
|
57
64
|
* @type {{ [key: string]: any; }}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SnapTrade
|
|
3
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: api@snaptrade.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
9
|
+
* https://konfigthis.com
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Status of account transaction sync
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TransactionsStatus
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionsStatus {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof TransactionsStatus
|
|
22
|
+
*/
|
|
23
|
+
'initial_sync_completed'?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TransactionsStatus
|
|
28
|
+
*/
|
|
29
|
+
'last_successful_sync'?: string | null;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SnapTrade
|
|
6
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: api@snaptrade.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
+
* https://konfigthis.com
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -99,11 +99,11 @@ export interface UniversalActivity {
|
|
|
99
99
|
*/
|
|
100
100
|
'trade_date'?: string | null;
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @memberof UniversalActivity
|
|
105
105
|
*/
|
|
106
|
-
'type'?:
|
|
106
|
+
'type'?: string;
|
|
107
107
|
/**
|
|
108
108
|
* Usually but not necessarily an integer
|
|
109
109
|
* @type {number}
|
|
@@ -111,24 +111,3 @@ export interface UniversalActivity {
|
|
|
111
111
|
*/
|
|
112
112
|
'units'?: number;
|
|
113
113
|
}
|
|
114
|
-
export declare const UniversalActivityTypeEnum: {
|
|
115
|
-
readonly Dividend: "DIVIDEND";
|
|
116
|
-
readonly Buy: "BUY";
|
|
117
|
-
readonly Sell: "SELL";
|
|
118
|
-
readonly Contribution: "CONTRIBUTION";
|
|
119
|
-
readonly Withdrawal: "WITHDRAWAL";
|
|
120
|
-
readonly ExternalAssetTransferIn: "EXTERNAL_ASSET_TRANSFER_IN";
|
|
121
|
-
readonly ExternalAssetTransferOut: "EXTERNAL_ASSET_TRANSFER_OUT";
|
|
122
|
-
readonly InternalCashTransferIn: "INTERNAL_CASH_TRANSFER_IN";
|
|
123
|
-
readonly InternalCashTransferOut: "INTERNAL_CASH_TRANSFER_OUT";
|
|
124
|
-
readonly InternalAssetTransferIn: "INTERNAL_ASSET_TRANSFER_IN";
|
|
125
|
-
readonly InternalAssetTransferOut: "INTERNAL_ASSET_TRANSFER_OUT";
|
|
126
|
-
readonly Interest: "INTEREST";
|
|
127
|
-
readonly Rebate: "REBATE";
|
|
128
|
-
readonly GovGrant: "GOV_GRANT";
|
|
129
|
-
readonly Tax: "TAX";
|
|
130
|
-
readonly Fee: "FEE";
|
|
131
|
-
readonly Rei: "REI";
|
|
132
|
-
readonly Fxt: "FXT";
|
|
133
|
-
};
|
|
134
|
-
export type UniversalActivityTypeEnum = typeof UniversalActivityTypeEnum[keyof typeof UniversalActivityTypeEnum];
|
|
@@ -13,24 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UniversalActivityTypeEnum = void 0;
|
|
17
|
-
exports.UniversalActivityTypeEnum = {
|
|
18
|
-
Dividend: 'DIVIDEND',
|
|
19
|
-
Buy: 'BUY',
|
|
20
|
-
Sell: 'SELL',
|
|
21
|
-
Contribution: 'CONTRIBUTION',
|
|
22
|
-
Withdrawal: 'WITHDRAWAL',
|
|
23
|
-
ExternalAssetTransferIn: 'EXTERNAL_ASSET_TRANSFER_IN',
|
|
24
|
-
ExternalAssetTransferOut: 'EXTERNAL_ASSET_TRANSFER_OUT',
|
|
25
|
-
InternalCashTransferIn: 'INTERNAL_CASH_TRANSFER_IN',
|
|
26
|
-
InternalCashTransferOut: 'INTERNAL_CASH_TRANSFER_OUT',
|
|
27
|
-
InternalAssetTransferIn: 'INTERNAL_ASSET_TRANSFER_IN',
|
|
28
|
-
InternalAssetTransferOut: 'INTERNAL_ASSET_TRANSFER_OUT',
|
|
29
|
-
Interest: 'INTEREST',
|
|
30
|
-
Rebate: 'REBATE',
|
|
31
|
-
GovGrant: 'GOV_GRANT',
|
|
32
|
-
Tax: 'TAX',
|
|
33
|
-
Fee: 'FEE',
|
|
34
|
-
Rei: 'REI',
|
|
35
|
-
Fxt: 'FXT'
|
|
36
|
-
};
|
package/models/account-simple.ts
CHANGED
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
// May contain unused imports in some cases
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import { AccountSyncStatus } from './account-sync-status';
|
|
15
18
|
|
|
16
19
|
/**
|
|
17
20
|
* SnapTradeUser Investment Account
|
|
@@ -39,5 +42,11 @@ export interface AccountSimple {
|
|
|
39
42
|
* @memberof AccountSimple
|
|
40
43
|
*/
|
|
41
44
|
'number'?: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {AccountSyncStatus}
|
|
48
|
+
* @memberof AccountSimple
|
|
49
|
+
*/
|
|
50
|
+
'sync_status'?: AccountSyncStatus;
|
|
42
51
|
}
|
|
43
52
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// May contain unused imports in some cases
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import { TransactionsStatus } from './transactions-status';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Status of account
|
|
21
|
+
* @export
|
|
22
|
+
* @interface AccountSyncStatus
|
|
23
|
+
*/
|
|
24
|
+
export interface AccountSyncStatus {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {TransactionsStatus}
|
|
28
|
+
* @memberof AccountSyncStatus
|
|
29
|
+
*/
|
|
30
|
+
'transactions'?: TransactionsStatus;
|
|
31
|
+
}
|
|
32
|
+
|
package/models/brokerage.ts
CHANGED
|
@@ -89,13 +89,13 @@ export interface Brokerage {
|
|
|
89
89
|
* @type {boolean}
|
|
90
90
|
* @memberof Brokerage
|
|
91
91
|
*/
|
|
92
|
-
'allows_trading'?: boolean;
|
|
92
|
+
'allows_trading'?: boolean | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {boolean}
|
|
96
96
|
* @memberof Brokerage
|
|
97
97
|
*/
|
|
98
|
-
'has_reporting'?: boolean;
|
|
98
|
+
'has_reporting'?: boolean | null;
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
101
101
|
* @type {boolean}
|
package/models/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './account-holdings';
|
|
|
4
4
|
export * from './account-order-record';
|
|
5
5
|
export * from './account-order-record-status';
|
|
6
6
|
export * from './account-simple';
|
|
7
|
+
export * from './account-sync-status';
|
|
7
8
|
export * from './action';
|
|
8
9
|
export * from './authentication-login-snap-trade-user200-response';
|
|
9
10
|
export * from './balance';
|
|
@@ -95,6 +96,7 @@ export * from './trade-execution-status';
|
|
|
95
96
|
export * from './trade-impact';
|
|
96
97
|
export * from './trading-cancel-user-account-order-request';
|
|
97
98
|
export * from './trading-place-ocoorder-request';
|
|
99
|
+
export * from './transactions-status';
|
|
98
100
|
export * from './usexchange';
|
|
99
101
|
export * from './underlying-symbol';
|
|
100
102
|
export * from './universal-activity';
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
// May contain unused imports in some cases
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import { AccountSyncStatus } from './account-sync-status';
|
|
15
18
|
|
|
16
19
|
/**
|
|
17
20
|
* SnapTradeUser Investment Account
|
|
@@ -57,6 +60,12 @@ export interface SnapTradeHoldingsAccount {
|
|
|
57
60
|
* @memberof SnapTradeHoldingsAccount
|
|
58
61
|
*/
|
|
59
62
|
'institution_name'?: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {AccountSyncStatus}
|
|
66
|
+
* @memberof SnapTradeHoldingsAccount
|
|
67
|
+
*/
|
|
68
|
+
'sync_status'?: AccountSyncStatus;
|
|
60
69
|
/**
|
|
61
70
|
*
|
|
62
71
|
* @type {{ [key: string]: any; }}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Status of account transaction sync
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TransactionsStatus
|
|
20
|
+
*/
|
|
21
|
+
export interface TransactionsStatus {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof TransactionsStatus
|
|
26
|
+
*/
|
|
27
|
+
'initial_sync_completed'?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TransactionsStatus
|
|
32
|
+
*/
|
|
33
|
+
'last_successful_sync'?: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -112,11 +112,11 @@ export interface UniversalActivity {
|
|
|
112
112
|
*/
|
|
113
113
|
'trade_date'?: string | null;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
|
116
116
|
* @type {string}
|
|
117
117
|
* @memberof UniversalActivity
|
|
118
118
|
*/
|
|
119
|
-
'type'?:
|
|
119
|
+
'type'?: string;
|
|
120
120
|
/**
|
|
121
121
|
* Usually but not necessarily an integer
|
|
122
122
|
* @type {number}
|
|
@@ -125,27 +125,3 @@ export interface UniversalActivity {
|
|
|
125
125
|
'units'?: number;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
export const UniversalActivityTypeEnum = {
|
|
129
|
-
Dividend: 'DIVIDEND',
|
|
130
|
-
Buy: 'BUY',
|
|
131
|
-
Sell: 'SELL',
|
|
132
|
-
Contribution: 'CONTRIBUTION',
|
|
133
|
-
Withdrawal: 'WITHDRAWAL',
|
|
134
|
-
ExternalAssetTransferIn: 'EXTERNAL_ASSET_TRANSFER_IN',
|
|
135
|
-
ExternalAssetTransferOut: 'EXTERNAL_ASSET_TRANSFER_OUT',
|
|
136
|
-
InternalCashTransferIn: 'INTERNAL_CASH_TRANSFER_IN',
|
|
137
|
-
InternalCashTransferOut: 'INTERNAL_CASH_TRANSFER_OUT',
|
|
138
|
-
InternalAssetTransferIn: 'INTERNAL_ASSET_TRANSFER_IN',
|
|
139
|
-
InternalAssetTransferOut: 'INTERNAL_ASSET_TRANSFER_OUT',
|
|
140
|
-
Interest: 'INTEREST',
|
|
141
|
-
Rebate: 'REBATE',
|
|
142
|
-
GovGrant: 'GOV_GRANT',
|
|
143
|
-
Tax: 'TAX',
|
|
144
|
-
Fee: 'FEE',
|
|
145
|
-
Rei: 'REI',
|
|
146
|
-
Fxt: 'FXT'
|
|
147
|
-
} as const;
|
|
148
|
-
|
|
149
|
-
export type UniversalActivityTypeEnum = typeof UniversalActivityTypeEnum[keyof typeof UniversalActivityTypeEnum];
|
|
150
|
-
|
|
151
|
-
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snaptrade-typescript-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Client for SnapTrade",
|
|
5
5
|
"author": "Konfig",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=10"
|
|
8
|
+
},
|
|
6
9
|
"repository": {
|
|
7
10
|
"type": "git",
|
|
8
11
|
"url": "https://github.com/passiv/snaptrade-sdks/tree/master/sdks/typescript"
|