adaptic-backend 1.0.61 → 1.0.62

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 (152) hide show
  1. package/README.md +59 -26
  2. package/generated/typeStrings/Account.cjs +363 -0
  3. package/generated/typeStrings/Account.d.ts +2 -0
  4. package/generated/typeStrings/Account.d.ts.map +1 -0
  5. package/generated/typeStrings/Account.js.map +1 -0
  6. package/generated/typeStrings/Action.cjs +337 -0
  7. package/generated/typeStrings/Action.d.ts +2 -0
  8. package/generated/typeStrings/Action.d.ts.map +1 -0
  9. package/generated/typeStrings/Action.js.map +1 -0
  10. package/generated/typeStrings/Alert.cjs +493 -0
  11. package/generated/typeStrings/Alert.d.ts +2 -0
  12. package/generated/typeStrings/Alert.d.ts.map +1 -0
  13. package/generated/typeStrings/Alert.js.map +1 -0
  14. package/generated/typeStrings/AlpacaAccount.cjs +575 -0
  15. package/generated/typeStrings/AlpacaAccount.d.ts +2 -0
  16. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -0
  17. package/generated/typeStrings/AlpacaAccount.js.map +1 -0
  18. package/generated/typeStrings/Asset.cjs +536 -0
  19. package/generated/typeStrings/Asset.d.ts +2 -0
  20. package/generated/typeStrings/Asset.d.ts.map +1 -0
  21. package/generated/typeStrings/Asset.js.map +1 -0
  22. package/generated/typeStrings/Authenticator.cjs +363 -0
  23. package/generated/typeStrings/Authenticator.d.ts +2 -0
  24. package/generated/typeStrings/Authenticator.d.ts.map +1 -0
  25. package/generated/typeStrings/Authenticator.js.map +1 -0
  26. package/generated/typeStrings/Customer.cjs +363 -0
  27. package/generated/typeStrings/Customer.d.ts +2 -0
  28. package/generated/typeStrings/Customer.d.ts.map +1 -0
  29. package/generated/typeStrings/Customer.js.map +1 -0
  30. package/generated/typeStrings/EconomicEvent.cjs +33 -0
  31. package/generated/typeStrings/EconomicEvent.d.ts +2 -0
  32. package/generated/typeStrings/EconomicEvent.d.ts.map +1 -0
  33. package/generated/typeStrings/EconomicEvent.js.map +1 -0
  34. package/generated/typeStrings/NewsArticle.cjs +361 -0
  35. package/generated/typeStrings/NewsArticle.d.ts +2 -0
  36. package/generated/typeStrings/NewsArticle.d.ts.map +1 -0
  37. package/generated/typeStrings/NewsArticle.js.map +1 -0
  38. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +386 -0
  39. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +2 -0
  40. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -0
  41. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -0
  42. package/generated/typeStrings/Order.cjs +521 -0
  43. package/generated/typeStrings/Order.d.ts +2 -0
  44. package/generated/typeStrings/Order.d.ts.map +1 -0
  45. package/generated/typeStrings/Order.js.map +1 -0
  46. package/generated/typeStrings/Position.cjs +419 -0
  47. package/generated/typeStrings/Position.d.ts +2 -0
  48. package/generated/typeStrings/Position.d.ts.map +1 -0
  49. package/generated/typeStrings/Position.js.map +1 -0
  50. package/generated/typeStrings/Session.cjs +363 -0
  51. package/generated/typeStrings/Session.d.ts +2 -0
  52. package/generated/typeStrings/Session.d.ts.map +1 -0
  53. package/generated/typeStrings/Session.js.map +1 -0
  54. package/generated/typeStrings/Trade.cjs +521 -0
  55. package/generated/typeStrings/Trade.d.ts +2 -0
  56. package/generated/typeStrings/Trade.d.ts.map +1 -0
  57. package/generated/typeStrings/Trade.js.map +1 -0
  58. package/generated/typeStrings/User.cjs +493 -0
  59. package/generated/typeStrings/User.d.ts +2 -0
  60. package/generated/typeStrings/User.d.ts.map +1 -0
  61. package/generated/typeStrings/User.js.map +1 -0
  62. package/generated/typeStrings/VerificationToken.cjs +21 -0
  63. package/generated/typeStrings/VerificationToken.d.ts +2 -0
  64. package/generated/typeStrings/VerificationToken.d.ts.map +1 -0
  65. package/generated/typeStrings/VerificationToken.js.map +1 -0
  66. package/generated/typeStrings/enums.cjs +100 -0
  67. package/generated/typeStrings/enums.d.ts +85 -0
  68. package/generated/typeStrings/enums.d.ts.map +1 -0
  69. package/generated/typeStrings/enums.js.map +1 -0
  70. package/generated/typeStrings/index.cjs +39 -0
  71. package/generated/typeStrings/index.d.ts +20 -0
  72. package/generated/typeStrings/index.d.ts.map +1 -0
  73. package/generated/typeStrings/index.js.map +1 -0
  74. package/index.cjs +25 -0
  75. package/index.d.ts +1 -0
  76. package/package.json +1 -1
  77. package/server/generated/typeStrings/Account.d.ts +2 -0
  78. package/server/generated/typeStrings/Account.d.ts.map +1 -0
  79. package/server/generated/typeStrings/Account.js.map +1 -0
  80. package/server/generated/typeStrings/Account.mjs +360 -0
  81. package/server/generated/typeStrings/Action.d.ts +2 -0
  82. package/server/generated/typeStrings/Action.d.ts.map +1 -0
  83. package/server/generated/typeStrings/Action.js.map +1 -0
  84. package/server/generated/typeStrings/Action.mjs +334 -0
  85. package/server/generated/typeStrings/Alert.d.ts +2 -0
  86. package/server/generated/typeStrings/Alert.d.ts.map +1 -0
  87. package/server/generated/typeStrings/Alert.js.map +1 -0
  88. package/server/generated/typeStrings/Alert.mjs +490 -0
  89. package/server/generated/typeStrings/AlpacaAccount.d.ts +2 -0
  90. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -0
  91. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -0
  92. package/server/generated/typeStrings/AlpacaAccount.mjs +572 -0
  93. package/server/generated/typeStrings/Asset.d.ts +2 -0
  94. package/server/generated/typeStrings/Asset.d.ts.map +1 -0
  95. package/server/generated/typeStrings/Asset.js.map +1 -0
  96. package/server/generated/typeStrings/Asset.mjs +533 -0
  97. package/server/generated/typeStrings/Authenticator.d.ts +2 -0
  98. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -0
  99. package/server/generated/typeStrings/Authenticator.js.map +1 -0
  100. package/server/generated/typeStrings/Authenticator.mjs +360 -0
  101. package/server/generated/typeStrings/Customer.d.ts +2 -0
  102. package/server/generated/typeStrings/Customer.d.ts.map +1 -0
  103. package/server/generated/typeStrings/Customer.js.map +1 -0
  104. package/server/generated/typeStrings/Customer.mjs +360 -0
  105. package/server/generated/typeStrings/EconomicEvent.d.ts +2 -0
  106. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -0
  107. package/server/generated/typeStrings/EconomicEvent.js.map +1 -0
  108. package/server/generated/typeStrings/EconomicEvent.mjs +30 -0
  109. package/server/generated/typeStrings/NewsArticle.d.ts +2 -0
  110. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -0
  111. package/server/generated/typeStrings/NewsArticle.js.map +1 -0
  112. package/server/generated/typeStrings/NewsArticle.mjs +358 -0
  113. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +2 -0
  114. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -0
  115. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -0
  116. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +383 -0
  117. package/server/generated/typeStrings/Order.d.ts +2 -0
  118. package/server/generated/typeStrings/Order.d.ts.map +1 -0
  119. package/server/generated/typeStrings/Order.js.map +1 -0
  120. package/server/generated/typeStrings/Order.mjs +518 -0
  121. package/server/generated/typeStrings/Position.d.ts +2 -0
  122. package/server/generated/typeStrings/Position.d.ts.map +1 -0
  123. package/server/generated/typeStrings/Position.js.map +1 -0
  124. package/server/generated/typeStrings/Position.mjs +416 -0
  125. package/server/generated/typeStrings/Session.d.ts +2 -0
  126. package/server/generated/typeStrings/Session.d.ts.map +1 -0
  127. package/server/generated/typeStrings/Session.js.map +1 -0
  128. package/server/generated/typeStrings/Session.mjs +360 -0
  129. package/server/generated/typeStrings/Trade.d.ts +2 -0
  130. package/server/generated/typeStrings/Trade.d.ts.map +1 -0
  131. package/server/generated/typeStrings/Trade.js.map +1 -0
  132. package/server/generated/typeStrings/Trade.mjs +518 -0
  133. package/server/generated/typeStrings/User.d.ts +2 -0
  134. package/server/generated/typeStrings/User.d.ts.map +1 -0
  135. package/server/generated/typeStrings/User.js.map +1 -0
  136. package/server/generated/typeStrings/User.mjs +490 -0
  137. package/server/generated/typeStrings/VerificationToken.d.ts +2 -0
  138. package/server/generated/typeStrings/VerificationToken.d.ts.map +1 -0
  139. package/server/generated/typeStrings/VerificationToken.js.map +1 -0
  140. package/server/generated/typeStrings/VerificationToken.mjs +18 -0
  141. package/server/generated/typeStrings/enums.d.ts +85 -0
  142. package/server/generated/typeStrings/enums.d.ts.map +1 -0
  143. package/server/generated/typeStrings/enums.js.map +1 -0
  144. package/server/generated/typeStrings/enums.mjs +97 -0
  145. package/server/generated/typeStrings/index.d.ts +20 -0
  146. package/server/generated/typeStrings/index.d.ts.map +1 -0
  147. package/server/generated/typeStrings/index.js.map +1 -0
  148. package/server/generated/typeStrings/index.mjs +36 -0
  149. package/server/index.d.ts +1 -0
  150. package/server/index.d.ts.map +1 -1
  151. package/server/index.js.map +1 -1
  152. package/server/index.mjs +1 -0
@@ -0,0 +1,361 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NewsArticleTypeString = void 0;
4
+ exports.NewsArticleTypeString = `
5
+ Your response should adhere to the following type definition for the "NewsArticle" type, and its nested object types (which include 'NewsArticleAssetSentiment' type).
6
+
7
+ Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
8
+
9
+ export interface NewsArticle {
10
+ // Unique identifier for the news article.
11
+ id: string;
12
+ // Title of the news article.
13
+ title: string;
14
+ // Full content of the news article.
15
+ content?: string;
16
+ // Source of the news article (e.g., Bloomberg, Reuters).
17
+ source: string;
18
+ // Domain of the source website.
19
+ sourceDomain?: string;
20
+ // URL to the original news article, must be unique.
21
+ url: string;
22
+ // Sentiment analysis result of the article.
23
+ sentiment: string;
24
+ // List of authors who wrote the article.
25
+ authors: string[];
26
+ // Summary or abstract of the news article.
27
+ summary?: string;
28
+ // URL to the banner image of the article.
29
+ bannerImage?: string;
30
+ // Publication time of the article.
31
+ timePublished: string;
32
+ // Category or genre of the news article.
33
+ category?: string;
34
+ // Topics covered in the news article.
35
+ topics: string[];
36
+ // URL to the logo image of the news source.
37
+ logo?: string;
38
+ // Timestamp when the news article was added to the database.
39
+ createdAt: Date;
40
+ // Timestamp when the news article was last updated.
41
+ updatedAt: Date;
42
+ // List of asset sentiments associated with this news article.
43
+ assets: NewsArticleAssetSentiment[];
44
+ }
45
+
46
+ export enum AssetType {
47
+ STOCK = "STOCK",
48
+ ETF = "ETF",
49
+ MUTUAL_FUND = "MUTUAL_FUND",
50
+ CRYPTOCURRENCY = "CRYPTOCURRENCY",
51
+ INDEX = "INDEX",
52
+ COMMODITY = "COMMODITY",
53
+ CURRENCY = "CURRENCY",
54
+ OPTION = "OPTION",
55
+ FUTURE = "FUTURE",
56
+ BOND = "BOND",
57
+ WARRANT = "WARRANT",
58
+ ADR = "ADR",
59
+ GDR = "GDR",
60
+ UNIT = "UNIT",
61
+ RIGHT = "RIGHT",
62
+ REIT = "REIT",
63
+ STRUCTURED_PRODUCT = "STRUCTURED_PRODUCT",
64
+ SWAP = "SWAP",
65
+ SPOT = "SPOT",
66
+ FORWARD = "FORWARD",
67
+ OTHER = "OTHER"
68
+ }
69
+
70
+ export enum TradeStatus {
71
+ PENDING = "PENDING",
72
+ OPEN = "OPEN",
73
+ PARTIAL = "PARTIAL",
74
+ COMPLETED = "COMPLETED"
75
+ }
76
+
77
+ // Simplified reference to AlpacaAccount.
78
+ export interface AlpacaAccount {
79
+ // Unique identifier for the Alpaca account.
80
+ id: string;
81
+ }
82
+
83
+ // Simplified reference to Action.
84
+ export interface Action {
85
+ // Unique identifier for the action.
86
+ id: string;
87
+ }
88
+
89
+ export interface Trade {
90
+ // Unique identifier for the trade.
91
+ id: string;
92
+ // Reference to the Alpaca account used for the trade.
93
+ alpacaAccountId: string;
94
+ // Reference to the asset being traded.
95
+ assetId: string;
96
+ // Quantity of the asset being traded.
97
+ qty: number;
98
+ // Price at which the asset was traded.
99
+ price: number;
100
+ // Total value of the trade (qty * price).
101
+ total: number;
102
+ // Signal that triggered the trade.
103
+ signal: string;
104
+ // Strategy used to execute the trade.
105
+ strategy: string;
106
+ // Analysis supporting the trade decision.
107
+ analysis: string;
108
+ // Confidence level in the trade decision.
109
+ confidence: number;
110
+ // Timestamp when the trade was executed.
111
+ timestamp: Date;
112
+ // Timestamp when the trade record was created.
113
+ createdAt: Date;
114
+ // Timestamp when the trade record was last updated.
115
+ updatedAt: Date;
116
+ // Current status of the trade.
117
+ status: TradeStatus;
118
+ // Relation to the AlpacaAccount model.
119
+ alpacaAccount: AlpacaAccount;
120
+ // Relation to the Asset model.
121
+ asset: Asset;
122
+ // List of actions associated with this trade.
123
+ actions: Action[];
124
+ }
125
+
126
+ export enum OrderType {
127
+ MARKET = "MARKET",
128
+ LIMIT = "LIMIT",
129
+ STOP = "STOP",
130
+ STOP_LIMIT = "STOP_LIMIT"
131
+ }
132
+
133
+ export enum TradeAction {
134
+ BUY = "BUY",
135
+ GET_OPTION_CONTRACTS = "GET_OPTION_CONTRACTS",
136
+ EXERCISE_OPTION = "EXERCISE_OPTION",
137
+ SELL = "SELL",
138
+ CANCEL = "CANCEL",
139
+ ADJUST = "ADJUST",
140
+ HEDGE = "HEDGE"
141
+ }
142
+
143
+ export enum OrderStatus {
144
+ PENDING = "PENDING",
145
+ FILLED = "FILLED",
146
+ CANCELLED = "CANCELLED",
147
+ REJECTED = "REJECTED"
148
+ }
149
+
150
+ export interface Order {
151
+ // Unique identifier for the order.
152
+ id: string;
153
+ // Reference to the Alpaca account used for the order.
154
+ alpacaAccountId: string;
155
+ // Reference to the asset being ordered.
156
+ assetId: string;
157
+ // Type of order, defined by OrderType enum.
158
+ type: OrderType;
159
+ // Action of the order, defined by TradeAction enum.
160
+ action: TradeAction;
161
+ // Quantity of the asset to be ordered.
162
+ qty: number;
163
+ // Price at which the asset is to be bought or sold.
164
+ price: number;
165
+ // Current status of the order, defined by OrderStatus enum.
166
+ status: OrderStatus;
167
+ // Timestamp when the order was created.
168
+ createdAt: Date;
169
+ // Timestamp when the order was last updated.
170
+ updatedAt: Date;
171
+ // Relation to the AlpacaAccount model.
172
+ alpacaAccount: AlpacaAccount;
173
+ // Relation to the Asset model.
174
+ asset: Asset;
175
+ }
176
+
177
+ export interface Position {
178
+ // Unique identifier for the position.
179
+ id: string;
180
+ // Reference to the associated asset.
181
+ assetId: string;
182
+ // Relation to the Asset model.
183
+ asset: Asset;
184
+ // The average price at which the asset was acquired.
185
+ averageEntryPrice: number;
186
+ // Total quantity of the asset held.
187
+ qty: number;
188
+ // Quantity of the asset available for trading.
189
+ qtyAvailable: number;
190
+ // Current market value of the position.
191
+ marketValue: number;
192
+ // Total cost basis of the position.
193
+ costBasis: number;
194
+ // Unrealized profit or loss of the position.
195
+ unrealizedPL: number;
196
+ // Unrealized profit or loss as a percentage.
197
+ unrealizedPLPC: number;
198
+ // Unrealized intraday profit or loss.
199
+ unrealisedIntradayPL: number;
200
+ // Unrealized intraday profit or loss as a percentage.
201
+ unrealisedIntradayPLPC: number;
202
+ // Current price of the asset.
203
+ currentPrice: number;
204
+ // Last traded price of the asset.
205
+ lastTradePrice: number;
206
+ // Price change of the asset for the day.
207
+ changeToday: number;
208
+ // Indicates if the asset is marginable.
209
+ assetMarginable: boolean;
210
+ // Relation to the AlpacaAccount model, if applicable.
211
+ alpacaAccount?: AlpacaAccount;
212
+ // Foreign key referencing the AlpacaAccount.
213
+ alpacaAccountId: string;
214
+ }
215
+
216
+ export interface Asset {
217
+ // Unique identifier for the asset.
218
+ id: string;
219
+ // Ticker symbol of the asset, must be unique.
220
+ symbol: string;
221
+ // Full name of the asset, must be unique.
222
+ name: string;
223
+ // Type of the asset, defined by AssetType enum.
224
+ type: AssetType;
225
+ // URL to the asset's logo image.
226
+ logoUrl?: string;
227
+ // Description of the asset.
228
+ description?: string;
229
+ // Central Index Key for the asset.
230
+ cik?: string;
231
+ // Stock exchange where the asset is listed.
232
+ exchange?: string;
233
+ // Currency in which the asset is traded.
234
+ currency?: string;
235
+ // Country where the asset is based.
236
+ country?: string;
237
+ // Sector classification of the asset.
238
+ sector?: string;
239
+ // Industry classification of the asset.
240
+ industry?: string;
241
+ // Physical address associated with the asset.
242
+ address?: string;
243
+ // Official website of the asset.
244
+ officialSite?: string;
245
+ // Fiscal year-end date of the asset.
246
+ fiscalYearEnd?: string;
247
+ // Date of the latest financial quarter.
248
+ latestQuarter?: string;
249
+ // Market capitalization of the asset.
250
+ marketCapitalization?: string;
251
+ // Earnings Before Interest, Taxes, Depreciation, and Amortization.
252
+ ebitda?: string;
253
+ // Price-to-Earnings ratio.
254
+ peRatio?: string;
255
+ // Price/Earnings to Growth ratio.
256
+ pegRatio?: string;
257
+ // Book value per share.
258
+ bookValue?: string;
259
+ // Dividend per share.
260
+ dividendPerShare?: string;
261
+ // Dividend yield percentage.
262
+ dividendYield?: string;
263
+ // Earnings per share.
264
+ eps?: string;
265
+ // Revenue per share over the trailing twelve months.
266
+ revenuePerShareTTM?: string;
267
+ // Profit margin percentage.
268
+ profitMargin?: string;
269
+ // Operating margin over the trailing twelve months.
270
+ operatingMarginTTM?: string;
271
+ // Return on assets over the trailing twelve months.
272
+ returnOnAssetsTTM?: string;
273
+ // Return on equity over the trailing twelve months.
274
+ returnOnEquityTTM?: string;
275
+ // Total revenue over the trailing twelve months.
276
+ revenueTTM?: string;
277
+ // Gross profit over the trailing twelve months.
278
+ grossProfitTTM?: string;
279
+ // Diluted earnings per share over the trailing twelve months.
280
+ dilutedEPSTTM?: string;
281
+ // Year-over-year growth in quarterly earnings.
282
+ quarterlyEarningsGrowthYOY?: string;
283
+ // Year-over-year growth in quarterly revenue.
284
+ quarterlyRevenueGrowthYOY?: string;
285
+ // Analyst target price for the asset.
286
+ analystTargetPrice?: string;
287
+ // Percentage of analysts rating the asset as Strong Buy.
288
+ analystRatingStrongBuy?: string;
289
+ // Percentage of analysts rating the asset as Buy.
290
+ analystRatingBuy?: string;
291
+ // Percentage of analysts rating the asset as Hold.
292
+ analystRatingHold?: string;
293
+ // Percentage of analysts rating the asset as Sell.
294
+ analystRatingSell?: string;
295
+ // Percentage of analysts rating the asset as Strong Sell.
296
+ analystRatingStrongSell?: string;
297
+ // Trailing Price-to-Earnings ratio.
298
+ trailingPE?: string;
299
+ // Forward Price-to-Earnings ratio.
300
+ forwardPE?: string;
301
+ // Price-to-Sales ratio over the trailing twelve months.
302
+ priceToSalesRatioTTM?: string;
303
+ // Price-to-Book ratio.
304
+ priceToBookRatio?: string;
305
+ // Enterprise Value to Revenue ratio.
306
+ evToRevenue?: string;
307
+ // Enterprise Value to EBITDA ratio.
308
+ evToEbitda?: string;
309
+ // Beta coefficient measuring volatility.
310
+ beta?: string;
311
+ // 52-week high price of the asset.
312
+ week52High?: string;
313
+ // 52-week low price of the asset.
314
+ week52Low?: string;
315
+ // 50-day moving average price.
316
+ day50MovingAverage?: string;
317
+ // 200-day moving average price.
318
+ day200MovingAverage?: string;
319
+ // Total number of shares outstanding.
320
+ sharesOutstanding?: string;
321
+ // Date when the next dividend is paid.
322
+ dividendDate?: string;
323
+ // Date when the asset goes ex-dividend.
324
+ exDividendDate?: string;
325
+ // Timestamp when the asset was created in the database.
326
+ createdAt: Date;
327
+ // Timestamp when the asset was last updated in the database.
328
+ updatedAt: Date;
329
+ // List of trades involving this asset.
330
+ trades: Trade[];
331
+ // List of orders involving this asset.
332
+ orders: Order[];
333
+ // List of positions involving this asset.
334
+ positions: Position[];
335
+ // List of news article sentiments related to this asset.
336
+ newsMentions: NewsArticleAssetSentiment[];
337
+ }
338
+
339
+ export interface NewsArticleAssetSentiment {
340
+ // Unique identifier for the sentiment record.
341
+ id: string;
342
+ // Reference to the associated asset.
343
+ assetId: string;
344
+ // Reference to the associated news article.
345
+ newsArticleId: string;
346
+ // URL of the news article, must be unique.
347
+ url: string;
348
+ // Relation to the NewsArticle model.
349
+ news: NewsArticle;
350
+ // Relation to the Asset model.
351
+ asset: Asset;
352
+ // Relevancy score indicating how relevant the news is to the asset.
353
+ relevancyScore?: string;
354
+ // Sentiment score derived from the news content.
355
+ sentimentScore?: string;
356
+ // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).
357
+ sentimentLabel?: string;
358
+ }
359
+
360
+ `;
361
+ //# sourceMappingURL=NewsArticle.js.map
@@ -0,0 +1,2 @@
1
+ export declare const NewsArticleTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticle\" type, and its nested object types (which include 'NewsArticleAssetSentiment' type).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface NewsArticle {\n // Unique identifier for the news article.\n id: string;\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n // Timestamp when the news article was added to the database.\n createdAt: Date;\n // Timestamp when the news article was last updated.\n updatedAt: Date;\n // List of asset sentiments associated with this news article.\n assets: NewsArticleAssetSentiment[];\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\n// Simplified reference to AlpacaAccount.\nexport interface AlpacaAccount {\n// Unique identifier for the Alpaca account.\n id: string;\n}\n\n// Simplified reference to Action.\nexport interface Action {\n// Unique identifier for the action.\n id: string;\n}\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum TradeAction {\n BUY = \"BUY\",\n GET_OPTION_CONTRACTS = \"GET_OPTION_CONTRACTS\",\n EXERCISE_OPTION = \"EXERCISE_OPTION\",\n SELL = \"SELL\",\n CANCEL = \"CANCEL\",\n ADJUST = \"ADJUST\",\n HEDGE = \"HEDGE\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport interface Order {\n // Unique identifier for the order.\n id: string;\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Action of the order, defined by TradeAction enum.\n action: TradeAction;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the order was created.\n createdAt: Date;\n // Timestamp when the order was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n}\n\nexport interface Position {\n // Unique identifier for the position.\n id: string;\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport interface Asset {\n // Unique identifier for the asset.\n id: string;\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\nexport interface NewsArticleAssetSentiment {\n // Unique identifier for the sentiment record.\n id: string;\n // Reference to the associated asset.\n assetId: string;\n // Reference to the associated news article.\n newsArticleId: string;\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\n // Relation to the Asset model.\n asset: Asset;\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n}\n\n";
2
+ //# sourceMappingURL=NewsArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,mlWAoWjC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoWpC,CAAC"}