snaptrade-typescript-sdk 9.0.32 → 9.0.34
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 +3 -1
- package/dist/api/account-information-api-generated.d.ts +4 -4
- package/dist/api/account-information-api-generated.js +4 -4
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account-holdings-account.d.ts +2 -2
- package/dist/models/account-order-record-option-symbol.d.ts +52 -0
- package/dist/models/account-order-record-status.d.ts +1 -1
- package/dist/models/account-order-record-universal-symbol.d.ts +73 -0
- package/dist/models/account-order-record.d.ts +26 -25
- package/dist/models/account.d.ts +4 -4
- package/dist/models/exchange.d.ts +9 -9
- package/dist/models/figi-instrument.d.ts +3 -3
- package/dist/models/index.d.ts +6 -32
- package/dist/models/index.js +6 -32
- package/dist/models/monthly-dividends.d.ts +1 -1
- package/dist/models/net-contributions.d.ts +1 -1
- package/dist/models/option-brokerage-symbol.d.ts +5 -3
- package/dist/models/options-position-currency.d.ts +1 -1
- package/dist/models/options-position.d.ts +2 -1
- package/dist/models/options-symbol.d.ts +7 -19
- package/dist/models/order-type-strict.d.ts +1 -1
- package/dist/models/past-value.d.ts +1 -1
- package/dist/models/position-symbol.d.ts +11 -6
- package/dist/models/security-type.d.ts +6 -5
- package/dist/models/snap-trade-holdings-account-account-id.d.ts +2 -3
- package/dist/models/strategy-order-record.d.ts +1 -1
- package/dist/models/sub-period-return-rate.d.ts +2 -2
- package/dist/models/symbol-figi-instrument.d.ts +2 -2
- package/dist/models/underlying-symbol-exchange.d.ts +61 -0
- package/dist/models/underlying-symbol-type.d.ts +32 -0
- package/dist/models/underlying-symbol.d.ts +22 -14
- package/dist/models/universal-symbol-currency.d.ts +25 -0
- package/dist/models/universal-symbol-exchange.d.ts +55 -0
- package/dist/models/universal-symbol.d.ts +14 -12
- package/package.json +1 -1
- package/dist/models/brokerage-authorization-type.d.ts +0 -16
- package/dist/models/brokerage-symbol-option-symbol.d.ts +0 -64
- package/dist/models/brokerage-symbol-symbol.d.ts +0 -71
- package/dist/models/brokerage-symbol.d.ts +0 -47
- package/dist/models/calculated-trade.d.ts +0 -21
- package/dist/models/cash-restriction.d.ts +0 -40
- package/dist/models/excluded-asset.d.ts +0 -15
- package/dist/models/excluded-asset.js +0 -2
- package/dist/models/jwt.d.ts +0 -14
- package/dist/models/jwt.js +0 -2
- package/dist/models/model-asset-class-details.d.ts +0 -22
- package/dist/models/model-asset-class-details.js +0 -2
- package/dist/models/model-asset-class-target.d.ts +0 -15
- package/dist/models/model-asset-class-target.js +0 -2
- package/dist/models/model-asset-class.d.ts +0 -20
- package/dist/models/model-asset-class.js +0 -2
- package/dist/models/model-portfolio-asset-class.d.ts +0 -21
- package/dist/models/model-portfolio-asset-class.js +0 -2
- package/dist/models/model-portfolio-details.d.ts +0 -29
- package/dist/models/model-portfolio-details.js +0 -2
- package/dist/models/model-portfolio-security.d.ts +0 -21
- package/dist/models/model-portfolio-security.js +0 -2
- package/dist/models/model-portfolio.d.ts +0 -28
- package/dist/models/model-portfolio.js +0 -2
- package/dist/models/portfolio-group-info.d.ts +0 -82
- package/dist/models/portfolio-group-info.js +0 -2
- package/dist/models/portfolio-group-position.d.ts +0 -27
- package/dist/models/portfolio-group-position.js +0 -2
- package/dist/models/portfolio-group-settings.d.ts +0 -39
- package/dist/models/portfolio-group-settings.js +0 -2
- package/dist/models/portfolio-group.d.ts +0 -20
- package/dist/models/portfolio-group.js +0 -2
- package/dist/models/redirect-tokenand-pin.d.ts +0 -20
- package/dist/models/redirect-tokenand-pin.js +0 -2
- package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +0 -20
- package/dist/models/snap-trade-apidisclaimer-accept-status.js +0 -2
- package/dist/models/strategy-impact-legs-inner.d.ts +0 -50
- package/dist/models/strategy-impact-legs-inner.js +0 -2
- package/dist/models/strategy-impact.d.ts +0 -75
- package/dist/models/strategy-impact.js +0 -2
- package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +0 -50
- package/dist/models/strategy-order-place-orders-inner-legs-inner.js +0 -2
- package/dist/models/strategy-order-place-orders-inner.d.ts +0 -267
- package/dist/models/strategy-order-place-orders-inner.js +0 -2
- package/dist/models/strategy-order-place.d.ts +0 -21
- package/dist/models/strategy-order-place.js +0 -2
- package/dist/models/target-asset.d.ts +0 -47
- package/dist/models/target-asset.js +0 -2
- package/dist/models/trade-execution-status.d.ts +0 -70
- package/dist/models/trade-execution-status.js +0 -2
- package/dist/models/trade-impact.d.ts +0 -40
- package/dist/models/trade-impact.js +0 -2
- package/dist/models/trade.d.ts +0 -61
- package/dist/models/trade.js +0 -2
- package/dist/models/user-error-log.d.ts +0 -44
- package/dist/models/user-error-log.js +0 -2
- package/dist/models/user-settings.d.ts +0 -69
- package/dist/models/user-settings.js +0 -2
- /package/dist/models/{brokerage-authorization-type.js → account-order-record-option-symbol.js} +0 -0
- /package/dist/models/{brokerage-symbol-option-symbol.js → account-order-record-universal-symbol.js} +0 -0
- /package/dist/models/{brokerage-symbol-symbol.js → underlying-symbol-exchange.js} +0 -0
- /package/dist/models/{brokerage-symbol.js → underlying-symbol-type.js} +0 -0
- /package/dist/models/{calculated-trade.js → universal-symbol-currency.js} +0 -0
- /package/dist/models/{cash-restriction.js → universal-symbol-exchange.js} +0 -0
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { UnderlyingSymbol } from './underlying-symbol';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface BrokerageSymbolOptionSymbol
|
|
6
|
-
*/
|
|
7
|
-
export interface BrokerageSymbolOptionSymbol {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof BrokerageSymbolOptionSymbol
|
|
12
|
-
*/
|
|
13
|
-
'id': string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof BrokerageSymbolOptionSymbol
|
|
18
|
-
*/
|
|
19
|
-
'ticker': string;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof BrokerageSymbolOptionSymbol
|
|
24
|
-
*/
|
|
25
|
-
'option_type': BrokerageSymbolOptionSymbolOptionTypeEnum;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @memberof BrokerageSymbolOptionSymbol
|
|
30
|
-
*/
|
|
31
|
-
'strike_price': number;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof BrokerageSymbolOptionSymbol
|
|
36
|
-
*/
|
|
37
|
-
'expiration_date': string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {boolean}
|
|
41
|
-
* @memberof BrokerageSymbolOptionSymbol
|
|
42
|
-
*/
|
|
43
|
-
'is_mini_option'?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {UnderlyingSymbol}
|
|
47
|
-
* @memberof BrokerageSymbolOptionSymbol
|
|
48
|
-
*/
|
|
49
|
-
'underlying_symbol': UnderlyingSymbol;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof BrokerageSymbolOptionSymbol
|
|
54
|
-
*/
|
|
55
|
-
'local_id'?: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof BrokerageSymbolOptionSymbol
|
|
60
|
-
*/
|
|
61
|
-
'exchange_id'?: string;
|
|
62
|
-
}
|
|
63
|
-
type BrokerageSymbolOptionSymbolOptionTypeEnum = 'CALL' | 'PUT';
|
|
64
|
-
export {};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { Currency } from './currency';
|
|
2
|
-
import { Exchange } from './exchange';
|
|
3
|
-
import { SecurityType } from './security-type';
|
|
4
|
-
import { SymbolFigiInstrument } from './symbol-figi-instrument';
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @export
|
|
8
|
-
* @interface BrokerageSymbolSymbol
|
|
9
|
-
*/
|
|
10
|
-
export interface BrokerageSymbolSymbol {
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @type {string}
|
|
14
|
-
* @memberof BrokerageSymbolSymbol
|
|
15
|
-
*/
|
|
16
|
-
'id': string;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @type {string}
|
|
20
|
-
* @memberof BrokerageSymbolSymbol
|
|
21
|
-
*/
|
|
22
|
-
'symbol': string;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof BrokerageSymbolSymbol
|
|
27
|
-
*/
|
|
28
|
-
'raw_symbol': string;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof BrokerageSymbolSymbol
|
|
33
|
-
*/
|
|
34
|
-
'description'?: string | null;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {Currency}
|
|
38
|
-
* @memberof BrokerageSymbolSymbol
|
|
39
|
-
*/
|
|
40
|
-
'currency': Currency;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {Exchange}
|
|
44
|
-
* @memberof BrokerageSymbolSymbol
|
|
45
|
-
*/
|
|
46
|
-
'exchange'?: Exchange;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {SecurityType}
|
|
50
|
-
* @memberof BrokerageSymbolSymbol
|
|
51
|
-
*/
|
|
52
|
-
'type': SecurityType;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {Array<Currency>}
|
|
56
|
-
* @memberof BrokerageSymbolSymbol
|
|
57
|
-
*/
|
|
58
|
-
'currencies': Array<Currency>;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof BrokerageSymbolSymbol
|
|
63
|
-
*/
|
|
64
|
-
'figi_code'?: string | null;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {SymbolFigiInstrument}
|
|
68
|
-
* @memberof BrokerageSymbolSymbol
|
|
69
|
-
*/
|
|
70
|
-
'figi_instrument'?: SymbolFigiInstrument | null;
|
|
71
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { BrokerageAuthorization } from './brokerage-authorization';
|
|
2
|
-
import { BrokerageSymbolOptionSymbol } from './brokerage-symbol-option-symbol';
|
|
3
|
-
import { BrokerageSymbolSymbol } from './brokerage-symbol-symbol';
|
|
4
|
-
/**
|
|
5
|
-
* Brokerage symbol
|
|
6
|
-
* @export
|
|
7
|
-
* @interface BrokerageSymbol
|
|
8
|
-
*/
|
|
9
|
-
export interface BrokerageSymbol {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @type {string}
|
|
14
|
-
* @memberof BrokerageSymbol
|
|
15
|
-
*/
|
|
16
|
-
'id'?: string;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @type {BrokerageSymbolSymbol}
|
|
20
|
-
* @memberof BrokerageSymbol
|
|
21
|
-
*/
|
|
22
|
-
'symbol'?: BrokerageSymbolSymbol | null;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {BrokerageAuthorization}
|
|
26
|
-
* @memberof BrokerageSymbol
|
|
27
|
-
*/
|
|
28
|
-
'brokerage_authorization'?: BrokerageAuthorization;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof BrokerageSymbol
|
|
33
|
-
*/
|
|
34
|
-
'description'?: string;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {boolean}
|
|
38
|
-
* @memberof BrokerageSymbol
|
|
39
|
-
*/
|
|
40
|
-
'allows_fractional_units'?: boolean | null;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {BrokerageSymbolOptionSymbol}
|
|
44
|
-
* @memberof BrokerageSymbol
|
|
45
|
-
*/
|
|
46
|
-
'option_symbol'?: BrokerageSymbolOptionSymbol | null;
|
|
47
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Trade } from './trade';
|
|
2
|
-
/**
|
|
3
|
-
* Array of trades to make to rebalance portfolio
|
|
4
|
-
* @export
|
|
5
|
-
* @interface CalculatedTrade
|
|
6
|
-
*/
|
|
7
|
-
export interface CalculatedTrade {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof CalculatedTrade
|
|
13
|
-
*/
|
|
14
|
-
'id'?: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {Array<Trade>}
|
|
18
|
-
* @memberof CalculatedTrade
|
|
19
|
-
*/
|
|
20
|
-
'trades'?: Array<Trade>;
|
|
21
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cash restriction rules that apply to this account when undergoing portfolio rebalance calculations.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface CashRestriction
|
|
5
|
-
*/
|
|
6
|
-
export interface CashRestriction {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof CashRestriction
|
|
12
|
-
*/
|
|
13
|
-
'id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof CashRestriction
|
|
18
|
-
*/
|
|
19
|
-
'account'?: string;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof CashRestriction
|
|
24
|
-
*/
|
|
25
|
-
'currency'?: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof CashRestriction
|
|
30
|
-
*/
|
|
31
|
-
'type'?: CashRestrictionTypeEnum;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {number}
|
|
35
|
-
* @memberof CashRestriction
|
|
36
|
-
*/
|
|
37
|
-
'amount'?: number;
|
|
38
|
-
}
|
|
39
|
-
type CashRestrictionTypeEnum = 'ALLOCATE_MAX' | 'RETAIN_MIN';
|
|
40
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
2
|
-
/**
|
|
3
|
-
* An excluded asset in a portfolio group
|
|
4
|
-
* @export
|
|
5
|
-
* @interface ExcludedAsset
|
|
6
|
-
*/
|
|
7
|
-
export interface ExcludedAsset {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {UniversalSymbol}
|
|
12
|
-
* @memberof ExcludedAsset
|
|
13
|
-
*/
|
|
14
|
-
'symbol'?: UniversalSymbol;
|
|
15
|
-
}
|
package/dist/models/jwt.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JWT Token. Used to acess resources in private endpoints available only through the Passiv app
|
|
3
|
-
* @export
|
|
4
|
-
* @interface JWT
|
|
5
|
-
*/
|
|
6
|
-
export interface JWT {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof JWT
|
|
12
|
-
*/
|
|
13
|
-
'token'?: string;
|
|
14
|
-
}
|
package/dist/models/jwt.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ModelAssetClass } from './model-asset-class';
|
|
2
|
-
import { ModelAssetClassTarget } from './model-asset-class-target';
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
|
-
* @interface ModelAssetClassDetails
|
|
7
|
-
*/
|
|
8
|
-
export interface ModelAssetClassDetails {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @type {ModelAssetClass}
|
|
13
|
-
* @memberof ModelAssetClassDetails
|
|
14
|
-
*/
|
|
15
|
-
'model_asset_class'?: ModelAssetClass;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @type {Array<ModelAssetClassTarget>}
|
|
19
|
-
* @memberof ModelAssetClassDetails
|
|
20
|
-
*/
|
|
21
|
-
'model_asset_class_target'?: Array<ModelAssetClassTarget>;
|
|
22
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface ModelAssetClassTarget
|
|
6
|
-
*/
|
|
7
|
-
export interface ModelAssetClassTarget {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {UniversalSymbol}
|
|
12
|
-
* @memberof ModelAssetClassTarget
|
|
13
|
-
*/
|
|
14
|
-
'symbol'?: UniversalSymbol;
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface ModelAssetClass
|
|
5
|
-
*/
|
|
6
|
-
export interface ModelAssetClass {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof ModelAssetClass
|
|
12
|
-
*/
|
|
13
|
-
'id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof ModelAssetClass
|
|
18
|
-
*/
|
|
19
|
-
'name'?: string;
|
|
20
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ModelAssetClass } from './model-asset-class';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface ModelPortfolioAssetClass
|
|
6
|
-
*/
|
|
7
|
-
export interface ModelPortfolioAssetClass {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {ModelAssetClass}
|
|
12
|
-
* @memberof ModelPortfolioAssetClass
|
|
13
|
-
*/
|
|
14
|
-
'model_asset_class'?: ModelAssetClass;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {number}
|
|
18
|
-
* @memberof ModelPortfolioAssetClass
|
|
19
|
-
*/
|
|
20
|
-
'percent'?: number;
|
|
21
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ModelPortfolio } from './model-portfolio';
|
|
2
|
-
import { ModelPortfolioAssetClass } from './model-portfolio-asset-class';
|
|
3
|
-
import { ModelPortfolioSecurity } from './model-portfolio-security';
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
|
-
* @interface ModelPortfolioDetails
|
|
8
|
-
*/
|
|
9
|
-
export interface ModelPortfolioDetails {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @type {ModelPortfolio}
|
|
14
|
-
* @memberof ModelPortfolioDetails
|
|
15
|
-
*/
|
|
16
|
-
'model_portfolio'?: ModelPortfolio;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @type {Array<ModelPortfolioSecurity>}
|
|
20
|
-
* @memberof ModelPortfolioDetails
|
|
21
|
-
*/
|
|
22
|
-
'model_portfolio_security'?: Array<ModelPortfolioSecurity>;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {Array<ModelPortfolioAssetClass>}
|
|
26
|
-
* @memberof ModelPortfolioDetails
|
|
27
|
-
*/
|
|
28
|
-
'model_portfolio_asset_class'?: Array<ModelPortfolioAssetClass>;
|
|
29
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface ModelPortfolioSecurity
|
|
6
|
-
*/
|
|
7
|
-
export interface ModelPortfolioSecurity {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {UniversalSymbol}
|
|
12
|
-
* @memberof ModelPortfolioSecurity
|
|
13
|
-
*/
|
|
14
|
-
'symbol'?: UniversalSymbol;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {number}
|
|
18
|
-
* @memberof ModelPortfolioSecurity
|
|
19
|
-
*/
|
|
20
|
-
'percent'?: number;
|
|
21
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface ModelPortfolio
|
|
5
|
-
*/
|
|
6
|
-
export interface ModelPortfolio {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof ModelPortfolio
|
|
12
|
-
*/
|
|
13
|
-
'id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof ModelPortfolio
|
|
18
|
-
*/
|
|
19
|
-
'name'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Enum definitions -> [-1: Unassigned, 0: Security Model Portfolio, 1: Asset Class Portfolio]
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof ModelPortfolio
|
|
24
|
-
*/
|
|
25
|
-
'model_type'?: ModelPortfolioModelTypeEnum;
|
|
26
|
-
}
|
|
27
|
-
type ModelPortfolioModelTypeEnum = -1 | 0 | 1;
|
|
28
|
-
export {};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Balance } from './balance';
|
|
2
|
-
import { BrokerageAuthorization } from './brokerage-authorization';
|
|
3
|
-
import { CalculatedTrade } from './calculated-trade';
|
|
4
|
-
import { ExcludedAsset } from './excluded-asset';
|
|
5
|
-
import { PortfolioGroupSettings } from './portfolio-group-settings';
|
|
6
|
-
import { Position } from './position';
|
|
7
|
-
import { TargetAsset } from './target-asset';
|
|
8
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
9
|
-
/**
|
|
10
|
-
* Summary of all relevant information about a portfolio group.
|
|
11
|
-
* @export
|
|
12
|
-
* @interface PortfolioGroupInfo
|
|
13
|
-
*/
|
|
14
|
-
export interface PortfolioGroupInfo {
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @type {Array<UniversalSymbol>}
|
|
19
|
-
* @memberof PortfolioGroupInfo
|
|
20
|
-
*/
|
|
21
|
-
'symbols'?: Array<UniversalSymbol>;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<UniversalSymbol>}
|
|
25
|
-
* @memberof PortfolioGroupInfo
|
|
26
|
-
*/
|
|
27
|
-
'quotable_symbols'?: Array<UniversalSymbol>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {Array<Balance>}
|
|
31
|
-
* @memberof PortfolioGroupInfo
|
|
32
|
-
*/
|
|
33
|
-
'balances'?: Array<Balance>;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {Array<Position>}
|
|
37
|
-
* @memberof PortfolioGroupInfo
|
|
38
|
-
*/
|
|
39
|
-
'positions'?: Array<Position>;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {Array<TargetAsset>}
|
|
43
|
-
* @memberof PortfolioGroupInfo
|
|
44
|
-
*/
|
|
45
|
-
'target_positions'?: Array<TargetAsset>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {Array<Position>}
|
|
49
|
-
* @memberof PortfolioGroupInfo
|
|
50
|
-
*/
|
|
51
|
-
'ideal_positions'?: Array<Position>;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {Array<ExcludedAsset>}
|
|
55
|
-
* @memberof PortfolioGroupInfo
|
|
56
|
-
*/
|
|
57
|
-
'excluded_positions'?: Array<ExcludedAsset>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<CalculatedTrade>}
|
|
61
|
-
* @memberof PortfolioGroupInfo
|
|
62
|
-
*/
|
|
63
|
-
'calculated_trades'?: Array<CalculatedTrade>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {Array<BrokerageAuthorization>}
|
|
67
|
-
* @memberof PortfolioGroupInfo
|
|
68
|
-
*/
|
|
69
|
-
'brokerage_authorizations'?: Array<BrokerageAuthorization>;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {number}
|
|
73
|
-
* @memberof PortfolioGroupInfo
|
|
74
|
-
*/
|
|
75
|
-
'accuracy'?: number;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {PortfolioGroupSettings}
|
|
79
|
-
* @memberof PortfolioGroupInfo
|
|
80
|
-
*/
|
|
81
|
-
'settings'?: PortfolioGroupSettings;
|
|
82
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
2
|
-
/**
|
|
3
|
-
* Details of a security held
|
|
4
|
-
* @export
|
|
5
|
-
* @interface PortfolioGroupPosition
|
|
6
|
-
*/
|
|
7
|
-
export interface PortfolioGroupPosition {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {UniversalSymbol}
|
|
12
|
-
* @memberof PortfolioGroupPosition
|
|
13
|
-
*/
|
|
14
|
-
'symbol'?: UniversalSymbol;
|
|
15
|
-
/**
|
|
16
|
-
* Last known market price for the symbol
|
|
17
|
-
* @type {number}
|
|
18
|
-
* @memberof PortfolioGroupPosition
|
|
19
|
-
*/
|
|
20
|
-
'price'?: number | null;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @memberof PortfolioGroupPosition
|
|
25
|
-
*/
|
|
26
|
-
'units'?: number;
|
|
27
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Currency } from './currency';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface PortfolioGroupSettings
|
|
6
|
-
*/
|
|
7
|
-
export interface PortfolioGroupSettings {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {boolean}
|
|
12
|
-
* @memberof PortfolioGroupSettings
|
|
13
|
-
*/
|
|
14
|
-
'buyOnly'?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {boolean}
|
|
18
|
-
* @memberof PortfolioGroupSettings
|
|
19
|
-
*/
|
|
20
|
-
'cash_optimizer'?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof PortfolioGroupSettings
|
|
25
|
-
*/
|
|
26
|
-
'notifyFrequency'?: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {number}
|
|
30
|
-
* @memberof PortfolioGroupSettings
|
|
31
|
-
*/
|
|
32
|
-
'driftThreshold'?: number;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {Currency}
|
|
36
|
-
* @memberof PortfolioGroupSettings
|
|
37
|
-
*/
|
|
38
|
-
'preferred_currency'?: Currency;
|
|
39
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface PortfolioGroup
|
|
5
|
-
*/
|
|
6
|
-
export interface PortfolioGroup {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof PortfolioGroup
|
|
12
|
-
*/
|
|
13
|
-
'id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof PortfolioGroup
|
|
18
|
-
*/
|
|
19
|
-
'name'?: string;
|
|
20
|
-
}
|