adaptic-backend 1.0.164 → 1.0.166

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 (429) hide show
  1. package/Account.cjs +14 -0
  2. package/Action.cjs +52 -0
  3. package/Alert.cjs +11 -0
  4. package/AlpacaAccount.cjs +39 -75
  5. package/Asset.cjs +36 -0
  6. package/Authenticator.cjs +14 -0
  7. package/Customer.cjs +14 -0
  8. package/NewsArticle.cjs +13 -0
  9. package/NewsArticleAssetSentiment.cjs +11 -0
  10. package/Order.cjs +22 -0
  11. package/Position.cjs +12 -109
  12. package/Session.cjs +13 -0
  13. package/StopLoss.cjs +26 -0
  14. package/TakeProfit.cjs +26 -0
  15. package/Trade.cjs +22 -0
  16. package/User.cjs +15 -12
  17. package/client.cjs +2 -1
  18. package/generated/typeStrings/Action.cjs +2 -2
  19. package/generated/typeStrings/Action.d.ts +1 -1
  20. package/generated/typeStrings/Action.d.ts.map +1 -1
  21. package/generated/typeStrings/AlpacaAccount.cjs +2 -2
  22. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  23. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  24. package/generated/typeStrings/Asset.cjs +2 -2
  25. package/generated/typeStrings/Asset.d.ts +1 -1
  26. package/generated/typeStrings/Asset.d.ts.map +1 -1
  27. package/generated/typeStrings/Customer.cjs +2 -2
  28. package/generated/typeStrings/Customer.d.ts +1 -1
  29. package/generated/typeStrings/Customer.d.ts.map +1 -1
  30. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +2 -2
  31. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  32. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  33. package/generated/typeStrings/Order.cjs +2 -2
  34. package/generated/typeStrings/Order.d.ts +1 -1
  35. package/generated/typeStrings/Order.d.ts.map +1 -1
  36. package/generated/typeStrings/Position.cjs +2 -2
  37. package/generated/typeStrings/Position.d.ts +1 -1
  38. package/generated/typeStrings/Position.d.ts.map +1 -1
  39. package/generated/typeStrings/Session.cjs +2 -2
  40. package/generated/typeStrings/Session.d.ts +1 -1
  41. package/generated/typeStrings/Session.d.ts.map +1 -1
  42. package/generated/typeStrings/StopLoss.cjs +2 -2
  43. package/generated/typeStrings/StopLoss.d.ts +1 -1
  44. package/generated/typeStrings/StopLoss.d.ts.map +1 -1
  45. package/generated/typeStrings/TakeProfit.cjs +2 -2
  46. package/generated/typeStrings/TakeProfit.d.ts +1 -1
  47. package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  48. package/generated/typeStrings/Trade.cjs +4 -4
  49. package/generated/typeStrings/Trade.d.ts +1 -1
  50. package/generated/typeStrings/Trade.d.ts.map +1 -1
  51. package/generated/typeStrings/User.cjs +2 -2
  52. package/generated/typeStrings/User.d.ts +1 -1
  53. package/generated/typeStrings/User.d.ts.map +1 -1
  54. package/generated/typeStrings/index.d.ts +12 -12
  55. package/generated/typegraphql-prisma/enhance.cjs +25 -25
  56. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  57. package/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.cjs +1 -0
  58. package/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.d.ts +2 -1
  59. package/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.d.ts.map +1 -1
  60. package/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.js.map +1 -1
  61. package/generated/typegraphql-prisma/models/Asset.cjs +2 -2
  62. package/generated/typegraphql-prisma/models/Asset.d.ts +2 -2
  63. package/generated/typegraphql-prisma/models/Asset.js.map +1 -1
  64. package/generated/typegraphql-prisma/models/Position.cjs +7 -0
  65. package/generated/typegraphql-prisma/models/Position.d.ts +5 -1
  66. package/generated/typegraphql-prisma/models/Position.d.ts.map +1 -1
  67. package/generated/typegraphql-prisma/models/Position.js.map +1 -1
  68. package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.d.ts +1 -1
  69. package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.d.ts.map +1 -1
  70. package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.js.map +1 -1
  71. package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.d.ts +1 -1
  72. package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.d.ts.map +1 -1
  73. package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.js.map +1 -1
  74. package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.d.ts +1 -1
  75. package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.d.ts.map +1 -1
  76. package/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.js.map +1 -1
  77. package/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.d.ts +1 -1
  78. package/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.d.ts.map +1 -1
  79. package/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.js.map +1 -1
  80. package/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.cjs +6 -0
  81. package/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.d.ts +1 -0
  82. package/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.d.ts.map +1 -1
  83. package/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.js.map +1 -1
  84. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.cjs +6 -0
  85. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.d.ts +1 -0
  86. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.d.ts.map +1 -1
  87. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.js.map +1 -1
  88. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.cjs +6 -0
  89. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.d.ts +1 -0
  90. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.d.ts.map +1 -1
  91. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.js.map +1 -1
  92. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.cjs +6 -0
  93. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.d.ts +1 -0
  94. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.d.ts.map +1 -1
  95. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.js.map +1 -1
  96. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.cjs +6 -0
  97. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.d.ts +1 -0
  98. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.d.ts.map +1 -1
  99. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.js.map +1 -1
  100. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.cjs +6 -0
  101. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.d.ts +1 -0
  102. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  103. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.js.map +1 -1
  104. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.cjs +6 -0
  105. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.d.ts +1 -0
  106. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.d.ts.map +1 -1
  107. package/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.js.map +1 -1
  108. package/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.cjs +6 -0
  109. package/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.d.ts +1 -0
  110. package/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.d.ts.map +1 -1
  111. package/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.js.map +1 -1
  112. package/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.cjs +6 -0
  113. package/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.d.ts +1 -0
  114. package/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.d.ts.map +1 -1
  115. package/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.js.map +1 -1
  116. package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.cjs +6 -0
  117. package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.d.ts +1 -0
  118. package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.d.ts.map +1 -1
  119. package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.js.map +1 -1
  120. package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.cjs +6 -0
  121. package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.d.ts +1 -0
  122. package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.d.ts.map +1 -1
  123. package/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.js.map +1 -1
  124. package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.cjs +6 -0
  125. package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.d.ts +1 -0
  126. package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.d.ts.map +1 -1
  127. package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.js.map +1 -1
  128. package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.cjs +6 -0
  129. package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.d.ts +1 -0
  130. package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.d.ts.map +1 -1
  131. package/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.js.map +1 -1
  132. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.cjs +6 -0
  133. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.d.ts +1 -0
  134. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.d.ts.map +1 -1
  135. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.js.map +1 -1
  136. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.cjs +6 -0
  137. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.d.ts +1 -0
  138. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.d.ts.map +1 -1
  139. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.js.map +1 -1
  140. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.cjs +6 -0
  141. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.d.ts +1 -0
  142. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  143. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.js.map +1 -1
  144. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.cjs +6 -0
  145. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.d.ts +1 -0
  146. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.d.ts.map +1 -1
  147. package/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.js.map +1 -1
  148. package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.cjs +6 -0
  149. package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.d.ts +1 -0
  150. package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.d.ts.map +1 -1
  151. package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.js.map +1 -1
  152. package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.cjs +6 -0
  153. package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.d.ts +1 -0
  154. package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.d.ts.map +1 -1
  155. package/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.js.map +1 -1
  156. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.cjs +6 -0
  157. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.d.ts +1 -0
  158. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.d.ts.map +1 -1
  159. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.js.map +1 -1
  160. package/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.cjs +6 -0
  161. package/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.d.ts +1 -0
  162. package/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.d.ts.map +1 -1
  163. package/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.js.map +1 -1
  164. package/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.cjs +6 -0
  165. package/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.d.ts +1 -0
  166. package/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.d.ts.map +1 -1
  167. package/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.js.map +1 -1
  168. package/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.cjs +6 -0
  169. package/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.d.ts +1 -0
  170. package/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.d.ts.map +1 -1
  171. package/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.js.map +1 -1
  172. package/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.cjs +6 -0
  173. package/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.d.ts +1 -0
  174. package/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.d.ts.map +1 -1
  175. package/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.js.map +1 -1
  176. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.d.ts +1 -1
  177. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.d.ts.map +1 -1
  178. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.js.map +1 -1
  179. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.d.ts +1 -1
  180. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.d.ts.map +1 -1
  181. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.js.map +1 -1
  182. package/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.cjs +1 -1
  183. package/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.js.map +1 -1
  184. package/package.json +1 -1
  185. package/server/Account.d.ts.map +1 -1
  186. package/server/Account.js.map +1 -1
  187. package/server/Account.mjs +14 -0
  188. package/server/Action.d.ts.map +1 -1
  189. package/server/Action.js.map +1 -1
  190. package/server/Action.mjs +52 -0
  191. package/server/Alert.d.ts.map +1 -1
  192. package/server/Alert.js.map +1 -1
  193. package/server/Alert.mjs +11 -0
  194. package/server/AlpacaAccount.d.ts.map +1 -1
  195. package/server/AlpacaAccount.js.map +1 -1
  196. package/server/AlpacaAccount.mjs +39 -75
  197. package/server/Asset.d.ts.map +1 -1
  198. package/server/Asset.js.map +1 -1
  199. package/server/Asset.mjs +36 -0
  200. package/server/Authenticator.d.ts.map +1 -1
  201. package/server/Authenticator.js.map +1 -1
  202. package/server/Authenticator.mjs +14 -0
  203. package/server/Customer.d.ts.map +1 -1
  204. package/server/Customer.js.map +1 -1
  205. package/server/Customer.mjs +14 -0
  206. package/server/NewsArticle.d.ts.map +1 -1
  207. package/server/NewsArticle.js.map +1 -1
  208. package/server/NewsArticle.mjs +13 -0
  209. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  210. package/server/NewsArticleAssetSentiment.js.map +1 -1
  211. package/server/NewsArticleAssetSentiment.mjs +11 -0
  212. package/server/Order.d.ts.map +1 -1
  213. package/server/Order.js.map +1 -1
  214. package/server/Order.mjs +22 -0
  215. package/server/Position.d.ts.map +1 -1
  216. package/server/Position.js.map +1 -1
  217. package/server/Position.mjs +12 -109
  218. package/server/Session.d.ts.map +1 -1
  219. package/server/Session.js.map +1 -1
  220. package/server/Session.mjs +13 -0
  221. package/server/StopLoss.d.ts.map +1 -1
  222. package/server/StopLoss.js.map +1 -1
  223. package/server/StopLoss.mjs +26 -0
  224. package/server/TakeProfit.d.ts.map +1 -1
  225. package/server/TakeProfit.js.map +1 -1
  226. package/server/TakeProfit.mjs +26 -0
  227. package/server/Trade.d.ts.map +1 -1
  228. package/server/Trade.js.map +1 -1
  229. package/server/Trade.mjs +22 -0
  230. package/server/User.d.ts.map +1 -1
  231. package/server/User.js.map +1 -1
  232. package/server/User.mjs +15 -12
  233. package/server/client.d.ts.map +1 -1
  234. package/server/client.js.map +1 -1
  235. package/server/client.mjs +2 -1
  236. package/server/generated/selectionSets/Account.d.ts +1 -1
  237. package/server/generated/selectionSets/Account.d.ts.map +1 -1
  238. package/server/generated/selectionSets/Account.js.map +1 -1
  239. package/server/generated/selectionSets/Account.mjs +1 -0
  240. package/server/generated/selectionSets/AlpacaAccount.d.ts +1 -1
  241. package/server/generated/selectionSets/AlpacaAccount.d.ts.map +1 -1
  242. package/server/generated/selectionSets/AlpacaAccount.js.map +1 -1
  243. package/server/generated/selectionSets/AlpacaAccount.mjs +4 -75
  244. package/server/generated/selectionSets/Asset.d.ts +1 -1
  245. package/server/generated/selectionSets/Asset.d.ts.map +1 -1
  246. package/server/generated/selectionSets/Asset.js.map +1 -1
  247. package/server/generated/selectionSets/Asset.mjs +1 -0
  248. package/server/generated/selectionSets/Authenticator.d.ts +1 -1
  249. package/server/generated/selectionSets/Authenticator.d.ts.map +1 -1
  250. package/server/generated/selectionSets/Authenticator.js.map +1 -1
  251. package/server/generated/selectionSets/Authenticator.mjs +1 -0
  252. package/server/generated/selectionSets/Customer.d.ts +1 -1
  253. package/server/generated/selectionSets/Customer.d.ts.map +1 -1
  254. package/server/generated/selectionSets/Customer.js.map +1 -1
  255. package/server/generated/selectionSets/Customer.mjs +1 -0
  256. package/server/generated/selectionSets/Position.d.ts +1 -1
  257. package/server/generated/selectionSets/Position.d.ts.map +1 -1
  258. package/server/generated/selectionSets/Position.js.map +1 -1
  259. package/server/generated/selectionSets/Position.mjs +4 -109
  260. package/server/generated/selectionSets/User.d.ts +1 -1
  261. package/server/generated/selectionSets/User.d.ts.map +1 -1
  262. package/server/generated/selectionSets/User.js.map +1 -1
  263. package/server/generated/selectionSets/User.mjs +4 -12
  264. package/server/generated/typeStrings/Action.d.ts +1 -1
  265. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  266. package/server/generated/typeStrings/Action.mjs +2 -2
  267. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  268. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  269. package/server/generated/typeStrings/AlpacaAccount.mjs +2 -2
  270. package/server/generated/typeStrings/Asset.d.ts +1 -1
  271. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  272. package/server/generated/typeStrings/Asset.mjs +2 -2
  273. package/server/generated/typeStrings/Customer.d.ts +1 -1
  274. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  275. package/server/generated/typeStrings/Customer.mjs +2 -2
  276. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  277. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  278. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +2 -2
  279. package/server/generated/typeStrings/Order.d.ts +1 -1
  280. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  281. package/server/generated/typeStrings/Order.mjs +2 -2
  282. package/server/generated/typeStrings/Position.d.ts +1 -1
  283. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  284. package/server/generated/typeStrings/Position.mjs +2 -2
  285. package/server/generated/typeStrings/Session.d.ts +1 -1
  286. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  287. package/server/generated/typeStrings/Session.mjs +2 -2
  288. package/server/generated/typeStrings/StopLoss.d.ts +1 -1
  289. package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
  290. package/server/generated/typeStrings/StopLoss.mjs +2 -2
  291. package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
  292. package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  293. package/server/generated/typeStrings/TakeProfit.mjs +2 -2
  294. package/server/generated/typeStrings/Trade.d.ts +1 -1
  295. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  296. package/server/generated/typeStrings/Trade.mjs +4 -4
  297. package/server/generated/typeStrings/User.d.ts +1 -1
  298. package/server/generated/typeStrings/User.d.ts.map +1 -1
  299. package/server/generated/typeStrings/User.mjs +2 -2
  300. package/server/generated/typeStrings/index.d.ts +12 -12
  301. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  302. package/server/generated/typegraphql-prisma/enhance.mjs +25 -25
  303. package/server/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.d.ts +2 -1
  304. package/server/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.d.ts.map +1 -1
  305. package/server/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.js.map +1 -1
  306. package/server/generated/typegraphql-prisma/enums/PositionScalarFieldEnum.mjs +1 -0
  307. package/server/generated/typegraphql-prisma/models/Asset.d.ts +2 -2
  308. package/server/generated/typegraphql-prisma/models/Asset.js.map +1 -1
  309. package/server/generated/typegraphql-prisma/models/Asset.mjs +4 -4
  310. package/server/generated/typegraphql-prisma/models/Position.d.ts +5 -1
  311. package/server/generated/typegraphql-prisma/models/Position.d.ts.map +1 -1
  312. package/server/generated/typegraphql-prisma/models/Position.js.map +1 -1
  313. package/server/generated/typegraphql-prisma/models/Position.mjs +12 -1
  314. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.d.ts +1 -1
  315. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.d.ts.map +1 -1
  316. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionArgs.js.map +1 -1
  317. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.d.ts +1 -1
  318. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.d.ts.map +1 -1
  319. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindFirstPositionOrThrowArgs.js.map +1 -1
  320. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.d.ts +1 -1
  321. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.d.ts.map +1 -1
  322. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/FindManyPositionArgs.js.map +1 -1
  323. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.d.ts +1 -1
  324. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.d.ts.map +1 -1
  325. package/server/generated/typegraphql-prisma/resolvers/crud/Position/args/GroupByPositionArgs.js.map +1 -1
  326. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.d.ts +1 -0
  327. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.d.ts.map +1 -1
  328. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.js.map +1 -1
  329. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCountOrderByAggregateInput.mjs +7 -0
  330. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.d.ts +1 -0
  331. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.d.ts.map +1 -1
  332. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.js.map +1 -1
  333. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateInput.mjs +7 -0
  334. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.d.ts +1 -0
  335. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.d.ts.map +1 -1
  336. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.js.map +1 -1
  337. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAlpacaAccountInput.mjs +7 -0
  338. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.d.ts +1 -0
  339. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.d.ts.map +1 -1
  340. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.js.map +1 -1
  341. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyAssetInput.mjs +7 -0
  342. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.d.ts +1 -0
  343. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.d.ts.map +1 -1
  344. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.js.map +1 -1
  345. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateManyInput.mjs +7 -0
  346. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.d.ts +1 -0
  347. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  348. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.js.map +1 -1
  349. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAlpacaAccountInput.mjs +7 -0
  350. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.d.ts +1 -0
  351. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.d.ts.map +1 -1
  352. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.js.map +1 -1
  353. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionCreateWithoutAssetInput.mjs +7 -0
  354. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.d.ts +1 -0
  355. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.d.ts.map +1 -1
  356. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.js.map +1 -1
  357. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMaxOrderByAggregateInput.mjs +7 -0
  358. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.d.ts +1 -0
  359. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.d.ts.map +1 -1
  360. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.js.map +1 -1
  361. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionMinOrderByAggregateInput.mjs +7 -0
  362. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.d.ts +1 -0
  363. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.d.ts.map +1 -1
  364. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.js.map +1 -1
  365. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithAggregationInput.mjs +7 -0
  366. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.d.ts +1 -0
  367. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.d.ts.map +1 -1
  368. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.js.map +1 -1
  369. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionOrderByWithRelationInput.mjs +7 -0
  370. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.d.ts +1 -0
  371. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.d.ts.map +1 -1
  372. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.js.map +1 -1
  373. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereInput.mjs +7 -0
  374. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.d.ts +1 -0
  375. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.d.ts.map +1 -1
  376. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.js.map +1 -1
  377. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionScalarWhereWithAggregatesInput.mjs +7 -0
  378. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.d.ts +1 -0
  379. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.d.ts.map +1 -1
  380. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.js.map +1 -1
  381. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateInput.mjs +7 -0
  382. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.d.ts +1 -0
  383. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.d.ts.map +1 -1
  384. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.js.map +1 -1
  385. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateManyMutationInput.mjs +7 -0
  386. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.d.ts +1 -0
  387. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  388. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.js.map +1 -1
  389. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAlpacaAccountInput.mjs +7 -0
  390. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.d.ts +1 -0
  391. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.d.ts.map +1 -1
  392. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.js.map +1 -1
  393. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionUpdateWithoutAssetInput.mjs +7 -0
  394. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.d.ts +1 -0
  395. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.d.ts.map +1 -1
  396. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.js.map +1 -1
  397. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereInput.mjs +7 -0
  398. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.d.ts +1 -0
  399. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.d.ts.map +1 -1
  400. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.js.map +1 -1
  401. package/server/generated/typegraphql-prisma/resolvers/inputs/PositionWhereUniqueInput.mjs +7 -0
  402. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.d.ts +1 -0
  403. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.d.ts.map +1 -1
  404. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.js.map +1 -1
  405. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyPositionAndReturnOutputType.mjs +7 -0
  406. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.d.ts +1 -0
  407. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.d.ts.map +1 -1
  408. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.js.map +1 -1
  409. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionCountAggregate.mjs +7 -0
  410. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.d.ts +1 -0
  411. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.d.ts.map +1 -1
  412. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.js.map +1 -1
  413. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionGroupBy.mjs +7 -0
  414. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.d.ts +1 -0
  415. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.d.ts.map +1 -1
  416. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.js.map +1 -1
  417. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMaxAggregate.mjs +7 -0
  418. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.d.ts +1 -0
  419. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.d.ts.map +1 -1
  420. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.js.map +1 -1
  421. package/server/generated/typegraphql-prisma/resolvers/outputs/PositionMinAggregate.mjs +7 -0
  422. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.d.ts +1 -1
  423. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.d.ts.map +1 -1
  424. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountPositionsArgs.js.map +1 -1
  425. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.d.ts +1 -1
  426. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.d.ts.map +1 -1
  427. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetPositionsArgs.js.map +1 -1
  428. package/server/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.js.map +1 -1
  429. package/server/generated/typegraphql-prisma/resolvers/relations/Position/PositionRelationsResolver.mjs +1 -1
@@ -1,21 +1,21 @@
1
1
  export declare const typeStrings: {
2
- readonly session: "\nYour response should adhere to the following type definition for the \"Session\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Session = {\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n 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 };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n };\n};\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
3
- readonly user: "\nYour response should adhere to the following type definition for the \"User\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n 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 };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n};\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
4
- readonly alpacaAccount: "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n 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 };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n};\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n";
5
- readonly position: "\nYour response should adhere to the following type definition for the \"Position\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Position = {\n // Relation to the Asset model.\n asset: {\n // 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 };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n};\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";
2
+ readonly session: "\nYour response should adhere to the following type definition for the \"Session\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Session = {\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n };\n};\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
3
+ readonly user: "\nYour response should adhere to the following type definition for the \"User\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n};\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
4
+ readonly alpacaAccount: "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n};\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n";
5
+ readonly position: "\nYour response should adhere to the following type definition for the \"Position\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Position = {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n};\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";
6
6
  readonly authenticator: "\nYour response should adhere to the following type definition for the \"Authenticator\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Authenticator = {\n\n};\n";
7
7
  readonly account: "\nYour response should adhere to the following type definition for the \"Account\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // State of the session associated with the account.\n session_state?: string;\n};\n";
8
8
  readonly verificationToken: "\nYour response should adhere to the following type definition for the \"VerificationToken\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type VerificationToken = {\n\n};\n";
9
- readonly customer: "\nYour response should adhere to the following type definition for the \"Customer\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n 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 };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n }[];\n};\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
10
- readonly asset: "\nYour response should adhere to the following type definition for the \"Asset\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Asset = {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n};\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n";
11
- readonly trade: "\nYour response should adhere to the following type definition for the \"Trade\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Trade = {\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // 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 // 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 };\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. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\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 // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n 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 };\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 AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum 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. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\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 // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n 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 };\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 AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum 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. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\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 // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n 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 };\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 AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum 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. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\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. It must be ≤ basePrice - 0.01.\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 // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n 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 };\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 AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum 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. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\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 // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n 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 };\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 AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
9
+ readonly customer: "\nYour response should adhere to the following type definition for the \"Customer\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n }[];\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n }[];\n};\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum OpenaiModel {\n GPT_4O = \"GPT_4O\",\n GPT_4O_MINI = \"GPT_4O_MINI\",\n O1_PREVIEW = \"O1_PREVIEW\",\n O1_MINI = \"O1_MINI\"\n}\n\n";
10
+ readonly asset: "\nYour response should adhere to the following type definition for the \"Asset\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Asset = {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n};\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 // 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 // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // 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. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\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 // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // 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 AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum 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. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\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 // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // 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 AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum 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. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\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 // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // 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 AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum 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. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\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. It must be ≤ basePrice - 0.01.\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 // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // 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 AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum 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. It must be ≤ basePrice - 0.01.\n stopPrice?: number;\n // Stop loss object required for bracket orders.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. For SELL orders: stopPrice ≤ market price (must be ≤ base_price - 0.01). For BUY orders: stopPrice ≥ market price (must be ≥ base_price + 0.01).\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 // Total quantity of the order that was filled.\n filledQty?: number;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Cancel requested at timestamp when the request to cancel an order was made.\n cancelRequestedAt?: Date;\n // CanceledAt timestamp when the order was canceled.\n canceledAt?: Date;\n // The asset this order is for.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // 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 AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum 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
- 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 // 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 };\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};\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";
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 // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n};\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";
19
19
  readonly economicEvent: "\nYour response should adhere to the following type definition for the \"EconomicEvent\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type EconomicEvent = {\n // Title or name of the economic event.\n title: string;\n // Detailed description of the economic event.\n description?: string;\n // Date and time when the economic event is scheduled to occur.\n date: Date;\n // Importance level of the event, defined by EventImportance enum.\n importance: EventImportance;\n};\nexport enum EventImportance {\n LOW = \"LOW\",\n MEDIUM = \"MEDIUM\",\n HIGH = \"HIGH\"\n}\n\n";
20
20
  };
21
21
  export default typeStrings;
@@ -743,7 +743,7 @@ const modelsInfo = {
743
743
  Session: ["id", "sessionToken", "userId", "expires", "createdAt", "updatedAt"],
744
744
  User: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "customerId", "plan", "openaiAPIKey", "openaiModel"],
745
745
  AlpacaAccount: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
746
- Position: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
746
+ Position: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
747
747
  Authenticator: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt"],
748
748
  Account: ["id", "userId", "type", "provider", "providerAccountId", "refresh_token", "access_token", "expires_at", "token_type", "scope", "id_token", "session_state", "createdAt", "updatedAt"],
749
749
  VerificationToken: ["id", "identifier", "token", "expires"],
@@ -776,7 +776,7 @@ const outputsInfo = {
776
776
  AggregateAlpacaAccount: ["_count", "_avg", "_sum", "_min", "_max"],
777
777
  AlpacaAccountGroupBy: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
778
778
  AggregatePosition: ["_count", "_avg", "_sum", "_min", "_max"],
779
- PositionGroupBy: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "_count", "_avg", "_sum", "_min", "_max"],
779
+ PositionGroupBy: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "_count", "_avg", "_sum", "_min", "_max"],
780
780
  AggregateAuthenticator: ["_count", "_avg", "_sum", "_min", "_max"],
781
781
  AuthenticatorGroupBy: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
782
782
  AggregateAccount: ["_count", "_avg", "_sum", "_min", "_max"],
@@ -821,11 +821,11 @@ const outputsInfo = {
821
821
  AlpacaAccountSumAggregate: ["minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold"],
822
822
  AlpacaAccountMinAggregate: ["id", "type", "APIKey", "APISecret", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
823
823
  AlpacaAccountMaxAggregate: ["id", "type", "APIKey", "APISecret", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
824
- PositionCountAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "_all"],
824
+ PositionCountAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "_all"],
825
825
  PositionAvgAggregate: ["averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday"],
826
826
  PositionSumAggregate: ["averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday"],
827
- PositionMinAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
828
- PositionMaxAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
827
+ PositionMinAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
828
+ PositionMaxAggregate: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
829
829
  AuthenticatorCountAggregate: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "_all"],
830
830
  AuthenticatorAvgAggregate: ["counter"],
831
831
  AuthenticatorSumAggregate: ["counter"],
@@ -893,7 +893,7 @@ const outputsInfo = {
893
893
  CreateManySessionAndReturnOutputType: ["id", "sessionToken", "userId", "expires", "createdAt", "updatedAt", "user"],
894
894
  CreateManyUserAndReturnOutputType: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "customerId", "plan", "openaiAPIKey", "openaiModel", "customer"],
895
895
  CreateManyAlpacaAccountAndReturnOutputType: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt", "user"],
896
- CreateManyPositionAndReturnOutputType: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "asset", "alpacaAccount"],
896
+ CreateManyPositionAndReturnOutputType: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "asset", "alpacaAccount"],
897
897
  CreateManyAuthenticatorAndReturnOutputType: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "user"],
898
898
  CreateManyAccountAndReturnOutputType: ["id", "userId", "type", "provider", "providerAccountId", "refresh_token", "access_token", "expires_at", "token_type", "scope", "id_token", "session_state", "createdAt", "updatedAt", "user"],
899
899
  CreateManyVerificationTokenAndReturnOutputType: ["id", "identifier", "token", "expires"],
@@ -934,11 +934,11 @@ const inputsInfo = {
934
934
  AlpacaAccountWhereUniqueInput: ["id", "AND", "OR", "NOT", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt", "user", "trades", "orders", "positions", "alerts"],
935
935
  AlpacaAccountOrderByWithAggregationInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt", "_count", "_avg", "_max", "_min", "_sum"],
936
936
  AlpacaAccountScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
937
- PositionWhereInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "asset", "alpacaAccount"],
938
- PositionOrderByWithRelationInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "asset", "alpacaAccount"],
939
- PositionWhereUniqueInput: ["id", "AND", "OR", "NOT", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "asset", "alpacaAccount"],
940
- PositionOrderByWithAggregationInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "_count", "_avg", "_max", "_min", "_sum"],
941
- PositionScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
937
+ PositionWhereInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "asset", "alpacaAccount"],
938
+ PositionOrderByWithRelationInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "asset", "alpacaAccount"],
939
+ PositionWhereUniqueInput: ["id", "AND", "OR", "NOT", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "asset", "alpacaAccount"],
940
+ PositionOrderByWithAggregationInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed", "_count", "_avg", "_max", "_min", "_sum"],
941
+ PositionScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
942
942
  AuthenticatorWhereInput: ["AND", "OR", "NOT", "id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "user"],
943
943
  AuthenticatorOrderByWithRelationInput: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "user"],
944
944
  AuthenticatorWhereUniqueInput: ["id", "credentialID", "AND", "OR", "NOT", "userId", "publicKey", "counter", "createdAt", "updatedAt", "user"],
@@ -1021,10 +1021,10 @@ const inputsInfo = {
1021
1021
  AlpacaAccountUpdateInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "createdAt", "updatedAt", "user", "trades", "orders", "positions", "alerts"],
1022
1022
  AlpacaAccountCreateManyInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "userId", "createdAt", "updatedAt"],
1023
1023
  AlpacaAccountUpdateManyMutationInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "createdAt", "updatedAt"],
1024
- PositionCreateInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "asset", "alpacaAccount"],
1025
- PositionUpdateInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "asset", "alpacaAccount"],
1026
- PositionCreateManyInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
1027
- PositionUpdateManyMutationInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable"],
1024
+ PositionCreateInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "asset", "alpacaAccount"],
1025
+ PositionUpdateInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "asset", "alpacaAccount"],
1026
+ PositionCreateManyInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
1027
+ PositionUpdateManyMutationInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed"],
1028
1028
  AuthenticatorCreateInput: ["id", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "user"],
1029
1029
  AuthenticatorUpdateInput: ["id", "credentialID", "publicKey", "counter", "createdAt", "updatedAt", "user"],
1030
1030
  AuthenticatorCreateManyInput: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt"],
@@ -1141,10 +1141,10 @@ const inputsInfo = {
1141
1141
  FloatWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_avg", "_sum", "_min", "_max"],
1142
1142
  AssetRelationFilter: ["is", "isNot"],
1143
1143
  AlpacaAccountNullableRelationFilter: ["is", "isNot"],
1144
- PositionCountOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
1144
+ PositionCountOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
1145
1145
  PositionAvgOrderByAggregateInput: ["averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday"],
1146
- PositionMaxOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
1147
- PositionMinOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
1146
+ PositionMaxOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
1147
+ PositionMinOrderByAggregateInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
1148
1148
  PositionSumOrderByAggregateInput: ["averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday"],
1149
1149
  IntFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
1150
1150
  AuthenticatorCountOrderByAggregateInput: ["id", "userId", "credentialID", "publicKey", "counter", "createdAt", "updatedAt"],
@@ -1470,7 +1470,7 @@ const inputsInfo = {
1470
1470
  OrderCreateWithoutAlpacaAccountInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "action", "asset"],
1471
1471
  OrderCreateOrConnectWithoutAlpacaAccountInput: ["where", "create"],
1472
1472
  OrderCreateManyAlpacaAccountInputEnvelope: ["data", "skipDuplicates"],
1473
- PositionCreateWithoutAlpacaAccountInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "asset"],
1473
+ PositionCreateWithoutAlpacaAccountInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "asset"],
1474
1474
  PositionCreateOrConnectWithoutAlpacaAccountInput: ["where", "create"],
1475
1475
  PositionCreateManyAlpacaAccountInputEnvelope: ["data", "skipDuplicates"],
1476
1476
  AlertCreateWithoutAlpacaAccountInput: ["id", "message", "type", "isRead", "createdAt", "updatedAt"],
@@ -1490,7 +1490,7 @@ const inputsInfo = {
1490
1490
  PositionUpsertWithWhereUniqueWithoutAlpacaAccountInput: ["where", "update", "create"],
1491
1491
  PositionUpdateWithWhereUniqueWithoutAlpacaAccountInput: ["where", "data"],
1492
1492
  PositionUpdateManyWithWhereWithoutAlpacaAccountInput: ["where", "data"],
1493
- PositionScalarWhereInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
1493
+ PositionScalarWhereInput: ["AND", "OR", "NOT", "id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
1494
1494
  AlertUpsertWithWhereUniqueWithoutAlpacaAccountInput: ["where", "update", "create"],
1495
1495
  AlertUpdateWithWhereUniqueWithoutAlpacaAccountInput: ["where", "data"],
1496
1496
  AlertUpdateManyWithWhereWithoutAlpacaAccountInput: ["where", "data"],
@@ -1528,7 +1528,7 @@ const inputsInfo = {
1528
1528
  OrderCreateWithoutAssetInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "action"],
1529
1529
  OrderCreateOrConnectWithoutAssetInput: ["where", "create"],
1530
1530
  OrderCreateManyAssetInputEnvelope: ["data", "skipDuplicates"],
1531
- PositionCreateWithoutAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccount"],
1531
+ PositionCreateWithoutAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "alpacaAccount"],
1532
1532
  PositionCreateOrConnectWithoutAssetInput: ["where", "create"],
1533
1533
  PositionCreateManyAssetInputEnvelope: ["data", "skipDuplicates"],
1534
1534
  NewsArticleAssetSentimentCreateWithoutAssetInput: ["id", "url", "relevancyScore", "sentimentScore", "sentimentLabel", "news"],
@@ -1640,21 +1640,21 @@ const inputsInfo = {
1640
1640
  AlpacaAccountUpdateWithoutUserInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "createdAt", "updatedAt", "trades", "orders", "positions", "alerts"],
1641
1641
  TradeCreateManyAlpacaAccountInput: ["id", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1642
1642
  OrderCreateManyAlpacaAccountInput: ["id", "clientOrderId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId"],
1643
- PositionCreateManyAlpacaAccountInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable"],
1643
+ PositionCreateManyAlpacaAccountInput: ["id", "assetId", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed"],
1644
1644
  AlertCreateManyAlpacaAccountInput: ["id", "message", "type", "isRead", "createdAt", "updatedAt"],
1645
1645
  TradeUpdateWithoutAlpacaAccountInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "asset", "actions"],
1646
1646
  OrderUpdateWithoutAlpacaAccountInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "action", "asset"],
1647
- PositionUpdateWithoutAlpacaAccountInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "asset"],
1647
+ PositionUpdateWithoutAlpacaAccountInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "asset"],
1648
1648
  AlertUpdateWithoutAlpacaAccountInput: ["id", "message", "type", "isRead", "createdAt", "updatedAt"],
1649
1649
  UserCreateManyCustomerInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel"],
1650
1650
  UserUpdateWithoutCustomerInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel", "accounts", "sessions", "authenticators", "alpacaAccounts"],
1651
1651
  TradeCreateManyAssetInput: ["id", "alpacaAccountId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1652
1652
  OrderCreateManyAssetInput: ["id", "clientOrderId", "alpacaAccountId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId"],
1653
- PositionCreateManyAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId"],
1653
+ PositionCreateManyAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccountId", "closed"],
1654
1654
  NewsArticleAssetSentimentCreateManyAssetInput: ["id", "newsArticleId", "url", "relevancyScore", "sentimentScore", "sentimentLabel"],
1655
1655
  TradeUpdateWithoutAssetInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "actions"],
1656
1656
  OrderUpdateWithoutAssetInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "action"],
1657
- PositionUpdateWithoutAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "alpacaAccount"],
1657
+ PositionUpdateWithoutAssetInput: ["id", "averageEntryPrice", "qty", "qtyAvailable", "marketValue", "costBasis", "unrealizedPL", "unrealizedPLPC", "unrealisedIntradayPL", "unrealisedIntradayPLPC", "currentPrice", "lastTradePrice", "changeToday", "assetMarginable", "closed", "alpacaAccount"],
1658
1658
  NewsArticleAssetSentimentUpdateWithoutAssetInput: ["id", "url", "relevancyScore", "sentimentScore", "sentimentLabel", "news"],
1659
1659
  ActionCreateManyTradeInput: ["id", "sequence", "type", "note", "status", "fee"],
1660
1660
  ActionUpdateWithoutTradeInput: ["id", "sequence", "type", "note", "status", "fee", "order"],