snaptrade-typescript-sdk 9.0.32 → 9.0.33

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.
Files changed (88) hide show
  1. package/README.md +3 -1
  2. package/dist/api/account-information-api-generated.d.ts +4 -4
  3. package/dist/api/account-information-api-generated.js +4 -4
  4. package/dist/browser.js +1 -1
  5. package/dist/configuration.js +1 -1
  6. package/dist/models/account-holdings-account.d.ts +1 -1
  7. package/dist/models/account-order-record-status.d.ts +1 -1
  8. package/dist/models/account-order-record.d.ts +5 -4
  9. package/dist/models/exchange.d.ts +9 -9
  10. package/dist/models/figi-instrument.d.ts +3 -3
  11. package/dist/models/index.d.ts +4 -31
  12. package/dist/models/index.js +4 -31
  13. package/dist/models/option-brokerage-symbol.d.ts +5 -3
  14. package/dist/models/options-position-currency.d.ts +1 -1
  15. package/dist/models/options-position.d.ts +2 -1
  16. package/dist/models/options-symbol.d.ts +7 -19
  17. package/dist/models/position-symbol.d.ts +11 -6
  18. package/dist/models/security-type.d.ts +6 -5
  19. package/dist/models/symbol-figi-instrument.d.ts +2 -2
  20. package/dist/models/underlying-symbol-exchange.d.ts +61 -0
  21. package/dist/models/underlying-symbol-type.d.ts +32 -0
  22. package/dist/models/underlying-symbol.d.ts +22 -14
  23. package/dist/models/universal-symbol-currency.d.ts +25 -0
  24. package/dist/models/universal-symbol-exchange.d.ts +55 -0
  25. package/dist/models/universal-symbol.d.ts +14 -12
  26. package/package.json +1 -1
  27. package/dist/models/brokerage-authorization-type.d.ts +0 -16
  28. package/dist/models/brokerage-symbol-option-symbol.d.ts +0 -64
  29. package/dist/models/brokerage-symbol-symbol.d.ts +0 -71
  30. package/dist/models/brokerage-symbol.d.ts +0 -47
  31. package/dist/models/calculated-trade.d.ts +0 -21
  32. package/dist/models/calculated-trade.js +0 -2
  33. package/dist/models/excluded-asset.d.ts +0 -15
  34. package/dist/models/excluded-asset.js +0 -2
  35. package/dist/models/jwt.d.ts +0 -14
  36. package/dist/models/jwt.js +0 -2
  37. package/dist/models/model-asset-class-details.d.ts +0 -22
  38. package/dist/models/model-asset-class-details.js +0 -2
  39. package/dist/models/model-asset-class-target.d.ts +0 -15
  40. package/dist/models/model-asset-class-target.js +0 -2
  41. package/dist/models/model-asset-class.d.ts +0 -20
  42. package/dist/models/model-asset-class.js +0 -2
  43. package/dist/models/model-portfolio-asset-class.d.ts +0 -21
  44. package/dist/models/model-portfolio-asset-class.js +0 -2
  45. package/dist/models/model-portfolio-details.d.ts +0 -29
  46. package/dist/models/model-portfolio-details.js +0 -2
  47. package/dist/models/model-portfolio-security.d.ts +0 -21
  48. package/dist/models/model-portfolio-security.js +0 -2
  49. package/dist/models/model-portfolio.d.ts +0 -28
  50. package/dist/models/model-portfolio.js +0 -2
  51. package/dist/models/portfolio-group-info.d.ts +0 -82
  52. package/dist/models/portfolio-group-info.js +0 -2
  53. package/dist/models/portfolio-group-position.d.ts +0 -27
  54. package/dist/models/portfolio-group-position.js +0 -2
  55. package/dist/models/portfolio-group-settings.d.ts +0 -39
  56. package/dist/models/portfolio-group-settings.js +0 -2
  57. package/dist/models/portfolio-group.d.ts +0 -20
  58. package/dist/models/portfolio-group.js +0 -2
  59. package/dist/models/redirect-tokenand-pin.d.ts +0 -20
  60. package/dist/models/redirect-tokenand-pin.js +0 -2
  61. package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +0 -20
  62. package/dist/models/snap-trade-apidisclaimer-accept-status.js +0 -2
  63. package/dist/models/strategy-impact-legs-inner.d.ts +0 -50
  64. package/dist/models/strategy-impact-legs-inner.js +0 -2
  65. package/dist/models/strategy-impact.d.ts +0 -75
  66. package/dist/models/strategy-impact.js +0 -2
  67. package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +0 -50
  68. package/dist/models/strategy-order-place-orders-inner-legs-inner.js +0 -2
  69. package/dist/models/strategy-order-place-orders-inner.d.ts +0 -267
  70. package/dist/models/strategy-order-place-orders-inner.js +0 -2
  71. package/dist/models/strategy-order-place.d.ts +0 -21
  72. package/dist/models/strategy-order-place.js +0 -2
  73. package/dist/models/target-asset.d.ts +0 -47
  74. package/dist/models/target-asset.js +0 -2
  75. package/dist/models/trade-execution-status.d.ts +0 -70
  76. package/dist/models/trade-execution-status.js +0 -2
  77. package/dist/models/trade-impact.d.ts +0 -40
  78. package/dist/models/trade-impact.js +0 -2
  79. package/dist/models/trade.d.ts +0 -61
  80. package/dist/models/trade.js +0 -2
  81. package/dist/models/user-error-log.d.ts +0 -44
  82. package/dist/models/user-error-log.js +0 -2
  83. package/dist/models/user-settings.d.ts +0 -69
  84. package/dist/models/user-settings.js +0 -2
  85. /package/dist/models/{brokerage-authorization-type.js → underlying-symbol-exchange.js} +0 -0
  86. /package/dist/models/{brokerage-symbol-option-symbol.js → underlying-symbol-type.js} +0 -0
  87. /package/dist/models/{brokerage-symbol-symbol.js → universal-symbol-currency.js} +0 -0
  88. /package/dist/models/{brokerage-symbol.js → universal-symbol-exchange.js} +0 -0
@@ -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.32/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/9.0.33/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
@@ -5,7 +5,7 @@ import { Position } from './position';
5
5
  import { SnapTradeHoldingsAccountAccountId } from './snap-trade-holdings-account-account-id';
6
6
  import { SnapTradeHoldingsTotalValue } from './snap-trade-holdings-total-value';
7
7
  /**
8
- * A wrapper object containing holdings information for a single account
8
+ * A wrapper object containing holdings information for a single account.
9
9
  * @export
10
10
  * @interface AccountHoldingsAccount
11
11
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ * Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
3
3
  * @export
4
4
  * @enum {string}
5
5
  */
@@ -2,28 +2,29 @@ import { AccountOrderRecordStatus } from './account-order-record-status';
2
2
  import { OptionsSymbol } from './options-symbol';
3
3
  import { UniversalSymbol } from './universal-symbol';
4
4
  /**
5
- * Record of order in brokerageaccount
5
+ * Describes a single recent order in an account.
6
6
  * @export
7
7
  * @interface AccountOrderRecord
8
8
  */
9
9
  export interface AccountOrderRecord {
10
10
  [key: string]: any;
11
11
  /**
12
- * Order id returned by brokerage
12
+ * Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
13
13
  * @type {string}
14
14
  * @memberof AccountOrderRecord
15
15
  */
16
16
  'brokerage_order_id'?: string;
17
17
  /**
18
- *
18
+ * Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
19
19
  * @type {AccountOrderRecordStatus}
20
20
  * @memberof AccountOrderRecord
21
21
  */
22
22
  'status'?: AccountOrderRecordStatus;
23
23
  /**
24
- *
24
+ * A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
25
25
  * @type {string}
26
26
  * @memberof AccountOrderRecord
27
+ * @deprecated
27
28
  */
28
29
  'symbol'?: string;
29
30
  /**
@@ -1,54 +1,54 @@
1
1
  /**
2
- * Stock Exchange
2
+ * Describes a single stock or crypto exchange.
3
3
  * @export
4
4
  * @interface Exchange
5
5
  */
6
6
  export interface Exchange {
7
7
  [key: string]: any;
8
8
  /**
9
- *
9
+ * Unique ID for the exchange in SnapTrade.
10
10
  * @type {string}
11
11
  * @memberof Exchange
12
12
  */
13
13
  'id'?: string;
14
14
  /**
15
- *
15
+ * A short name for the exchange. For standardized exchange code, please us the `mic_code` field.
16
16
  * @type {string}
17
17
  * @memberof Exchange
18
18
  */
19
19
  'code'?: string;
20
20
  /**
21
- *
21
+ * The [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) (MIC) for the exchange.
22
22
  * @type {string}
23
23
  * @memberof Exchange
24
24
  */
25
25
  'mic_code'?: string;
26
26
  /**
27
- *
27
+ * The full name of the exchange.
28
28
  * @type {string}
29
29
  * @memberof Exchange
30
30
  */
31
31
  'name'?: string;
32
32
  /**
33
- *
33
+ * The timezone for the trading hours (`start_time` and `close_time`) of the exchange.
34
34
  * @type {string}
35
35
  * @memberof Exchange
36
36
  */
37
37
  'timezone'?: string;
38
38
  /**
39
- *
39
+ * The time when the exchange opens for trading.
40
40
  * @type {string}
41
41
  * @memberof Exchange
42
42
  */
43
43
  'start_time'?: string;
44
44
  /**
45
- *
45
+ * The time when the exchange closes for trading.
46
46
  * @type {string}
47
47
  * @memberof Exchange
48
48
  */
49
49
  'close_time'?: string;
50
50
  /**
51
- *
51
+ * The suffix to be appended to the symbol when trading on this exchange. For example, the suffix for the Toronto Stock Exchange is `.TO`. See `UniversalSymbol->symbol` and `UniversalSymbol->raw_symbol` for more detail.
52
52
  * @type {string}
53
53
  * @memberof Exchange
54
54
  */
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Open FIGI Identifiers
2
+ * Financial Instrument Global Identifier (FIGI) information for the security. See [OpenFIGI](https://www.openfigi.com/) for more information.
3
3
  * @export
4
4
  * @interface FigiInstrument
5
5
  */
6
6
  export interface FigiInstrument {
7
7
  [key: string]: any;
8
8
  /**
9
- *
9
+ * This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information.
10
10
  * @type {string}
11
11
  * @memberof FigiInstrument
12
12
  */
13
13
  'figi_code'?: string | null;
14
14
  /**
15
- *
15
+ * This enables users to link multiple FIGIs for the same security in order to obtain an aggregated view across all countries and all exchanges. For example, `AAPL` has a different FIGI for each exchange/trading venue it is traded on. The `figi_share_class` is the same for all of these FIGIs. See section 1.4.3 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information.
16
16
  * @type {string}
17
17
  * @memberof FigiInstrument
18
18
  */
@@ -15,14 +15,9 @@ export * from './brokerage';
15
15
  export * from './brokerage-authorization';
16
16
  export * from './brokerage-authorization-disabled-confirmation';
17
17
  export * from './brokerage-authorization-refresh-confirmation';
18
- export * from './brokerage-authorization-type';
19
18
  export * from './brokerage-authorization-type-read-only';
20
19
  export * from './brokerage-authorization-type-read-only-brokerage';
21
- export * from './brokerage-symbol';
22
- export * from './brokerage-symbol-option-symbol';
23
- export * from './brokerage-symbol-symbol';
24
20
  export * from './brokerage-type';
25
- export * from './calculated-trade';
26
21
  export * from './cash-restriction';
27
22
  export * from './connections-session-events200-response-inner';
28
23
  export * from './currency';
@@ -32,10 +27,8 @@ export * from './encrypted-response';
32
27
  export * from './encrypted-response-encrypted-message-data';
33
28
  export * from './exchange';
34
29
  export * from './exchange-rate-pairs';
35
- export * from './excluded-asset';
36
30
  export * from './figi-instrument';
37
31
  export * from './holdings-status';
38
- export * from './jwt';
39
32
  export * from './login-redirect-uri';
40
33
  export * from './manual-trade';
41
34
  export * from './manual-trade-and-impact';
@@ -51,13 +44,6 @@ export * from './model403-failed-request-response';
51
44
  export * from './model403-feature-not-enabled-response';
52
45
  export * from './model404-failed-request-response';
53
46
  export * from './model500-unexpected-exception-response';
54
- export * from './model-asset-class';
55
- export * from './model-asset-class-details';
56
- export * from './model-asset-class-target';
57
- export * from './model-portfolio';
58
- export * from './model-portfolio-asset-class';
59
- export * from './model-portfolio-details';
60
- export * from './model-portfolio-security';
61
47
  export * from './monthly-dividends';
62
48
  export * from './net-contributions';
63
49
  export * from './net-dividend';
@@ -78,16 +64,10 @@ export * from './order-type-strict';
78
64
  export * from './partner-data';
79
65
  export * from './past-value';
80
66
  export * from './performance-custom';
81
- export * from './portfolio-group';
82
- export * from './portfolio-group-info';
83
- export * from './portfolio-group-position';
84
- export * from './portfolio-group-settings';
85
67
  export * from './position';
86
68
  export * from './position-symbol';
87
- export * from './redirect-tokenand-pin';
88
69
  export * from './security-type';
89
70
  export * from './session-event';
90
- export * from './snap-trade-apidisclaimer-accept-status';
91
71
  export * from './snap-trade-holdings-account';
92
72
  export * from './snap-trade-holdings-account-account-id';
93
73
  export * from './snap-trade-holdings-account-account-id-balance';
@@ -95,11 +75,6 @@ export * from './snap-trade-holdings-total-value';
95
75
  export * from './snap-trade-login-user-request-body';
96
76
  export * from './snap-trade-register-user-request-body';
97
77
  export * from './status';
98
- export * from './strategy-impact';
99
- export * from './strategy-impact-legs-inner';
100
- export * from './strategy-order-place';
101
- export * from './strategy-order-place-orders-inner';
102
- export * from './strategy-order-place-orders-inner-legs-inner';
103
78
  export * from './strategy-order-record';
104
79
  export * from './strategy-quotes';
105
80
  export * from './strategy-quotes-greek';
@@ -108,18 +83,16 @@ export * from './symbol';
108
83
  export * from './symbol-figi-instrument';
109
84
  export * from './symbol-query';
110
85
  export * from './symbols-quotes-inner';
111
- export * from './target-asset';
112
86
  export * from './time-in-force-strict';
113
- export * from './trade';
114
- export * from './trade-execution-status';
115
- export * from './trade-impact';
116
87
  export * from './trading-cancel-user-account-order-request';
117
88
  export * from './transactions-status';
118
89
  export * from './usexchange';
119
90
  export * from './underlying-symbol';
91
+ export * from './underlying-symbol-exchange';
92
+ export * from './underlying-symbol-type';
120
93
  export * from './universal-activity';
121
94
  export * from './universal-symbol';
122
- export * from './user-error-log';
95
+ export * from './universal-symbol-currency';
96
+ export * from './universal-symbol-exchange';
123
97
  export * from './user-idand-secret';
124
- export * from './user-settings';
125
98
  export * from './validated-trade-body';
@@ -31,14 +31,9 @@ __exportStar(require("./brokerage"), exports);
31
31
  __exportStar(require("./brokerage-authorization"), exports);
32
32
  __exportStar(require("./brokerage-authorization-disabled-confirmation"), exports);
33
33
  __exportStar(require("./brokerage-authorization-refresh-confirmation"), exports);
34
- __exportStar(require("./brokerage-authorization-type"), exports);
35
34
  __exportStar(require("./brokerage-authorization-type-read-only"), exports);
36
35
  __exportStar(require("./brokerage-authorization-type-read-only-brokerage"), exports);
37
- __exportStar(require("./brokerage-symbol"), exports);
38
- __exportStar(require("./brokerage-symbol-option-symbol"), exports);
39
- __exportStar(require("./brokerage-symbol-symbol"), exports);
40
36
  __exportStar(require("./brokerage-type"), exports);
41
- __exportStar(require("./calculated-trade"), exports);
42
37
  __exportStar(require("./cash-restriction"), exports);
43
38
  __exportStar(require("./connections-session-events200-response-inner"), exports);
44
39
  __exportStar(require("./currency"), exports);
@@ -48,10 +43,8 @@ __exportStar(require("./encrypted-response"), exports);
48
43
  __exportStar(require("./encrypted-response-encrypted-message-data"), exports);
49
44
  __exportStar(require("./exchange"), exports);
50
45
  __exportStar(require("./exchange-rate-pairs"), exports);
51
- __exportStar(require("./excluded-asset"), exports);
52
46
  __exportStar(require("./figi-instrument"), exports);
53
47
  __exportStar(require("./holdings-status"), exports);
54
- __exportStar(require("./jwt"), exports);
55
48
  __exportStar(require("./login-redirect-uri"), exports);
56
49
  __exportStar(require("./manual-trade"), exports);
57
50
  __exportStar(require("./manual-trade-and-impact"), exports);
@@ -67,13 +60,6 @@ __exportStar(require("./model403-failed-request-response"), exports);
67
60
  __exportStar(require("./model403-feature-not-enabled-response"), exports);
68
61
  __exportStar(require("./model404-failed-request-response"), exports);
69
62
  __exportStar(require("./model500-unexpected-exception-response"), exports);
70
- __exportStar(require("./model-asset-class"), exports);
71
- __exportStar(require("./model-asset-class-details"), exports);
72
- __exportStar(require("./model-asset-class-target"), exports);
73
- __exportStar(require("./model-portfolio"), exports);
74
- __exportStar(require("./model-portfolio-asset-class"), exports);
75
- __exportStar(require("./model-portfolio-details"), exports);
76
- __exportStar(require("./model-portfolio-security"), exports);
77
63
  __exportStar(require("./monthly-dividends"), exports);
78
64
  __exportStar(require("./net-contributions"), exports);
79
65
  __exportStar(require("./net-dividend"), exports);
@@ -94,16 +80,10 @@ __exportStar(require("./order-type-strict"), exports);
94
80
  __exportStar(require("./partner-data"), exports);
95
81
  __exportStar(require("./past-value"), exports);
96
82
  __exportStar(require("./performance-custom"), exports);
97
- __exportStar(require("./portfolio-group"), exports);
98
- __exportStar(require("./portfolio-group-info"), exports);
99
- __exportStar(require("./portfolio-group-position"), exports);
100
- __exportStar(require("./portfolio-group-settings"), exports);
101
83
  __exportStar(require("./position"), exports);
102
84
  __exportStar(require("./position-symbol"), exports);
103
- __exportStar(require("./redirect-tokenand-pin"), exports);
104
85
  __exportStar(require("./security-type"), exports);
105
86
  __exportStar(require("./session-event"), exports);
106
- __exportStar(require("./snap-trade-apidisclaimer-accept-status"), exports);
107
87
  __exportStar(require("./snap-trade-holdings-account"), exports);
108
88
  __exportStar(require("./snap-trade-holdings-account-account-id"), exports);
109
89
  __exportStar(require("./snap-trade-holdings-account-account-id-balance"), exports);
@@ -111,11 +91,6 @@ __exportStar(require("./snap-trade-holdings-total-value"), exports);
111
91
  __exportStar(require("./snap-trade-login-user-request-body"), exports);
112
92
  __exportStar(require("./snap-trade-register-user-request-body"), exports);
113
93
  __exportStar(require("./status"), exports);
114
- __exportStar(require("./strategy-impact"), exports);
115
- __exportStar(require("./strategy-impact-legs-inner"), exports);
116
- __exportStar(require("./strategy-order-place"), exports);
117
- __exportStar(require("./strategy-order-place-orders-inner"), exports);
118
- __exportStar(require("./strategy-order-place-orders-inner-legs-inner"), exports);
119
94
  __exportStar(require("./strategy-order-record"), exports);
120
95
  __exportStar(require("./strategy-quotes"), exports);
121
96
  __exportStar(require("./strategy-quotes-greek"), exports);
@@ -124,18 +99,16 @@ __exportStar(require("./symbol"), exports);
124
99
  __exportStar(require("./symbol-figi-instrument"), exports);
125
100
  __exportStar(require("./symbol-query"), exports);
126
101
  __exportStar(require("./symbols-quotes-inner"), exports);
127
- __exportStar(require("./target-asset"), exports);
128
102
  __exportStar(require("./time-in-force-strict"), exports);
129
- __exportStar(require("./trade"), exports);
130
- __exportStar(require("./trade-execution-status"), exports);
131
- __exportStar(require("./trade-impact"), exports);
132
103
  __exportStar(require("./trading-cancel-user-account-order-request"), exports);
133
104
  __exportStar(require("./transactions-status"), exports);
134
105
  __exportStar(require("./usexchange"), exports);
135
106
  __exportStar(require("./underlying-symbol"), exports);
107
+ __exportStar(require("./underlying-symbol-exchange"), exports);
108
+ __exportStar(require("./underlying-symbol-type"), exports);
136
109
  __exportStar(require("./universal-activity"), exports);
137
110
  __exportStar(require("./universal-symbol"), exports);
138
- __exportStar(require("./user-error-log"), exports);
111
+ __exportStar(require("./universal-symbol-currency"), exports);
112
+ __exportStar(require("./universal-symbol-exchange"), exports);
139
113
  __exportStar(require("./user-idand-secret"), exports);
140
- __exportStar(require("./user-settings"), exports);
141
114
  __exportStar(require("./validated-trade-body"), exports);
@@ -1,21 +1,23 @@
1
1
  import { OptionsSymbol } from './options-symbol';
2
2
  /**
3
- * Option Brokerage symbol
3
+ * Uniquely describes a security for the option position within an account. The distinction between this and the `option_symbol` child property is that this object is specific to a position within an account, while the `option_symbol` child property is universal across all brokerage accounts. The caller should rely on the `option_symbol` child property for most use cases.
4
4
  * @export
5
5
  * @interface OptionBrokerageSymbol
6
6
  */
7
7
  export interface OptionBrokerageSymbol {
8
8
  [key: string]: any;
9
9
  /**
10
- *
10
+ * A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
11
11
  * @type {string}
12
12
  * @memberof OptionBrokerageSymbol
13
+ * @deprecated
13
14
  */
14
15
  'id'?: string;
15
16
  /**
16
- *
17
+ * This field is deprecated and the caller should use the `option_symbol` child property\'s `description` instead.
17
18
  * @type {string}
18
19
  * @memberof OptionBrokerageSymbol
20
+ * @deprecated
19
21
  */
20
22
  'description'?: string;
21
23
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ * The currency of the price. This field is deprecated and will be removed in a future version. The currency of the price is determined by the currency of the underlying security.
3
3
  * @export
4
4
  * @interface OptionsPositionCurrency
5
5
  */
@@ -20,7 +20,7 @@ export interface OptionsPosition {
20
20
  */
21
21
  'price'?: number | null;
22
22
  /**
23
- * The number of contracts for this option position.
23
+ * The number of contracts for this option position. A positive number indicates a long position, while a negative number indicates a short position.
24
24
  * @type {number}
25
25
  * @memberof OptionsPosition
26
26
  */
@@ -29,6 +29,7 @@ export interface OptionsPosition {
29
29
  *
30
30
  * @type {OptionsPositionCurrency}
31
31
  * @memberof OptionsPosition
32
+ * @deprecated
32
33
  */
33
34
  'currency'?: OptionsPositionCurrency | null;
34
35
  /**
@@ -1,43 +1,43 @@
1
1
  import { UnderlyingSymbol } from './underlying-symbol';
2
2
  /**
3
- * Options Symbol
3
+ * Uniquely describes an option security + exchange combination across all brokerages.
4
4
  * @export
5
5
  * @interface OptionsSymbol
6
6
  */
7
7
  export interface OptionsSymbol {
8
8
  [key: string]: any;
9
9
  /**
10
- *
10
+ * Unique identifier for the option symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
11
11
  * @type {string}
12
12
  * @memberof OptionsSymbol
13
13
  */
14
14
  'id': string;
15
15
  /**
16
- *
16
+ * The [OCC symbol](https://en.wikipedia.org/wiki/Option_symbol) for the option.
17
17
  * @type {string}
18
18
  * @memberof OptionsSymbol
19
19
  */
20
20
  'ticker': string;
21
21
  /**
22
- *
22
+ * The type of option. Either \"CALL\" or \"PUT\".
23
23
  * @type {string}
24
24
  * @memberof OptionsSymbol
25
25
  */
26
26
  'option_type': OptionsSymbolOptionTypeEnum;
27
27
  /**
28
- *
28
+ * The option strike price.
29
29
  * @type {number}
30
30
  * @memberof OptionsSymbol
31
31
  */
32
32
  'strike_price': number;
33
33
  /**
34
- *
34
+ * The option expiration date.
35
35
  * @type {string}
36
36
  * @memberof OptionsSymbol
37
37
  */
38
38
  'expiration_date': string;
39
39
  /**
40
- *
40
+ * Whether the option is a mini option. Mini options have 10 underlying shares per contract instead of the standard 100.
41
41
  * @type {boolean}
42
42
  * @memberof OptionsSymbol
43
43
  */
@@ -48,18 +48,6 @@ export interface OptionsSymbol {
48
48
  * @memberof OptionsSymbol
49
49
  */
50
50
  'underlying_symbol': UnderlyingSymbol;
51
- /**
52
- *
53
- * @type {string}
54
- * @memberof OptionsSymbol
55
- */
56
- 'local_id'?: string;
57
- /**
58
- *
59
- * @type {string}
60
- * @memberof OptionsSymbol
61
- */
62
- 'exchange_id'?: string;
63
51
  }
64
52
  type OptionsSymbolOptionTypeEnum = 'CALL' | 'PUT';
65
53
  export {};
@@ -1,21 +1,23 @@
1
1
  import { UniversalSymbol } from './universal-symbol';
2
2
  /**
3
- * Symbol returned in position object
3
+ * Uniquely describes a security for the position within an account. The distinction between this and the `symbol` child property is that this object is specific to a position within an account, while the `symbol` child property is universal across all brokerage accounts. The caller should rely on the `symbol` child property for most use cases.
4
4
  * @export
5
5
  * @interface PositionSymbol
6
6
  */
7
7
  export interface PositionSymbol {
8
8
  [key: string]: any;
9
9
  /**
10
- *
10
+ * A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
11
11
  * @type {string}
12
12
  * @memberof PositionSymbol
13
+ * @deprecated
13
14
  */
14
15
  'id'?: string;
15
16
  /**
16
- *
17
+ * This field is deprecated and the caller should use the `symbol` child property\'s `description` instead.
17
18
  * @type {string}
18
19
  * @memberof PositionSymbol
20
+ * @deprecated
19
21
  */
20
22
  'description'?: string;
21
23
  /**
@@ -25,21 +27,24 @@ export interface PositionSymbol {
25
27
  */
26
28
  'symbol'?: UniversalSymbol;
27
29
  /**
28
- *
30
+ * This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid usecase for this.
29
31
  * @type {string}
30
32
  * @memberof PositionSymbol
33
+ * @deprecated
31
34
  */
32
35
  'local_id'?: string | null;
33
36
  /**
34
- *
37
+ * This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid usecase for this.
35
38
  * @type {boolean}
36
39
  * @memberof PositionSymbol
40
+ * @deprecated
37
41
  */
38
42
  'is_quotable'?: boolean;
39
43
  /**
40
- *
44
+ * This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid usecase for this.
41
45
  * @type {boolean}
42
46
  * @memberof PositionSymbol
47
+ * @deprecated
43
48
  */
44
49
  'is_tradable'?: boolean;
45
50
  }
@@ -1,32 +1,33 @@
1
1
  /**
2
- * Security Type
2
+ * The type of security. For example, \"Common Stock\" or \"ETF\".
3
3
  * @export
4
4
  * @interface SecurityType
5
5
  */
6
6
  export interface SecurityType {
7
7
  [key: string]: any;
8
8
  /**
9
- *
9
+ * Unique identifier for the security type within SnapTrade. This is the ID used to reference the security type in SnapTrade API calls.
10
10
  * @type {string}
11
11
  * @memberof SecurityType
12
12
  */
13
13
  'id'?: string;
14
14
  /**
15
- *
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
  */
19
19
  'code'?: string;
20
20
  /**
21
- *
21
+ * A human-readable description of the security type. For example, \"Common Stock\" or \"ETF\".
22
22
  * @type {string}
23
23
  * @memberof SecurityType
24
24
  */
25
25
  'description'?: string;
26
26
  /**
27
- *
27
+ * This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid usecase for this.
28
28
  * @type {boolean}
29
29
  * @memberof SecurityType
30
+ * @deprecated
30
31
  */
31
32
  'is_supported'?: boolean;
32
33
  }
@@ -5,13 +5,13 @@
5
5
  */
6
6
  export interface SymbolFigiInstrument {
7
7
  /**
8
- *
8
+ * This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information.
9
9
  * @type {string}
10
10
  * @memberof SymbolFigiInstrument
11
11
  */
12
12
  'figi_code'?: string | null;
13
13
  /**
14
- *
14
+ * This enables users to link multiple FIGIs for the same security in order to obtain an aggregated view across all countries and all exchanges. For example, `AAPL` has a different FIGI for each exchange/trading venue it is traded on. The `figi_share_class` is the same for all of these FIGIs. See section 1.4.3 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information.
15
15
  * @type {string}
16
16
  * @memberof SymbolFigiInstrument
17
17
  */
@@ -0,0 +1,61 @@
1
+ /**
2
+ * The exchange on which the security is listed and traded.
3
+ * @export
4
+ * @interface UnderlyingSymbolExchange
5
+ */
6
+ export interface UnderlyingSymbolExchange {
7
+ /**
8
+ *
9
+ * @type {string}
10
+ * @memberof UnderlyingSymbolExchange
11
+ */
12
+ 'id'?: string;
13
+ /**
14
+ *
15
+ * @type {string}
16
+ * @memberof UnderlyingSymbolExchange
17
+ */
18
+ 'code'?: string;
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof UnderlyingSymbolExchange
23
+ */
24
+ 'mic_code'?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof UnderlyingSymbolExchange
29
+ */
30
+ 'name'?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof UnderlyingSymbolExchange
35
+ */
36
+ 'timezone'?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof UnderlyingSymbolExchange
41
+ */
42
+ 'start_time'?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof UnderlyingSymbolExchange
47
+ */
48
+ 'close_time'?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof UnderlyingSymbolExchange
53
+ */
54
+ 'suffix'?: string | null;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof UnderlyingSymbolExchange
59
+ */
60
+ 'allows_cryptocurrency_symbols'?: boolean;
61
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * The type of security. For example, \"Common Stock\" or \"ETF\".
3
+ * @export
4
+ * @interface UnderlyingSymbolType
5
+ */
6
+ export interface UnderlyingSymbolType {
7
+ /**
8
+ * Unique identifier for the security type within SnapTrade. This is the ID used to reference the security type in SnapTrade API calls.
9
+ * @type {string}
10
+ * @memberof UnderlyingSymbolType
11
+ */
12
+ 'id'?: string;
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
15
+ * @type {string}
16
+ * @memberof UnderlyingSymbolType
17
+ */
18
+ 'code'?: string;
19
+ /**
20
+ * A human-readable description of the security type. For example, \"Common Stock\" or \"ETF\".
21
+ * @type {string}
22
+ * @memberof UnderlyingSymbolType
23
+ */
24
+ 'description'?: string;
25
+ /**
26
+ * This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid usecase for this.
27
+ * @type {boolean}
28
+ * @memberof UnderlyingSymbolType
29
+ * @deprecated
30
+ */
31
+ 'is_supported'?: boolean;
32
+ }