adaptic-backend 1.0.142 → 1.0.144

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 (367) hide show
  1. package/Account.cjs +43 -0
  2. package/Action.cjs +65 -0
  3. package/Alert.cjs +41 -0
  4. package/AlpacaAccount.cjs +78 -0
  5. package/Asset.cjs +78 -0
  6. package/Authenticator.cjs +43 -0
  7. package/Customer.cjs +43 -0
  8. package/NewsArticle.cjs +43 -0
  9. package/NewsArticleAssetSentiment.cjs +41 -0
  10. package/Order.cjs +63 -0
  11. package/Position.cjs +58 -0
  12. package/Session.cjs +43 -0
  13. package/StopLoss.cjs +69 -0
  14. package/TakeProfit.cjs +69 -0
  15. package/Trade.cjs +14 -0
  16. package/User.cjs +41 -0
  17. package/generated/typeStrings/Action.cjs +1 -1
  18. package/generated/typeStrings/Action.d.ts +1 -1
  19. package/generated/typeStrings/Action.d.ts.map +1 -1
  20. package/generated/typeStrings/Order.cjs +1 -1
  21. package/generated/typeStrings/Order.d.ts +1 -1
  22. package/generated/typeStrings/Order.d.ts.map +1 -1
  23. package/generated/typeStrings/StopLoss.cjs +1 -1
  24. package/generated/typeStrings/StopLoss.d.ts +1 -1
  25. package/generated/typeStrings/StopLoss.d.ts.map +1 -1
  26. package/generated/typeStrings/TakeProfit.cjs +1 -1
  27. package/generated/typeStrings/TakeProfit.d.ts +1 -1
  28. package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  29. package/generated/typeStrings/Trade.cjs +3 -3
  30. package/generated/typeStrings/Trade.d.ts +1 -1
  31. package/generated/typeStrings/Trade.d.ts.map +1 -1
  32. package/generated/typeStrings/index.d.ts +5 -5
  33. package/generated/typegraphql-prisma/enhance.cjs +27 -27
  34. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  35. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.cjs +1 -0
  36. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts +1 -0
  37. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts.map +1 -1
  38. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.js.map +1 -1
  39. package/generated/typegraphql-prisma/models/Order.cjs +1 -1
  40. package/generated/typegraphql-prisma/models/Order.d.ts +1 -1
  41. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  42. package/generated/typegraphql-prisma/models/Trade.cjs +8 -1
  43. package/generated/typegraphql-prisma/models/Trade.d.ts +5 -1
  44. package/generated/typegraphql-prisma/models/Trade.d.ts.map +1 -1
  45. package/generated/typegraphql-prisma/models/Trade.js.map +1 -1
  46. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts +1 -1
  47. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts.map +1 -1
  48. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.js.map +1 -1
  49. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts +1 -1
  50. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts.map +1 -1
  51. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.js.map +1 -1
  52. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts +1 -1
  53. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts.map +1 -1
  54. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.js.map +1 -1
  55. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts +1 -1
  56. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts.map +1 -1
  57. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.js.map +1 -1
  58. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.cjs +6 -0
  59. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts +1 -0
  60. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts.map +1 -1
  61. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.js.map +1 -1
  62. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.cjs +6 -0
  63. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts +1 -0
  64. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts.map +1 -1
  65. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.js.map +1 -1
  66. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.cjs +6 -0
  67. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.d.ts +1 -0
  68. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.d.ts.map +1 -1
  69. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.js.map +1 -1
  70. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.cjs +6 -0
  71. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.d.ts +1 -0
  72. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.d.ts.map +1 -1
  73. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.js.map +1 -1
  74. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.cjs +6 -0
  75. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts +1 -0
  76. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts.map +1 -1
  77. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.js.map +1 -1
  78. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.cjs +6 -0
  79. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts +1 -0
  80. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts.map +1 -1
  81. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.js.map +1 -1
  82. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.cjs +6 -0
  83. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.d.ts +1 -0
  84. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  85. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.js.map +1 -1
  86. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.cjs +6 -0
  87. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.d.ts +1 -0
  88. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.d.ts.map +1 -1
  89. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.js.map +1 -1
  90. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.cjs +6 -0
  91. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts +1 -0
  92. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts.map +1 -1
  93. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.js.map +1 -1
  94. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.cjs +6 -0
  95. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts +1 -0
  96. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts.map +1 -1
  97. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.js.map +1 -1
  98. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.cjs +6 -0
  99. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts +1 -0
  100. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts.map +1 -1
  101. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.js.map +1 -1
  102. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.cjs +6 -0
  103. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts +1 -0
  104. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts.map +1 -1
  105. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.js.map +1 -1
  106. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.cjs +6 -0
  107. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.d.ts +1 -0
  108. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.d.ts.map +1 -1
  109. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.js.map +1 -1
  110. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.cjs +6 -0
  111. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts +1 -0
  112. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts.map +1 -1
  113. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.js.map +1 -1
  114. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.cjs +6 -0
  115. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts +1 -0
  116. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts.map +1 -1
  117. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.js.map +1 -1
  118. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.cjs +6 -0
  119. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts +1 -0
  120. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts.map +1 -1
  121. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.js.map +1 -1
  122. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.cjs +6 -0
  123. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts +1 -0
  124. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts.map +1 -1
  125. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.js.map +1 -1
  126. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.cjs +6 -0
  127. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.d.ts +1 -0
  128. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  129. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.js.map +1 -1
  130. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.cjs +6 -0
  131. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.d.ts +1 -0
  132. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.d.ts.map +1 -1
  133. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.js.map +1 -1
  134. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.cjs +6 -0
  135. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts +1 -0
  136. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts.map +1 -1
  137. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.js.map +1 -1
  138. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.cjs +6 -0
  139. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts +1 -0
  140. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts.map +1 -1
  141. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.js.map +1 -1
  142. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.cjs +6 -0
  143. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.d.ts +1 -0
  144. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.d.ts.map +1 -1
  145. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.js.map +1 -1
  146. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.cjs +6 -0
  147. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts +1 -0
  148. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts.map +1 -1
  149. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.js.map +1 -1
  150. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.cjs +6 -0
  151. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts +1 -0
  152. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts.map +1 -1
  153. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.js.map +1 -1
  154. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.cjs +6 -0
  155. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts +1 -0
  156. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts.map +1 -1
  157. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.js.map +1 -1
  158. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.cjs +6 -0
  159. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts +1 -0
  160. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts.map +1 -1
  161. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.js.map +1 -1
  162. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountTradesArgs.d.ts +1 -1
  163. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountTradesArgs.d.ts.map +1 -1
  164. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountTradesArgs.js.map +1 -1
  165. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetTradesArgs.d.ts +1 -1
  166. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetTradesArgs.d.ts.map +1 -1
  167. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetTradesArgs.js.map +1 -1
  168. package/package.json +1 -1
  169. package/server/Account.d.ts.map +1 -1
  170. package/server/Account.js.map +1 -1
  171. package/server/Account.mjs +43 -0
  172. package/server/Action.d.ts.map +1 -1
  173. package/server/Action.js.map +1 -1
  174. package/server/Action.mjs +65 -0
  175. package/server/Alert.d.ts.map +1 -1
  176. package/server/Alert.js.map +1 -1
  177. package/server/Alert.mjs +41 -0
  178. package/server/AlpacaAccount.d.ts.map +1 -1
  179. package/server/AlpacaAccount.js.map +1 -1
  180. package/server/AlpacaAccount.mjs +78 -0
  181. package/server/Asset.d.ts.map +1 -1
  182. package/server/Asset.js.map +1 -1
  183. package/server/Asset.mjs +78 -0
  184. package/server/Authenticator.d.ts.map +1 -1
  185. package/server/Authenticator.js.map +1 -1
  186. package/server/Authenticator.mjs +43 -0
  187. package/server/Customer.d.ts.map +1 -1
  188. package/server/Customer.js.map +1 -1
  189. package/server/Customer.mjs +43 -0
  190. package/server/NewsArticle.d.ts.map +1 -1
  191. package/server/NewsArticle.js.map +1 -1
  192. package/server/NewsArticle.mjs +43 -0
  193. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  194. package/server/NewsArticleAssetSentiment.js.map +1 -1
  195. package/server/NewsArticleAssetSentiment.mjs +41 -0
  196. package/server/Order.d.ts.map +1 -1
  197. package/server/Order.js.map +1 -1
  198. package/server/Order.mjs +63 -0
  199. package/server/Position.d.ts.map +1 -1
  200. package/server/Position.js.map +1 -1
  201. package/server/Position.mjs +58 -0
  202. package/server/Session.d.ts.map +1 -1
  203. package/server/Session.js.map +1 -1
  204. package/server/Session.mjs +43 -0
  205. package/server/StopLoss.d.ts.map +1 -1
  206. package/server/StopLoss.js.map +1 -1
  207. package/server/StopLoss.mjs +69 -0
  208. package/server/TakeProfit.d.ts.map +1 -1
  209. package/server/TakeProfit.js.map +1 -1
  210. package/server/TakeProfit.mjs +69 -0
  211. package/server/Trade.d.ts.map +1 -1
  212. package/server/Trade.js.map +1 -1
  213. package/server/Trade.mjs +14 -0
  214. package/server/User.d.ts.map +1 -1
  215. package/server/User.js.map +1 -1
  216. package/server/User.mjs +41 -0
  217. package/server/generated/typeStrings/Action.d.ts +1 -1
  218. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  219. package/server/generated/typeStrings/Action.mjs +1 -1
  220. package/server/generated/typeStrings/Order.d.ts +1 -1
  221. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  222. package/server/generated/typeStrings/Order.mjs +1 -1
  223. package/server/generated/typeStrings/StopLoss.d.ts +1 -1
  224. package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
  225. package/server/generated/typeStrings/StopLoss.mjs +1 -1
  226. package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
  227. package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  228. package/server/generated/typeStrings/TakeProfit.mjs +1 -1
  229. package/server/generated/typeStrings/Trade.d.ts +1 -1
  230. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  231. package/server/generated/typeStrings/Trade.mjs +3 -3
  232. package/server/generated/typeStrings/index.d.ts +5 -5
  233. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  234. package/server/generated/typegraphql-prisma/enhance.mjs +27 -27
  235. package/server/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts +1 -0
  236. package/server/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts.map +1 -1
  237. package/server/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.js.map +1 -1
  238. package/server/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.mjs +1 -0
  239. package/server/generated/typegraphql-prisma/models/Order.d.ts +1 -1
  240. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  241. package/server/generated/typegraphql-prisma/models/Order.mjs +2 -2
  242. package/server/generated/typegraphql-prisma/models/Trade.d.ts +5 -1
  243. package/server/generated/typegraphql-prisma/models/Trade.d.ts.map +1 -1
  244. package/server/generated/typegraphql-prisma/models/Trade.js.map +1 -1
  245. package/server/generated/typegraphql-prisma/models/Trade.mjs +13 -2
  246. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts +1 -1
  247. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts.map +1 -1
  248. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.js.map +1 -1
  249. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts +1 -1
  250. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts.map +1 -1
  251. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.js.map +1 -1
  252. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts +1 -1
  253. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts.map +1 -1
  254. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.js.map +1 -1
  255. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts +1 -1
  256. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts.map +1 -1
  257. package/server/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.js.map +1 -1
  258. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts +1 -0
  259. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts.map +1 -1
  260. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.js.map +1 -1
  261. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.mjs +7 -0
  262. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts +1 -0
  263. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts.map +1 -1
  264. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.js.map +1 -1
  265. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.mjs +7 -0
  266. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.d.ts +1 -0
  267. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.d.ts.map +1 -1
  268. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.js.map +1 -1
  269. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.mjs +7 -0
  270. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.d.ts +1 -0
  271. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.d.ts.map +1 -1
  272. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.js.map +1 -1
  273. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.mjs +7 -0
  274. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts +1 -0
  275. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts.map +1 -1
  276. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.js.map +1 -1
  277. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.mjs +7 -0
  278. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts +1 -0
  279. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts.map +1 -1
  280. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.js.map +1 -1
  281. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.mjs +7 -0
  282. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.d.ts +1 -0
  283. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  284. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.js.map +1 -1
  285. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.mjs +7 -0
  286. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.d.ts +1 -0
  287. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.d.ts.map +1 -1
  288. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.js.map +1 -1
  289. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.mjs +7 -0
  290. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts +1 -0
  291. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts.map +1 -1
  292. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.js.map +1 -1
  293. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.mjs +7 -0
  294. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts +1 -0
  295. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts.map +1 -1
  296. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.js.map +1 -1
  297. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.mjs +7 -0
  298. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts +1 -0
  299. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts.map +1 -1
  300. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.js.map +1 -1
  301. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.mjs +7 -0
  302. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts +1 -0
  303. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts.map +1 -1
  304. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.js.map +1 -1
  305. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.mjs +7 -0
  306. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.d.ts +1 -0
  307. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.d.ts.map +1 -1
  308. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.js.map +1 -1
  309. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.mjs +7 -0
  310. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts +1 -0
  311. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts.map +1 -1
  312. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.js.map +1 -1
  313. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.mjs +7 -0
  314. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts +1 -0
  315. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts.map +1 -1
  316. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.js.map +1 -1
  317. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.mjs +7 -0
  318. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts +1 -0
  319. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts.map +1 -1
  320. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.js.map +1 -1
  321. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.mjs +7 -0
  322. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts +1 -0
  323. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts.map +1 -1
  324. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.js.map +1 -1
  325. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.mjs +7 -0
  326. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.d.ts +1 -0
  327. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  328. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.js.map +1 -1
  329. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.mjs +7 -0
  330. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.d.ts +1 -0
  331. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.d.ts.map +1 -1
  332. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.js.map +1 -1
  333. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.mjs +7 -0
  334. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts +1 -0
  335. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts.map +1 -1
  336. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.js.map +1 -1
  337. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.mjs +7 -0
  338. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts +1 -0
  339. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts.map +1 -1
  340. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.js.map +1 -1
  341. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.mjs +7 -0
  342. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.d.ts +1 -0
  343. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.d.ts.map +1 -1
  344. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.js.map +1 -1
  345. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.mjs +7 -0
  346. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts +1 -0
  347. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts.map +1 -1
  348. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.js.map +1 -1
  349. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.mjs +7 -0
  350. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts +1 -0
  351. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts.map +1 -1
  352. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.js.map +1 -1
  353. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.mjs +7 -0
  354. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts +1 -0
  355. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts.map +1 -1
  356. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.js.map +1 -1
  357. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.mjs +7 -0
  358. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts +1 -0
  359. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts.map +1 -1
  360. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.js.map +1 -1
  361. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.mjs +7 -0
  362. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountTradesArgs.d.ts +1 -1
  363. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountTradesArgs.d.ts.map +1 -1
  364. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountTradesArgs.js.map +1 -1
  365. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetTradesArgs.d.ts +1 -1
  366. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetTradesArgs.d.ts.map +1 -1
  367. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetTradesArgs.js.map +1 -1
@@ -8,11 +8,11 @@ export declare const typeStrings: {
8
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
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
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 // Option Type (CALL or PUT) if the asset is an option.\n optionType?: OptionType;\n // Signal that triggered the trade.\n signal: TradeSignal;\n // Strategy used to execute the trade.\n strategy: TradeStrategy;\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 // 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 // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. For SELL orders: stopPrice ≤ current market price. For BUY orders: stopPrice ≥ current market price.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required 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 // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\n };\n }[];\n};\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum TradeSignal {\n GOLDEN_CROSS = \"GOLDEN_CROSS\",\n MOVING_AVERAGE_CROSSOVER = \"MOVING_AVERAGE_CROSSOVER\",\n RSI_OVERBOUGHT = \"RSI_OVERBOUGHT\",\n RSI_OVERSOLD = \"RSI_OVERSOLD\",\n MACD_CROSSOVER = \"MACD_CROSSOVER\",\n BOLLINGER_BANDS_BREAKOUT = \"BOLLINGER_BANDS_BREAKOUT\",\n TREND_REVERSAL = \"TREND_REVERSAL\",\n VOLATILITY_SPIKE = \"VOLATILITY_SPIKE\",\n PRICE_ACTION = \"PRICE_ACTION\",\n IMPLIED_VOLATILITY_SURGE = \"IMPLIED_VOLATILITY_SURGE\",\n BREAKOUT_ABOVE_RESISTANCE = \"BREAKOUT_ABOVE_RESISTANCE\",\n BREAKDOWN_BELOW_SUPPORT = \"BREAKDOWN_BELOW_SUPPORT\",\n SUPPORT_LEVEL_HOLD = \"SUPPORT_LEVEL_HOLD\",\n RESISTANCE_LEVEL_HOLD = \"RESISTANCE_LEVEL_HOLD\",\n FIBONACCI_RETRACEMENT = \"FIBONACCI_RETRACEMENT\",\n ELLIOTT_WAVE = \"ELLIOTT_WAVE\",\n PARABOLIC_SAR = \"PARABOLIC_SAR\",\n ADX_TREND_STRENGTH = \"ADX_TREND_STRENGTH\",\n CCI_OVERBOUGHT = \"CCI_OVERBOUGHT\",\n CCI_OVERSOLD = \"CCI_OVERSOLD\",\n STOCHASTIC_OVERSOLD = \"STOCHASTIC_OVERSOLD\",\n STOCHASTIC_OVERBOUGHT = \"STOCHASTIC_OVERBOUGHT\",\n DIVERGENCE_SIGNAL = \"DIVERGENCE_SIGNAL\",\n GANN_FAN = \"GANN_FAN\",\n DONCHIAN_CHANNEL_BREAKOUT = \"DONCHIAN_CHANNEL_BREAKOUT\",\n PIVOT_POINT = \"PIVOT_POINT\",\n KELTNER_CHANNEL_BREAK = \"KELTNER_CHANNEL_BREAK\",\n HEIKIN_ASHI_CROSSOVER = \"HEIKIN_ASHI_CROSSOVER\",\n VOLUME_SURGE = \"VOLUME_SURGE\",\n ORDER_BOOK_IMBALANCE = \"ORDER_BOOK_IMBALANCE\",\n TIME_SERIES_ANOMALY = \"TIME_SERIES_ANOMALY\",\n MEAN_REVERSION_LEVEL = \"MEAN_REVERSION_LEVEL\",\n PAIR_TRADING_SIGNAL = \"PAIR_TRADING_SIGNAL\",\n SENTIMENT_SCORE_THRESHOLD = \"SENTIMENT_SCORE_THRESHOLD\",\n NEWS_SENTIMENT_CHANGE = \"NEWS_SENTIMENT_CHANGE\",\n ORDER_FLOW_IMPACT = \"ORDER_FLOW_IMPACT\",\n LIQUIDITY_DRIVEN_MOVE = \"LIQUIDITY_DRIVEN_MOVE\",\n MACHINE_LEARNING_PREDICTION = \"MACHINE_LEARNING_PREDICTION\",\n SENTIMENT_ANALYSIS_TRIGGER = \"SENTIMENT_ANALYSIS_TRIGGER\",\n NO_SIGNAL = \"NO_SIGNAL\"\n}\n\nexport enum TradeStrategy {\n TECHNICAL_ANALYSIS = \"TECHNICAL_ANALYSIS\",\n TREND_FOLLOWING = \"TREND_FOLLOWING\",\n MEAN_REVERSION = \"MEAN_REVERSION\",\n OPTIONS_STRATEGY = \"OPTIONS_STRATEGY\",\n MOMENTUM_STRATEGY = \"MOMENTUM_STRATEGY\",\n ARBITRAGE = \"ARBITRAGE\",\n STATISTICAL_ARBITRAGE = \"STATISTICAL_ARBITRAGE\",\n MARKET_MAKING = \"MARKET_MAKING\",\n NEWS_BASED_STRATEGY = \"NEWS_BASED_STRATEGY\",\n SENTIMENT_ANALYSIS = \"SENTIMENT_ANALYSIS\",\n LIQUIDITY_PROVISION = \"LIQUIDITY_PROVISION\",\n SCALPING = \"SCALPING\",\n VOLATILITY_TRADING = \"VOLATILITY_TRADING\",\n EVENT_DRIVEN = \"EVENT_DRIVEN\",\n BREAKOUT_STRATEGY = \"BREAKOUT_STRATEGY\",\n ORDER_FLOW_TRADING = \"ORDER_FLOW_TRADING\",\n PAIR_TRADING = \"PAIR_TRADING\",\n SECTOR_ROTATION = \"SECTOR_ROTATION\",\n HIGH_FREQUENCY_TRADING = \"HIGH_FREQUENCY_TRADING\",\n MACHINE_VISION_ANALYSIS = \"MACHINE_VISION_ANALYSIS\",\n NO_STRATEGY = \"NO_STRATEGY\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum ActionType {\n BUY = \"BUY\",\n BUY_OPTION = \"BUY_OPTION\",\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\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\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 STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\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 // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. For SELL orders: stopPrice ≤ current market price. For BUY orders: stopPrice ≥ current market price.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required 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 // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\n };\n};\nexport enum ActionType {\n BUY = \"BUY\",\n BUY_OPTION = \"BUY_OPTION\",\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\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\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 STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\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 // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. For SELL orders: stopPrice ≤ current market price. For BUY orders: stopPrice ≥ current market price.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required 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 // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\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\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\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 STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
14
- readonly stopLoss: "\nYour response should adhere to the following type definition for the \"StopLoss\" 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 StopLoss = {\n // Must be a positive number. For SELL orders: stopPrice ≤ current market price. For BUY orders: stopPrice ≥ current market price.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n // An order that is associated with this stop loss.\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 // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders.\n stopPrice?: number;\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required 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 // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\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\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\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 STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
15
- readonly takeProfit: "\nYour response should adhere to the following type definition for the \"TakeProfit\" 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 TakeProfit = {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n // An order that is associated with this take profit.\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 // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. For SELL orders: stopPrice ≤ current market price. For BUY orders: stopPrice ≥ current market price.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required 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 // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\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\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\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 STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\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 // Option Type (CALL or PUT) if the asset is an option.\n optionType?: OptionType;\n // Signal that triggered the trade.\n signal: TradeSignal;\n // Strategy used to execute the trade.\n strategy: TradeStrategy;\n // summary of the trade decision (this should be a short description of the trade).\n summary: 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 // 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. But importantly, either qty or notional must be 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 // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. For SELL orders: stopPrice ≤ current market price. For BUY orders: stopPrice ≥ current market price.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required 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 // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\n };\n }[];\n};\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum TradeSignal {\n GOLDEN_CROSS = \"GOLDEN_CROSS\",\n MOVING_AVERAGE_CROSSOVER = \"MOVING_AVERAGE_CROSSOVER\",\n RSI_OVERBOUGHT = \"RSI_OVERBOUGHT\",\n RSI_OVERSOLD = \"RSI_OVERSOLD\",\n MACD_CROSSOVER = \"MACD_CROSSOVER\",\n BOLLINGER_BANDS_BREAKOUT = \"BOLLINGER_BANDS_BREAKOUT\",\n TREND_REVERSAL = \"TREND_REVERSAL\",\n VOLATILITY_SPIKE = \"VOLATILITY_SPIKE\",\n PRICE_ACTION = \"PRICE_ACTION\",\n IMPLIED_VOLATILITY_SURGE = \"IMPLIED_VOLATILITY_SURGE\",\n BREAKOUT_ABOVE_RESISTANCE = \"BREAKOUT_ABOVE_RESISTANCE\",\n BREAKDOWN_BELOW_SUPPORT = \"BREAKDOWN_BELOW_SUPPORT\",\n SUPPORT_LEVEL_HOLD = \"SUPPORT_LEVEL_HOLD\",\n RESISTANCE_LEVEL_HOLD = \"RESISTANCE_LEVEL_HOLD\",\n FIBONACCI_RETRACEMENT = \"FIBONACCI_RETRACEMENT\",\n ELLIOTT_WAVE = \"ELLIOTT_WAVE\",\n PARABOLIC_SAR = \"PARABOLIC_SAR\",\n ADX_TREND_STRENGTH = \"ADX_TREND_STRENGTH\",\n CCI_OVERBOUGHT = \"CCI_OVERBOUGHT\",\n CCI_OVERSOLD = \"CCI_OVERSOLD\",\n STOCHASTIC_OVERSOLD = \"STOCHASTIC_OVERSOLD\",\n STOCHASTIC_OVERBOUGHT = \"STOCHASTIC_OVERBOUGHT\",\n DIVERGENCE_SIGNAL = \"DIVERGENCE_SIGNAL\",\n GANN_FAN = \"GANN_FAN\",\n DONCHIAN_CHANNEL_BREAKOUT = \"DONCHIAN_CHANNEL_BREAKOUT\",\n PIVOT_POINT = \"PIVOT_POINT\",\n KELTNER_CHANNEL_BREAK = \"KELTNER_CHANNEL_BREAK\",\n HEIKIN_ASHI_CROSSOVER = \"HEIKIN_ASHI_CROSSOVER\",\n VOLUME_SURGE = \"VOLUME_SURGE\",\n ORDER_BOOK_IMBALANCE = \"ORDER_BOOK_IMBALANCE\",\n TIME_SERIES_ANOMALY = \"TIME_SERIES_ANOMALY\",\n MEAN_REVERSION_LEVEL = \"MEAN_REVERSION_LEVEL\",\n PAIR_TRADING_SIGNAL = \"PAIR_TRADING_SIGNAL\",\n SENTIMENT_SCORE_THRESHOLD = \"SENTIMENT_SCORE_THRESHOLD\",\n NEWS_SENTIMENT_CHANGE = \"NEWS_SENTIMENT_CHANGE\",\n ORDER_FLOW_IMPACT = \"ORDER_FLOW_IMPACT\",\n LIQUIDITY_DRIVEN_MOVE = \"LIQUIDITY_DRIVEN_MOVE\",\n MACHINE_LEARNING_PREDICTION = \"MACHINE_LEARNING_PREDICTION\",\n SENTIMENT_ANALYSIS_TRIGGER = \"SENTIMENT_ANALYSIS_TRIGGER\",\n NO_SIGNAL = \"NO_SIGNAL\"\n}\n\nexport enum TradeStrategy {\n TECHNICAL_ANALYSIS = \"TECHNICAL_ANALYSIS\",\n TREND_FOLLOWING = \"TREND_FOLLOWING\",\n MEAN_REVERSION = \"MEAN_REVERSION\",\n OPTIONS_STRATEGY = \"OPTIONS_STRATEGY\",\n MOMENTUM_STRATEGY = \"MOMENTUM_STRATEGY\",\n ARBITRAGE = \"ARBITRAGE\",\n STATISTICAL_ARBITRAGE = \"STATISTICAL_ARBITRAGE\",\n MARKET_MAKING = \"MARKET_MAKING\",\n NEWS_BASED_STRATEGY = \"NEWS_BASED_STRATEGY\",\n SENTIMENT_ANALYSIS = \"SENTIMENT_ANALYSIS\",\n LIQUIDITY_PROVISION = \"LIQUIDITY_PROVISION\",\n SCALPING = \"SCALPING\",\n VOLATILITY_TRADING = \"VOLATILITY_TRADING\",\n EVENT_DRIVEN = \"EVENT_DRIVEN\",\n BREAKOUT_STRATEGY = \"BREAKOUT_STRATEGY\",\n ORDER_FLOW_TRADING = \"ORDER_FLOW_TRADING\",\n PAIR_TRADING = \"PAIR_TRADING\",\n SECTOR_ROTATION = \"SECTOR_ROTATION\",\n HIGH_FREQUENCY_TRADING = \"HIGH_FREQUENCY_TRADING\",\n MACHINE_VISION_ANALYSIS = \"MACHINE_VISION_ANALYSIS\",\n NO_STRATEGY = \"NO_STRATEGY\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum ActionType {\n BUY = \"BUY\",\n BUY_OPTION = \"BUY_OPTION\",\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\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\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 STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\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. But importantly, either qty or notional must be 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 // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. For SELL orders: stopPrice ≤ current market price. For BUY orders: stopPrice ≥ current market price.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required 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 // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\n };\n};\nexport enum ActionType {\n BUY = \"BUY\",\n BUY_OPTION = \"BUY_OPTION\",\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\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\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 STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\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. But importantly, either qty or notional must be 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 // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. For SELL orders: stopPrice ≤ current market price. For BUY orders: stopPrice ≥ current market price.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required 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 // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\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\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\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 STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
14
+ readonly stopLoss: "\nYour response should adhere to the following type definition for the \"StopLoss\" 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 StopLoss = {\n // Must be a positive number. For SELL orders: stopPrice ≤ current market price. For BUY orders: stopPrice ≥ current market price.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n // An order that is associated with this stop loss.\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. But importantly, either qty or notional must be 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 // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders.\n stopPrice?: number;\n // Take profit object required for bracket orders.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required 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 // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\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\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\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 STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
15
+ readonly takeProfit: "\nYour response should adhere to the following type definition for the \"TakeProfit\" 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 TakeProfit = {\n // Must be a positive number and ≥ base_price + 0.01.\n limitPrice?: number;\n // Typically not used in standard take profit orders. If used, must comply with Alpaca's specific requirements.\n stopPrice?: number;\n // An order that is associated with this take profit.\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. But importantly, either qty or notional must be 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 // Order class for advanced order types (simple, bracket, oco, oso).\n orderClass: OrderClass;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Must be a positive number and required for LIMIT or STOP_LIMIT orders. For take_profit, must be ≥ base_price + 0.01.\n limitPrice?: number;\n // Must be a positive number and required for STOP or STOP_LIMIT orders.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. For SELL orders: stopPrice ≤ current market price. For BUY orders: stopPrice ≥ current market price.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT.\n limitPrice?: number;\n };\n // Must be a positive number and required for TRAILING_STOP orders.\n trailPrice?: number;\n // Must be a positive number representing the percentage and required 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 // Strike price for option orders.\n strikePrice?: number;\n // Expiration date for option orders.\n expirationDate?: Date;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionType?: OptionType;\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\nexport enum OrderClass {\n SIMPLE = \"SIMPLE\",\n BRACKET = \"BRACKET\",\n OCO = \"OCO\",\n OSO = \"OSO\",\n OTO = \"OTO\"\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 STAGED = \"STAGED\",\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n DONE_FOR_DAY = \"DONE_FOR_DAY\",\n CANCELED = \"CANCELED\",\n EXPIRED = \"EXPIRED\",\n REPLACED = \"REPLACED\",\n PENDING_CANCEL = \"PENDING_CANCEL\",\n PENDING_REPLACE = \"PENDING_REPLACE\",\n ACCEPTED = \"ACCEPTED\",\n PENDING_NEW = \"PENDING_NEW\",\n ACCEPTED_FOR_BIDDING = \"ACCEPTED_FOR_BIDDING\",\n STOPPED = \"STOPPED\",\n REJECTED = \"REJECTED\",\n SUSPENDED = \"SUSPENDED\",\n CALCULATED = \"CALCULATED\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
16
16
  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";
17
17
  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";
18
18
  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";
@@ -749,7 +749,7 @@ const modelsInfo = {
749
749
  VerificationToken: ["id", "identifier", "token", "expires"],
750
750
  Customer: ["id", "authUserId", "name", "plan", "stripeCustomerId", "stripeSubscriptionId", "stripePriceId", "stripeCurrentPeriodEnd", "createdAt", "updatedAt"],
751
751
  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", "askPrice", "bidPrice", "createdAt", "updatedAt"],
752
- Trade: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
752
+ Trade: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
753
753
  Action: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
754
754
  Order: ["id", "clientOrderId", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId"],
755
755
  StopLoss: ["id", "stopPrice", "limitPrice", "createdAt", "updatedAt", "orderId"],
@@ -788,7 +788,7 @@ const outputsInfo = {
788
788
  AggregateAsset: ["_count", "_min", "_max"],
789
789
  AssetGroupBy: ["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", "askPrice", "bidPrice", "createdAt", "updatedAt", "_count", "_min", "_max"],
790
790
  AggregateTrade: ["_count", "_avg", "_sum", "_min", "_max"],
791
- TradeGroupBy: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "_count", "_avg", "_sum", "_min", "_max"],
791
+ TradeGroupBy: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "_count", "_avg", "_sum", "_min", "_max"],
792
792
  AggregateAction: ["_count", "_avg", "_sum", "_min", "_max"],
793
793
  ActionGroupBy: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "_count", "_avg", "_sum", "_min", "_max"],
794
794
  AggregateOrder: ["_count", "_avg", "_sum", "_min", "_max"],
@@ -850,11 +850,11 @@ const outputsInfo = {
850
850
  AssetMinAggregate: ["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", "askPrice", "bidPrice", "createdAt", "updatedAt"],
851
851
  AssetMaxAggregate: ["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", "askPrice", "bidPrice", "createdAt", "updatedAt"],
852
852
  TradeCount: ["actions"],
853
- TradeCountAggregate: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "_all"],
853
+ TradeCountAggregate: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "_all"],
854
854
  TradeAvgAggregate: ["qty", "price", "total", "confidence"],
855
855
  TradeSumAggregate: ["qty", "price", "total", "confidence"],
856
- TradeMinAggregate: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
857
- TradeMaxAggregate: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
856
+ TradeMinAggregate: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
857
+ TradeMaxAggregate: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
858
858
  ActionCountAggregate: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "_all"],
859
859
  ActionAvgAggregate: ["sequence", "fee"],
860
860
  ActionSumAggregate: ["sequence", "fee"],
@@ -897,7 +897,7 @@ const outputsInfo = {
897
897
  CreateManyVerificationTokenAndReturnOutputType: ["id", "identifier", "token", "expires"],
898
898
  CreateManyCustomerAndReturnOutputType: ["id", "authUserId", "name", "plan", "stripeCustomerId", "stripeSubscriptionId", "stripePriceId", "stripeCurrentPeriodEnd", "createdAt", "updatedAt"],
899
899
  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", "askPrice", "bidPrice", "createdAt", "updatedAt"],
900
- CreateManyTradeAndReturnOutputType: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset"],
900
+ CreateManyTradeAndReturnOutputType: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset"],
901
901
  CreateManyActionAndReturnOutputType: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "trade"],
902
902
  CreateManyOrderAndReturnOutputType: ["id", "clientOrderId", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "alpacaAccount", "action", "asset"],
903
903
  CreateManyStopLossAndReturnOutputType: ["id", "stopPrice", "limitPrice", "createdAt", "updatedAt", "orderId", "Order"],
@@ -962,11 +962,11 @@ const inputsInfo = {
962
962
  AssetWhereUniqueInput: ["id", "symbol", "name", "AND", "OR", "NOT", "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", "askPrice", "bidPrice", "createdAt", "updatedAt", "trades", "orders", "positions", "newsMentions"],
963
963
  AssetOrderByWithAggregationInput: ["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", "askPrice", "bidPrice", "createdAt", "updatedAt", "_count", "_max", "_min"],
964
964
  AssetScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "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", "askPrice", "bidPrice", "createdAt", "updatedAt"],
965
- TradeWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
966
- TradeOrderByWithRelationInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
967
- TradeWhereUniqueInput: ["id", "AND", "OR", "NOT", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
968
- TradeOrderByWithAggregationInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "_count", "_avg", "_max", "_min", "_sum"],
969
- TradeScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
965
+ TradeWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
966
+ TradeOrderByWithRelationInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
967
+ TradeWhereUniqueInput: ["id", "AND", "OR", "NOT", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
968
+ TradeOrderByWithAggregationInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "_count", "_avg", "_max", "_min", "_sum"],
969
+ TradeScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
970
970
  ActionWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "note", "status", "fee", "trade", "order"],
971
971
  ActionOrderByWithRelationInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "trade", "order"],
972
972
  ActionWhereUniqueInput: ["id", "AND", "OR", "NOT", "sequence", "tradeId", "type", "note", "status", "fee", "trade", "order"],
@@ -1043,10 +1043,10 @@ const inputsInfo = {
1043
1043
  AssetUpdateInput: ["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", "askPrice", "bidPrice", "createdAt", "updatedAt", "trades", "orders", "positions", "newsMentions"],
1044
1044
  AssetCreateManyInput: ["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", "askPrice", "bidPrice", "createdAt", "updatedAt"],
1045
1045
  AssetUpdateManyMutationInput: ["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", "askPrice", "bidPrice", "createdAt", "updatedAt"],
1046
- TradeCreateInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
1047
- TradeUpdateInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
1048
- TradeCreateManyInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1049
- TradeUpdateManyMutationInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1046
+ TradeCreateInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
1047
+ TradeUpdateInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
1048
+ TradeCreateManyInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1049
+ TradeUpdateManyMutationInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1050
1050
  ActionCreateInput: ["id", "sequence", "type", "note", "status", "fee", "trade", "order"],
1051
1051
  ActionUpdateInput: ["id", "sequence", "type", "note", "status", "fee", "trade", "order"],
1052
1052
  ActionCreateManyInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
@@ -1182,10 +1182,10 @@ const inputsInfo = {
1182
1182
  AlpacaAccountRelationFilter: ["is", "isNot"],
1183
1183
  ActionListRelationFilter: ["every", "some", "none"],
1184
1184
  ActionOrderByRelationAggregateInput: ["_count"],
1185
- TradeCountOrderByAggregateInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1185
+ TradeCountOrderByAggregateInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1186
1186
  TradeAvgOrderByAggregateInput: ["qty", "price", "total", "confidence"],
1187
- TradeMaxOrderByAggregateInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1188
- TradeMinOrderByAggregateInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1187
+ TradeMaxOrderByAggregateInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1188
+ TradeMinOrderByAggregateInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1189
1189
  TradeSumOrderByAggregateInput: ["qty", "price", "total", "confidence"],
1190
1190
  EnumOptionTypeNullableWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1191
1191
  EnumTradeSignalWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
@@ -1460,7 +1460,7 @@ const inputsInfo = {
1460
1460
  AlpacaAccountScalarWhereInput: ["AND", "OR", "NOT", "id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
1461
1461
  UserCreateWithoutAlpacaAccountsInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel", "customer", "accounts", "sessions", "authenticators"],
1462
1462
  UserCreateOrConnectWithoutAlpacaAccountsInput: ["where", "create"],
1463
- TradeCreateWithoutAlpacaAccountInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "asset", "actions"],
1463
+ TradeCreateWithoutAlpacaAccountInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "asset", "actions"],
1464
1464
  TradeCreateOrConnectWithoutAlpacaAccountInput: ["where", "create"],
1465
1465
  TradeCreateManyAlpacaAccountInputEnvelope: ["data", "skipDuplicates"],
1466
1466
  OrderCreateWithoutAlpacaAccountInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "action", "asset"],
@@ -1478,7 +1478,7 @@ const inputsInfo = {
1478
1478
  TradeUpsertWithWhereUniqueWithoutAlpacaAccountInput: ["where", "update", "create"],
1479
1479
  TradeUpdateWithWhereUniqueWithoutAlpacaAccountInput: ["where", "data"],
1480
1480
  TradeUpdateManyWithWhereWithoutAlpacaAccountInput: ["where", "data"],
1481
- TradeScalarWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1481
+ TradeScalarWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1482
1482
  OrderUpsertWithWhereUniqueWithoutAlpacaAccountInput: ["where", "update", "create"],
1483
1483
  OrderUpdateWithWhereUniqueWithoutAlpacaAccountInput: ["where", "data"],
1484
1484
  OrderUpdateManyWithWhereWithoutAlpacaAccountInput: ["where", "data"],
@@ -1518,7 +1518,7 @@ const inputsInfo = {
1518
1518
  UserUpdateWithWhereUniqueWithoutCustomerInput: ["where", "data"],
1519
1519
  UserUpdateManyWithWhereWithoutCustomerInput: ["where", "data"],
1520
1520
  UserScalarWhereInput: ["AND", "OR", "NOT", "id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "customerId", "plan", "openaiAPIKey", "openaiModel"],
1521
- TradeCreateWithoutAssetInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "actions"],
1521
+ TradeCreateWithoutAssetInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "actions"],
1522
1522
  TradeCreateOrConnectWithoutAssetInput: ["where", "create"],
1523
1523
  TradeCreateManyAssetInputEnvelope: ["data", "skipDuplicates"],
1524
1524
  OrderCreateWithoutAssetInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "action"],
@@ -1560,13 +1560,13 @@ const inputsInfo = {
1560
1560
  ActionUpdateWithWhereUniqueWithoutTradeInput: ["where", "data"],
1561
1561
  ActionUpdateManyWithWhereWithoutTradeInput: ["where", "data"],
1562
1562
  ActionScalarWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "note", "status", "fee"],
1563
- TradeCreateWithoutActionsInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset"],
1563
+ TradeCreateWithoutActionsInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset"],
1564
1564
  TradeCreateOrConnectWithoutActionsInput: ["where", "create"],
1565
1565
  OrderCreateWithoutActionInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "asset"],
1566
1566
  OrderCreateOrConnectWithoutActionInput: ["where", "create"],
1567
1567
  TradeUpsertWithoutActionsInput: ["update", "create", "where"],
1568
1568
  TradeUpdateToOneWithWhereWithoutActionsInput: ["where", "data"],
1569
- TradeUpdateWithoutActionsInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset"],
1569
+ TradeUpdateWithoutActionsInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset"],
1570
1570
  OrderUpsertWithoutActionInput: ["update", "create", "where"],
1571
1571
  OrderUpdateToOneWithWhereWithoutActionInput: ["where", "data"],
1572
1572
  OrderUpdateWithoutActionInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "asset"],
@@ -1634,21 +1634,21 @@ const inputsInfo = {
1634
1634
  SessionUpdateWithoutUserInput: ["id", "sessionToken", "expires", "createdAt", "updatedAt"],
1635
1635
  AuthenticatorUpdateWithoutUserInput: ["id", "credentialID", "publicKey", "counter", "createdAt", "updatedAt"],
1636
1636
  AlpacaAccountUpdateWithoutUserInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "createdAt", "updatedAt", "trades", "orders", "positions", "alerts"],
1637
- TradeCreateManyAlpacaAccountInput: ["id", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1637
+ TradeCreateManyAlpacaAccountInput: ["id", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1638
1638
  OrderCreateManyAlpacaAccountInput: ["id", "clientOrderId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId"],
1639
1639
  PositionCreateManyAlpacaAccountInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable"],
1640
1640
  AlertCreateManyAlpacaAccountInput: ["id", "message", "type", "isRead", "createdAt", "updatedAt"],
1641
- TradeUpdateWithoutAlpacaAccountInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "asset", "actions"],
1641
+ TradeUpdateWithoutAlpacaAccountInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "asset", "actions"],
1642
1642
  OrderUpdateWithoutAlpacaAccountInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "action", "asset"],
1643
1643
  PositionUpdateWithoutAlpacaAccountInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "asset"],
1644
1644
  AlertUpdateWithoutAlpacaAccountInput: ["id", "message", "type", "isRead", "createdAt", "updatedAt"],
1645
1645
  UserCreateManyCustomerInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel"],
1646
1646
  UserUpdateWithoutCustomerInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel", "accounts", "sessions", "authenticators", "alpacaAccounts"],
1647
- TradeCreateManyAssetInput: ["id", "alpacaAccountId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1647
+ TradeCreateManyAssetInput: ["id", "alpacaAccountId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1648
1648
  OrderCreateManyAssetInput: ["id", "clientOrderId", "alpacaAccountId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId"],
1649
1649
  PositionCreateManyAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
1650
1650
  NewsArticleAssetSentimentCreateManyAssetInput: ["id", "newsArticleId", "url", "relevancyScore", "sentimentScore", "sentimentLabel"],
1651
- TradeUpdateWithoutAssetInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "actions"],
1651
+ TradeUpdateWithoutAssetInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "actions"],
1652
1652
  OrderUpdateWithoutAssetInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledAvgPrice", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "action"],
1653
1653
  PositionUpdateWithoutAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccount"],
1654
1654
  NewsArticleAssetSentimentUpdateWithoutAssetInput: ["id", "url", "relevancyScore", "sentimentScore", "sentimentLabel", "news"],