adaptic-backend 1.0.73 → 1.0.75

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 (643) hide show
  1. package/Action.cjs +0 -14
  2. package/Alert.cjs +0 -6
  3. package/AlpacaAccount.cjs +0 -28
  4. package/Asset.cjs +0 -28
  5. package/NewsArticleAssetSentiment.cjs +0 -6
  6. package/Order.cjs +0 -15
  7. package/Position.cjs +0 -6
  8. package/Trade.cjs +0 -15
  9. package/User.cjs +0 -6
  10. package/generated/typeStrings/Account.cjs +3 -104
  11. package/generated/typeStrings/Account.d.ts +1 -1
  12. package/generated/typeStrings/Account.d.ts.map +1 -1
  13. package/generated/typeStrings/Account.js.map +1 -1
  14. package/generated/typeStrings/Action.cjs +66 -207
  15. package/generated/typeStrings/Action.d.ts +1 -1
  16. package/generated/typeStrings/Action.d.ts.map +1 -1
  17. package/generated/typeStrings/Action.js.map +1 -1
  18. package/generated/typeStrings/Alert.cjs +3 -212
  19. package/generated/typeStrings/Alert.d.ts +1 -1
  20. package/generated/typeStrings/Alert.d.ts.map +1 -1
  21. package/generated/typeStrings/Alert.js.map +1 -1
  22. package/generated/typeStrings/AlpacaAccount.cjs +8 -333
  23. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  24. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  25. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  26. package/generated/typeStrings/Asset.cjs +3 -254
  27. package/generated/typeStrings/Asset.d.ts +1 -1
  28. package/generated/typeStrings/Asset.d.ts.map +1 -1
  29. package/generated/typeStrings/Asset.js.map +1 -1
  30. package/generated/typeStrings/Authenticator.cjs +3 -115
  31. package/generated/typeStrings/Authenticator.d.ts +1 -1
  32. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  33. package/generated/typeStrings/Authenticator.js.map +1 -1
  34. package/generated/typeStrings/Customer.cjs +8 -103
  35. package/generated/typeStrings/Customer.d.ts +1 -1
  36. package/generated/typeStrings/Customer.d.ts.map +1 -1
  37. package/generated/typeStrings/Customer.js.map +1 -1
  38. package/generated/typeStrings/EconomicEvent.cjs +3 -4
  39. package/generated/typeStrings/EconomicEvent.d.ts +1 -1
  40. package/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  41. package/generated/typeStrings/EconomicEvent.js.map +1 -1
  42. package/generated/typeStrings/NewsArticle.cjs +3 -162
  43. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  44. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  45. package/generated/typeStrings/NewsArticle.js.map +1 -1
  46. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +8 -318
  47. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  48. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  49. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  50. package/generated/typeStrings/Order.cjs +8 -162
  51. package/generated/typeStrings/Order.d.ts +1 -1
  52. package/generated/typeStrings/Order.d.ts.map +1 -1
  53. package/generated/typeStrings/Order.js.map +1 -1
  54. package/generated/typeStrings/Position.cjs +8 -271
  55. package/generated/typeStrings/Position.d.ts +1 -1
  56. package/generated/typeStrings/Position.d.ts.map +1 -1
  57. package/generated/typeStrings/Position.js.map +1 -1
  58. package/generated/typeStrings/Session.cjs +8 -113
  59. package/generated/typeStrings/Session.d.ts +1 -1
  60. package/generated/typeStrings/Session.d.ts.map +1 -1
  61. package/generated/typeStrings/Session.js.map +1 -1
  62. package/generated/typeStrings/Trade.cjs +77 -162
  63. package/generated/typeStrings/Trade.d.ts +1 -1
  64. package/generated/typeStrings/Trade.d.ts.map +1 -1
  65. package/generated/typeStrings/Trade.js.map +1 -1
  66. package/generated/typeStrings/User.cjs +13 -237
  67. package/generated/typeStrings/User.d.ts +1 -1
  68. package/generated/typeStrings/User.d.ts.map +1 -1
  69. package/generated/typeStrings/User.js.map +1 -1
  70. package/generated/typeStrings/VerificationToken.cjs +2 -8
  71. package/generated/typeStrings/VerificationToken.d.ts +1 -1
  72. package/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  73. package/generated/typeStrings/VerificationToken.js.map +1 -1
  74. package/generated/typeStrings/index.d.ts +16 -16
  75. package/generated/typegraphql-prisma/enhance.cjs +25 -29
  76. package/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
  77. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  78. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.cjs +0 -1
  79. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts +0 -1
  80. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts.map +1 -1
  81. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.js.map +1 -1
  82. package/generated/typegraphql-prisma/enums/ActionType.cjs +1 -0
  83. package/generated/typegraphql-prisma/enums/ActionType.d.ts +1 -0
  84. package/generated/typegraphql-prisma/enums/ActionType.d.ts.map +1 -1
  85. package/generated/typegraphql-prisma/enums/ActionType.js.map +1 -1
  86. package/generated/typegraphql-prisma/models/Account.cjs +7 -7
  87. package/generated/typegraphql-prisma/models/Account.d.ts +8 -8
  88. package/generated/typegraphql-prisma/models/Account.js.map +1 -1
  89. package/generated/typegraphql-prisma/models/Action.cjs +2 -9
  90. package/generated/typegraphql-prisma/models/Action.d.ts +4 -8
  91. package/generated/typegraphql-prisma/models/Action.d.ts.map +1 -1
  92. package/generated/typegraphql-prisma/models/Action.js.map +1 -1
  93. package/generated/typegraphql-prisma/models/Alert.cjs +4 -4
  94. package/generated/typegraphql-prisma/models/Alert.d.ts +5 -5
  95. package/generated/typegraphql-prisma/models/Alert.js.map +1 -1
  96. package/generated/typegraphql-prisma/models/AlpacaAccount.cjs +6 -6
  97. package/generated/typegraphql-prisma/models/AlpacaAccount.d.ts +11 -11
  98. package/generated/typegraphql-prisma/models/AlpacaAccount.js.map +1 -1
  99. package/generated/typegraphql-prisma/models/Asset.cjs +55 -55
  100. package/generated/typegraphql-prisma/models/Asset.d.ts +59 -59
  101. package/generated/typegraphql-prisma/models/Asset.js.map +1 -1
  102. package/generated/typegraphql-prisma/models/Authenticator.cjs +7 -7
  103. package/generated/typegraphql-prisma/models/Authenticator.d.ts +8 -8
  104. package/generated/typegraphql-prisma/models/Authenticator.js.map +1 -1
  105. package/generated/typegraphql-prisma/models/Customer.cjs +7 -7
  106. package/generated/typegraphql-prisma/models/Customer.d.ts +8 -8
  107. package/generated/typegraphql-prisma/models/Customer.js.map +1 -1
  108. package/generated/typegraphql-prisma/models/EconomicEvent.cjs +3 -3
  109. package/generated/typegraphql-prisma/models/EconomicEvent.d.ts +3 -3
  110. package/generated/typegraphql-prisma/models/EconomicEvent.js.map +1 -1
  111. package/generated/typegraphql-prisma/models/NewsArticle.cjs +3 -3
  112. package/generated/typegraphql-prisma/models/NewsArticle.d.ts +4 -4
  113. package/generated/typegraphql-prisma/models/NewsArticle.js.map +1 -1
  114. package/generated/typegraphql-prisma/models/NewsArticleAssetSentiment.cjs +3 -3
  115. package/generated/typegraphql-prisma/models/NewsArticleAssetSentiment.d.ts +5 -5
  116. package/generated/typegraphql-prisma/models/NewsArticleAssetSentiment.js.map +1 -1
  117. package/generated/typegraphql-prisma/models/Order.cjs +6 -6
  118. package/generated/typegraphql-prisma/models/Order.d.ts +9 -9
  119. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  120. package/generated/typegraphql-prisma/models/Position.cjs +3 -3
  121. package/generated/typegraphql-prisma/models/Position.d.ts +5 -5
  122. package/generated/typegraphql-prisma/models/Position.js.map +1 -1
  123. package/generated/typegraphql-prisma/models/Session.cjs +5 -5
  124. package/generated/typegraphql-prisma/models/Session.d.ts +6 -6
  125. package/generated/typegraphql-prisma/models/Session.js.map +1 -1
  126. package/generated/typegraphql-prisma/models/Trade.cjs +6 -6
  127. package/generated/typegraphql-prisma/models/Trade.d.ts +8 -8
  128. package/generated/typegraphql-prisma/models/Trade.js.map +1 -1
  129. package/generated/typegraphql-prisma/models/User.cjs +5 -5
  130. package/generated/typegraphql-prisma/models/User.d.ts +10 -10
  131. package/generated/typegraphql-prisma/models/User.js.map +1 -1
  132. package/generated/typegraphql-prisma/models/VerificationToken.cjs +4 -4
  133. package/generated/typegraphql-prisma/models/VerificationToken.d.ts +4 -4
  134. package/generated/typegraphql-prisma/models/VerificationToken.js.map +1 -1
  135. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts +1 -1
  136. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts.map +1 -1
  137. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.js.map +1 -1
  138. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts +1 -1
  139. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts.map +1 -1
  140. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.js.map +1 -1
  141. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts +1 -1
  142. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts.map +1 -1
  143. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.js.map +1 -1
  144. package/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts +1 -1
  145. package/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts.map +1 -1
  146. package/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.js.map +1 -1
  147. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.cjs +0 -6
  148. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts +0 -1
  149. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts.map +1 -1
  150. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.js.map +1 -1
  151. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.cjs +0 -6
  152. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts +1 -2
  153. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts.map +1 -1
  154. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.js.map +1 -1
  155. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.cjs +0 -6
  156. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts +1 -2
  157. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts.map +1 -1
  158. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.js.map +1 -1
  159. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.cjs +0 -6
  160. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts +1 -2
  161. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts.map +1 -1
  162. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.js.map +1 -1
  163. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.cjs +0 -6
  164. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.d.ts +1 -2
  165. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.d.ts.map +1 -1
  166. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.js.map +1 -1
  167. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.cjs +0 -6
  168. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts +1 -2
  169. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts.map +1 -1
  170. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.js.map +1 -1
  171. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.cjs +0 -6
  172. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts +0 -1
  173. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts.map +1 -1
  174. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.js.map +1 -1
  175. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.cjs +0 -6
  176. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts +0 -1
  177. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts.map +1 -1
  178. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.js.map +1 -1
  179. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.cjs +0 -6
  180. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts +0 -1
  181. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts.map +1 -1
  182. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.js.map +1 -1
  183. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.cjs +0 -6
  184. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts +0 -1
  185. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts.map +1 -1
  186. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.js.map +1 -1
  187. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.cjs +0 -7
  188. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts +0 -2
  189. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts.map +1 -1
  190. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.js.map +1 -1
  191. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.cjs +0 -7
  192. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts +0 -2
  193. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts.map +1 -1
  194. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.js.map +1 -1
  195. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.cjs +0 -7
  196. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts +0 -2
  197. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts.map +1 -1
  198. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.js.map +1 -1
  199. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.cjs +0 -7
  200. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts +0 -2
  201. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts.map +1 -1
  202. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.js.map +1 -1
  203. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.cjs +0 -7
  204. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.d.ts +0 -2
  205. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.d.ts.map +1 -1
  206. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.js.map +1 -1
  207. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.cjs +0 -7
  208. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts +0 -2
  209. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts.map +1 -1
  210. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.js.map +1 -1
  211. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.cjs +0 -7
  212. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts +0 -2
  213. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts.map +1 -1
  214. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.js.map +1 -1
  215. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.cjs +0 -6
  216. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts +0 -1
  217. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts.map +1 -1
  218. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.js.map +1 -1
  219. package/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFieldUpdateOperationsInput.d.ts +1 -1
  220. package/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFieldUpdateOperationsInput.d.ts.map +1 -1
  221. package/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFieldUpdateOperationsInput.js.map +1 -1
  222. package/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFilter.d.ts +3 -3
  223. package/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFilter.d.ts.map +1 -1
  224. package/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFilter.js.map +1 -1
  225. package/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeWithAggregatesFilter.d.ts +3 -3
  226. package/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeWithAggregatesFilter.d.ts.map +1 -1
  227. package/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeWithAggregatesFilter.js.map +1 -1
  228. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeFilter.d.ts +3 -3
  229. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeFilter.d.ts.map +1 -1
  230. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeFilter.js.map +1 -1
  231. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeWithAggregatesFilter.d.ts +3 -3
  232. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeWithAggregatesFilter.d.ts.map +1 -1
  233. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeWithAggregatesFilter.js.map +1 -1
  234. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.cjs +6 -6
  235. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +1 -1
  236. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  237. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  238. package/generated/typegraphql-prisma/resolvers/inputs/index.cjs +7 -15
  239. package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +0 -4
  240. package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
  241. package/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
  242. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.cjs +0 -6
  243. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts +0 -1
  244. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts.map +1 -1
  245. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.js.map +1 -1
  246. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.cjs +0 -6
  247. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts +1 -2
  248. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts.map +1 -1
  249. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.js.map +1 -1
  250. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.cjs +0 -6
  251. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts +1 -2
  252. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts.map +1 -1
  253. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.js.map +1 -1
  254. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.cjs +0 -6
  255. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts +1 -2
  256. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts.map +1 -1
  257. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.js.map +1 -1
  258. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.cjs +0 -6
  259. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.d.ts +1 -2
  260. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.d.ts.map +1 -1
  261. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.js.map +1 -1
  262. package/generated/typegraphql-prisma/resolvers/relations/Account/AccountRelationsResolver.cjs +1 -1
  263. package/generated/typegraphql-prisma/resolvers/relations/Account/AccountRelationsResolver.js.map +1 -1
  264. package/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.cjs +1 -1
  265. package/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.js.map +1 -1
  266. package/generated/typegraphql-prisma/resolvers/relations/Alert/AlertRelationsResolver.cjs +1 -1
  267. package/generated/typegraphql-prisma/resolvers/relations/Alert/AlertRelationsResolver.js.map +1 -1
  268. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/AlpacaAccountRelationsResolver.cjs +5 -5
  269. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/AlpacaAccountRelationsResolver.js.map +1 -1
  270. package/generated/typegraphql-prisma/resolvers/relations/Asset/AssetRelationsResolver.cjs +4 -4
  271. package/generated/typegraphql-prisma/resolvers/relations/Asset/AssetRelationsResolver.js.map +1 -1
  272. package/generated/typegraphql-prisma/resolvers/relations/Authenticator/AuthenticatorRelationsResolver.cjs +1 -1
  273. package/generated/typegraphql-prisma/resolvers/relations/Authenticator/AuthenticatorRelationsResolver.js.map +1 -1
  274. package/generated/typegraphql-prisma/resolvers/relations/Customer/CustomerRelationsResolver.cjs +1 -1
  275. package/generated/typegraphql-prisma/resolvers/relations/Customer/CustomerRelationsResolver.js.map +1 -1
  276. package/generated/typegraphql-prisma/resolvers/relations/NewsArticle/NewsArticleRelationsResolver.cjs +1 -1
  277. package/generated/typegraphql-prisma/resolvers/relations/NewsArticle/NewsArticleRelationsResolver.js.map +1 -1
  278. package/generated/typegraphql-prisma/resolvers/relations/NewsArticleAssetSentiment/NewsArticleAssetSentimentRelationsResolver.cjs +2 -2
  279. package/generated/typegraphql-prisma/resolvers/relations/NewsArticleAssetSentiment/NewsArticleAssetSentimentRelationsResolver.js.map +1 -1
  280. package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.cjs +3 -3
  281. package/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
  282. package/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.cjs +2 -2
  283. package/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.js.map +1 -1
  284. package/generated/typegraphql-prisma/resolvers/relations/Session/SessionRelationsResolver.cjs +1 -1
  285. package/generated/typegraphql-prisma/resolvers/relations/Session/SessionRelationsResolver.js.map +1 -1
  286. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.cjs +2 -2
  287. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  288. package/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts +1 -1
  289. package/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts.map +1 -1
  290. package/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.js.map +1 -1
  291. package/generated/typegraphql-prisma/resolvers/relations/User/UserRelationsResolver.cjs +5 -5
  292. package/generated/typegraphql-prisma/resolvers/relations/User/UserRelationsResolver.js.map +1 -1
  293. package/package.json +1 -1
  294. package/server/Action.d.ts.map +1 -1
  295. package/server/Action.js.map +1 -1
  296. package/server/Action.mjs +0 -14
  297. package/server/Alert.d.ts.map +1 -1
  298. package/server/Alert.js.map +1 -1
  299. package/server/Alert.mjs +0 -6
  300. package/server/AlpacaAccount.d.ts.map +1 -1
  301. package/server/AlpacaAccount.js.map +1 -1
  302. package/server/AlpacaAccount.mjs +0 -28
  303. package/server/Asset.d.ts.map +1 -1
  304. package/server/Asset.js.map +1 -1
  305. package/server/Asset.mjs +0 -28
  306. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  307. package/server/NewsArticleAssetSentiment.js.map +1 -1
  308. package/server/NewsArticleAssetSentiment.mjs +0 -6
  309. package/server/Order.d.ts.map +1 -1
  310. package/server/Order.js.map +1 -1
  311. package/server/Order.mjs +0 -15
  312. package/server/Position.d.ts.map +1 -1
  313. package/server/Position.js.map +1 -1
  314. package/server/Position.mjs +0 -6
  315. package/server/Trade.d.ts.map +1 -1
  316. package/server/Trade.js.map +1 -1
  317. package/server/Trade.mjs +0 -15
  318. package/server/User.d.ts.map +1 -1
  319. package/server/User.js.map +1 -1
  320. package/server/User.mjs +0 -6
  321. package/server/generated/typeStrings/Account.d.ts +1 -1
  322. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  323. package/server/generated/typeStrings/Account.js.map +1 -1
  324. package/server/generated/typeStrings/Account.mjs +3 -104
  325. package/server/generated/typeStrings/Action.d.ts +1 -1
  326. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  327. package/server/generated/typeStrings/Action.js.map +1 -1
  328. package/server/generated/typeStrings/Action.mjs +66 -207
  329. package/server/generated/typeStrings/Alert.d.ts +1 -1
  330. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  331. package/server/generated/typeStrings/Alert.js.map +1 -1
  332. package/server/generated/typeStrings/Alert.mjs +3 -212
  333. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  334. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  335. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  336. package/server/generated/typeStrings/AlpacaAccount.mjs +8 -333
  337. package/server/generated/typeStrings/Asset.d.ts +1 -1
  338. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  339. package/server/generated/typeStrings/Asset.js.map +1 -1
  340. package/server/generated/typeStrings/Asset.mjs +3 -254
  341. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  342. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  343. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  344. package/server/generated/typeStrings/Authenticator.mjs +3 -115
  345. package/server/generated/typeStrings/Customer.d.ts +1 -1
  346. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  347. package/server/generated/typeStrings/Customer.js.map +1 -1
  348. package/server/generated/typeStrings/Customer.mjs +8 -103
  349. package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
  350. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  351. package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
  352. package/server/generated/typeStrings/EconomicEvent.mjs +3 -4
  353. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  354. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  355. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  356. package/server/generated/typeStrings/NewsArticle.mjs +3 -162
  357. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  358. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  359. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  360. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +8 -318
  361. package/server/generated/typeStrings/Order.d.ts +1 -1
  362. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  363. package/server/generated/typeStrings/Order.js.map +1 -1
  364. package/server/generated/typeStrings/Order.mjs +8 -162
  365. package/server/generated/typeStrings/Position.d.ts +1 -1
  366. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  367. package/server/generated/typeStrings/Position.js.map +1 -1
  368. package/server/generated/typeStrings/Position.mjs +8 -271
  369. package/server/generated/typeStrings/Session.d.ts +1 -1
  370. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  371. package/server/generated/typeStrings/Session.js.map +1 -1
  372. package/server/generated/typeStrings/Session.mjs +8 -113
  373. package/server/generated/typeStrings/Trade.d.ts +1 -1
  374. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  375. package/server/generated/typeStrings/Trade.js.map +1 -1
  376. package/server/generated/typeStrings/Trade.mjs +77 -162
  377. package/server/generated/typeStrings/User.d.ts +1 -1
  378. package/server/generated/typeStrings/User.d.ts.map +1 -1
  379. package/server/generated/typeStrings/User.js.map +1 -1
  380. package/server/generated/typeStrings/User.mjs +13 -237
  381. package/server/generated/typeStrings/VerificationToken.d.ts +1 -1
  382. package/server/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  383. package/server/generated/typeStrings/VerificationToken.js.map +1 -1
  384. package/server/generated/typeStrings/VerificationToken.mjs +2 -8
  385. package/server/generated/typeStrings/index.d.ts +16 -16
  386. package/server/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
  387. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  388. package/server/generated/typegraphql-prisma/enhance.mjs +25 -29
  389. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts +0 -1
  390. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts.map +1 -1
  391. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.js.map +1 -1
  392. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.mjs +0 -1
  393. package/server/generated/typegraphql-prisma/enums/ActionType.d.ts +1 -0
  394. package/server/generated/typegraphql-prisma/enums/ActionType.d.ts.map +1 -1
  395. package/server/generated/typegraphql-prisma/enums/ActionType.js.map +1 -1
  396. package/server/generated/typegraphql-prisma/enums/ActionType.mjs +1 -0
  397. package/server/generated/typegraphql-prisma/models/Account.d.ts +8 -8
  398. package/server/generated/typegraphql-prisma/models/Account.js.map +1 -1
  399. package/server/generated/typegraphql-prisma/models/Account.mjs +15 -15
  400. package/server/generated/typegraphql-prisma/models/Action.d.ts +4 -8
  401. package/server/generated/typegraphql-prisma/models/Action.d.ts.map +1 -1
  402. package/server/generated/typegraphql-prisma/models/Action.js.map +1 -1
  403. package/server/generated/typegraphql-prisma/models/Action.mjs +5 -16
  404. package/server/generated/typegraphql-prisma/models/Alert.d.ts +5 -5
  405. package/server/generated/typegraphql-prisma/models/Alert.js.map +1 -1
  406. package/server/generated/typegraphql-prisma/models/Alert.mjs +9 -9
  407. package/server/generated/typegraphql-prisma/models/AlpacaAccount.d.ts +11 -11
  408. package/server/generated/typegraphql-prisma/models/AlpacaAccount.js.map +1 -1
  409. package/server/generated/typegraphql-prisma/models/AlpacaAccount.mjs +17 -17
  410. package/server/generated/typegraphql-prisma/models/Asset.d.ts +59 -59
  411. package/server/generated/typegraphql-prisma/models/Asset.js.map +1 -1
  412. package/server/generated/typegraphql-prisma/models/Asset.mjs +114 -114
  413. package/server/generated/typegraphql-prisma/models/Authenticator.d.ts +8 -8
  414. package/server/generated/typegraphql-prisma/models/Authenticator.js.map +1 -1
  415. package/server/generated/typegraphql-prisma/models/Authenticator.mjs +15 -15
  416. package/server/generated/typegraphql-prisma/models/Customer.d.ts +8 -8
  417. package/server/generated/typegraphql-prisma/models/Customer.js.map +1 -1
  418. package/server/generated/typegraphql-prisma/models/Customer.mjs +15 -15
  419. package/server/generated/typegraphql-prisma/models/EconomicEvent.d.ts +3 -3
  420. package/server/generated/typegraphql-prisma/models/EconomicEvent.js.map +1 -1
  421. package/server/generated/typegraphql-prisma/models/EconomicEvent.mjs +6 -6
  422. package/server/generated/typegraphql-prisma/models/NewsArticle.d.ts +4 -4
  423. package/server/generated/typegraphql-prisma/models/NewsArticle.js.map +1 -1
  424. package/server/generated/typegraphql-prisma/models/NewsArticle.mjs +7 -7
  425. package/server/generated/typegraphql-prisma/models/NewsArticleAssetSentiment.d.ts +5 -5
  426. package/server/generated/typegraphql-prisma/models/NewsArticleAssetSentiment.js.map +1 -1
  427. package/server/generated/typegraphql-prisma/models/NewsArticleAssetSentiment.mjs +8 -8
  428. package/server/generated/typegraphql-prisma/models/Order.d.ts +9 -9
  429. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  430. package/server/generated/typegraphql-prisma/models/Order.mjs +15 -15
  431. package/server/generated/typegraphql-prisma/models/Position.d.ts +5 -5
  432. package/server/generated/typegraphql-prisma/models/Position.js.map +1 -1
  433. package/server/generated/typegraphql-prisma/models/Position.mjs +8 -8
  434. package/server/generated/typegraphql-prisma/models/Session.d.ts +6 -6
  435. package/server/generated/typegraphql-prisma/models/Session.js.map +1 -1
  436. package/server/generated/typegraphql-prisma/models/Session.mjs +11 -11
  437. package/server/generated/typegraphql-prisma/models/Trade.d.ts +8 -8
  438. package/server/generated/typegraphql-prisma/models/Trade.js.map +1 -1
  439. package/server/generated/typegraphql-prisma/models/Trade.mjs +14 -14
  440. package/server/generated/typegraphql-prisma/models/User.d.ts +10 -10
  441. package/server/generated/typegraphql-prisma/models/User.js.map +1 -1
  442. package/server/generated/typegraphql-prisma/models/User.mjs +15 -15
  443. package/server/generated/typegraphql-prisma/models/VerificationToken.d.ts +4 -4
  444. package/server/generated/typegraphql-prisma/models/VerificationToken.js.map +1 -1
  445. package/server/generated/typegraphql-prisma/models/VerificationToken.mjs +8 -8
  446. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts +1 -1
  447. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts.map +1 -1
  448. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.js.map +1 -1
  449. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts +1 -1
  450. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts.map +1 -1
  451. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.js.map +1 -1
  452. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts +1 -1
  453. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts.map +1 -1
  454. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.js.map +1 -1
  455. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts +1 -1
  456. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts.map +1 -1
  457. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.js.map +1 -1
  458. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts +0 -1
  459. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts.map +1 -1
  460. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.js.map +1 -1
  461. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.mjs +0 -7
  462. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts +1 -2
  463. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts.map +1 -1
  464. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.js.map +1 -1
  465. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.mjs +0 -7
  466. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts +1 -2
  467. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts.map +1 -1
  468. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.js.map +1 -1
  469. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.mjs +0 -7
  470. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts +1 -2
  471. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts.map +1 -1
  472. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.js.map +1 -1
  473. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.mjs +0 -7
  474. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.d.ts +1 -2
  475. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.d.ts.map +1 -1
  476. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.js.map +1 -1
  477. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.mjs +0 -7
  478. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts +1 -2
  479. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts.map +1 -1
  480. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.js.map +1 -1
  481. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.mjs +0 -7
  482. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts +0 -1
  483. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts.map +1 -1
  484. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.js.map +1 -1
  485. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.mjs +0 -7
  486. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts +0 -1
  487. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts.map +1 -1
  488. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.js.map +1 -1
  489. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.mjs +0 -7
  490. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts +0 -1
  491. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts.map +1 -1
  492. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.js.map +1 -1
  493. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.mjs +0 -7
  494. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts +0 -1
  495. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts.map +1 -1
  496. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.js.map +1 -1
  497. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.mjs +0 -7
  498. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts +0 -2
  499. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts.map +1 -1
  500. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.js.map +1 -1
  501. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.mjs +0 -8
  502. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts +0 -2
  503. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts.map +1 -1
  504. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.js.map +1 -1
  505. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.mjs +0 -8
  506. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts +0 -2
  507. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts.map +1 -1
  508. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.js.map +1 -1
  509. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.mjs +0 -8
  510. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts +0 -2
  511. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts.map +1 -1
  512. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.js.map +1 -1
  513. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.mjs +0 -8
  514. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.d.ts +0 -2
  515. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.d.ts.map +1 -1
  516. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.js.map +1 -1
  517. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.mjs +0 -8
  518. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts +0 -2
  519. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts.map +1 -1
  520. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.js.map +1 -1
  521. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.mjs +0 -8
  522. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts +0 -2
  523. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts.map +1 -1
  524. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.js.map +1 -1
  525. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.mjs +0 -8
  526. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts +0 -1
  527. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts.map +1 -1
  528. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.js.map +1 -1
  529. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.mjs +0 -7
  530. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFieldUpdateOperationsInput.d.ts +1 -1
  531. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFieldUpdateOperationsInput.d.ts.map +1 -1
  532. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFieldUpdateOperationsInput.js.map +1 -1
  533. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFilter.d.ts +3 -3
  534. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFilter.d.ts.map +1 -1
  535. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeFilter.js.map +1 -1
  536. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeWithAggregatesFilter.d.ts +3 -3
  537. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeWithAggregatesFilter.d.ts.map +1 -1
  538. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumActionTypeWithAggregatesFilter.js.map +1 -1
  539. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeFilter.d.ts +3 -3
  540. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeFilter.d.ts.map +1 -1
  541. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeFilter.js.map +1 -1
  542. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeWithAggregatesFilter.d.ts +3 -3
  543. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeWithAggregatesFilter.d.ts.map +1 -1
  544. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumActionTypeWithAggregatesFilter.js.map +1 -1
  545. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +1 -1
  546. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  547. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  548. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.mjs +7 -7
  549. package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +0 -4
  550. package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
  551. package/server/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
  552. package/server/generated/typegraphql-prisma/resolvers/inputs/index.mjs +0 -4
  553. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts +0 -1
  554. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts.map +1 -1
  555. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.js.map +1 -1
  556. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.mjs +0 -7
  557. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts +1 -2
  558. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts.map +1 -1
  559. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.js.map +1 -1
  560. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.mjs +0 -7
  561. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts +1 -2
  562. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts.map +1 -1
  563. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.js.map +1 -1
  564. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.mjs +0 -7
  565. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts +1 -2
  566. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts.map +1 -1
  567. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.js.map +1 -1
  568. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.mjs +0 -7
  569. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.d.ts +1 -2
  570. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.d.ts.map +1 -1
  571. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.js.map +1 -1
  572. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.mjs +0 -7
  573. package/server/generated/typegraphql-prisma/resolvers/relations/Account/AccountRelationsResolver.js.map +1 -1
  574. package/server/generated/typegraphql-prisma/resolvers/relations/Account/AccountRelationsResolver.mjs +1 -1
  575. package/server/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.js.map +1 -1
  576. package/server/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.mjs +1 -1
  577. package/server/generated/typegraphql-prisma/resolvers/relations/Alert/AlertRelationsResolver.js.map +1 -1
  578. package/server/generated/typegraphql-prisma/resolvers/relations/Alert/AlertRelationsResolver.mjs +1 -1
  579. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/AlpacaAccountRelationsResolver.js.map +1 -1
  580. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/AlpacaAccountRelationsResolver.mjs +5 -5
  581. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/AssetRelationsResolver.js.map +1 -1
  582. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/AssetRelationsResolver.mjs +4 -4
  583. package/server/generated/typegraphql-prisma/resolvers/relations/Authenticator/AuthenticatorRelationsResolver.js.map +1 -1
  584. package/server/generated/typegraphql-prisma/resolvers/relations/Authenticator/AuthenticatorRelationsResolver.mjs +1 -1
  585. package/server/generated/typegraphql-prisma/resolvers/relations/Customer/CustomerRelationsResolver.js.map +1 -1
  586. package/server/generated/typegraphql-prisma/resolvers/relations/Customer/CustomerRelationsResolver.mjs +1 -1
  587. package/server/generated/typegraphql-prisma/resolvers/relations/NewsArticle/NewsArticleRelationsResolver.js.map +1 -1
  588. package/server/generated/typegraphql-prisma/resolvers/relations/NewsArticle/NewsArticleRelationsResolver.mjs +1 -1
  589. package/server/generated/typegraphql-prisma/resolvers/relations/NewsArticleAssetSentiment/NewsArticleAssetSentimentRelationsResolver.js.map +1 -1
  590. package/server/generated/typegraphql-prisma/resolvers/relations/NewsArticleAssetSentiment/NewsArticleAssetSentimentRelationsResolver.mjs +2 -2
  591. package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.js.map +1 -1
  592. package/server/generated/typegraphql-prisma/resolvers/relations/Order/OrderRelationsResolver.mjs +3 -3
  593. package/server/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.js.map +1 -1
  594. package/server/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.mjs +2 -2
  595. package/server/generated/typegraphql-prisma/resolvers/relations/Session/SessionRelationsResolver.js.map +1 -1
  596. package/server/generated/typegraphql-prisma/resolvers/relations/Session/SessionRelationsResolver.mjs +1 -1
  597. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  598. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.mjs +2 -2
  599. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts +1 -1
  600. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts.map +1 -1
  601. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.js.map +1 -1
  602. package/server/generated/typegraphql-prisma/resolvers/relations/User/UserRelationsResolver.js.map +1 -1
  603. package/server/generated/typegraphql-prisma/resolvers/relations/User/UserRelationsResolver.mjs +5 -5
  604. package/generated/typeStrings/enums.cjs +0 -118
  605. package/generated/typeStrings/enums.d.ts +0 -100
  606. package/generated/typeStrings/enums.d.ts.map +0 -1
  607. package/generated/typeStrings/enums.js.map +0 -1
  608. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.cjs +0 -91
  609. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts +0 -11
  610. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts.map +0 -1
  611. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js.map +0 -1
  612. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.cjs +0 -111
  613. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts +0 -16
  614. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts.map +0 -1
  615. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js.map +0 -1
  616. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.cjs +0 -99
  617. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts +0 -13
  618. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts.map +0 -1
  619. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js.map +0 -1
  620. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.cjs +0 -119
  621. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts +0 -18
  622. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts.map +0 -1
  623. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js.map +0 -1
  624. package/server/generated/typeStrings/enums.d.ts +0 -100
  625. package/server/generated/typeStrings/enums.d.ts.map +0 -1
  626. package/server/generated/typeStrings/enums.js.map +0 -1
  627. package/server/generated/typeStrings/enums.mjs +0 -115
  628. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts +0 -11
  629. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts.map +0 -1
  630. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js.map +0 -1
  631. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.mjs +0 -73
  632. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts +0 -16
  633. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts.map +0 -1
  634. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js.map +0 -1
  635. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.mjs +0 -96
  636. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts +0 -13
  637. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts.map +0 -1
  638. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js.map +0 -1
  639. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.mjs +0 -82
  640. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts +0 -18
  641. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts.map +0 -1
  642. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js.map +0 -1
  643. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.mjs +0 -105
@@ -1,20 +1,20 @@
1
1
  export declare const typeStrings: {
2
- readonly session: "\nYour response should adhere to the following type definition for the \"Session\" type, and its nested object types (which include 'User' 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 Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\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}\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n}\n\nexport type Authenticator = {\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\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 // 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 type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
3
- readonly user: "\nYour response should adhere to the following type definition for the \"User\" type, and its nested object types (which include 'Customer', 'Account', 'Session', 'Authenticator', 'AlpacaAccount' types), as well as any ENUMS used by it (which include 'UserRole', 'AlpacaAccountType', 'SubscriptionPlan' enums).\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 User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\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}\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Expiration date and time of the session.\n expires: Date;\n}\n\nexport type Authenticator = {\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\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 // 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 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 OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\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 // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\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 // 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}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\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\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 // 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\n";
4
- readonly alpacaAccount: "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" type, and its nested object types (which include 'User', 'Trade', 'Order', 'Position', 'Alert' types), as well as any ENUMS used by it (which include 'AlpacaAccountType' 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 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 // 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 AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\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}\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Expiration date and time of the session.\n expires: Date;\n}\n\nexport type Authenticator = {\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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 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 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 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 // Type of trade action, defined by ActionType enum.\n type: ActionType;\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 order associated with this action.\n order?: Order;\n}\n\nexport type Trade = {\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 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 AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\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\n";
5
- readonly position: "\nYour response should adhere to the following type definition for the \"Position\" type, and its nested object types (which include 'Asset', 'AlpacaAccount' 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 Position = {\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}\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 // 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 // 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 OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\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 // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\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 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 news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\n";
6
- readonly authenticator: "\nYour response should adhere to the following type definition for the \"Authenticator\" type, and its nested object types (which include 'User' 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 // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\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}\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Expiration date and time of the session.\n expires: Date;\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 // 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 type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
7
- readonly account: "\nYour response should adhere to the following type definition for the \"Account\" type, and its nested object types (which include 'User' 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 Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Relation to the User model.\n user: User;\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\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}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Expiration date and time of the session.\n expires: Date;\n}\n\nexport type Authenticator = {\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\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 // 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 type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
8
- readonly verificationToken: "\nYour response should adhere to the following type definition for the \"VerificationToken\" 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 VerificationToken = {\n // Identifier associated with the token (e.g., user ID).\n identifier: string;\n // The verification token string, must be unique.\n token: string;\n // Expiration date and time of the token.\n expires: Date;\n}\n\n";
9
- readonly customer: "\nYour response should adhere to the following type definition for the \"Customer\" type, and its nested object types (which include 'User' type), as well as any ENUMS used by it (which include 'SubscriptionPlan' 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 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: User[];\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Expiration date and time of the session.\n expires: Date;\n}\n\nexport type Authenticator = {\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\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 // 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 type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
10
- readonly asset: "\nYour response should adhere to the following type definition for the \"Asset\" type, and its nested object types (which include 'Trade', 'Order', 'Position', 'NewsArticleAssetSentiment' types), as well as any ENUMS used by it (which include 'AssetType' 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 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 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 // 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 // Type of trade action, defined by ActionType enum.\n type: ActionType;\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 order associated with this action.\n order?: Order;\n}\n\nexport type Trade = {\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 // 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 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\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\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";
11
- readonly trade: "\nYour response should adhere to the following type definition for the \"Trade\" type, and its nested object types (which include 'AlpacaAccount', 'Asset', 'Action' types), as well as any ENUMS used by it (which include 'TradeStatus', 'OptionContractType' enums).\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 Trade = {\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 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 enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\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 // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\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 // 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}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\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\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 // 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\n";
12
- readonly action: "\nYour response should adhere to the following type definition for the \"Action\" type, and its nested object types (which include 'Trade', 'Order' types), as well as any ENUMS used by it (which include 'ActionType', 'ActionStatus' enums).\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 Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\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 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 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 // 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 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 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 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 enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\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}\n\n";
13
- readonly order: "\nYour response should adhere to the following type definition for the \"Order\" type, and its nested object types (which include 'AlpacaAccount', 'Action', 'Asset' types), as well as any ENUMS used by it (which include 'OrderSide', 'OrderType', 'TimeInForce', 'OrderStatus' enums).\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.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\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 // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\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 enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\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 // 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 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 Position = {\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}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\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\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 // List of trades executed through this Alpaca account.\n trades: Trade[];\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\n";
14
- readonly alert: "\nYour response should adhere to the following type definition for the \"Alert\" type, and its nested object types (which include 'AlpacaAccount' type), as well as any ENUMS used by it (which include 'AlertType' 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 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 // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\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 // 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 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 OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\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 // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\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 // 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}\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 // 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}\n\n";
15
- readonly newsArticle: "\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 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}\n\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\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";
16
- readonly newsArticleAssetSentiment: "\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 // 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}\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 // 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 // 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 OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\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 // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\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}\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}\n\n";
17
- readonly economicEvent: "\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
+ readonly session: "\nYour response should adhere to the following type definition for the \"Session\" 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 Session = {\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: {\n id: string;\n name?: string;\n email?: string;\n };\n};\n";
3
+ readonly user: "\nYour response should adhere to the following type definition for the \"User\" 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 User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n id: number;\n name?: string;\n plan?: SubscriptionPlan;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n id: string;\n type: AlpacaAccountType;\n }[];\n};\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\n";
4
+ readonly alpacaAccount: "\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};\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\n";
5
+ readonly position: "\nYour response should adhere to the following type definition for the \"Position\" 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 Position = {\n // Relation to the Asset model.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\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};\n";
6
+ readonly authenticator: "\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";
7
+ readonly account: "\nYour response should adhere to the following type definition for the \"Account\" 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 Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // State of the session associated with the account.\n session_state?: string;\n};\n";
8
+ readonly verificationToken: "\nYour response should adhere to the following type definition for the \"VerificationToken\" 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 VerificationToken = {\n\n};\n";
9
+ readonly customer: "\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};\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\n";
10
+ readonly asset: "\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, 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};\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\n";
11
+ readonly trade: "\nYour response should adhere to the following type definition for the \"Trade\" 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 Trade = {\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 // Current status of the trade.\n status: TradeStatus;\n // Relation to the Asset model.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\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: {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\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 order associated with this action.\n order?: {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\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 // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // The asset this order is for.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\n // Fee associated with the order.\n fee?: number;\n };\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 enum ActionType {\n BUY = \"BUY\",\n BUY_OPTION = \"BUY_OPTION\",\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 enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\n";
12
+ readonly action: "\nYour response should adhere to the following type definition for the \"Action\" 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 Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\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 order associated with this action.\n order?: {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\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 // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // The asset this order is for.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\n // Fee associated with the order.\n fee?: number;\n };\n};\nexport enum ActionType {\n BUY = \"BUY\",\n BUY_OPTION = \"BUY_OPTION\",\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 enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\n";
13
+ readonly order: "\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.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\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 // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // The asset this order is for.\n asset: {\n symbol: string;\n name: string;\n type: AssetType;\n };\n // Fee associated with the order.\n fee?: number;\n};\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\n";
14
+ readonly alert: "\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};\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\n";
15
+ readonly newsArticle: "\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";
16
+ readonly newsArticleAssetSentiment: "\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";
17
+ readonly economicEvent: "\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};\nexport enum EventImportance {\n LOW = \"LOW\",\n MEDIUM = \"MEDIUM\",\n HIGH = \"HIGH\"\n}\n\n";
18
18
  };
19
19
  export default typeStrings;
20
20
  //# sourceMappingURL=index.d.ts.map
@@ -682,7 +682,7 @@ const modelsInfo = {
682
682
  Customer: ["id", "authUserId", "name", "plan", "stripeCustomerId", "stripeSubscriptionId", "stripePriceId", "stripeCurrentPeriodEnd", "createdAt", "updatedAt"],
683
683
  Asset: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "sellPrice", "buyPrice", "createdAt", "updatedAt"],
684
684
  Trade: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType"],
685
- Action: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee"],
685
+ Action: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
686
686
  Order: ["id", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee"],
687
687
  Alert: ["id", "alpacaAccountId", "message", "type", "isRead", "createdAt", "updatedAt"],
688
688
  NewsArticle: ["id", "title", "content", "source", "sourceDomain", "url", "sentiment", "authors", "summary", "bannerImage", "timePublished", "category", "topics", "logo", "createdAt", "updatedAt"],
@@ -720,7 +720,7 @@ const outputsInfo = {
720
720
  AggregateTrade: ["_count", "_avg", "_sum", "_min", "_max"],
721
721
  TradeGroupBy: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType", "_count", "_avg", "_sum", "_min", "_max"],
722
722
  AggregateAction: ["_count", "_avg", "_sum", "_min", "_max"],
723
- ActionGroupBy: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee", "_count", "_avg", "_sum", "_min", "_max"],
723
+ ActionGroupBy: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "_count", "_avg", "_sum", "_min", "_max"],
724
724
  AggregateOrder: ["_count", "_avg", "_sum", "_min", "_max"],
725
725
  OrderGroupBy: ["id", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee", "_count", "_avg", "_sum", "_min", "_max"],
726
726
  AggregateAlert: ["_count", "_min", "_max"],
@@ -779,11 +779,11 @@ const outputsInfo = {
779
779
  TradeSumAggregate: ["qty", "price", "total", "confidence"],
780
780
  TradeMinAggregate: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType"],
781
781
  TradeMaxAggregate: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType"],
782
- ActionCountAggregate: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee", "_all"],
782
+ ActionCountAggregate: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "_all"],
783
783
  ActionAvgAggregate: ["sequence", "fee"],
784
784
  ActionSumAggregate: ["sequence", "fee"],
785
- ActionMinAggregate: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee"],
786
- ActionMaxAggregate: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee"],
785
+ ActionMinAggregate: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
786
+ ActionMaxAggregate: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
787
787
  OrderCountAggregate: ["id", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee", "_all"],
788
788
  OrderAvgAggregate: ["qty", "notional", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "filledAvgPrice", "fee"],
789
789
  OrderSumAggregate: ["qty", "notional", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "filledAvgPrice", "fee"],
@@ -812,7 +812,7 @@ const outputsInfo = {
812
812
  CreateManyCustomerAndReturnOutputType: ["id", "authUserId", "name", "plan", "stripeCustomerId", "stripeSubscriptionId", "stripePriceId", "stripeCurrentPeriodEnd", "createdAt", "updatedAt"],
813
813
  CreateManyAssetAndReturnOutputType: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "sellPrice", "buyPrice", "createdAt", "updatedAt"],
814
814
  CreateManyTradeAndReturnOutputType: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType", "alpacaAccount", "asset"],
815
- CreateManyActionAndReturnOutputType: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee", "trade"],
815
+ CreateManyActionAndReturnOutputType: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "trade"],
816
816
  CreateManyOrderAndReturnOutputType: ["id", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee", "alpacaAccount", "action", "asset"],
817
817
  CreateManyAlertAndReturnOutputType: ["id", "alpacaAccountId", "message", "type", "isRead", "createdAt", "updatedAt", "alpacaAccount"],
818
818
  CreateManyNewsArticleAndReturnOutputType: ["id", "title", "content", "source", "sourceDomain", "url", "sentiment", "authors", "summary", "bannerImage", "timePublished", "category", "topics", "logo", "createdAt", "updatedAt"],
@@ -879,14 +879,14 @@ const inputsInfo = {
879
879
  TradeWhereUniqueInput: ["id", "AND", "OR", "NOT", "alpacaAccountId", "assetId", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType", "alpacaAccount", "asset", "actions"],
880
880
  TradeOrderByWithAggregationInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType", "_count", "_avg", "_max", "_min", "_sum"],
881
881
  TradeScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "assetId", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType"],
882
- ActionWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee", "trade", "order"],
883
- ActionOrderByWithRelationInput: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee", "trade", "order"],
884
- ActionWhereUniqueInput: ["id", "orderId", "AND", "OR", "NOT", "sequence", "tradeId", "type", "note", "status", "fee", "trade", "order"],
885
- ActionOrderByWithAggregationInput: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee", "_count", "_avg", "_max", "_min", "_sum"],
886
- ActionScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee"],
882
+ ActionWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "note", "status", "fee", "trade", "order"],
883
+ ActionOrderByWithRelationInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "trade", "order"],
884
+ ActionWhereUniqueInput: ["id", "AND", "OR", "NOT", "sequence", "tradeId", "type", "note", "status", "fee", "trade", "order"],
885
+ ActionOrderByWithAggregationInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "_count", "_avg", "_max", "_min", "_sum"],
886
+ ActionScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "note", "status", "fee"],
887
887
  OrderWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee", "alpacaAccount", "action", "asset"],
888
888
  OrderOrderByWithRelationInput: ["id", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee", "alpacaAccount", "action", "asset"],
889
- OrderWhereUniqueInput: ["id", "assetId", "clientOrderId", "actionId", "AND", "OR", "NOT", "alpacaAccountId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "alpacaAccount", "action", "asset"],
889
+ OrderWhereUniqueInput: ["id", "clientOrderId", "actionId", "AND", "OR", "NOT", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "alpacaAccount", "action", "asset"],
890
890
  OrderOrderByWithAggregationInput: ["id", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee", "_count", "_avg", "_max", "_min", "_sum"],
891
891
  OrderScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee"],
892
892
  AlertWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "message", "type", "isRead", "createdAt", "updatedAt", "alpacaAccount"],
@@ -949,10 +949,10 @@ const inputsInfo = {
949
949
  TradeUpdateInput: ["id", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType", "alpacaAccount", "asset", "actions"],
950
950
  TradeCreateManyInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType"],
951
951
  TradeUpdateManyMutationInput: ["id", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType"],
952
- ActionCreateInput: ["id", "sequence", "type", "orderId", "note", "status", "fee", "trade", "order"],
953
- ActionUpdateInput: ["id", "sequence", "type", "orderId", "note", "status", "fee", "trade", "order"],
954
- ActionCreateManyInput: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee"],
955
- ActionUpdateManyMutationInput: ["id", "sequence", "type", "orderId", "note", "status", "fee"],
952
+ ActionCreateInput: ["id", "sequence", "type", "note", "status", "fee", "trade", "order"],
953
+ ActionUpdateInput: ["id", "sequence", "type", "note", "status", "fee", "trade", "order"],
954
+ ActionCreateManyInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
955
+ ActionUpdateManyMutationInput: ["id", "sequence", "type", "note", "status", "fee"],
956
956
  OrderCreateInput: ["id", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "alpacaAccount", "action", "asset"],
957
957
  OrderUpdateInput: ["id", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "alpacaAccount", "action", "asset"],
958
958
  OrderCreateManyInput: ["id", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee"],
@@ -1078,18 +1078,16 @@ const inputsInfo = {
1078
1078
  EnumTradeStatusWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1079
1079
  EnumOptionContractTypeNullableWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1080
1080
  EnumActionTypeFilter: ["equals", "in", "notIn", "not"],
1081
- UuidNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "mode", "not"],
1082
1081
  EnumActionStatusFilter: ["equals", "in", "notIn", "not"],
1083
1082
  FloatNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
1084
1083
  TradeRelationFilter: ["is", "isNot"],
1085
1084
  OrderNullableRelationFilter: ["is", "isNot"],
1086
- ActionCountOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee"],
1085
+ ActionCountOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
1087
1086
  ActionAvgOrderByAggregateInput: ["sequence", "fee"],
1088
- ActionMaxOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee"],
1089
- ActionMinOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee"],
1087
+ ActionMaxOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
1088
+ ActionMinOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
1090
1089
  ActionSumOrderByAggregateInput: ["sequence", "fee"],
1091
1090
  EnumActionTypeWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1092
- UuidNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "mode", "not", "_count", "_min", "_max"],
1093
1091
  EnumActionStatusWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1094
1092
  FloatNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_avg", "_sum", "_min", "_max"],
1095
1093
  EnumOrderSideFilter: ["equals", "in", "notIn", "not"],
@@ -1251,10 +1249,8 @@ const inputsInfo = {
1251
1249
  NestedEnumTradeStatusWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1252
1250
  NestedEnumOptionContractTypeNullableWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1253
1251
  NestedEnumActionTypeFilter: ["equals", "in", "notIn", "not"],
1254
- NestedUuidNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
1255
1252
  NestedEnumActionStatusFilter: ["equals", "in", "notIn", "not"],
1256
1253
  NestedEnumActionTypeWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1257
- NestedUuidNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_min", "_max"],
1258
1254
  NestedEnumActionStatusWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1259
1255
  NestedFloatNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_avg", "_sum", "_min", "_max"],
1260
1256
  NestedEnumOrderSideFilter: ["equals", "in", "notIn", "not"],
@@ -1398,7 +1394,7 @@ const inputsInfo = {
1398
1394
  AlpacaAccountCreateOrConnectWithoutTradesInput: ["where", "create"],
1399
1395
  AssetCreateWithoutTradesInput: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "sellPrice", "buyPrice", "createdAt", "updatedAt", "orders", "positions", "newsMentions"],
1400
1396
  AssetCreateOrConnectWithoutTradesInput: ["where", "create"],
1401
- ActionCreateWithoutTradeInput: ["id", "sequence", "type", "orderId", "note", "status", "fee", "order"],
1397
+ ActionCreateWithoutTradeInput: ["id", "sequence", "type", "note", "status", "fee", "order"],
1402
1398
  ActionCreateOrConnectWithoutTradeInput: ["where", "create"],
1403
1399
  ActionCreateManyTradeInputEnvelope: ["data", "skipDuplicates"],
1404
1400
  AlpacaAccountUpsertWithoutTradesInput: ["update", "create", "where"],
@@ -1410,7 +1406,7 @@ const inputsInfo = {
1410
1406
  ActionUpsertWithWhereUniqueWithoutTradeInput: ["where", "update", "create"],
1411
1407
  ActionUpdateWithWhereUniqueWithoutTradeInput: ["where", "data"],
1412
1408
  ActionUpdateManyWithWhereWithoutTradeInput: ["where", "data"],
1413
- ActionScalarWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "orderId", "note", "status", "fee"],
1409
+ ActionScalarWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "note", "status", "fee"],
1414
1410
  TradeCreateWithoutActionsInput: ["id", "qty", "price", "total", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "optionContractType", "alpacaAccount", "asset"],
1415
1411
  TradeCreateOrConnectWithoutActionsInput: ["where", "create"],
1416
1412
  OrderCreateWithoutActionInput: ["id", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "alpacaAccount", "asset"],
@@ -1423,7 +1419,7 @@ const inputsInfo = {
1423
1419
  OrderUpdateWithoutActionInput: ["id", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "alpacaAccount", "asset"],
1424
1420
  AlpacaAccountCreateWithoutOrdersInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "createdAt", "updatedAt", "user", "trades", "positions", "alerts"],
1425
1421
  AlpacaAccountCreateOrConnectWithoutOrdersInput: ["where", "create"],
1426
- ActionCreateWithoutOrderInput: ["id", "sequence", "type", "orderId", "note", "status", "fee", "trade"],
1422
+ ActionCreateWithoutOrderInput: ["id", "sequence", "type", "note", "status", "fee", "trade"],
1427
1423
  ActionCreateOrConnectWithoutOrderInput: ["where", "create"],
1428
1424
  AssetCreateWithoutOrdersInput: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "sellPrice", "buyPrice", "createdAt", "updatedAt", "trades", "positions", "newsMentions"],
1429
1425
  AssetCreateOrConnectWithoutOrdersInput: ["where", "create"],
@@ -1432,7 +1428,7 @@ const inputsInfo = {
1432
1428
  AlpacaAccountUpdateWithoutOrdersInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "createdAt", "updatedAt", "user", "trades", "positions", "alerts"],
1433
1429
  ActionUpsertWithoutOrderInput: ["update", "create", "where"],
1434
1430
  ActionUpdateToOneWithWhereWithoutOrderInput: ["where", "data"],
1435
- ActionUpdateWithoutOrderInput: ["id", "sequence", "type", "orderId", "note", "status", "fee", "trade"],
1431
+ ActionUpdateWithoutOrderInput: ["id", "sequence", "type", "note", "status", "fee", "trade"],
1436
1432
  AssetUpsertWithoutOrdersInput: ["update", "create", "where"],
1437
1433
  AssetUpdateToOneWithWhereWithoutOrdersInput: ["where", "data"],
1438
1434
  AssetUpdateWithoutOrdersInput: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "sellPrice", "buyPrice", "createdAt", "updatedAt", "trades", "positions", "newsMentions"],
@@ -1483,8 +1479,8 @@ const inputsInfo = {
1483
1479
  OrderUpdateWithoutAssetInput: ["id", "qty", "notional", "side", "type", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "clientOrderId", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "alpacaAccount", "action"],
1484
1480
  PositionUpdateWithoutAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccount"],
1485
1481
  NewsArticleAssetSentimentUpdateWithoutAssetInput: ["id", "url", "relevancyScore", "sentimentScore", "sentimentLabel", "news"],
1486
- ActionCreateManyTradeInput: ["id", "sequence", "type", "orderId", "note", "status", "fee"],
1487
- ActionUpdateWithoutTradeInput: ["id", "sequence", "type", "orderId", "note", "status", "fee", "order"],
1482
+ ActionCreateManyTradeInput: ["id", "sequence", "type", "note", "status", "fee"],
1483
+ ActionUpdateWithoutTradeInput: ["id", "sequence", "type", "note", "status", "fee", "order"],
1488
1484
  NewsArticleAssetSentimentCreateManyNewsInput: ["id", "assetId", "url", "relevancyScore", "sentimentScore", "sentimentLabel"],
1489
1485
  NewsArticleAssetSentimentUpdateWithoutNewsInput: ["id", "url", "relevancyScore", "sentimentScore", "sentimentLabel", "asset"]
1490
1486
  };