adaptic-backend 1.0.152 → 1.0.153

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 (146) hide show
  1. package/generated/typeStrings/Account.cjs +0 -370
  2. package/generated/typeStrings/Account.d.ts +1 -1
  3. package/generated/typeStrings/Account.d.ts.map +1 -1
  4. package/generated/typeStrings/Account.js.map +1 -1
  5. package/generated/typeStrings/Action.cjs +7 -822
  6. package/generated/typeStrings/Action.d.ts +1 -1
  7. package/generated/typeStrings/Action.d.ts.map +1 -1
  8. package/generated/typeStrings/Action.js.map +1 -1
  9. package/generated/typeStrings/Alert.cjs +0 -804
  10. package/generated/typeStrings/Alert.d.ts +1 -1
  11. package/generated/typeStrings/Alert.d.ts.map +1 -1
  12. package/generated/typeStrings/Alert.js.map +1 -1
  13. package/generated/typeStrings/AlpacaAccount.cjs +2 -1051
  14. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  15. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  16. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  17. package/generated/typeStrings/Asset.cjs +0 -975
  18. package/generated/typeStrings/Asset.d.ts +1 -1
  19. package/generated/typeStrings/Asset.d.ts.map +1 -1
  20. package/generated/typeStrings/Asset.js.map +1 -1
  21. package/generated/typeStrings/Authenticator.cjs +1 -382
  22. package/generated/typeStrings/Authenticator.d.ts +1 -1
  23. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  24. package/generated/typeStrings/Authenticator.js.map +1 -1
  25. package/generated/typeStrings/Customer.cjs +32 -290
  26. package/generated/typeStrings/Customer.d.ts +1 -1
  27. package/generated/typeStrings/Customer.d.ts.map +1 -1
  28. package/generated/typeStrings/Customer.js.map +1 -1
  29. package/generated/typeStrings/NewsArticle.cjs +0 -405
  30. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  31. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  32. package/generated/typeStrings/NewsArticle.js.map +1 -1
  33. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +1 -543
  34. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  35. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  36. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  37. package/generated/typeStrings/Order.cjs +4 -1006
  38. package/generated/typeStrings/Order.d.ts +1 -1
  39. package/generated/typeStrings/Order.d.ts.map +1 -1
  40. package/generated/typeStrings/Order.js.map +1 -1
  41. package/generated/typeStrings/Position.cjs +1 -961
  42. package/generated/typeStrings/Position.d.ts +1 -1
  43. package/generated/typeStrings/Position.d.ts.map +1 -1
  44. package/generated/typeStrings/Position.js.map +1 -1
  45. package/generated/typeStrings/Session.cjs +33 -286
  46. package/generated/typeStrings/Session.d.ts +1 -1
  47. package/generated/typeStrings/Session.d.ts.map +1 -1
  48. package/generated/typeStrings/Session.js.map +1 -1
  49. package/generated/typeStrings/StopLoss.cjs +7 -496
  50. package/generated/typeStrings/StopLoss.d.ts +1 -1
  51. package/generated/typeStrings/StopLoss.d.ts.map +1 -1
  52. package/generated/typeStrings/StopLoss.js.map +1 -1
  53. package/generated/typeStrings/TakeProfit.cjs +7 -496
  54. package/generated/typeStrings/TakeProfit.d.ts +1 -1
  55. package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  56. package/generated/typeStrings/TakeProfit.js.map +1 -1
  57. package/generated/typeStrings/Trade.cjs +38 -967
  58. package/generated/typeStrings/Trade.d.ts +1 -1
  59. package/generated/typeStrings/Trade.d.ts.map +1 -1
  60. package/generated/typeStrings/Trade.js.map +1 -1
  61. package/generated/typeStrings/User.cjs +4 -697
  62. package/generated/typeStrings/User.d.ts +1 -1
  63. package/generated/typeStrings/User.d.ts.map +1 -1
  64. package/generated/typeStrings/User.js.map +1 -1
  65. package/generated/typeStrings/VerificationToken.cjs +1 -6
  66. package/generated/typeStrings/VerificationToken.d.ts +1 -1
  67. package/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  68. package/generated/typeStrings/VerificationToken.js.map +1 -1
  69. package/generated/typeStrings/index.d.ts +17 -17
  70. package/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  71. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.cjs +1 -1
  72. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  73. package/package.json +1 -1
  74. package/server/generated/typeStrings/Account.d.ts +1 -1
  75. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  76. package/server/generated/typeStrings/Account.js.map +1 -1
  77. package/server/generated/typeStrings/Account.mjs +0 -370
  78. package/server/generated/typeStrings/Action.d.ts +1 -1
  79. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  80. package/server/generated/typeStrings/Action.js.map +1 -1
  81. package/server/generated/typeStrings/Action.mjs +7 -822
  82. package/server/generated/typeStrings/Alert.d.ts +1 -1
  83. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  84. package/server/generated/typeStrings/Alert.js.map +1 -1
  85. package/server/generated/typeStrings/Alert.mjs +0 -804
  86. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  87. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  88. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  89. package/server/generated/typeStrings/AlpacaAccount.mjs +2 -1051
  90. package/server/generated/typeStrings/Asset.d.ts +1 -1
  91. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  92. package/server/generated/typeStrings/Asset.js.map +1 -1
  93. package/server/generated/typeStrings/Asset.mjs +0 -975
  94. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  95. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  96. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  97. package/server/generated/typeStrings/Authenticator.mjs +1 -382
  98. package/server/generated/typeStrings/Customer.d.ts +1 -1
  99. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  100. package/server/generated/typeStrings/Customer.js.map +1 -1
  101. package/server/generated/typeStrings/Customer.mjs +32 -290
  102. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  103. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  104. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  105. package/server/generated/typeStrings/NewsArticle.mjs +0 -405
  106. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  107. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  108. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  109. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +1 -543
  110. package/server/generated/typeStrings/Order.d.ts +1 -1
  111. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  112. package/server/generated/typeStrings/Order.js.map +1 -1
  113. package/server/generated/typeStrings/Order.mjs +4 -1006
  114. package/server/generated/typeStrings/Position.d.ts +1 -1
  115. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  116. package/server/generated/typeStrings/Position.js.map +1 -1
  117. package/server/generated/typeStrings/Position.mjs +1 -961
  118. package/server/generated/typeStrings/Session.d.ts +1 -1
  119. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  120. package/server/generated/typeStrings/Session.js.map +1 -1
  121. package/server/generated/typeStrings/Session.mjs +33 -286
  122. package/server/generated/typeStrings/StopLoss.d.ts +1 -1
  123. package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
  124. package/server/generated/typeStrings/StopLoss.js.map +1 -1
  125. package/server/generated/typeStrings/StopLoss.mjs +7 -496
  126. package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
  127. package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  128. package/server/generated/typeStrings/TakeProfit.js.map +1 -1
  129. package/server/generated/typeStrings/TakeProfit.mjs +7 -496
  130. package/server/generated/typeStrings/Trade.d.ts +1 -1
  131. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  132. package/server/generated/typeStrings/Trade.js.map +1 -1
  133. package/server/generated/typeStrings/Trade.mjs +38 -967
  134. package/server/generated/typeStrings/User.d.ts +1 -1
  135. package/server/generated/typeStrings/User.d.ts.map +1 -1
  136. package/server/generated/typeStrings/User.js.map +1 -1
  137. package/server/generated/typeStrings/User.mjs +4 -697
  138. package/server/generated/typeStrings/VerificationToken.d.ts +1 -1
  139. package/server/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  140. package/server/generated/typeStrings/VerificationToken.js.map +1 -1
  141. package/server/generated/typeStrings/VerificationToken.mjs +1 -6
  142. package/server/generated/typeStrings/index.d.ts +17 -17
  143. package/server/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  144. package/server/generated/typegraphql-prisma/models/Trade.mjs +1 -1
  145. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  146. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.mjs +1 -1
@@ -48,609 +48,7 @@ export type Order = {
48
48
  filledAt?: Date;
49
49
  // Average price at which the order was filled.
50
50
  filledAvgPrice?: number;
51
- // The Alpaca account this order is associated with. TYPESTRING. GQL.
52
- alpacaAccount: {
53
- // The type of Alpaca account (PAPER or LIVE).
54
- type: AlpacaAccountType;
55
- // API key for authenticating requests to Alpaca. TYPESTRING.
56
- APIKey: string;
57
- // API secret for authenticating requests to Alpaca. TYPESTRING.
58
- APISecret: string;
59
- // JSON configuration settings for the Alpaca account.
60
- configuration?: any;
61
- // Indicates whether the market is currently open for trading.
62
- marketOpen: boolean;
63
- // Minimum order size for the account. TYPESTRING.
64
- minOrderSize: number;
65
- // Maximum order size for the account. TYPESTRING.
66
- maxOrderSize: number;
67
- // Minimum percentage change (from intraday high/low) to consider for a trade signal. TYPESTRING.
68
- minPercentageChange: number;
69
- // Volume threshold for a trade signal (minimum volume qualifier to consider an asset for trading). TYPESTRING.
70
- volumeThreshold: number;
71
- // Relation to the User model who owns this Alpaca account. TYPESTRING.
72
- user: {
73
- // The user's full name.
74
- name?: string;
75
- // The user's email address, must be unique.
76
- email?: string;
77
- // Timestamp when the user's email was verified. TYPESTRING.
78
- emailVerified?: Date;
79
- // URL to the user's profile image.
80
- image?: string;
81
- // The role assigned to the user, determining permissions.
82
- role: UserRole;
83
- // A short biography or description of the user.
84
- bio?: string;
85
- // The user's job title or position.
86
- jobTitle?: string;
87
- // The type of Alpaca account the user currently holds.
88
- currentAccount: AlpacaAccountType;
89
- // Relation to the Customer model. TYPESTRING. GQL.
90
- customer?: {
91
- // Name of the customer.
92
- name?: string;
93
- // Subscription plan the customer is enrolled in.
94
- plan?: SubscriptionPlan;
95
- // End date of the current billing period in Stripe.
96
- stripeCurrentPeriodEnd?: Date;
97
- };
98
- // List of accounts associated with the user. TYPESTRING. GQL.
99
- accounts: {
100
- // Type of the account (e.g., OAuth provider).
101
- type: string;
102
- // Provider of the account (e.g., Google, GitHub).
103
- provider: string;
104
- // Refresh token for the external account, if applicable. TYPESTRING.
105
- refresh_token?: string;
106
- // Access token for the external account, if applicable. TYPESTRING.
107
- access_token?: string;
108
- // Expiration time of the access token.
109
- expires_at?: number;
110
- // Type of the token (e.g., Bearer).
111
- token_type?: string;
112
- // Scope of access granted by the token.
113
- scope?: string;
114
- // ID token for authentication, if applicable. TYPESTRING.
115
- id_token?: string;
116
- // State of the session associated with the account.
117
- session_state?: string;
118
- }[];
119
- // List of sessions associated with the user. TYPESTRING. GQL.
120
- sessions: {
121
- // Token associated with the session for authentication. TYPESTRING.
122
- sessionToken: string;
123
- // Expiration date and time of the session.
124
- expires: Date;
125
- }[];
126
- // List of authenticators for the user. TYPESTRING. GQL.
127
- authenticators: {
128
- // Unique credential ID for the authenticator. TYPESTRING.
129
- credentialID: string;
130
- // Public key associated with the authenticator. TYPESTRING.
131
- publicKey: string;
132
- // Counter for the number of authentication attempts. TYPESTRING.
133
- counter: number;
134
- }[];
135
- // The subscription plan the user is enrolled in.
136
- plan?: SubscriptionPlan;
137
- // OpenAI API key for the user.
138
- openaiAPIKey?: string;
139
- // OpenAI API Language model selected by the user
140
- openaiModel?: OpenaiModel;
141
- };
142
- // List of trades executed through this Alpaca account. TYPESTRING.
143
- trades: {
144
- // Quantity of the asset being traded.
145
- qty: number;
146
- // Price at which the asset was traded.
147
- price: number;
148
- // Total value of the trade (qty * price).
149
- total: number;
150
- // Option Type (CALL or PUT) if the asset is an option.
151
- optionType?: OptionType;
152
- // Signal that triggered the trade.
153
- signal: TradeSignal;
154
- // Strategy used to execute the trade.
155
- strategy: TradeStrategy;
156
- // Analysis supporting the trade decision as markdown text. TYPESTRING.
157
- analysis: string;
158
- // summary of the trade decision (this should be a short description of the trade).
159
- summary: string;
160
- // Confidence level in the trade decision.
161
- confidence: number;
162
- // Timestamp when the trade was executed. TYPESTRING.
163
- timestamp: Date;
164
- // Current status of the trade.
165
- status: TradeStatus;
166
- // Relation to the Asset model. TYPESTRING. GQL.
167
- asset: {
168
- // Ticker symbol of the asset, must be unique.
169
- symbol: string;
170
- // Full name of the asset, must be unique.
171
- name: string;
172
- // Type of the asset, defined by AssetType enum.
173
- type: AssetType;
174
- // URL to the asset's logo image. TYPESTRING.
175
- logoUrl?: string;
176
- // Description of the asset. TYPESTRING.
177
- description?: string;
178
- // Central Index Key for the asset. TYPESTRING.
179
- cik?: string;
180
- // Stock exchange where the asset is listed. TYPESTRING.
181
- exchange?: string;
182
- // Currency in which the asset is traded. TYPESTRING.
183
- currency?: string;
184
- // Country where the asset is based. TYPESTRING.
185
- country?: string;
186
- // Sector classification of the asset. TYPESTRING.
187
- sector?: string;
188
- // Industry classification of the asset. TYPESTRING.
189
- industry?: string;
190
- // Physical address associated with the asset. TYPESTRING.
191
- address?: string;
192
- // Official website of the asset. TYPESTRING.
193
- officialSite?: string;
194
- // Fiscal year-end date of the asset. TYPESTRING.
195
- fiscalYearEnd?: string;
196
- // Date of the latest financial quarter. TYPESTRING.
197
- latestQuarter?: string;
198
- // Market capitalization of the asset. TYPESTRING.
199
- marketCapitalization?: string;
200
- // Earnings Before Interest, Taxes, Depreciation, and Amortization. TYPESTRING.
201
- ebitda?: string;
202
- // Price-to-Earnings ratio. TYPESTRING.
203
- peRatio?: string;
204
- // Price/Earnings to Growth ratio. TYPESTRING.
205
- pegRatio?: string;
206
- // Book value per share. TYPESTRING.
207
- bookValue?: string;
208
- // Dividend per share. TYPESTRING.
209
- dividendPerShare?: string;
210
- // Dividend yield percentage. TYPESTRING.
211
- dividendYield?: string;
212
- // Earnings per share. TYPESTRING.
213
- eps?: string;
214
- // Revenue per share over the trailing twelve months. TYPESTRING.
215
- revenuePerShareTTM?: string;
216
- // Profit margin percentage. TYPESTRING.
217
- profitMargin?: string;
218
- // Operating margin over the trailing twelve months. TYPESTRING.
219
- operatingMarginTTM?: string;
220
- // Return on assets over the trailing twelve months. TYPESTRING.
221
- returnOnAssetsTTM?: string;
222
- // Return on equity over the trailing twelve months. TYPESTRING.
223
- returnOnEquityTTM?: string;
224
- // Total revenue over the trailing twelve months. TYPESTRING.
225
- revenueTTM?: string;
226
- // Gross profit over the trailing twelve months. TYPESTRING.
227
- grossProfitTTM?: string;
228
- // Diluted earnings per share over the trailing twelve months. TYPESTRING.
229
- dilutedEPSTTM?: string;
230
- // Year-over-year growth in quarterly earnings. TYPESTRING.
231
- quarterlyEarningsGrowthYOY?: string;
232
- // Year-over-year growth in quarterly revenue. TYPESTRING.
233
- quarterlyRevenueGrowthYOY?: string;
234
- // Analyst target price for the asset. TYPESTRING.
235
- analystTargetPrice?: string;
236
- // Percentage of analysts rating the asset as Strong Buy. TYPESTRING.
237
- analystRatingStrongBuy?: string;
238
- // Percentage of analysts rating the asset as Buy. TYPESTRING.
239
- analystRatingBuy?: string;
240
- // Percentage of analysts rating the asset as Hold. TYPESTRING.
241
- analystRatingHold?: string;
242
- // Percentage of analysts rating the asset as Sell. TYPESTRING.
243
- analystRatingSell?: string;
244
- // Percentage of analysts rating the asset as Strong Sell. TYPESTRING.
245
- analystRatingStrongSell?: string;
246
- // Trailing Price-to-Earnings ratio. TYPESTRING.
247
- trailingPE?: string;
248
- // Forward Price-to-Earnings ratio. TYPESTRING.
249
- forwardPE?: string;
250
- // Price-to-Sales ratio over the trailing twelve months. TYPESTRING.
251
- priceToSalesRatioTTM?: string;
252
- // Price-to-Book ratio. TYPESTRING.
253
- priceToBookRatio?: string;
254
- // Enterprise Value to Revenue ratio. TYPESTRING.
255
- evToRevenue?: string;
256
- // Enterprise Value to EBITDA ratio. TYPESTRING.
257
- evToEbitda?: string;
258
- // Beta coefficient measuring volatility. TYPESTRING.
259
- beta?: string;
260
- // 52-week high price of the asset. TYPESTRING.
261
- week52High?: string;
262
- // 52-week low price of the asset. TYPESTRING.
263
- week52Low?: string;
264
- // 50-day moving average price. TYPESTRING.
265
- day50MovingAverage?: string;
266
- // 200-day moving average price. TYPESTRING.
267
- day200MovingAverage?: string;
268
- // Total number of shares outstanding. TYPESTRING.
269
- sharesOutstanding?: string;
270
- // Date when the next dividend is paid. TYPESTRING.
271
- dividendDate?: string;
272
- // Date when the asset goes ex-dividend. TYPESTRING.
273
- exDividendDate?: string;
274
- // Last ask price of the asset. TYPESTRING.
275
- askPrice?: string;
276
- // Last bid price of the asset. TYPESTRING.
277
- bidPrice?: string;
278
- // List of positions involving this asset. TYPESTRING. GQL.
279
- positions: {
280
- any
281
- }[];
282
- // List of news article sentiments related to this asset. TYPESTRING. GQL.
283
- newsMentions: {
284
- any
285
- }[];
286
- };
287
- // List of actions associated with this trade. TYPESTRING. GQL.
288
- actions: {
289
- // Sequence number of the action within the trade.
290
- sequence: number;
291
- // Type of trade action, defined by ActionType enum.
292
- type: ActionType;
293
- // Additional notes or comments about the action.
294
- note: string;
295
- // Current status of the trade action.
296
- status: ActionStatus;
297
- // Fees associated with the action.
298
- fee?: number;
299
- }[];
300
- }[];
301
- // List of positions held in this Alpaca account. TYPESTRING. GQL.
302
- positions: {
303
- // Relation to the Asset model. TYPESTRING. GQL.
304
- asset: {
305
- // Ticker symbol of the asset, must be unique.
306
- symbol: string;
307
- // Full name of the asset, must be unique.
308
- name: string;
309
- // Type of the asset, defined by AssetType enum.
310
- type: AssetType;
311
- // URL to the asset's logo image. TYPESTRING.
312
- logoUrl?: string;
313
- // Description of the asset. TYPESTRING.
314
- description?: string;
315
- // Central Index Key for the asset. TYPESTRING.
316
- cik?: string;
317
- // Stock exchange where the asset is listed. TYPESTRING.
318
- exchange?: string;
319
- // Currency in which the asset is traded. TYPESTRING.
320
- currency?: string;
321
- // Country where the asset is based. TYPESTRING.
322
- country?: string;
323
- // Sector classification of the asset. TYPESTRING.
324
- sector?: string;
325
- // Industry classification of the asset. TYPESTRING.
326
- industry?: string;
327
- // Physical address associated with the asset. TYPESTRING.
328
- address?: string;
329
- // Official website of the asset. TYPESTRING.
330
- officialSite?: string;
331
- // Fiscal year-end date of the asset. TYPESTRING.
332
- fiscalYearEnd?: string;
333
- // Date of the latest financial quarter. TYPESTRING.
334
- latestQuarter?: string;
335
- // Market capitalization of the asset. TYPESTRING.
336
- marketCapitalization?: string;
337
- // Earnings Before Interest, Taxes, Depreciation, and Amortization. TYPESTRING.
338
- ebitda?: string;
339
- // Price-to-Earnings ratio. TYPESTRING.
340
- peRatio?: string;
341
- // Price/Earnings to Growth ratio. TYPESTRING.
342
- pegRatio?: string;
343
- // Book value per share. TYPESTRING.
344
- bookValue?: string;
345
- // Dividend per share. TYPESTRING.
346
- dividendPerShare?: string;
347
- // Dividend yield percentage. TYPESTRING.
348
- dividendYield?: string;
349
- // Earnings per share. TYPESTRING.
350
- eps?: string;
351
- // Revenue per share over the trailing twelve months. TYPESTRING.
352
- revenuePerShareTTM?: string;
353
- // Profit margin percentage. TYPESTRING.
354
- profitMargin?: string;
355
- // Operating margin over the trailing twelve months. TYPESTRING.
356
- operatingMarginTTM?: string;
357
- // Return on assets over the trailing twelve months. TYPESTRING.
358
- returnOnAssetsTTM?: string;
359
- // Return on equity over the trailing twelve months. TYPESTRING.
360
- returnOnEquityTTM?: string;
361
- // Total revenue over the trailing twelve months. TYPESTRING.
362
- revenueTTM?: string;
363
- // Gross profit over the trailing twelve months. TYPESTRING.
364
- grossProfitTTM?: string;
365
- // Diluted earnings per share over the trailing twelve months. TYPESTRING.
366
- dilutedEPSTTM?: string;
367
- // Year-over-year growth in quarterly earnings. TYPESTRING.
368
- quarterlyEarningsGrowthYOY?: string;
369
- // Year-over-year growth in quarterly revenue. TYPESTRING.
370
- quarterlyRevenueGrowthYOY?: string;
371
- // Analyst target price for the asset. TYPESTRING.
372
- analystTargetPrice?: string;
373
- // Percentage of analysts rating the asset as Strong Buy. TYPESTRING.
374
- analystRatingStrongBuy?: string;
375
- // Percentage of analysts rating the asset as Buy. TYPESTRING.
376
- analystRatingBuy?: string;
377
- // Percentage of analysts rating the asset as Hold. TYPESTRING.
378
- analystRatingHold?: string;
379
- // Percentage of analysts rating the asset as Sell. TYPESTRING.
380
- analystRatingSell?: string;
381
- // Percentage of analysts rating the asset as Strong Sell. TYPESTRING.
382
- analystRatingStrongSell?: string;
383
- // Trailing Price-to-Earnings ratio. TYPESTRING.
384
- trailingPE?: string;
385
- // Forward Price-to-Earnings ratio. TYPESTRING.
386
- forwardPE?: string;
387
- // Price-to-Sales ratio over the trailing twelve months. TYPESTRING.
388
- priceToSalesRatioTTM?: string;
389
- // Price-to-Book ratio. TYPESTRING.
390
- priceToBookRatio?: string;
391
- // Enterprise Value to Revenue ratio. TYPESTRING.
392
- evToRevenue?: string;
393
- // Enterprise Value to EBITDA ratio. TYPESTRING.
394
- evToEbitda?: string;
395
- // Beta coefficient measuring volatility. TYPESTRING.
396
- beta?: string;
397
- // 52-week high price of the asset. TYPESTRING.
398
- week52High?: string;
399
- // 52-week low price of the asset. TYPESTRING.
400
- week52Low?: string;
401
- // 50-day moving average price. TYPESTRING.
402
- day50MovingAverage?: string;
403
- // 200-day moving average price. TYPESTRING.
404
- day200MovingAverage?: string;
405
- // Total number of shares outstanding. TYPESTRING.
406
- sharesOutstanding?: string;
407
- // Date when the next dividend is paid. TYPESTRING.
408
- dividendDate?: string;
409
- // Date when the asset goes ex-dividend. TYPESTRING.
410
- exDividendDate?: string;
411
- // Last ask price of the asset. TYPESTRING.
412
- askPrice?: string;
413
- // Last bid price of the asset. TYPESTRING.
414
- bidPrice?: string;
415
- // List of trades involving this asset. TYPESTRING. GQL.
416
- trades: {
417
- any
418
- }[];
419
- // List of news article sentiments related to this asset. TYPESTRING. GQL.
420
- newsMentions: {
421
- any
422
- }[];
423
- };
424
- // The average price at which the asset was acquired.
425
- averageEntryPrice: number;
426
- // Total quantity of the asset held.
427
- qty: number;
428
- // Quantity of the asset available for trading.
429
- qtyAvailable: number;
430
- // Current market value of the position.
431
- marketValue: number;
432
- // Total cost basis of the position.
433
- costBasis: number;
434
- // Unrealized profit or loss of the position.
435
- unrealizedPL: number;
436
- // Unrealized profit or loss as a percentage.
437
- unrealizedPLPC: number;
438
- // Unrealized intraday profit or loss.
439
- unrealisedIntradayPL: number;
440
- // Unrealized intraday profit or loss as a percentage.
441
- unrealisedIntradayPLPC: number;
442
- // Current price of the asset.
443
- currentPrice: number;
444
- // Last traded price of the asset.
445
- lastTradePrice: number;
446
- // Price change of the asset for the day.
447
- changeToday: number;
448
- // Indicates if the asset is marginable.
449
- assetMarginable: boolean;
450
- }[];
451
- // List of alerts generated for this Alpaca account. TYPESTRING.
452
- alerts: {
453
- // Message content of the alert.
454
- message: string;
455
- // Type of the alert, defined by AlertType enum.
456
- type: AlertType;
457
- // Indicates whether the alert has been read by the user.
458
- isRead: boolean;
459
- }[];
460
- };
461
- // The action this order is associated with. TYPESTRING. GQL.
462
- action: {
463
- // Sequence number of the action within the trade.
464
- sequence: number;
465
- // Type of trade action, defined by ActionType enum.
466
- type: ActionType;
467
- // Additional notes or comments about the action.
468
- note: string;
469
- // Current status of the trade action.
470
- status: ActionStatus;
471
- // Fees associated with the action.
472
- fee?: number;
473
- // The trade this action is part of. TYPESTRING. GQL.
474
- trade: {
475
- // Quantity of the asset being traded.
476
- qty: number;
477
- // Price at which the asset was traded.
478
- price: number;
479
- // Total value of the trade (qty * price).
480
- total: number;
481
- // Option Type (CALL or PUT) if the asset is an option.
482
- optionType?: OptionType;
483
- // Signal that triggered the trade.
484
- signal: TradeSignal;
485
- // Strategy used to execute the trade.
486
- strategy: TradeStrategy;
487
- // Analysis supporting the trade decision as markdown text. TYPESTRING.
488
- analysis: string;
489
- // summary of the trade decision (this should be a short description of the trade).
490
- summary: string;
491
- // Confidence level in the trade decision.
492
- confidence: number;
493
- // Timestamp when the trade was executed. TYPESTRING.
494
- timestamp: Date;
495
- // Current status of the trade.
496
- status: TradeStatus;
497
- // Relation to the AlpacaAccount model. TYPESTRING. GQL.
498
- alpacaAccount: {
499
- // The type of Alpaca account (PAPER or LIVE).
500
- type: AlpacaAccountType;
501
- // API key for authenticating requests to Alpaca. TYPESTRING.
502
- APIKey: string;
503
- // API secret for authenticating requests to Alpaca. TYPESTRING.
504
- APISecret: string;
505
- // JSON configuration settings for the Alpaca account.
506
- configuration?: any;
507
- // Indicates whether the market is currently open for trading.
508
- marketOpen: boolean;
509
- // Minimum order size for the account. TYPESTRING.
510
- minOrderSize: number;
511
- // Maximum order size for the account. TYPESTRING.
512
- maxOrderSize: number;
513
- // Minimum percentage change (from intraday high/low) to consider for a trade signal. TYPESTRING.
514
- minPercentageChange: number;
515
- // Volume threshold for a trade signal (minimum volume qualifier to consider an asset for trading). TYPESTRING.
516
- volumeThreshold: number;
517
- // Relation to the User model who owns this Alpaca account. TYPESTRING.
518
- user: {
519
- any
520
- };
521
- // List of positions held in this Alpaca account. TYPESTRING. GQL.
522
- positions: {
523
- any
524
- }[];
525
- // List of alerts generated for this Alpaca account. TYPESTRING.
526
- alerts: {
527
- any
528
- }[];
529
- };
530
- // Relation to the Asset model. TYPESTRING. GQL.
531
- asset: {
532
- // Ticker symbol of the asset, must be unique.
533
- symbol: string;
534
- // Full name of the asset, must be unique.
535
- name: string;
536
- // Type of the asset, defined by AssetType enum.
537
- type: AssetType;
538
- // URL to the asset's logo image. TYPESTRING.
539
- logoUrl?: string;
540
- // Description of the asset. TYPESTRING.
541
- description?: string;
542
- // Central Index Key for the asset. TYPESTRING.
543
- cik?: string;
544
- // Stock exchange where the asset is listed. TYPESTRING.
545
- exchange?: string;
546
- // Currency in which the asset is traded. TYPESTRING.
547
- currency?: string;
548
- // Country where the asset is based. TYPESTRING.
549
- country?: string;
550
- // Sector classification of the asset. TYPESTRING.
551
- sector?: string;
552
- // Industry classification of the asset. TYPESTRING.
553
- industry?: string;
554
- // Physical address associated with the asset. TYPESTRING.
555
- address?: string;
556
- // Official website of the asset. TYPESTRING.
557
- officialSite?: string;
558
- // Fiscal year-end date of the asset. TYPESTRING.
559
- fiscalYearEnd?: string;
560
- // Date of the latest financial quarter. TYPESTRING.
561
- latestQuarter?: string;
562
- // Market capitalization of the asset. TYPESTRING.
563
- marketCapitalization?: string;
564
- // Earnings Before Interest, Taxes, Depreciation, and Amortization. TYPESTRING.
565
- ebitda?: string;
566
- // Price-to-Earnings ratio. TYPESTRING.
567
- peRatio?: string;
568
- // Price/Earnings to Growth ratio. TYPESTRING.
569
- pegRatio?: string;
570
- // Book value per share. TYPESTRING.
571
- bookValue?: string;
572
- // Dividend per share. TYPESTRING.
573
- dividendPerShare?: string;
574
- // Dividend yield percentage. TYPESTRING.
575
- dividendYield?: string;
576
- // Earnings per share. TYPESTRING.
577
- eps?: string;
578
- // Revenue per share over the trailing twelve months. TYPESTRING.
579
- revenuePerShareTTM?: string;
580
- // Profit margin percentage. TYPESTRING.
581
- profitMargin?: string;
582
- // Operating margin over the trailing twelve months. TYPESTRING.
583
- operatingMarginTTM?: string;
584
- // Return on assets over the trailing twelve months. TYPESTRING.
585
- returnOnAssetsTTM?: string;
586
- // Return on equity over the trailing twelve months. TYPESTRING.
587
- returnOnEquityTTM?: string;
588
- // Total revenue over the trailing twelve months. TYPESTRING.
589
- revenueTTM?: string;
590
- // Gross profit over the trailing twelve months. TYPESTRING.
591
- grossProfitTTM?: string;
592
- // Diluted earnings per share over the trailing twelve months. TYPESTRING.
593
- dilutedEPSTTM?: string;
594
- // Year-over-year growth in quarterly earnings. TYPESTRING.
595
- quarterlyEarningsGrowthYOY?: string;
596
- // Year-over-year growth in quarterly revenue. TYPESTRING.
597
- quarterlyRevenueGrowthYOY?: string;
598
- // Analyst target price for the asset. TYPESTRING.
599
- analystTargetPrice?: string;
600
- // Percentage of analysts rating the asset as Strong Buy. TYPESTRING.
601
- analystRatingStrongBuy?: string;
602
- // Percentage of analysts rating the asset as Buy. TYPESTRING.
603
- analystRatingBuy?: string;
604
- // Percentage of analysts rating the asset as Hold. TYPESTRING.
605
- analystRatingHold?: string;
606
- // Percentage of analysts rating the asset as Sell. TYPESTRING.
607
- analystRatingSell?: string;
608
- // Percentage of analysts rating the asset as Strong Sell. TYPESTRING.
609
- analystRatingStrongSell?: string;
610
- // Trailing Price-to-Earnings ratio. TYPESTRING.
611
- trailingPE?: string;
612
- // Forward Price-to-Earnings ratio. TYPESTRING.
613
- forwardPE?: string;
614
- // Price-to-Sales ratio over the trailing twelve months. TYPESTRING.
615
- priceToSalesRatioTTM?: string;
616
- // Price-to-Book ratio. TYPESTRING.
617
- priceToBookRatio?: string;
618
- // Enterprise Value to Revenue ratio. TYPESTRING.
619
- evToRevenue?: string;
620
- // Enterprise Value to EBITDA ratio. TYPESTRING.
621
- evToEbitda?: string;
622
- // Beta coefficient measuring volatility. TYPESTRING.
623
- beta?: string;
624
- // 52-week high price of the asset. TYPESTRING.
625
- week52High?: string;
626
- // 52-week low price of the asset. TYPESTRING.
627
- week52Low?: string;
628
- // 50-day moving average price. TYPESTRING.
629
- day50MovingAverage?: string;
630
- // 200-day moving average price. TYPESTRING.
631
- day200MovingAverage?: string;
632
- // Total number of shares outstanding. TYPESTRING.
633
- sharesOutstanding?: string;
634
- // Date when the next dividend is paid. TYPESTRING.
635
- dividendDate?: string;
636
- // Date when the asset goes ex-dividend. TYPESTRING.
637
- exDividendDate?: string;
638
- // Last ask price of the asset. TYPESTRING.
639
- askPrice?: string;
640
- // Last bid price of the asset. TYPESTRING.
641
- bidPrice?: string;
642
- // List of positions involving this asset. TYPESTRING. GQL.
643
- positions: {
644
- any
645
- }[];
646
- // List of news article sentiments related to this asset. TYPESTRING. GQL.
647
- newsMentions: {
648
- any
649
- }[];
650
- };
651
- };
652
- };
653
- // The asset this order is for. TYPESTRING. GQL.
51
+ // The asset this order is for.
654
52
  asset: {
655
53
  // Ticker symbol of the asset, must be unique.
656
54
  symbol: string;
@@ -658,285 +56,6 @@ export type Order = {
658
56
  name: string;
659
57
  // Type of the asset, defined by AssetType enum.
660
58
  type: AssetType;
661
- // URL to the asset's logo image. TYPESTRING.
662
- logoUrl?: string;
663
- // Description of the asset. TYPESTRING.
664
- description?: string;
665
- // Central Index Key for the asset. TYPESTRING.
666
- cik?: string;
667
- // Stock exchange where the asset is listed. TYPESTRING.
668
- exchange?: string;
669
- // Currency in which the asset is traded. TYPESTRING.
670
- currency?: string;
671
- // Country where the asset is based. TYPESTRING.
672
- country?: string;
673
- // Sector classification of the asset. TYPESTRING.
674
- sector?: string;
675
- // Industry classification of the asset. TYPESTRING.
676
- industry?: string;
677
- // Physical address associated with the asset. TYPESTRING.
678
- address?: string;
679
- // Official website of the asset. TYPESTRING.
680
- officialSite?: string;
681
- // Fiscal year-end date of the asset. TYPESTRING.
682
- fiscalYearEnd?: string;
683
- // Date of the latest financial quarter. TYPESTRING.
684
- latestQuarter?: string;
685
- // Market capitalization of the asset. TYPESTRING.
686
- marketCapitalization?: string;
687
- // Earnings Before Interest, Taxes, Depreciation, and Amortization. TYPESTRING.
688
- ebitda?: string;
689
- // Price-to-Earnings ratio. TYPESTRING.
690
- peRatio?: string;
691
- // Price/Earnings to Growth ratio. TYPESTRING.
692
- pegRatio?: string;
693
- // Book value per share. TYPESTRING.
694
- bookValue?: string;
695
- // Dividend per share. TYPESTRING.
696
- dividendPerShare?: string;
697
- // Dividend yield percentage. TYPESTRING.
698
- dividendYield?: string;
699
- // Earnings per share. TYPESTRING.
700
- eps?: string;
701
- // Revenue per share over the trailing twelve months. TYPESTRING.
702
- revenuePerShareTTM?: string;
703
- // Profit margin percentage. TYPESTRING.
704
- profitMargin?: string;
705
- // Operating margin over the trailing twelve months. TYPESTRING.
706
- operatingMarginTTM?: string;
707
- // Return on assets over the trailing twelve months. TYPESTRING.
708
- returnOnAssetsTTM?: string;
709
- // Return on equity over the trailing twelve months. TYPESTRING.
710
- returnOnEquityTTM?: string;
711
- // Total revenue over the trailing twelve months. TYPESTRING.
712
- revenueTTM?: string;
713
- // Gross profit over the trailing twelve months. TYPESTRING.
714
- grossProfitTTM?: string;
715
- // Diluted earnings per share over the trailing twelve months. TYPESTRING.
716
- dilutedEPSTTM?: string;
717
- // Year-over-year growth in quarterly earnings. TYPESTRING.
718
- quarterlyEarningsGrowthYOY?: string;
719
- // Year-over-year growth in quarterly revenue. TYPESTRING.
720
- quarterlyRevenueGrowthYOY?: string;
721
- // Analyst target price for the asset. TYPESTRING.
722
- analystTargetPrice?: string;
723
- // Percentage of analysts rating the asset as Strong Buy. TYPESTRING.
724
- analystRatingStrongBuy?: string;
725
- // Percentage of analysts rating the asset as Buy. TYPESTRING.
726
- analystRatingBuy?: string;
727
- // Percentage of analysts rating the asset as Hold. TYPESTRING.
728
- analystRatingHold?: string;
729
- // Percentage of analysts rating the asset as Sell. TYPESTRING.
730
- analystRatingSell?: string;
731
- // Percentage of analysts rating the asset as Strong Sell. TYPESTRING.
732
- analystRatingStrongSell?: string;
733
- // Trailing Price-to-Earnings ratio. TYPESTRING.
734
- trailingPE?: string;
735
- // Forward Price-to-Earnings ratio. TYPESTRING.
736
- forwardPE?: string;
737
- // Price-to-Sales ratio over the trailing twelve months. TYPESTRING.
738
- priceToSalesRatioTTM?: string;
739
- // Price-to-Book ratio. TYPESTRING.
740
- priceToBookRatio?: string;
741
- // Enterprise Value to Revenue ratio. TYPESTRING.
742
- evToRevenue?: string;
743
- // Enterprise Value to EBITDA ratio. TYPESTRING.
744
- evToEbitda?: string;
745
- // Beta coefficient measuring volatility. TYPESTRING.
746
- beta?: string;
747
- // 52-week high price of the asset. TYPESTRING.
748
- week52High?: string;
749
- // 52-week low price of the asset. TYPESTRING.
750
- week52Low?: string;
751
- // 50-day moving average price. TYPESTRING.
752
- day50MovingAverage?: string;
753
- // 200-day moving average price. TYPESTRING.
754
- day200MovingAverage?: string;
755
- // Total number of shares outstanding. TYPESTRING.
756
- sharesOutstanding?: string;
757
- // Date when the next dividend is paid. TYPESTRING.
758
- dividendDate?: string;
759
- // Date when the asset goes ex-dividend. TYPESTRING.
760
- exDividendDate?: string;
761
- // Last ask price of the asset. TYPESTRING.
762
- askPrice?: string;
763
- // Last bid price of the asset. TYPESTRING.
764
- bidPrice?: string;
765
- // List of trades involving this asset. TYPESTRING. GQL.
766
- trades: {
767
- // Quantity of the asset being traded.
768
- qty: number;
769
- // Price at which the asset was traded.
770
- price: number;
771
- // Total value of the trade (qty * price).
772
- total: number;
773
- // Option Type (CALL or PUT) if the asset is an option.
774
- optionType?: OptionType;
775
- // Signal that triggered the trade.
776
- signal: TradeSignal;
777
- // Strategy used to execute the trade.
778
- strategy: TradeStrategy;
779
- // Analysis supporting the trade decision as markdown text. TYPESTRING.
780
- analysis: string;
781
- // summary of the trade decision (this should be a short description of the trade).
782
- summary: string;
783
- // Confidence level in the trade decision.
784
- confidence: number;
785
- // Timestamp when the trade was executed. TYPESTRING.
786
- timestamp: Date;
787
- // Current status of the trade.
788
- status: TradeStatus;
789
- // Relation to the AlpacaAccount model. TYPESTRING. GQL.
790
- alpacaAccount: {
791
- // The type of Alpaca account (PAPER or LIVE).
792
- type: AlpacaAccountType;
793
- // API key for authenticating requests to Alpaca. TYPESTRING.
794
- APIKey: string;
795
- // API secret for authenticating requests to Alpaca. TYPESTRING.
796
- APISecret: string;
797
- // JSON configuration settings for the Alpaca account.
798
- configuration?: any;
799
- // Indicates whether the market is currently open for trading.
800
- marketOpen: boolean;
801
- // Minimum order size for the account. TYPESTRING.
802
- minOrderSize: number;
803
- // Maximum order size for the account. TYPESTRING.
804
- maxOrderSize: number;
805
- // Minimum percentage change (from intraday high/low) to consider for a trade signal. TYPESTRING.
806
- minPercentageChange: number;
807
- // Volume threshold for a trade signal (minimum volume qualifier to consider an asset for trading). TYPESTRING.
808
- volumeThreshold: number;
809
- // Relation to the User model who owns this Alpaca account. TYPESTRING.
810
- user: {
811
- any
812
- };
813
- // List of positions held in this Alpaca account. TYPESTRING. GQL.
814
- positions: {
815
- any
816
- }[];
817
- // List of alerts generated for this Alpaca account. TYPESTRING.
818
- alerts: {
819
- any
820
- }[];
821
- };
822
- // List of actions associated with this trade. TYPESTRING. GQL.
823
- actions: {
824
- // Sequence number of the action within the trade.
825
- sequence: number;
826
- // Type of trade action, defined by ActionType enum.
827
- type: ActionType;
828
- // Additional notes or comments about the action.
829
- note: string;
830
- // Current status of the trade action.
831
- status: ActionStatus;
832
- // Fees associated with the action.
833
- fee?: number;
834
- }[];
835
- }[];
836
- // List of positions involving this asset. TYPESTRING. GQL.
837
- positions: {
838
- // The average price at which the asset was acquired.
839
- averageEntryPrice: number;
840
- // Total quantity of the asset held.
841
- qty: number;
842
- // Quantity of the asset available for trading.
843
- qtyAvailable: number;
844
- // Current market value of the position.
845
- marketValue: number;
846
- // Total cost basis of the position.
847
- costBasis: number;
848
- // Unrealized profit or loss of the position.
849
- unrealizedPL: number;
850
- // Unrealized profit or loss as a percentage.
851
- unrealizedPLPC: number;
852
- // Unrealized intraday profit or loss.
853
- unrealisedIntradayPL: number;
854
- // Unrealized intraday profit or loss as a percentage.
855
- unrealisedIntradayPLPC: number;
856
- // Current price of the asset.
857
- currentPrice: number;
858
- // Last traded price of the asset.
859
- lastTradePrice: number;
860
- // Price change of the asset for the day.
861
- changeToday: number;
862
- // Indicates if the asset is marginable.
863
- assetMarginable: boolean;
864
- // Relation to the AlpacaAccount model, if applicable. TYPESTRING. GQL.
865
- alpacaAccount?: {
866
- // The type of Alpaca account (PAPER or LIVE).
867
- type: AlpacaAccountType;
868
- // API key for authenticating requests to Alpaca. TYPESTRING.
869
- APIKey: string;
870
- // API secret for authenticating requests to Alpaca. TYPESTRING.
871
- APISecret: string;
872
- // JSON configuration settings for the Alpaca account.
873
- configuration?: any;
874
- // Indicates whether the market is currently open for trading.
875
- marketOpen: boolean;
876
- // Minimum order size for the account. TYPESTRING.
877
- minOrderSize: number;
878
- // Maximum order size for the account. TYPESTRING.
879
- maxOrderSize: number;
880
- // Minimum percentage change (from intraday high/low) to consider for a trade signal. TYPESTRING.
881
- minPercentageChange: number;
882
- // Volume threshold for a trade signal (minimum volume qualifier to consider an asset for trading). TYPESTRING.
883
- volumeThreshold: number;
884
- // Relation to the User model who owns this Alpaca account. TYPESTRING.
885
- user: {
886
- any
887
- };
888
- // List of trades executed through this Alpaca account. TYPESTRING.
889
- trades: {
890
- any
891
- }[];
892
- // List of alerts generated for this Alpaca account. TYPESTRING.
893
- alerts: {
894
- any
895
- }[];
896
- };
897
- }[];
898
- // List of news article sentiments related to this asset. TYPESTRING. GQL.
899
- newsMentions: {
900
- // URL of the news article, must be unique.
901
- url: string;
902
- // Relation to the NewsArticle model. TYPESTRING. GQL.
903
- news: {
904
- // Title of the news article.
905
- title: string;
906
- // Full content of the news article.
907
- content?: string;
908
- // Source of the news article (e.g., Bloomberg, Reuters).
909
- source: string;
910
- // Domain of the source website.
911
- sourceDomain?: string;
912
- // URL to the original news article, must be unique.
913
- url: string;
914
- // Sentiment analysis result of the article.
915
- sentiment: string;
916
- // List of authors who wrote the article.
917
- authors: string[];
918
- // Summary or abstract of the news article.
919
- summary?: string;
920
- // URL to the banner image of the article.
921
- bannerImage?: string;
922
- // Publication time of the article.
923
- timePublished: string;
924
- // Category or genre of the news article.
925
- category?: string;
926
- // Topics covered in the news article.
927
- topics: string[];
928
- // URL to the logo image of the news source.
929
- logo?: string;
930
- // List of asset sentiments related to this news article. TYPESTRING. GQL.
931
- assets: NewsArticleAssetSentiment[];
932
- };
933
- // Relevancy score indicating how relevant the news is to the asset.
934
- relevancyScore?: string;
935
- // Sentiment score derived from the news content.
936
- sentimentScore?: string;
937
- // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).
938
- sentimentLabel?: string;
939
- }[];
940
59
  };
941
60
  // Fee associated with the order.
942
61
  fee?: number;
@@ -998,109 +117,6 @@ export enum OrderStatus {
998
117
  CALCULATED = "CALCULATED"
999
118
  }
1000
119
 
1001
- export enum AlpacaAccountType {
1002
- PAPER = "PAPER",
1003
- LIVE = "LIVE"
1004
- }
1005
-
1006
- export enum UserRole {
1007
- OWNER = "OWNER",
1008
- ADMIN = "ADMIN",
1009
- USER = "USER"
1010
- }
1011
-
1012
- export enum SubscriptionPlan {
1013
- FREE = "FREE",
1014
- PRO = "PRO",
1015
- BUSINESS = "BUSINESS"
1016
- }
1017
-
1018
- export enum OpenaiModel {
1019
- GPT_4O = "GPT_4O",
1020
- GPT_4O_MINI = "GPT_4O_MINI",
1021
- O1_PREVIEW = "O1_PREVIEW",
1022
- O1_MINI = "O1_MINI"
1023
- }
1024
-
1025
- export enum OptionType {
1026
- CALL = "CALL",
1027
- PUT = "PUT"
1028
- }
1029
-
1030
- export enum TradeSignal {
1031
- GOLDEN_CROSS = "GOLDEN_CROSS",
1032
- MOVING_AVERAGE_CROSSOVER = "MOVING_AVERAGE_CROSSOVER",
1033
- RSI_OVERBOUGHT = "RSI_OVERBOUGHT",
1034
- RSI_OVERSOLD = "RSI_OVERSOLD",
1035
- MACD_CROSSOVER = "MACD_CROSSOVER",
1036
- BOLLINGER_BANDS_BREAKOUT = "BOLLINGER_BANDS_BREAKOUT",
1037
- TREND_REVERSAL = "TREND_REVERSAL",
1038
- VOLATILITY_SPIKE = "VOLATILITY_SPIKE",
1039
- PRICE_ACTION = "PRICE_ACTION",
1040
- IMPLIED_VOLATILITY_SURGE = "IMPLIED_VOLATILITY_SURGE",
1041
- BREAKOUT_ABOVE_RESISTANCE = "BREAKOUT_ABOVE_RESISTANCE",
1042
- BREAKDOWN_BELOW_SUPPORT = "BREAKDOWN_BELOW_SUPPORT",
1043
- SUPPORT_LEVEL_HOLD = "SUPPORT_LEVEL_HOLD",
1044
- RESISTANCE_LEVEL_HOLD = "RESISTANCE_LEVEL_HOLD",
1045
- FIBONACCI_RETRACEMENT = "FIBONACCI_RETRACEMENT",
1046
- ELLIOTT_WAVE = "ELLIOTT_WAVE",
1047
- PARABOLIC_SAR = "PARABOLIC_SAR",
1048
- ADX_TREND_STRENGTH = "ADX_TREND_STRENGTH",
1049
- CCI_OVERBOUGHT = "CCI_OVERBOUGHT",
1050
- CCI_OVERSOLD = "CCI_OVERSOLD",
1051
- STOCHASTIC_OVERSOLD = "STOCHASTIC_OVERSOLD",
1052
- STOCHASTIC_OVERBOUGHT = "STOCHASTIC_OVERBOUGHT",
1053
- DIVERGENCE_SIGNAL = "DIVERGENCE_SIGNAL",
1054
- GANN_FAN = "GANN_FAN",
1055
- DONCHIAN_CHANNEL_BREAKOUT = "DONCHIAN_CHANNEL_BREAKOUT",
1056
- PIVOT_POINT = "PIVOT_POINT",
1057
- KELTNER_CHANNEL_BREAK = "KELTNER_CHANNEL_BREAK",
1058
- HEIKIN_ASHI_CROSSOVER = "HEIKIN_ASHI_CROSSOVER",
1059
- VOLUME_SURGE = "VOLUME_SURGE",
1060
- ORDER_BOOK_IMBALANCE = "ORDER_BOOK_IMBALANCE",
1061
- TIME_SERIES_ANOMALY = "TIME_SERIES_ANOMALY",
1062
- MEAN_REVERSION_LEVEL = "MEAN_REVERSION_LEVEL",
1063
- PAIR_TRADING_SIGNAL = "PAIR_TRADING_SIGNAL",
1064
- SENTIMENT_SCORE_THRESHOLD = "SENTIMENT_SCORE_THRESHOLD",
1065
- NEWS_SENTIMENT_CHANGE = "NEWS_SENTIMENT_CHANGE",
1066
- ORDER_FLOW_IMPACT = "ORDER_FLOW_IMPACT",
1067
- LIQUIDITY_DRIVEN_MOVE = "LIQUIDITY_DRIVEN_MOVE",
1068
- MACHINE_LEARNING_PREDICTION = "MACHINE_LEARNING_PREDICTION",
1069
- SENTIMENT_ANALYSIS_TRIGGER = "SENTIMENT_ANALYSIS_TRIGGER",
1070
- NO_SIGNAL = "NO_SIGNAL"
1071
- }
1072
-
1073
- export enum TradeStrategy {
1074
- TECHNICAL_ANALYSIS = "TECHNICAL_ANALYSIS",
1075
- TREND_FOLLOWING = "TREND_FOLLOWING",
1076
- MEAN_REVERSION = "MEAN_REVERSION",
1077
- OPTIONS_STRATEGY = "OPTIONS_STRATEGY",
1078
- MOMENTUM_STRATEGY = "MOMENTUM_STRATEGY",
1079
- ARBITRAGE = "ARBITRAGE",
1080
- STATISTICAL_ARBITRAGE = "STATISTICAL_ARBITRAGE",
1081
- MARKET_MAKING = "MARKET_MAKING",
1082
- NEWS_BASED_STRATEGY = "NEWS_BASED_STRATEGY",
1083
- SENTIMENT_ANALYSIS = "SENTIMENT_ANALYSIS",
1084
- LIQUIDITY_PROVISION = "LIQUIDITY_PROVISION",
1085
- SCALPING = "SCALPING",
1086
- VOLATILITY_TRADING = "VOLATILITY_TRADING",
1087
- EVENT_DRIVEN = "EVENT_DRIVEN",
1088
- BREAKOUT_STRATEGY = "BREAKOUT_STRATEGY",
1089
- ORDER_FLOW_TRADING = "ORDER_FLOW_TRADING",
1090
- PAIR_TRADING = "PAIR_TRADING",
1091
- SECTOR_ROTATION = "SECTOR_ROTATION",
1092
- HIGH_FREQUENCY_TRADING = "HIGH_FREQUENCY_TRADING",
1093
- MACHINE_VISION_ANALYSIS = "MACHINE_VISION_ANALYSIS",
1094
- NO_STRATEGY = "NO_STRATEGY"
1095
- }
1096
-
1097
- export enum TradeStatus {
1098
- PENDING = "PENDING",
1099
- OPEN = "OPEN",
1100
- PARTIAL = "PARTIAL",
1101
- COMPLETED = "COMPLETED"
1102
- }
1103
-
1104
120
  export enum AssetType {
1105
121
  STOCK = "STOCK",
1106
122
  ETF = "ETF",
@@ -1125,27 +141,9 @@ export enum AssetType {
1125
141
  OTHER = "OTHER"
1126
142
  }
1127
143
 
1128
- export enum ActionType {
1129
- BUY = "BUY",
1130
- BUY_OPTION = "BUY_OPTION",
1131
- EXERCISE_OPTION = "EXERCISE_OPTION",
1132
- SELL = "SELL",
1133
- CANCEL = "CANCEL",
1134
- ADJUST = "ADJUST",
1135
- HEDGE = "HEDGE"
1136
- }
1137
-
1138
- export enum ActionStatus {
1139
- STAGED = "STAGED",
1140
- EXECUTED = "EXECUTED",
1141
- COMPLETED = "COMPLETED"
1142
- }
1143
-
1144
- export enum AlertType {
1145
- SUCCESS = "SUCCESS",
1146
- WARNING = "WARNING",
1147
- ERROR = "ERROR",
1148
- INFO = "INFO"
144
+ export enum OptionType {
145
+ CALL = "CALL",
146
+ PUT = "PUT"
1149
147
  }
1150
148
 
1151
149
  `;