adaptic-backend 1.0.198 → 1.0.199

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 (171) hide show
  1. package/generated/typeStrings/Account.cjs +2 -3
  2. package/generated/typeStrings/Account.d.ts +1 -1
  3. package/generated/typeStrings/Account.d.ts.map +1 -1
  4. package/generated/typeStrings/Account.js.map +1 -1
  5. package/generated/typeStrings/Action.cjs +13 -138
  6. package/generated/typeStrings/Action.d.ts +1 -1
  7. package/generated/typeStrings/Action.d.ts.map +1 -1
  8. package/generated/typeStrings/Action.js.map +1 -1
  9. package/generated/typeStrings/Alert.cjs +2 -3
  10. package/generated/typeStrings/Alert.d.ts +1 -1
  11. package/generated/typeStrings/Alert.d.ts.map +1 -1
  12. package/generated/typeStrings/Alert.js.map +1 -1
  13. package/generated/typeStrings/AlpacaAccount.cjs +77 -5
  14. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  15. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  16. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  17. package/generated/typeStrings/Asset.cjs +2 -3
  18. package/generated/typeStrings/Asset.d.ts +1 -1
  19. package/generated/typeStrings/Asset.d.ts.map +1 -1
  20. package/generated/typeStrings/Asset.js.map +1 -1
  21. package/generated/typeStrings/Authenticator.cjs +2 -3
  22. package/generated/typeStrings/Authenticator.d.ts +1 -1
  23. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  24. package/generated/typeStrings/Authenticator.js.map +1 -1
  25. package/generated/typeStrings/Customer.cjs +4 -4
  26. package/generated/typeStrings/Customer.d.ts +1 -1
  27. package/generated/typeStrings/Customer.d.ts.map +1 -1
  28. package/generated/typeStrings/EconomicEvent.cjs +2 -3
  29. package/generated/typeStrings/EconomicEvent.d.ts +1 -1
  30. package/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  31. package/generated/typeStrings/EconomicEvent.js.map +1 -1
  32. package/generated/typeStrings/MarketSentiment.cjs +2 -3
  33. package/generated/typeStrings/MarketSentiment.d.ts +1 -1
  34. package/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  35. package/generated/typeStrings/MarketSentiment.js.map +1 -1
  36. package/generated/typeStrings/NewsArticle.cjs +2 -3
  37. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  38. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  39. package/generated/typeStrings/NewsArticle.js.map +1 -1
  40. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +5 -3
  41. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  42. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  43. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  44. package/generated/typeStrings/Order.cjs +5 -3
  45. package/generated/typeStrings/Order.d.ts +1 -1
  46. package/generated/typeStrings/Order.d.ts.map +1 -1
  47. package/generated/typeStrings/Order.js.map +1 -1
  48. package/generated/typeStrings/Position.cjs +5 -68
  49. package/generated/typeStrings/Position.d.ts +1 -1
  50. package/generated/typeStrings/Position.d.ts.map +1 -1
  51. package/generated/typeStrings/Position.js.map +1 -1
  52. package/generated/typeStrings/ScheduledOptionOrder.cjs +2 -3
  53. package/generated/typeStrings/ScheduledOptionOrder.d.ts +1 -1
  54. package/generated/typeStrings/ScheduledOptionOrder.d.ts.map +1 -1
  55. package/generated/typeStrings/ScheduledOptionOrder.js.map +1 -1
  56. package/generated/typeStrings/Session.cjs +4 -4
  57. package/generated/typeStrings/Session.d.ts +1 -1
  58. package/generated/typeStrings/Session.d.ts.map +1 -1
  59. package/generated/typeStrings/StopLoss.cjs +2 -3
  60. package/generated/typeStrings/StopLoss.d.ts +1 -1
  61. package/generated/typeStrings/StopLoss.d.ts.map +1 -1
  62. package/generated/typeStrings/StopLoss.js.map +1 -1
  63. package/generated/typeStrings/TakeProfit.cjs +2 -3
  64. package/generated/typeStrings/TakeProfit.d.ts +1 -1
  65. package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  66. package/generated/typeStrings/TakeProfit.js.map +1 -1
  67. package/generated/typeStrings/Trade.cjs +153 -4
  68. package/generated/typeStrings/Trade.d.ts +1 -1
  69. package/generated/typeStrings/Trade.d.ts.map +1 -1
  70. package/generated/typeStrings/Trade.js.map +1 -1
  71. package/generated/typeStrings/User.cjs +5 -5
  72. package/generated/typeStrings/User.d.ts +1 -1
  73. package/generated/typeStrings/User.d.ts.map +1 -1
  74. package/generated/typeStrings/VerificationToken.cjs +2 -3
  75. package/generated/typeStrings/VerificationToken.d.ts +1 -1
  76. package/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  77. package/generated/typeStrings/VerificationToken.js.map +1 -1
  78. package/generated/typeStrings/index.d.ts +20 -20
  79. package/generated/typegraphql-prisma/models/Action.d.ts +1 -1
  80. package/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  81. package/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.cjs +1 -1
  82. package/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.js.map +1 -1
  83. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.cjs +1 -1
  84. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  85. package/package.json +1 -1
  86. package/server/generated/typeStrings/Account.d.ts +1 -1
  87. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  88. package/server/generated/typeStrings/Account.js.map +1 -1
  89. package/server/generated/typeStrings/Account.mjs +2 -3
  90. package/server/generated/typeStrings/Action.d.ts +1 -1
  91. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  92. package/server/generated/typeStrings/Action.js.map +1 -1
  93. package/server/generated/typeStrings/Action.mjs +13 -138
  94. package/server/generated/typeStrings/Alert.d.ts +1 -1
  95. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  96. package/server/generated/typeStrings/Alert.js.map +1 -1
  97. package/server/generated/typeStrings/Alert.mjs +2 -3
  98. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  99. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  100. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  101. package/server/generated/typeStrings/AlpacaAccount.mjs +77 -5
  102. package/server/generated/typeStrings/Asset.d.ts +1 -1
  103. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  104. package/server/generated/typeStrings/Asset.js.map +1 -1
  105. package/server/generated/typeStrings/Asset.mjs +2 -3
  106. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  107. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  108. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  109. package/server/generated/typeStrings/Authenticator.mjs +2 -3
  110. package/server/generated/typeStrings/Customer.d.ts +1 -1
  111. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  112. package/server/generated/typeStrings/Customer.mjs +4 -4
  113. package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
  114. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  115. package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
  116. package/server/generated/typeStrings/EconomicEvent.mjs +2 -3
  117. package/server/generated/typeStrings/MarketSentiment.d.ts +1 -1
  118. package/server/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  119. package/server/generated/typeStrings/MarketSentiment.js.map +1 -1
  120. package/server/generated/typeStrings/MarketSentiment.mjs +2 -3
  121. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  122. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  123. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  124. package/server/generated/typeStrings/NewsArticle.mjs +2 -3
  125. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  126. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  127. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  128. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +5 -3
  129. package/server/generated/typeStrings/Order.d.ts +1 -1
  130. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  131. package/server/generated/typeStrings/Order.js.map +1 -1
  132. package/server/generated/typeStrings/Order.mjs +5 -3
  133. package/server/generated/typeStrings/Position.d.ts +1 -1
  134. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  135. package/server/generated/typeStrings/Position.js.map +1 -1
  136. package/server/generated/typeStrings/Position.mjs +5 -68
  137. package/server/generated/typeStrings/ScheduledOptionOrder.d.ts +1 -1
  138. package/server/generated/typeStrings/ScheduledOptionOrder.d.ts.map +1 -1
  139. package/server/generated/typeStrings/ScheduledOptionOrder.js.map +1 -1
  140. package/server/generated/typeStrings/ScheduledOptionOrder.mjs +2 -3
  141. package/server/generated/typeStrings/Session.d.ts +1 -1
  142. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  143. package/server/generated/typeStrings/Session.mjs +4 -4
  144. package/server/generated/typeStrings/StopLoss.d.ts +1 -1
  145. package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
  146. package/server/generated/typeStrings/StopLoss.js.map +1 -1
  147. package/server/generated/typeStrings/StopLoss.mjs +2 -3
  148. package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
  149. package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  150. package/server/generated/typeStrings/TakeProfit.js.map +1 -1
  151. package/server/generated/typeStrings/TakeProfit.mjs +2 -3
  152. package/server/generated/typeStrings/Trade.d.ts +1 -1
  153. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  154. package/server/generated/typeStrings/Trade.js.map +1 -1
  155. package/server/generated/typeStrings/Trade.mjs +153 -4
  156. package/server/generated/typeStrings/User.d.ts +1 -1
  157. package/server/generated/typeStrings/User.d.ts.map +1 -1
  158. package/server/generated/typeStrings/User.mjs +5 -5
  159. package/server/generated/typeStrings/VerificationToken.d.ts +1 -1
  160. package/server/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  161. package/server/generated/typeStrings/VerificationToken.js.map +1 -1
  162. package/server/generated/typeStrings/VerificationToken.mjs +2 -3
  163. package/server/generated/typeStrings/index.d.ts +20 -20
  164. package/server/generated/typegraphql-prisma/models/Action.d.ts +1 -1
  165. package/server/generated/typegraphql-prisma/models/Action.mjs +1 -1
  166. package/server/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  167. package/server/generated/typegraphql-prisma/models/Trade.mjs +1 -1
  168. package/server/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.js.map +1 -1
  169. package/server/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.mjs +1 -1
  170. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  171. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.mjs +1 -1
@@ -1,7 +1,6 @@
1
1
  export const ActionTypeString = `
2
- Your response should adhere to the following type definition for the "Action" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "Action" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type Action = {
7
6
  // Sequence number of the action within the trade.
@@ -16,154 +15,30 @@ export type Action = {
16
15
  fee?: number;
17
16
  // The order associated with this action.
18
17
  order?: {
18
+ // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.
19
19
  qty?: number;
20
- notional?: number;
20
+ // Side of the order ('BUY' or 'SELL').
21
21
  side: OrderSide;
22
+ // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').
22
23
  type: OrderType;
24
+ // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.
23
25
  orderClass: OrderClass;
26
+ // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').
24
27
  timeInForce: TimeInForce;
25
- limitPrice?: number;
26
- stopPrice?: number;
27
- stopLoss?: {
28
- // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.
29
- stopPrice?: number;
30
- // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.
31
- limitPrice?: number;
32
- };
33
- takeProfit?: {
34
- // Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.
35
- limitPrice?: number;
36
- // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.
37
- stopPrice?: number;
38
- };
39
- trailPrice?: number;
28
+ // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.
40
29
  trailPercent?: number;
30
+ // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.
41
31
  extendedHours?: boolean;
32
+ // Current status of the order.
42
33
  status: OrderStatus;
34
+ // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.
43
35
  strikePrice?: number;
36
+ // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.
44
37
  expirationDate?: Date;
38
+ // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.
45
39
  optionType?: OptionType;
46
40
  };
47
41
  };
48
42
 
49
- enum OrderSide {
50
- /// Represents the buying side of a trade action.
51
- BUY
52
-
53
- /// Represents the selling side of a trade action.
54
- SELL
55
- }
56
-
57
- enum OrderType {
58
- /// Executes immediately at the best available current market price.
59
- MARKET
60
-
61
- /// Executes only at the specified limit price or better.
62
- LIMIT
63
-
64
- /// Becomes a market order once the stop price is triggered.
65
- STOP
66
-
67
- /// Becomes a limit order once the stop price is triggered.
68
- STOP_LIMIT
69
-
70
- /// Adjusts the stop price based on a specified trail amount or percentage.
71
- TRAILING_STOP
72
- }
73
-
74
- enum OrderClass {
75
- /// A single standalone order without additional conditions.
76
- SIMPLE
77
-
78
- /// A primary order with attached take-profit and stop-loss orders to automatically manage the trade.
79
- BRACKET
80
-
81
- /// OCO (One-Cancels-Other): A pair of orders where the execution of one cancels the other.
82
- OCO
83
-
84
- /// OSO (One Sends Other): A chain of orders where the execution of one order triggers the placement of another.
85
- OSO
86
-
87
- /// OTO (One-Triggers-Other): Similar to BRACKET, where the execution of one order triggers the placement of another.
88
- OTO
89
- }
90
-
91
- // Time in force enum (day, gtc, opg, cls, etc.).
92
- enum TimeInForce {
93
- /// The order is valid for the day and expires at market close.
94
- DAY
95
-
96
- /// The order is valid until canceled by the user.
97
- GTC
98
-
99
- /// The order is valid for the opening of the market.
100
- OPG
101
-
102
- /// The order is valid until the close of the market.
103
- CLS
104
-
105
- /// The order must be executed immediately or canceled.
106
- IOC
107
-
108
- /// The order must be executed immediately or canceled.
109
- FOK
110
- }
111
-
112
- enum OrderStatus {
113
- /// The order has been staged in Adaptic to be sent to Alpaca. This is the initial status.
114
- STAGED
115
-
116
- /// The order has been received by Alpaca, and routed to exchanges for execution. This is the usual initial state of an order after being received.
117
- NEW
118
-
119
- /// The order has been partially filled.
120
- PARTIALLY_FILLED
121
-
122
- /// The order has been filled, and no further updates will occur for the order.
123
- FILLED
124
-
125
- /// The order is done executing for the day, and will not receive further updates until the next trading day.
126
- DONE_FOR_DAY
127
-
128
- /// The order has been canceled, and no further updates will occur for the order. This can be either due to a cancel request by the user, or the order has been canceled by the exchanges due to its time-in-force.
129
- CANCELED
130
-
131
- /// The order has expired, and no further updates will occur for the order.
132
- EXPIRED
133
-
134
- /// The order is waiting to be triggered, usually for stop or stop-limit orders.
135
- HELD
136
-
137
- /// The order was replaced by another order, or was updated due to a market event such as corporate action.
138
- REPLACED
139
-
140
- /// The order is waiting to be canceled.
141
- PENDING_CANCEL
142
-
143
- /// The order is waiting to be replaced by another order. The order will reject cancel request while in this state.
144
- PENDING_REPLACE
145
-
146
- /// The order has been received by Alpaca, but hasn’t yet been routed to the execution venue. This could be seen often outside of trading session hours.
147
- ACCEPTED
148
-
149
- /// The order has been received by Alpaca, and routed to the exchanges, but has not yet been accepted for execution. This state only occurs on rare occasions.
150
- PENDING_NEW
151
-
152
- /// The order has been received by exchanges, and is evaluated for pricing. This state only occurs on rare occasions.
153
- ACCEPTED_FOR_BIDDING
154
-
155
- /// The order has been stopped, and a trade is guaranteed for the order, usually at a stated price or better, but has not yet occurred. This state only occurs on rare occasions.
156
- STOPPED
157
-
158
- /// The order has been rejected, and no further updates will occur for the order. This state occurs on rare occasions and may occur based on various conditions decided by the exchanges.
159
- REJECTED
160
-
161
- /// The order has been suspended, and is not eligible for trading. This state only occurs on rare occasions.
162
- SUSPENDED
163
-
164
- /// The order has been completed for the day (either filled or done for day), but remaining settlement calculations are still pending. This state only occurs on rare occasions.
165
- CALCULATED
166
- }
167
-
168
43
  `;
169
44
  //# sourceMappingURL=Action.js.map
@@ -1,2 +1,2 @@
1
- export declare const AlertTypeString = "\nYour response should adhere to the following type definition for the \"Alert\" 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 Alert = {\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n};\n\nenum AlertType {\n /// Indicates a successful operation or event.\n SUCCESS\n\n /// Represents a warning that requires attention.\n WARNING\n\n /// Signifies an error that needs to be addressed.\n ERROR\n\n /// Provides informational messages to the user.\n INFO\n}\n\n";
1
+ export declare const AlertTypeString = "\n// Your response should adhere to the following type definition for the \"Alert\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Alert = {\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n};\n\nenum AlertType {\n /// Indicates a successful operation or event.\n SUCCESS\n\n /// Represents a warning that requires attention.\n WARNING\n\n /// Signifies an error that needs to be addressed.\n ERROR\n\n /// Provides informational messages to the user.\n INFO\n}\n\n";
2
2
  //# sourceMappingURL=Alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,quBA4B3B,CAAC"}
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,yuBA2B3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B9B,CAAC"}
1
+ {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B9B,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export const AlertTypeString = `
2
- Your response should adhere to the following type definition for the "Alert" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "Alert" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type Alert = {
7
6
  // Message content of the alert.
@@ -1,2 +1,2 @@
1
- export declare const AlpacaAccountTypeString = "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" 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 AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\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 // List of positions held in this Alpaca account.\n positions: {\n id: string;\n qty: number;\n asset: Asset;\n }[];\n};\n\n";
1
+ export declare const AlpacaAccountTypeString = "\n// Your response should adhere to the following type definition for the \"AlpacaAccount\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\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 // List of positions held in this Alpaca account.\n positions: {\n // Total quantity of the asset held.\n qty: number;\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n }[];\n};\n\nenum AssetType {\n /// Represents a share of ownership in a corporation.\n STOCK\n\n /// Exchange-Traded Fund, a type of investment fund traded on stock exchanges.\n ETF\n\n /// A mutual fund that pools money from many investors to purchase securities.\n MUTUAL_FUND\n\n /// Digital or virtual currencies using cryptography for security.\n CRYPTOCURRENCY\n\n /// A market index representing a collection of stocks.\n INDEX\n\n /// Physical goods such as gold, oil, or agricultural products.\n COMMODITY\n\n /// Traditional currencies used in international trade.\n CURRENCY\n\n /// Contracts that give the holder the right to buy or sell an asset at a set price.\n OPTION\n\n /// Financial contracts obligating the buyer to purchase an asset at a future date.\n FUTURE\n\n /// Debt securities issued by entities to raise capital.\n BOND\n\n /// Securities that give the holder the right to purchase stock at a specific price.\n WARRANT\n\n /// American Depositary Receipts representing shares in foreign companies.\n ADR\n\n /// Global Depositary Receipts representing shares in foreign companies.\n GDR\n\n /// Units of ownership in investment funds or trusts.\n UNIT\n\n /// Rights granted to shareholders, such as voting or dividend rights.\n RIGHT\n\n /// Real Estate Investment Trusts, companies that own or finance income-producing real estate.\n REIT\n\n /// Investment products structured to meet specific needs.\n STRUCTURED_PRODUCT\n\n /// Financial contracts to exchange cash flows between parties.\n SWAP\n\n /// Immediate exchange of financial instruments.\n SPOT\n\n /// Agreements to buy or sell an asset at a future date.\n FORWARD\n\n /// Any other type of asset not classified above.\n OTHER\n}\n\n";
2
2
  //# sourceMappingURL=AlpacaAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,4oBAoBnC,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,+nFA4FnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;CAoBtC,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FtC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export const AlpacaAccountTypeString = `
2
- Your response should adhere to the following type definition for the "AlpacaAccount" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "AlpacaAccount" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type AlpacaAccount = {
7
6
  // The type of Alpaca account (PAPER or LIVE).
@@ -12,11 +11,84 @@ export type AlpacaAccount = {
12
11
  marketOpen: boolean;
13
12
  // List of positions held in this Alpaca account.
14
13
  positions: {
15
- id: string;
14
+ // Total quantity of the asset held.
16
15
  qty: number;
17
- asset: Asset;
16
+ // Relation to the Asset model.
17
+ asset: {
18
+ // Ticker symbol of the asset
19
+ symbol: string;
20
+ // Full name of the asset
21
+ name: string;
22
+ // Type of the asset, defined by AssetType enum.
23
+ type: AssetType;
24
+ };
18
25
  }[];
19
26
  };
20
27
 
28
+ enum AssetType {
29
+ /// Represents a share of ownership in a corporation.
30
+ STOCK
31
+
32
+ /// Exchange-Traded Fund, a type of investment fund traded on stock exchanges.
33
+ ETF
34
+
35
+ /// A mutual fund that pools money from many investors to purchase securities.
36
+ MUTUAL_FUND
37
+
38
+ /// Digital or virtual currencies using cryptography for security.
39
+ CRYPTOCURRENCY
40
+
41
+ /// A market index representing a collection of stocks.
42
+ INDEX
43
+
44
+ /// Physical goods such as gold, oil, or agricultural products.
45
+ COMMODITY
46
+
47
+ /// Traditional currencies used in international trade.
48
+ CURRENCY
49
+
50
+ /// Contracts that give the holder the right to buy or sell an asset at a set price.
51
+ OPTION
52
+
53
+ /// Financial contracts obligating the buyer to purchase an asset at a future date.
54
+ FUTURE
55
+
56
+ /// Debt securities issued by entities to raise capital.
57
+ BOND
58
+
59
+ /// Securities that give the holder the right to purchase stock at a specific price.
60
+ WARRANT
61
+
62
+ /// American Depositary Receipts representing shares in foreign companies.
63
+ ADR
64
+
65
+ /// Global Depositary Receipts representing shares in foreign companies.
66
+ GDR
67
+
68
+ /// Units of ownership in investment funds or trusts.
69
+ UNIT
70
+
71
+ /// Rights granted to shareholders, such as voting or dividend rights.
72
+ RIGHT
73
+
74
+ /// Real Estate Investment Trusts, companies that own or finance income-producing real estate.
75
+ REIT
76
+
77
+ /// Investment products structured to meet specific needs.
78
+ STRUCTURED_PRODUCT
79
+
80
+ /// Financial contracts to exchange cash flows between parties.
81
+ SWAP
82
+
83
+ /// Immediate exchange of financial instruments.
84
+ SPOT
85
+
86
+ /// Agreements to buy or sell an asset at a future date.
87
+ FORWARD
88
+
89
+ /// Any other type of asset not classified above.
90
+ OTHER
91
+ }
92
+
21
93
  `;
22
94
  //# sourceMappingURL=AlpacaAccount.js.map
@@ -1,2 +1,2 @@
1
- export declare const AssetTypeString = "\nYour response should adhere to the following type definition for the \"Asset\" 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 Asset = {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n};\n\n";
1
+ export declare const AssetTypeString = "\n// Your response should adhere to the following type definition for the \"Asset\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Asset = {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n};\n\n";
2
2
  //# sourceMappingURL=Asset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,yaAc3B,CAAC"}
1
+ {"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,6aAa3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;CAc9B,CAAC"}
1
+ {"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;CAa9B,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export const AssetTypeString = `
2
- Your response should adhere to the following type definition for the "Asset" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "Asset" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type Asset = {
7
6
  // Ticker symbol of the asset
@@ -1,2 +1,2 @@
1
- export declare const AuthenticatorTypeString = "\nYour response should adhere to the following type definition for the \"Authenticator\" 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 Authenticator = {\n\n};\n\n";
1
+ export declare const AuthenticatorTypeString = "\n// Your response should adhere to the following type definition for the \"Authenticator\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Authenticator = {\n\n};\n\n";
2
2
  //# sourceMappingURL=Authenticator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,iRASnC,CAAC"}
1
+ {"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,qRAQnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Authenticator.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;CAStC,CAAC"}
1
+ {"version":3,"file":"Authenticator.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;CAQtC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export const AuthenticatorTypeString = `
2
- Your response should adhere to the following type definition for the "Authenticator" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "Authenticator" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type Authenticator = {
7
6
 
@@ -1,2 +1,2 @@
1
- export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" 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 Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: {\n id: string;\n name?: string;\n email?: string;\n }[];\n};\n\n";
1
+ export declare const CustomerTypeString = "\n// Your response should adhere to the following type definition for the \"Customer\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n }[];\n};\n\n";
2
2
  //# sourceMappingURL=Customer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,8lBAoB9B,CAAC"}
1
+ {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,iqBAoB9B,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export const CustomerTypeString = `
2
- Your response should adhere to the following type definition for the "Customer" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "Customer" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type Customer = {
7
6
  // Name of the customer.
@@ -12,8 +11,9 @@ export type Customer = {
12
11
  stripeCurrentPeriodEnd?: Date;
13
12
  // List of users associated with the customer.
14
13
  users: {
15
- id: string;
14
+ // The user's full name.
16
15
  name?: string;
16
+ // The user's email address, must be unique.
17
17
  email?: string;
18
18
  }[];
19
19
  };
@@ -1,2 +1,2 @@
1
- export declare const EconomicEventTypeString = "\nYour response should adhere to the following type definition for the \"EconomicEvent\" 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 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\nenum EventImportance {\n /// Low importance events with minimal impact.\n LOW\n\n /// Medium importance events with noticeable impact.\n MEDIUM\n\n /// High importance events with significant impact.\n HIGH\n}\n\n";
1
+ export declare const EconomicEventTypeString = "\n// Your response should adhere to the following type definition for the \"EconomicEvent\" type.\n// Importantly, 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\nenum EventImportance {\n /// Low importance events with minimal impact.\n LOW\n\n /// Medium importance events with noticeable impact.\n MEDIUM\n\n /// High importance events with significant impact.\n 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,0yBA2BnC,CAAC"}
1
+ {"version":3,"file":"EconomicEvent.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,8yBA0BnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BtC,CAAC"}
1
+ {"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export const EconomicEventTypeString = `
2
- Your response should adhere to the following type definition for the "EconomicEvent" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "EconomicEvent" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type EconomicEvent = {
7
6
  // Title or name of the economic event.
@@ -1,2 +1,2 @@
1
- export declare const MarketSentimentTypeString = "\nYour response should adhere to the following type definition for the \"MarketSentiment\" 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 MarketSentiment = {\n // The current level of market sentiment.\n sentiment: MarketSentimentLevel;\n // A one-sentence description of the market sentiment, including specific references to stock market index values, recent changes, trends, and technical indicators, as well as quotes from major news sources.\n description: string;\n // A detailed, multi-paragraph description of the market sentiment, including extensive analyses, references, quotes from major news sources, and links to articles.\n longDescription: string;\n};\n\nenum MarketSentimentLevel {\n /// Extremely negative outlook on the market.\n VERY_BEARISH\n\n /// Moderately negative outlook on the market.\n SOMEWHAT_BEARISH\n\n /// Negative outlook on the market.\n BEARISH\n\n /// Neutral outlook on the market.\n NEUTRAL\n\n /// Positive outlook on the market.\n SOMEWHAT_BULLISH\n\n /// Moderately positive outlook on the market.\n BULLISH\n\n /// Extremely positive outlook on the market.\n VERY_BULLISH\n}\n\n";
1
+ export declare const MarketSentimentTypeString = "\n// Your response should adhere to the following type definition for the \"MarketSentiment\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type MarketSentiment = {\n // The current level of market sentiment.\n sentiment: MarketSentimentLevel;\n // A one-sentence description of the market sentiment, including specific references to stock market index values, recent changes, trends, and technical indicators, as well as quotes from major news sources.\n description: string;\n // A detailed, multi-paragraph description of the market sentiment, including extensive analyses, references, quotes from major news sources, and links to articles.\n longDescription: string;\n};\n\nenum MarketSentimentLevel {\n /// Extremely negative outlook on the market.\n VERY_BEARISH\n\n /// Moderately negative outlook on the market.\n SOMEWHAT_BEARISH\n\n /// Negative outlook on the market.\n BEARISH\n\n /// Neutral outlook on the market.\n NEUTRAL\n\n /// Positive outlook on the market.\n SOMEWHAT_BULLISH\n\n /// Moderately positive outlook on the market.\n BULLISH\n\n /// Extremely positive outlook on the market.\n VERY_BULLISH\n}\n\n";
2
2
  //# sourceMappingURL=MarketSentiment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarketSentiment.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,ouCAqCrC,CAAC"}
1
+ {"version":3,"file":"MarketSentiment.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,wuCAoCrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarketSentiment.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxC,CAAC"}
1
+ {"version":3,"file":"MarketSentiment.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCxC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export const MarketSentimentTypeString = `
2
- Your response should adhere to the following type definition for the "MarketSentiment" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "MarketSentiment" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type MarketSentiment = {
7
6
  // The current level of market sentiment.
@@ -1,2 +1,2 @@
1
- export declare const NewsArticleTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticle\" 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};\n\n";
1
+ export declare const NewsArticleTypeString = "\n// Your response should adhere to the following type definition for the \"NewsArticle\" type.\n// Importantly, 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};\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,0mCAkCjC,CAAC"}
1
+ {"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,8mCAiCjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCpC,CAAC"}
1
+ {"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCpC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export const NewsArticleTypeString = `
2
- Your response should adhere to the following type definition for the "NewsArticle" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "NewsArticle" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type NewsArticle = {
7
6
  // Title of the news article.
@@ -1,2 +1,2 @@
1
- export declare const NewsArticleAssetSentimentTypeString = "\nYour response should adhere to the following type definition for the \"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 NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the Asset model.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\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 NewsArticleAssetSentimentTypeString = "\n// Your response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type.\n// Importantly, 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 // URL of the news article, must be unique.\n url: string;\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\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=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,4vBAsB/C,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,w3BAwB/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;;;;;;;;;;;;;;;;;;;;;;CAsBlD,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwBlD,CAAC"}
@@ -1,15 +1,17 @@
1
1
  export const NewsArticleAssetSentimentTypeString = `
2
- Your response should adhere to the following type definition for the "NewsArticleAssetSentiment" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "NewsArticleAssetSentiment" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type NewsArticleAssetSentiment = {
7
6
  // URL of the news article, must be unique.
8
7
  url: string;
9
8
  // Relation to the Asset model.
10
9
  asset: {
10
+ // Ticker symbol of the asset
11
11
  symbol: string;
12
+ // Full name of the asset
12
13
  name: string;
14
+ // Type of the asset, defined by AssetType enum.
13
15
  type: AssetType;
14
16
  };
15
17
  // Relevancy score indicating how relevant the news is to the asset.
@@ -1,2 +1,2 @@
1
- export declare const OrderTypeString = "\nYour response should adhere to the following type definition for the \"Order\" 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 Order = {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\n notional?: number;\n // Side of the order ('BUY' or 'SELL').\n side: OrderSide;\n // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').\n type: OrderType;\n // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset\u2019s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n};\n\n";
1
+ export declare const OrderTypeString = "\n// Your response should adhere to the following type definition for the \"Order\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Order = {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\n notional?: number;\n // Side of the order ('BUY' or 'SELL').\n side: OrderSide;\n // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').\n type: OrderType;\n // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset\u2019s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n};\n\n";
2
2
  //# sourceMappingURL=Order.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,8/HA0D3B,CAAC"}
1
+ {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,0nIA4D3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D9B,CAAC"}
1
+ {"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4D9B,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export const OrderTypeString = `
2
- Your response should adhere to the following type definition for the "Order" type.
3
-
4
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
2
+ // Your response should adhere to the following type definition for the "Order" type.
3
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
4
 
6
5
  export type Order = {
7
6
  // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.
@@ -44,8 +43,11 @@ export type Order = {
44
43
  status: OrderStatus;
45
44
  // The asset this order is for.
46
45
  asset: {
46
+ // Ticker symbol of the asset
47
47
  symbol: string;
48
+ // Full name of the asset
48
49
  name: string;
50
+ // Type of the asset, defined by AssetType enum.
49
51
  type: AssetType;
50
52
  };
51
53
  // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.