adaptic-backend 1.0.68 → 1.0.69

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 (136) hide show
  1. package/README.md +1 -1
  2. package/generated/typeStrings/Account.cjs +10 -78
  3. package/generated/typeStrings/Account.d.ts +1 -1
  4. package/generated/typeStrings/Account.d.ts.map +1 -1
  5. package/generated/typeStrings/Account.js.map +1 -1
  6. package/generated/typeStrings/Action.cjs +7 -71
  7. package/generated/typeStrings/Action.d.ts +1 -1
  8. package/generated/typeStrings/Action.d.ts.map +1 -1
  9. package/generated/typeStrings/Action.js.map +1 -1
  10. package/generated/typeStrings/Alert.cjs +10 -84
  11. package/generated/typeStrings/Alert.d.ts +1 -1
  12. package/generated/typeStrings/Alert.d.ts.map +1 -1
  13. package/generated/typeStrings/Alert.js.map +1 -1
  14. package/generated/typeStrings/AlpacaAccount.cjs +12 -88
  15. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  16. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  17. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  18. package/generated/typeStrings/Asset.cjs +9 -85
  19. package/generated/typeStrings/Asset.d.ts +1 -1
  20. package/generated/typeStrings/Asset.d.ts.map +1 -1
  21. package/generated/typeStrings/Asset.js.map +1 -1
  22. package/generated/typeStrings/Authenticator.cjs +10 -78
  23. package/generated/typeStrings/Authenticator.d.ts +1 -1
  24. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  25. package/generated/typeStrings/Authenticator.js.map +1 -1
  26. package/generated/typeStrings/Customer.cjs +10 -78
  27. package/generated/typeStrings/Customer.d.ts +1 -1
  28. package/generated/typeStrings/Customer.d.ts.map +1 -1
  29. package/generated/typeStrings/Customer.js.map +1 -1
  30. package/generated/typeStrings/EconomicEvent.cjs +1 -7
  31. package/generated/typeStrings/EconomicEvent.d.ts +1 -1
  32. package/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  33. package/generated/typeStrings/EconomicEvent.js.map +1 -1
  34. package/generated/typeStrings/NewsArticle.cjs +6 -46
  35. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  36. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  37. package/generated/typeStrings/NewsArticle.js.map +1 -1
  38. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +6 -58
  39. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  40. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  41. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  42. package/generated/typeStrings/Order.cjs +11 -85
  43. package/generated/typeStrings/Order.d.ts +1 -1
  44. package/generated/typeStrings/Order.d.ts.map +1 -1
  45. package/generated/typeStrings/Order.js.map +1 -1
  46. package/generated/typeStrings/Position.cjs +7 -55
  47. package/generated/typeStrings/Position.d.ts +1 -1
  48. package/generated/typeStrings/Position.d.ts.map +1 -1
  49. package/generated/typeStrings/Position.js.map +1 -1
  50. package/generated/typeStrings/Session.cjs +10 -78
  51. package/generated/typeStrings/Session.d.ts +1 -1
  52. package/generated/typeStrings/Session.d.ts.map +1 -1
  53. package/generated/typeStrings/Session.js.map +1 -1
  54. package/generated/typeStrings/Trade.cjs +11 -85
  55. package/generated/typeStrings/Trade.d.ts +1 -1
  56. package/generated/typeStrings/Trade.d.ts.map +1 -1
  57. package/generated/typeStrings/Trade.js.map +1 -1
  58. package/generated/typeStrings/User.cjs +10 -84
  59. package/generated/typeStrings/User.d.ts +1 -1
  60. package/generated/typeStrings/User.d.ts.map +1 -1
  61. package/generated/typeStrings/User.js.map +1 -1
  62. package/generated/typeStrings/VerificationToken.cjs +1 -3
  63. package/generated/typeStrings/VerificationToken.d.ts +1 -1
  64. package/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  65. package/generated/typeStrings/VerificationToken.js.map +1 -1
  66. package/generated/typeStrings/index.d.ts +16 -16
  67. package/generated/typeStrings/index.d.ts.map +1 -1
  68. package/generated/typeStrings/index.js.map +1 -1
  69. package/package.json +1 -1
  70. package/server/generated/typeStrings/Account.d.ts +1 -1
  71. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  72. package/server/generated/typeStrings/Account.js.map +1 -1
  73. package/server/generated/typeStrings/Account.mjs +10 -78
  74. package/server/generated/typeStrings/Action.d.ts +1 -1
  75. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  76. package/server/generated/typeStrings/Action.js.map +1 -1
  77. package/server/generated/typeStrings/Action.mjs +7 -71
  78. package/server/generated/typeStrings/Alert.d.ts +1 -1
  79. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  80. package/server/generated/typeStrings/Alert.js.map +1 -1
  81. package/server/generated/typeStrings/Alert.mjs +10 -84
  82. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  83. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  84. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  85. package/server/generated/typeStrings/AlpacaAccount.mjs +12 -88
  86. package/server/generated/typeStrings/Asset.d.ts +1 -1
  87. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  88. package/server/generated/typeStrings/Asset.js.map +1 -1
  89. package/server/generated/typeStrings/Asset.mjs +9 -85
  90. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  91. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  92. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  93. package/server/generated/typeStrings/Authenticator.mjs +10 -78
  94. package/server/generated/typeStrings/Customer.d.ts +1 -1
  95. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  96. package/server/generated/typeStrings/Customer.js.map +1 -1
  97. package/server/generated/typeStrings/Customer.mjs +10 -78
  98. package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
  99. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  100. package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
  101. package/server/generated/typeStrings/EconomicEvent.mjs +1 -7
  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 +6 -46
  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 +6 -58
  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 +11 -85
  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 +7 -55
  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 +10 -78
  122. package/server/generated/typeStrings/Trade.d.ts +1 -1
  123. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  124. package/server/generated/typeStrings/Trade.js.map +1 -1
  125. package/server/generated/typeStrings/Trade.mjs +11 -85
  126. package/server/generated/typeStrings/User.d.ts +1 -1
  127. package/server/generated/typeStrings/User.d.ts.map +1 -1
  128. package/server/generated/typeStrings/User.js.map +1 -1
  129. package/server/generated/typeStrings/User.mjs +10 -84
  130. package/server/generated/typeStrings/VerificationToken.d.ts +1 -1
  131. package/server/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  132. package/server/generated/typeStrings/VerificationToken.js.map +1 -1
  133. package/server/generated/typeStrings/VerificationToken.mjs +1 -3
  134. package/server/generated/typeStrings/index.d.ts +16 -16
  135. package/server/generated/typeStrings/index.d.ts.map +1 -1
  136. package/server/generated/typeStrings/index.js.map +1 -1
@@ -3,9 +3,7 @@ Your response should adhere to the following type definition for the "Customer"
3
3
 
4
4
  Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
5
5
 
6
- export interface Customer {
7
- // Unique identifier for the customer.
8
- id: number;
6
+ export type Customer = {
9
7
  // Reference to the authenticated user associated with the customer.
10
8
  authUserId: string;
11
9
  // Name of the customer.
@@ -20,10 +18,6 @@ export interface Customer {
20
18
  stripePriceId?: string;
21
19
  // End date of the current billing period in Stripe.
22
20
  stripeCurrentPeriodEnd?: Date;
23
- // Timestamp when the customer was created.
24
- createdAt: Date;
25
- // Timestamp when the customer was last updated.
26
- updatedAt: Date;
27
21
  // List of users associated with the customer.
28
22
  users: User[];
29
23
  }
@@ -45,9 +39,7 @@ export enum AlpacaAccountType {
45
39
  LIVE = "LIVE"
46
40
  }
47
41
 
48
- export interface Account {
49
- // Unique identifier for the account.
50
- id: string;
42
+ export type Account = {
51
43
  // Reference to the user who owns this account.
52
44
  userId: string;
53
45
  // Type of the account (e.g., OAuth provider).
@@ -70,17 +62,11 @@ export interface Account {
70
62
  id_token?: string;
71
63
  // State of the session associated with the account.
72
64
  session_state?: string;
73
- // Timestamp when the account was created.
74
- createdAt: Date;
75
- // Timestamp when the account was last updated.
76
- updatedAt: Date;
77
65
  // Relation to the User model.
78
66
  user: User;
79
67
  }
80
68
 
81
- export interface Session {
82
- // Unique identifier for the session.
83
- id: string;
69
+ export type Session = {
84
70
  // Token associated with the session for authentication.
85
71
  sessionToken: string;
86
72
  // Reference to the user who owns this session.
@@ -89,15 +75,9 @@ export interface Session {
89
75
  expires: Date;
90
76
  // Relation to the User model.
91
77
  user: User;
92
- // Timestamp when the session was created.
93
- createdAt: Date;
94
- // Timestamp when the session was last updated.
95
- updatedAt: Date;
96
78
  }
97
79
 
98
- export interface Authenticator {
99
- // Unique identifier for the authenticator.
100
- id: string;
80
+ export type Authenticator = {
101
81
  // Reference to the user who owns this authenticator.
102
82
  userId: string;
103
83
  // Unique credential ID for the authenticator.
@@ -108,10 +88,6 @@ export interface Authenticator {
108
88
  counter: number;
109
89
  // Relation to the User model.
110
90
  user: User;
111
- // Timestamp when the authenticator was created.
112
- createdAt: Date;
113
- // Timestamp when the authenticator was last updated.
114
- updatedAt: Date;
115
91
  }
116
92
 
117
93
  export enum TradeStatus {
@@ -121,26 +97,12 @@ export enum TradeStatus {
121
97
  COMPLETED = "COMPLETED"
122
98
  }
123
99
 
124
- // Simplified reference to Asset.
125
- export interface Asset {
126
- // Unique identifier for the asset.
127
- id: string;
128
- }
129
-
130
100
  export enum OptionContractType {
131
101
  CALL = "CALL",
132
102
  PUT = "PUT"
133
103
  }
134
104
 
135
- // Simplified reference to Action.
136
- export interface Action {
137
- // Unique identifier for the action.
138
- id: string;
139
- }
140
-
141
- export interface Trade {
142
- // Unique identifier for the trade.
143
- id: string;
105
+ export type Trade = {
144
106
  // Reference to the Alpaca account used for the trade.
145
107
  alpacaAccountId: string;
146
108
  // Reference to the asset being traded.
@@ -161,10 +123,6 @@ export interface Trade {
161
123
  confidence: number;
162
124
  // Timestamp when the trade was executed.
163
125
  timestamp: Date;
164
- // Timestamp when the trade record was created.
165
- createdAt: Date;
166
- // Timestamp when the trade record was last updated.
167
- updatedAt: Date;
168
126
  // Current status of the trade.
169
127
  status: TradeStatus;
170
128
  // Relation to the AlpacaAccount model.
@@ -196,9 +154,7 @@ export enum OrderStatus {
196
154
  REJECTED = "REJECTED"
197
155
  }
198
156
 
199
- export interface Order {
200
- // Unique identifier for the order.
201
- id: string;
157
+ export type Order = {
202
158
  // Reference to the Alpaca account used for the order.
203
159
  alpacaAccountId: string;
204
160
  // Reference to the asset being ordered.
@@ -216,10 +172,6 @@ export interface Order {
216
172
  stopLoss?: number;
217
173
  // Current status of the order, defined by OrderStatus enum.
218
174
  status: OrderStatus;
219
- // Timestamp when the order was created.
220
- createdAt: Date;
221
- // Timestamp when the order was last updated.
222
- updatedAt: Date;
223
175
  // Timestamp when the action was executed.
224
176
  executionTime?: Date;
225
177
  // The Alpaca account this order is associated with.
@@ -232,9 +184,7 @@ export interface Order {
232
184
  fee?: number;
233
185
  }
234
186
 
235
- export interface Position {
236
- // Unique identifier for the position.
237
- id: string;
187
+ export type Position = {
238
188
  // Reference to the associated asset.
239
189
  assetId: string;
240
190
  // Relation to the Asset model.
@@ -278,9 +228,7 @@ export enum AlertType {
278
228
  INFO = "INFO"
279
229
  }
280
230
 
281
- export interface Alert {
282
- // Unique identifier for the alert.
283
- id: string;
231
+ export type Alert = {
284
232
  // Reference to the Alpaca account associated with the alert.
285
233
  alpacaAccountId: string;
286
234
  // Message content of the alert.
@@ -289,17 +237,11 @@ export interface Alert {
289
237
  type: AlertType;
290
238
  // Indicates whether the alert has been read by the user.
291
239
  isRead: boolean;
292
- // Timestamp when the alert was created.
293
- createdAt: Date;
294
- // Timestamp when the alert was last updated.
295
- updatedAt: Date;
296
240
  // Relation to the AlpacaAccount model.
297
241
  alpacaAccount: AlpacaAccount;
298
242
  }
299
243
 
300
- export interface AlpacaAccount {
301
- // Unique identifier for the Alpaca account.
302
- id: string;
244
+ export type AlpacaAccount = {
303
245
  // The type of Alpaca account (PAPER or LIVE).
304
246
  type: AlpacaAccountType;
305
247
  // API key for authenticating requests to Alpaca.
@@ -314,10 +256,6 @@ export interface AlpacaAccount {
314
256
  user: User;
315
257
  // Foreign key referencing the User.
316
258
  userId: string;
317
- // Timestamp when the Alpaca account was created.
318
- createdAt: Date;
319
- // Timestamp when the Alpaca account was last updated.
320
- updatedAt: Date;
321
259
  // List of trades executed through this Alpaca account.
322
260
  trades: Trade[];
323
261
  // List of orders placed through this Alpaca account.
@@ -328,9 +266,7 @@ export interface AlpacaAccount {
328
266
  alerts: Alert[];
329
267
  }
330
268
 
331
- export interface User {
332
- // Unique identifier for the user.
333
- id: string;
269
+ export type User = {
334
270
  // The user's full name.
335
271
  name?: string;
336
272
  // The user's email address, must be unique.
@@ -339,10 +275,6 @@ export interface User {
339
275
  emailVerified?: Date;
340
276
  // URL to the user's profile image.
341
277
  image?: string;
342
- // Timestamp when the user account was created.
343
- createdAt: Date;
344
- // Timestamp when the user account was last updated.
345
- updatedAt: Date;
346
278
  // The role assigned to the user, determining permissions.
347
279
  role: UserRole;
348
280
  // A short biography or description of the user.
@@ -1,2 +1,2 @@
1
- export declare const EconomicEventTypeString = "\nYour response should adhere to the following type definition for the \"EconomicEvent\" type, as well as any ENUMS used by it (which include 'EventImportance' enum).\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 EconomicEvent {\n // Unique identifier for the economic event.\n id: string;\n // Title or name of the economic event.\n title: string;\n // Detailed description of the economic event.\n description?: string;\n // Date and time when the economic event is scheduled to occur.\n date: Date;\n // Importance level of the event, defined by EventImportance enum.\n importance: EventImportance;\n // Timestamp when the economic event was created in the database.\n createdAt: Date;\n // Timestamp when the economic event was last updated in the database.\n updatedAt: Date;\n}\n\nexport enum EventImportance {\n LOW = \"LOW\",\n MEDIUM = \"MEDIUM\",\n HIGH = \"HIGH\"\n}\n\n";
1
+ export declare const EconomicEventTypeString = "\nYour response should adhere to the following type definition for the \"EconomicEvent\" type, as well as any ENUMS used by it (which include 'EventImportance' enum).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type EconomicEvent = {\n // Title or name of the economic event.\n title: string;\n // Detailed description of the economic event.\n description?: string;\n // Date and time when the economic event is scheduled to occur.\n date: Date;\n // Importance level of the event, defined by EventImportance enum.\n importance: EventImportance;\n}\n\nexport enum EventImportance {\n LOW = \"LOW\",\n MEDIUM = \"MEDIUM\",\n HIGH = \"HIGH\"\n}\n\n";
2
2
  //# sourceMappingURL=EconomicEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EconomicEvent.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,++BA4BnC,CAAC"}
1
+ {"version":3,"file":"EconomicEvent.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,svBAsBnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BtC,CAAC"}
1
+ {"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBtC,CAAC"}
@@ -3,9 +3,7 @@ Your response should adhere to the following type definition for the "EconomicEv
3
3
 
4
4
  Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
5
5
 
6
- export interface EconomicEvent {
7
- // Unique identifier for the economic event.
8
- id: string;
6
+ export type EconomicEvent = {
9
7
  // Title or name of the economic event.
10
8
  title: string;
11
9
  // Detailed description of the economic event.
@@ -14,10 +12,6 @@ export interface EconomicEvent {
14
12
  date: Date;
15
13
  // Importance level of the event, defined by EventImportance enum.
16
14
  importance: EventImportance;
17
- // Timestamp when the economic event was created in the database.
18
- createdAt: Date;
19
- // Timestamp when the economic event was last updated in the database.
20
- updatedAt: Date;
21
15
  }
22
16
 
23
17
  export enum EventImportance {
@@ -1,2 +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\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\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 // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\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 OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\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 // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\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 stopLoss?: 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 // Timestamp when the action was executed.\n executionTime?: Date;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\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 // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: 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";
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 type NewsArticle = {\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 // 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\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\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 // 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 // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\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 OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\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 stopLoss?: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\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 type Asset = {\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 // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\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 type NewsArticleAssetSentiment = {\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
2
  //# sourceMappingURL=NewsArticle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,qgXAmXjC,CAAC"}
1
+ {"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,ozUA2UjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmXpC,CAAC"}
1
+ {"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2UpC,CAAC"}
@@ -3,9 +3,7 @@ Your response should adhere to the following type definition for the "NewsArticl
3
3
 
4
4
  Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
5
5
 
6
- export interface NewsArticle {
7
- // Unique identifier for the news article.
8
- id: string;
6
+ export type NewsArticle = {
9
7
  // Title of the news article.
10
8
  title: string;
11
9
  // Full content of the news article.
@@ -32,10 +30,6 @@ export interface NewsArticle {
32
30
  topics: string[];
33
31
  // URL to the logo image of the news source.
34
32
  logo?: string;
35
- // Timestamp when the news article was added to the database.
36
- createdAt: Date;
37
- // Timestamp when the news article was last updated.
38
- updatedAt: Date;
39
33
  // List of asset sentiments associated with this news article.
40
34
  assets: NewsArticleAssetSentiment[];
41
35
  }
@@ -71,26 +65,12 @@ export enum TradeStatus {
71
65
  COMPLETED = "COMPLETED"
72
66
  }
73
67
 
74
- // Simplified reference to AlpacaAccount.
75
- export interface AlpacaAccount {
76
- // Unique identifier for the Alpaca account.
77
- id: string;
78
- }
79
-
80
68
  export enum OptionContractType {
81
69
  CALL = "CALL",
82
70
  PUT = "PUT"
83
71
  }
84
72
 
85
- // Simplified reference to Action.
86
- export interface Action {
87
- // Unique identifier for the action.
88
- id: string;
89
- }
90
-
91
- export interface Trade {
92
- // Unique identifier for the trade.
93
- id: string;
73
+ export type Trade = {
94
74
  // Reference to the Alpaca account used for the trade.
95
75
  alpacaAccountId: string;
96
76
  // Reference to the asset being traded.
@@ -111,10 +91,6 @@ export interface Trade {
111
91
  confidence: number;
112
92
  // Timestamp when the trade was executed.
113
93
  timestamp: Date;
114
- // Timestamp when the trade record was created.
115
- createdAt: Date;
116
- // Timestamp when the trade record was last updated.
117
- updatedAt: Date;
118
94
  // Current status of the trade.
119
95
  status: TradeStatus;
120
96
  // Relation to the AlpacaAccount model.
@@ -146,9 +122,7 @@ export enum OrderStatus {
146
122
  REJECTED = "REJECTED"
147
123
  }
148
124
 
149
- export interface Order {
150
- // Unique identifier for the order.
151
- id: string;
125
+ export type Order = {
152
126
  // Reference to the Alpaca account used for the order.
153
127
  alpacaAccountId: string;
154
128
  // Reference to the asset being ordered.
@@ -166,10 +140,6 @@ export interface Order {
166
140
  stopLoss?: number;
167
141
  // Current status of the order, defined by OrderStatus enum.
168
142
  status: OrderStatus;
169
- // Timestamp when the order was created.
170
- createdAt: Date;
171
- // Timestamp when the order was last updated.
172
- updatedAt: Date;
173
143
  // Timestamp when the action was executed.
174
144
  executionTime?: Date;
175
145
  // The Alpaca account this order is associated with.
@@ -182,9 +152,7 @@ export interface Order {
182
152
  fee?: number;
183
153
  }
184
154
 
185
- export interface Position {
186
- // Unique identifier for the position.
187
- id: string;
155
+ export type Position = {
188
156
  // Reference to the associated asset.
189
157
  assetId: string;
190
158
  // Relation to the Asset model.
@@ -221,9 +189,7 @@ export interface Position {
221
189
  alpacaAccountId: string;
222
190
  }
223
191
 
224
- export interface Asset {
225
- // Unique identifier for the asset.
226
- id: string;
192
+ export type Asset = {
227
193
  // Ticker symbol of the asset, must be unique.
228
194
  symbol: string;
229
195
  // Full name of the asset, must be unique.
@@ -334,10 +300,6 @@ export interface Asset {
334
300
  sellPrice?: string;
335
301
  // Last buy price of the asset.
336
302
  buyPrice?: string;
337
- // Timestamp when the asset was created in the database.
338
- createdAt: Date;
339
- // Timestamp when the asset was last updated in the database.
340
- updatedAt: Date;
341
303
  // List of trades involving this asset.
342
304
  trades: Trade[];
343
305
  // List of orders involving this asset.
@@ -348,9 +310,7 @@ export interface Asset {
348
310
  newsMentions: NewsArticleAssetSentiment[];
349
311
  }
350
312
 
351
- export interface NewsArticleAssetSentiment {
352
- // Unique identifier for the sentiment record.
353
- id: string;
313
+ export type NewsArticleAssetSentiment = {
354
314
  // Reference to the associated asset.
355
315
  assetId: string;
356
316
  // Reference to the associated news article.
@@ -1,2 +1,2 @@
1
- export declare const NewsArticleAssetSentimentTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type, and its nested object types (which include 'NewsArticle', 'Asset' types).\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 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\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\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\n// Simplified reference to User.\nexport interface User {\n// Unique identifier for the user.\n id: string;\n}\n\n// Simplified reference to Order.\nexport interface Order {\n// Unique identifier for the order.\n id: string;\n}\n\n// Simplified reference to Position.\nexport interface Position {\n// Unique identifier for the position.\n id: string;\n}\n\n// Simplified reference to Alert.\nexport interface Alert {\n// Unique identifier for the alert.\n id: string;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum ActionType {\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 ActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Reference to the order ID associated with the action.\n orderId?: string;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The trade this action is part of.\n trade: Trade;\n // The order associated with this action.\n order?: Order;\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 // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\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 // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: 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\n";
1
+ export declare const NewsArticleAssetSentimentTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type, and its nested object types (which include 'NewsArticle', 'Asset' types).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type NewsArticleAssetSentiment = {\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\nexport type NewsArticle = {\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 // 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\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum ActionType {\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 ActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Reference to the order ID associated with the action.\n orderId?: string;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The trade this action is part of.\n trade: Trade;\n // The order associated with this action.\n order?: Order;\n}\n\nexport type Trade = {\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 // 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 // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport type Asset = {\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 // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\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\n";
2
2
  //# sourceMappingURL=NewsArticleAssetSentiment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,yrWA4W/C,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,yvTAwT/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4WlD,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwTlD,CAAC"}
@@ -3,9 +3,7 @@ Your response should adhere to the following type definition for the "NewsArticl
3
3
 
4
4
  Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
5
5
 
6
- export interface NewsArticleAssetSentiment {
7
- // Unique identifier for the sentiment record.
8
- id: string;
6
+ export type NewsArticleAssetSentiment = {
9
7
  // Reference to the associated asset.
10
8
  assetId: string;
11
9
  // Reference to the associated news article.
@@ -24,9 +22,7 @@ export interface NewsArticleAssetSentiment {
24
22
  sentimentLabel?: string;
25
23
  }
26
24
 
27
- export interface NewsArticle {
28
- // Unique identifier for the news article.
29
- id: string;
25
+ export type NewsArticle = {
30
26
  // Title of the news article.
31
27
  title: string;
32
28
  // Full content of the news article.
@@ -53,10 +49,6 @@ export interface NewsArticle {
53
49
  topics: string[];
54
50
  // URL to the logo image of the news source.
55
51
  logo?: string;
56
- // Timestamp when the news article was added to the database.
57
- createdAt: Date;
58
- // Timestamp when the news article was last updated.
59
- updatedAt: Date;
60
52
  // List of asset sentiments associated with this news article.
61
53
  assets: NewsArticleAssetSentiment[];
62
54
  }
@@ -97,33 +89,7 @@ export enum AlpacaAccountType {
97
89
  LIVE = "LIVE"
98
90
  }
99
91
 
100
- // Simplified reference to User.
101
- export interface User {
102
- // Unique identifier for the user.
103
- id: string;
104
- }
105
-
106
- // Simplified reference to Order.
107
- export interface Order {
108
- // Unique identifier for the order.
109
- id: string;
110
- }
111
-
112
- // Simplified reference to Position.
113
- export interface Position {
114
- // Unique identifier for the position.
115
- id: string;
116
- }
117
-
118
- // Simplified reference to Alert.
119
- export interface Alert {
120
- // Unique identifier for the alert.
121
- id: string;
122
- }
123
-
124
- export interface AlpacaAccount {
125
- // Unique identifier for the Alpaca account.
126
- id: string;
92
+ export type AlpacaAccount = {
127
93
  // The type of Alpaca account (PAPER or LIVE).
128
94
  type: AlpacaAccountType;
129
95
  // API key for authenticating requests to Alpaca.
@@ -138,10 +104,6 @@ export interface AlpacaAccount {
138
104
  user: User;
139
105
  // Foreign key referencing the User.
140
106
  userId: string;
141
- // Timestamp when the Alpaca account was created.
142
- createdAt: Date;
143
- // Timestamp when the Alpaca account was last updated.
144
- updatedAt: Date;
145
107
  // List of trades executed through this Alpaca account.
146
108
  trades: Trade[];
147
109
  // List of orders placed through this Alpaca account.
@@ -173,9 +135,7 @@ export enum ActionStatus {
173
135
  COMPLETED = "COMPLETED"
174
136
  }
175
137
 
176
- export interface Action {
177
- // Unique identifier for the action.
178
- id: string;
138
+ export type Action = {
179
139
  // Sequence number of the action within the trade.
180
140
  sequence: number;
181
141
  // Reference to the trade this action is part of.
@@ -196,9 +156,7 @@ export interface Action {
196
156
  order?: Order;
197
157
  }
198
158
 
199
- export interface Trade {
200
- // Unique identifier for the trade.
201
- id: string;
159
+ export type Trade = {
202
160
  // Reference to the Alpaca account used for the trade.
203
161
  alpacaAccountId: string;
204
162
  // Reference to the asset being traded.
@@ -219,10 +177,6 @@ export interface Trade {
219
177
  confidence: number;
220
178
  // Timestamp when the trade was executed.
221
179
  timestamp: Date;
222
- // Timestamp when the trade record was created.
223
- createdAt: Date;
224
- // Timestamp when the trade record was last updated.
225
- updatedAt: Date;
226
180
  // Current status of the trade.
227
181
  status: TradeStatus;
228
182
  // Relation to the AlpacaAccount model.
@@ -235,9 +189,7 @@ export interface Trade {
235
189
  actions: Action[];
236
190
  }
237
191
 
238
- export interface Asset {
239
- // Unique identifier for the asset.
240
- id: string;
192
+ export type Asset = {
241
193
  // Ticker symbol of the asset, must be unique.
242
194
  symbol: string;
243
195
  // Full name of the asset, must be unique.
@@ -348,10 +300,6 @@ export interface Asset {
348
300
  sellPrice?: string;
349
301
  // Last buy price of the asset.
350
302
  buyPrice?: string;
351
- // Timestamp when the asset was created in the database.
352
- createdAt: Date;
353
- // Timestamp when the asset was last updated in the database.
354
- updatedAt: Date;
355
303
  // List of trades involving this asset.
356
304
  trades: Trade[];
357
305
  // List of orders involving this asset.