adaptic-backend 1.0.152 → 1.0.154

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