adaptic-backend 1.0.69 → 1.0.70

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 (626) hide show
  1. package/Account.cjs +90 -36
  2. package/Action.cjs +215 -71
  3. package/Alert.cjs +249 -81
  4. package/AlpacaAccount.cjs +215 -71
  5. package/Asset.cjs +215 -71
  6. package/Authenticator.cjs +90 -36
  7. package/Customer.cjs +90 -36
  8. package/NewsArticle.cjs +90 -36
  9. package/NewsArticleAssetSentiment.cjs +249 -81
  10. package/Order.cjs +205 -67
  11. package/Position.cjs +408 -126
  12. package/README.md +1 -0
  13. package/Session.cjs +90 -36
  14. package/Trade.cjs +567 -171
  15. package/User.cjs +249 -81
  16. package/generated/typeStrings/Account.cjs +51 -19
  17. package/generated/typeStrings/Account.d.ts +1 -1
  18. package/generated/typeStrings/Account.d.ts.map +1 -1
  19. package/generated/typeStrings/Account.js.map +1 -1
  20. package/generated/typeStrings/Action.cjs +51 -19
  21. package/generated/typeStrings/Action.d.ts +1 -1
  22. package/generated/typeStrings/Action.d.ts.map +1 -1
  23. package/generated/typeStrings/Action.js.map +1 -1
  24. package/generated/typeStrings/AlpacaAccount.cjs +51 -19
  25. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  26. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  27. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  28. package/generated/typeStrings/Asset.cjs +51 -19
  29. package/generated/typeStrings/Asset.d.ts +1 -1
  30. package/generated/typeStrings/Asset.d.ts.map +1 -1
  31. package/generated/typeStrings/Asset.js.map +1 -1
  32. package/generated/typeStrings/Authenticator.cjs +51 -19
  33. package/generated/typeStrings/Authenticator.d.ts +1 -1
  34. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  35. package/generated/typeStrings/Authenticator.js.map +1 -1
  36. package/generated/typeStrings/Customer.cjs +51 -19
  37. package/generated/typeStrings/Customer.d.ts +1 -1
  38. package/generated/typeStrings/Customer.d.ts.map +1 -1
  39. package/generated/typeStrings/Customer.js.map +1 -1
  40. package/generated/typeStrings/NewsArticle.cjs +51 -19
  41. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  42. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  43. package/generated/typeStrings/NewsArticle.js.map +1 -1
  44. package/generated/typeStrings/Order.cjs +52 -20
  45. package/generated/typeStrings/Order.d.ts +1 -1
  46. package/generated/typeStrings/Order.d.ts.map +1 -1
  47. package/generated/typeStrings/Order.js.map +1 -1
  48. package/generated/typeStrings/Session.cjs +51 -19
  49. package/generated/typeStrings/Session.d.ts +1 -1
  50. package/generated/typeStrings/Session.d.ts.map +1 -1
  51. package/generated/typeStrings/Session.js.map +1 -1
  52. package/generated/typeStrings/Trade.cjs +51 -19
  53. package/generated/typeStrings/Trade.d.ts +1 -1
  54. package/generated/typeStrings/Trade.d.ts.map +1 -1
  55. package/generated/typeStrings/Trade.js.map +1 -1
  56. package/generated/typeStrings/enums.cjs +16 -3
  57. package/generated/typeStrings/enums.d.ts +15 -4
  58. package/generated/typeStrings/enums.d.ts.map +1 -1
  59. package/generated/typeStrings/enums.js.map +1 -1
  60. package/generated/typeStrings/index.d.ts +10 -10
  61. package/generated/typegraphql-prisma/enhance.cjs +46 -36
  62. package/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
  63. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  64. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.cjs +15 -6
  65. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +15 -6
  66. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
  67. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
  68. package/generated/typegraphql-prisma/enums/OrderStatus.cjs +4 -2
  69. package/generated/typegraphql-prisma/enums/OrderStatus.d.ts +5 -3
  70. package/generated/typegraphql-prisma/enums/OrderStatus.d.ts.map +1 -1
  71. package/generated/typegraphql-prisma/enums/OrderStatus.js.map +1 -1
  72. package/generated/typegraphql-prisma/enums/OrderType.cjs +1 -0
  73. package/generated/typegraphql-prisma/enums/OrderType.d.ts +2 -1
  74. package/generated/typegraphql-prisma/enums/OrderType.d.ts.map +1 -1
  75. package/generated/typegraphql-prisma/enums/OrderType.js.map +1 -1
  76. package/generated/typegraphql-prisma/enums/TimeInForce.cjs +42 -0
  77. package/generated/typegraphql-prisma/enums/TimeInForce.d.ts +10 -0
  78. package/generated/typegraphql-prisma/enums/TimeInForce.d.ts.map +1 -0
  79. package/generated/typegraphql-prisma/enums/TimeInForce.js.map +1 -0
  80. package/generated/typegraphql-prisma/enums/index.cjs +3 -1
  81. package/generated/typegraphql-prisma/enums/index.d.ts +1 -0
  82. package/generated/typegraphql-prisma/enums/index.d.ts.map +1 -1
  83. package/generated/typegraphql-prisma/enums/index.js.map +1 -1
  84. package/generated/typegraphql-prisma/models/Order.cjs +84 -19
  85. package/generated/typegraphql-prisma/models/Order.d.ts +52 -13
  86. package/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
  87. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  88. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
  89. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
  90. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
  91. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
  92. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
  93. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
  94. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
  95. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
  96. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
  97. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
  98. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
  99. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
  100. package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.cjs +56 -0
  101. package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.d.ts +6 -0
  102. package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.d.ts.map +1 -0
  103. package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.js.map +1 -0
  104. package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.cjs +76 -0
  105. package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.d.ts +11 -0
  106. package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.d.ts.map +1 -0
  107. package/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.js.map +1 -0
  108. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.d.ts +1 -1
  109. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.d.ts.map +1 -1
  110. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.js.map +1 -1
  111. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.d.ts +3 -3
  112. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.d.ts.map +1 -1
  113. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.js.map +1 -1
  114. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.d.ts +3 -3
  115. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.d.ts.map +1 -1
  116. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.js.map +1 -1
  117. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.d.ts +1 -1
  118. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.d.ts.map +1 -1
  119. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.js.map +1 -1
  120. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.d.ts +3 -3
  121. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.d.ts.map +1 -1
  122. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.js.map +1 -1
  123. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.d.ts +3 -3
  124. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.d.ts.map +1 -1
  125. package/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.js.map +1 -1
  126. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.cjs +50 -0
  127. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.d.ts +4 -0
  128. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.d.ts.map +1 -0
  129. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.js.map +1 -0
  130. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.cjs +69 -0
  131. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.d.ts +8 -0
  132. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.d.ts.map +1 -0
  133. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.js.map +1 -0
  134. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.cjs +89 -0
  135. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.d.ts +13 -0
  136. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.d.ts.map +1 -0
  137. package/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.js.map +1 -0
  138. package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.cjs +55 -0
  139. package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.d.ts +5 -0
  140. package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.d.ts.map +1 -0
  141. package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.js.map +1 -0
  142. package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.cjs +75 -0
  143. package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.d.ts +10 -0
  144. package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.d.ts.map +1 -0
  145. package/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.js.map +1 -0
  146. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.d.ts +3 -3
  147. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.d.ts.map +1 -1
  148. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.js.map +1 -1
  149. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.d.ts +3 -3
  150. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.d.ts.map +1 -1
  151. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.js.map +1 -1
  152. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.d.ts +3 -3
  153. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.d.ts.map +1 -1
  154. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.js.map +1 -1
  155. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.d.ts +3 -3
  156. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.d.ts.map +1 -1
  157. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.js.map +1 -1
  158. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.cjs +68 -0
  159. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.d.ts +7 -0
  160. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.d.ts.map +1 -0
  161. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.js.map +1 -0
  162. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.cjs +88 -0
  163. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.d.ts +12 -0
  164. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.d.ts.map +1 -0
  165. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.js.map +1 -0
  166. package/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.cjs +49 -0
  167. package/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.d.ts +4 -0
  168. package/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.d.ts.map +1 -0
  169. package/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.js.map +1 -0
  170. package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.cjs +26 -2
  171. package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts +6 -2
  172. package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts.map +1 -1
  173. package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.js.map +1 -1
  174. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.cjs +60 -6
  175. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +15 -6
  176. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
  177. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
  178. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.cjs +65 -10
  179. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +15 -6
  180. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
  181. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
  182. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.cjs +66 -11
  183. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +16 -7
  184. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
  185. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
  186. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.cjs +66 -11
  187. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +16 -7
  188. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
  189. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
  190. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.cjs +66 -11
  191. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +16 -7
  192. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
  193. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
  194. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.cjs +65 -10
  195. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +15 -6
  196. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
  197. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
  198. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.cjs +65 -10
  199. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +15 -6
  200. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  201. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
  202. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.cjs +65 -10
  203. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +15 -6
  204. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
  205. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
  206. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.cjs +60 -6
  207. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +15 -6
  208. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
  209. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
  210. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.cjs +60 -6
  211. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +15 -6
  212. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
  213. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
  214. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.cjs +61 -7
  215. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +15 -6
  216. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
  217. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
  218. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.cjs +61 -7
  219. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +15 -6
  220. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
  221. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
  222. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.cjs +68 -11
  223. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +19 -7
  224. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
  225. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
  226. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.cjs +68 -11
  227. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +19 -7
  228. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
  229. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
  230. package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.cjs +26 -2
  231. package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts +6 -2
  232. package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts.map +1 -1
  233. package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.js.map +1 -1
  234. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.cjs +65 -9
  235. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +17 -6
  236. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
  237. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
  238. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.cjs +65 -9
  239. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +17 -6
  240. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
  241. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
  242. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.cjs +65 -9
  243. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +17 -6
  244. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
  245. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
  246. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.cjs +65 -9
  247. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +17 -6
  248. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  249. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
  250. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.cjs +65 -9
  251. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +17 -6
  252. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
  253. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
  254. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.cjs +68 -11
  255. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +19 -7
  256. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
  257. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
  258. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.cjs +65 -9
  259. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +17 -6
  260. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  261. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  262. package/generated/typegraphql-prisma/resolvers/inputs/index.cjs +30 -9
  263. package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +10 -0
  264. package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
  265. package/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
  266. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.cjs +66 -11
  267. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +16 -7
  268. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
  269. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
  270. package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.cjs +26 -2
  271. package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts +6 -2
  272. package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts.map +1 -1
  273. package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.js.map +1 -1
  274. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.cjs +60 -6
  275. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +15 -6
  276. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
  277. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
  278. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.cjs +66 -11
  279. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +16 -7
  280. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
  281. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
  282. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.cjs +62 -7
  283. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +16 -7
  284. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
  285. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
  286. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.cjs +62 -7
  287. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +16 -7
  288. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
  289. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
  290. package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.cjs +26 -2
  291. package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts +6 -2
  292. package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts.map +1 -1
  293. package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.js.map +1 -1
  294. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
  295. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
  296. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
  297. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
  298. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
  299. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
  300. package/package.json +1 -1
  301. package/server/Account.d.ts.map +1 -1
  302. package/server/Account.js.map +1 -1
  303. package/server/Account.mjs +90 -36
  304. package/server/Action.d.ts.map +1 -1
  305. package/server/Action.js.map +1 -1
  306. package/server/Action.mjs +215 -71
  307. package/server/Alert.d.ts.map +1 -1
  308. package/server/Alert.js.map +1 -1
  309. package/server/Alert.mjs +249 -81
  310. package/server/AlpacaAccount.d.ts.map +1 -1
  311. package/server/AlpacaAccount.js.map +1 -1
  312. package/server/AlpacaAccount.mjs +215 -71
  313. package/server/Asset.d.ts.map +1 -1
  314. package/server/Asset.js.map +1 -1
  315. package/server/Asset.mjs +215 -71
  316. package/server/Authenticator.d.ts.map +1 -1
  317. package/server/Authenticator.js.map +1 -1
  318. package/server/Authenticator.mjs +90 -36
  319. package/server/Customer.d.ts.map +1 -1
  320. package/server/Customer.js.map +1 -1
  321. package/server/Customer.mjs +90 -36
  322. package/server/NewsArticle.d.ts.map +1 -1
  323. package/server/NewsArticle.js.map +1 -1
  324. package/server/NewsArticle.mjs +90 -36
  325. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  326. package/server/NewsArticleAssetSentiment.js.map +1 -1
  327. package/server/NewsArticleAssetSentiment.mjs +249 -81
  328. package/server/Order.d.ts.map +1 -1
  329. package/server/Order.js.map +1 -1
  330. package/server/Order.mjs +205 -67
  331. package/server/Position.d.ts.map +1 -1
  332. package/server/Position.js.map +1 -1
  333. package/server/Position.mjs +408 -126
  334. package/server/Session.d.ts.map +1 -1
  335. package/server/Session.js.map +1 -1
  336. package/server/Session.mjs +90 -36
  337. package/server/Trade.d.ts.map +1 -1
  338. package/server/Trade.js.map +1 -1
  339. package/server/Trade.mjs +567 -171
  340. package/server/User.d.ts.map +1 -1
  341. package/server/User.js.map +1 -1
  342. package/server/User.mjs +249 -81
  343. package/server/generated/typeStrings/Account.d.ts +1 -1
  344. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  345. package/server/generated/typeStrings/Account.js.map +1 -1
  346. package/server/generated/typeStrings/Account.mjs +51 -19
  347. package/server/generated/typeStrings/Action.d.ts +1 -1
  348. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  349. package/server/generated/typeStrings/Action.js.map +1 -1
  350. package/server/generated/typeStrings/Action.mjs +51 -19
  351. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  352. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  353. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  354. package/server/generated/typeStrings/AlpacaAccount.mjs +51 -19
  355. package/server/generated/typeStrings/Asset.d.ts +1 -1
  356. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  357. package/server/generated/typeStrings/Asset.js.map +1 -1
  358. package/server/generated/typeStrings/Asset.mjs +51 -19
  359. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  360. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  361. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  362. package/server/generated/typeStrings/Authenticator.mjs +51 -19
  363. package/server/generated/typeStrings/Customer.d.ts +1 -1
  364. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  365. package/server/generated/typeStrings/Customer.js.map +1 -1
  366. package/server/generated/typeStrings/Customer.mjs +51 -19
  367. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  368. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  369. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  370. package/server/generated/typeStrings/NewsArticle.mjs +51 -19
  371. package/server/generated/typeStrings/Order.d.ts +1 -1
  372. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  373. package/server/generated/typeStrings/Order.js.map +1 -1
  374. package/server/generated/typeStrings/Order.mjs +52 -20
  375. package/server/generated/typeStrings/Session.d.ts +1 -1
  376. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  377. package/server/generated/typeStrings/Session.js.map +1 -1
  378. package/server/generated/typeStrings/Session.mjs +51 -19
  379. package/server/generated/typeStrings/Trade.d.ts +1 -1
  380. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  381. package/server/generated/typeStrings/Trade.js.map +1 -1
  382. package/server/generated/typeStrings/Trade.mjs +51 -19
  383. package/server/generated/typeStrings/enums.d.ts +15 -4
  384. package/server/generated/typeStrings/enums.d.ts.map +1 -1
  385. package/server/generated/typeStrings/enums.js.map +1 -1
  386. package/server/generated/typeStrings/enums.mjs +15 -2
  387. package/server/generated/typeStrings/index.d.ts +10 -10
  388. package/server/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
  389. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  390. package/server/generated/typegraphql-prisma/enhance.mjs +46 -36
  391. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +15 -6
  392. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
  393. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
  394. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.mjs +15 -6
  395. package/server/generated/typegraphql-prisma/enums/OrderStatus.d.ts +5 -3
  396. package/server/generated/typegraphql-prisma/enums/OrderStatus.d.ts.map +1 -1
  397. package/server/generated/typegraphql-prisma/enums/OrderStatus.js.map +1 -1
  398. package/server/generated/typegraphql-prisma/enums/OrderStatus.mjs +4 -2
  399. package/server/generated/typegraphql-prisma/enums/OrderType.d.ts +2 -1
  400. package/server/generated/typegraphql-prisma/enums/OrderType.d.ts.map +1 -1
  401. package/server/generated/typegraphql-prisma/enums/OrderType.js.map +1 -1
  402. package/server/generated/typegraphql-prisma/enums/OrderType.mjs +1 -0
  403. package/server/generated/typegraphql-prisma/enums/TimeInForce.d.ts +10 -0
  404. package/server/generated/typegraphql-prisma/enums/TimeInForce.d.ts.map +1 -0
  405. package/server/generated/typegraphql-prisma/enums/TimeInForce.js.map +1 -0
  406. package/server/generated/typegraphql-prisma/enums/TimeInForce.mjs +16 -0
  407. package/server/generated/typegraphql-prisma/enums/index.d.ts +1 -0
  408. package/server/generated/typegraphql-prisma/enums/index.d.ts.map +1 -1
  409. package/server/generated/typegraphql-prisma/enums/index.js.map +1 -1
  410. package/server/generated/typegraphql-prisma/enums/index.mjs +1 -0
  411. package/server/generated/typegraphql-prisma/models/Order.d.ts +52 -13
  412. package/server/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
  413. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  414. package/server/generated/typegraphql-prisma/models/Order.mjs +135 -31
  415. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
  416. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
  417. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
  418. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
  419. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
  420. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
  421. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
  422. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
  423. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
  424. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
  425. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
  426. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
  427. package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.d.ts +6 -0
  428. package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.d.ts.map +1 -0
  429. package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.js.map +1 -0
  430. package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableFilter.mjs +32 -0
  431. package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.d.ts +11 -0
  432. package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.d.ts.map +1 -0
  433. package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.js.map +1 -0
  434. package/server/generated/typegraphql-prisma/resolvers/inputs/BoolNullableWithAggregatesFilter.mjs +55 -0
  435. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.d.ts +1 -1
  436. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.d.ts.map +1 -1
  437. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFieldUpdateOperationsInput.js.map +1 -1
  438. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.d.ts +3 -3
  439. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.d.ts.map +1 -1
  440. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusFilter.js.map +1 -1
  441. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.d.ts +3 -3
  442. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.d.ts.map +1 -1
  443. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderStatusWithAggregatesFilter.js.map +1 -1
  444. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.d.ts +1 -1
  445. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.d.ts.map +1 -1
  446. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFieldUpdateOperationsInput.js.map +1 -1
  447. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.d.ts +3 -3
  448. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.d.ts.map +1 -1
  449. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeFilter.js.map +1 -1
  450. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.d.ts +3 -3
  451. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.d.ts.map +1 -1
  452. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOrderTypeWithAggregatesFilter.js.map +1 -1
  453. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.d.ts +4 -0
  454. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.d.ts.map +1 -0
  455. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.js.map +1 -0
  456. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFieldUpdateOperationsInput.mjs +25 -0
  457. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.d.ts +8 -0
  458. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.d.ts.map +1 -0
  459. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.js.map +1 -0
  460. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceFilter.mjs +47 -0
  461. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.d.ts +13 -0
  462. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.d.ts.map +1 -0
  463. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.js.map +1 -0
  464. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumTimeInForceWithAggregatesFilter.mjs +70 -0
  465. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.d.ts +5 -0
  466. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.d.ts.map +1 -0
  467. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.js.map +1 -0
  468. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableFilter.mjs +31 -0
  469. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.d.ts +10 -0
  470. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.d.ts.map +1 -0
  471. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.js.map +1 -0
  472. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedBoolNullableWithAggregatesFilter.mjs +54 -0
  473. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.d.ts +3 -3
  474. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.d.ts.map +1 -1
  475. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusFilter.js.map +1 -1
  476. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.d.ts +3 -3
  477. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.d.ts.map +1 -1
  478. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderStatusWithAggregatesFilter.js.map +1 -1
  479. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.d.ts +3 -3
  480. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.d.ts.map +1 -1
  481. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeFilter.js.map +1 -1
  482. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.d.ts +3 -3
  483. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.d.ts.map +1 -1
  484. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOrderTypeWithAggregatesFilter.js.map +1 -1
  485. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.d.ts +7 -0
  486. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.d.ts.map +1 -0
  487. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.js.map +1 -0
  488. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceFilter.mjs +46 -0
  489. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.d.ts +12 -0
  490. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.d.ts.map +1 -0
  491. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.js.map +1 -0
  492. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumTimeInForceWithAggregatesFilter.mjs +69 -0
  493. package/server/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.d.ts +4 -0
  494. package/server/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.d.ts.map +1 -0
  495. package/server/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.js.map +1 -0
  496. package/server/generated/typegraphql-prisma/resolvers/inputs/NullableBoolFieldUpdateOperationsInput.mjs +24 -0
  497. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts +6 -2
  498. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts.map +1 -1
  499. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.js.map +1 -1
  500. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.mjs +32 -4
  501. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +15 -6
  502. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
  503. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
  504. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.mjs +75 -12
  505. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +15 -6
  506. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
  507. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
  508. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.mjs +79 -15
  509. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +16 -7
  510. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
  511. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
  512. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.mjs +81 -17
  513. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +16 -7
  514. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
  515. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
  516. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.mjs +81 -17
  517. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +16 -7
  518. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
  519. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
  520. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.mjs +81 -17
  521. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +15 -6
  522. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
  523. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
  524. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.mjs +79 -15
  525. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +15 -6
  526. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  527. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
  528. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.mjs +79 -15
  529. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +15 -6
  530. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
  531. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
  532. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.mjs +79 -15
  533. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +15 -6
  534. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
  535. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
  536. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.mjs +75 -12
  537. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +15 -6
  538. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
  539. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
  540. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.mjs +75 -12
  541. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +15 -6
  542. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
  543. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
  544. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.mjs +76 -13
  545. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +15 -6
  546. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
  547. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
  548. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.mjs +76 -13
  549. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +19 -7
  550. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
  551. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
  552. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.mjs +83 -17
  553. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +19 -7
  554. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
  555. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
  556. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.mjs +83 -17
  557. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts +6 -2
  558. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts.map +1 -1
  559. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.js.map +1 -1
  560. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.mjs +32 -4
  561. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +17 -6
  562. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
  563. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
  564. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.mjs +79 -14
  565. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +17 -6
  566. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
  567. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
  568. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.mjs +79 -14
  569. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +17 -6
  570. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
  571. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
  572. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.mjs +79 -14
  573. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +17 -6
  574. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  575. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
  576. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.mjs +79 -14
  577. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +17 -6
  578. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
  579. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
  580. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.mjs +79 -14
  581. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +19 -7
  582. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
  583. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
  584. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.mjs +83 -17
  585. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +17 -6
  586. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  587. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  588. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.mjs +79 -14
  589. package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +10 -0
  590. package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
  591. package/server/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
  592. package/server/generated/typegraphql-prisma/resolvers/inputs/index.mjs +10 -0
  593. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +16 -7
  594. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
  595. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
  596. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.mjs +81 -17
  597. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts +6 -2
  598. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts.map +1 -1
  599. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.js.map +1 -1
  600. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.mjs +32 -4
  601. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +15 -6
  602. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
  603. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
  604. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.mjs +75 -12
  605. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +16 -7
  606. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
  607. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
  608. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.mjs +81 -17
  609. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +16 -7
  610. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
  611. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
  612. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.mjs +77 -13
  613. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +16 -7
  614. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
  615. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
  616. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.mjs +77 -13
  617. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts +6 -2
  618. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts.map +1 -1
  619. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.js.map +1 -1
  620. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.mjs +32 -4
  621. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
  622. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
  623. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
  624. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
  625. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
  626. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Account.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ShC,CAAC"}
1
+ {"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Account.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6UhC,CAAC"}
@@ -100,23 +100,36 @@ export type User = {
100
100
  alpacaAccounts: AlpacaAccount[];
101
101
  }
102
102
 
103
+ export enum OrderSide {
104
+ BUY = "BUY",
105
+ SELL = "SELL"
106
+ }
107
+
103
108
  export enum OrderType {
104
109
  MARKET = "MARKET",
105
110
  LIMIT = "LIMIT",
106
111
  STOP = "STOP",
107
- STOP_LIMIT = "STOP_LIMIT"
112
+ STOP_LIMIT = "STOP_LIMIT",
113
+ TRAILING_STOP = "TRAILING_STOP"
108
114
  }
109
115
 
110
- export enum OrderSide {
111
- BUY = "BUY",
112
- SELL = "SELL"
116
+ // Time in force enum (day, gtc, opg, cls, etc.).
117
+ export enum TimeInForce {
118
+ DAY = "DAY",
119
+ GTC = "GTC",
120
+ OPG = "OPG",
121
+ CLS = "CLS",
122
+ IOC = "IOC",
123
+ FOK = "FOK"
113
124
  }
114
125
 
115
126
  export enum OrderStatus {
116
- PENDING = "PENDING",
127
+ NEW = "NEW",
128
+ PARTIALLY_FILLED = "PARTIALLY_FILLED",
117
129
  FILLED = "FILLED",
118
- CANCELLED = "CANCELLED",
119
- REJECTED = "REJECTED"
130
+ CANCELED = "CANCELED",
131
+ REJECTED = "REJECTED",
132
+ EXPIRED = "EXPIRED"
120
133
  }
121
134
 
122
135
  export type Order = {
@@ -124,21 +137,40 @@ export type Order = {
124
137
  alpacaAccountId: string;
125
138
  // Reference to the asset being ordered.
126
139
  assetId: string;
127
- // Reference to the action associated with the order.
128
- actionId: string;
129
- // Type of order, defined by OrderType enum.
130
- type: OrderType;
140
+ // Symbol of the asset (ticker symbol).
141
+ symbol: string;
142
+ // Quantity of the asset to be ordered.
143
+ qty?: number;
144
+ // Notional value of the order. Optional, used if qty is not provided.
145
+ notional?: number;
131
146
  // Side of the order (BUY or SELL).
132
147
  side: OrderSide;
133
- // Quantity of the asset to be ordered.
134
- qty: number;
135
- // Price at which the asset is to be bought or sold.
136
- price: number;
137
- stopLoss?: number;
138
- // Current status of the order, defined by OrderStatus enum.
148
+ // Type of order (market, limit, stop, stop_limit, trailing_stop).
149
+ type: OrderType;
150
+ // Time in force for the order (day, gtc, opg, cls, ioc, fok).
151
+ timeInForce: TimeInForce;
152
+ // Limit price for limit or stop-limit orders.
153
+ limitPrice?: number;
154
+ // Stop price for stop or stop-limit orders.
155
+ stopPrice?: number;
156
+ // Trailing price for trailing stop orders.
157
+ trailPrice?: number;
158
+ // Trailing percent for trailing stop orders.
159
+ trailPercent?: number;
160
+ // Whether the order is eligible for extended hours.
161
+ extendedHours?: boolean;
162
+ // Client-supplied identifier for the order.
163
+ clientOrderId?: string;
164
+ // Current status of the order.
139
165
  status: OrderStatus;
140
- // Timestamp when the action was executed.
141
- executionTime?: Date;
166
+ // Timestamp when the order was submitted.
167
+ submittedAt?: Date;
168
+ // Timestamp when the order was filled.
169
+ filledAt?: Date;
170
+ // Average price at which the order was filled.
171
+ filledAvgPrice?: number;
172
+ // Reference to the action associated with the order.
173
+ actionId: string;
142
174
  // The Alpaca account this order is associated with.
143
175
  alpacaAccount: AlpacaAccount;
144
176
  // The action this order is associated with.
@@ -1,2 +1,2 @@
1
- export declare const ActionTypeString = "\nYour response should adhere to the following type definition for the \"Action\" type, and its nested object types (which include 'Trade', 'Order' types), as well as any ENUMS used by it (which include 'ActionType', 'ActionStatus' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Reference to the order ID associated with the action.\n orderId?: string;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The trade this action is part of.\n trade: Trade;\n // The order associated with this action.\n order?: Order;\n}\n\nexport enum ActionType {\n BUY = \"BUY\",\n GET_OPTION_CONTRACTS = \"GET_OPTION_CONTRACTS\",\n EXERCISE_OPTION = \"EXERCISE_OPTION\",\n SELL = \"SELL\",\n CANCEL = \"CANCEL\",\n ADJUST = \"ADJUST\",\n HEDGE = \"HEDGE\"\n}\n\nexport enum ActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n stopLoss?: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\n";
1
+ export declare const ActionTypeString = "\nYour response should adhere to the following type definition for the \"Action\" type, and its nested object types (which include 'Trade', 'Order' types), as well as any ENUMS used by it (which include 'ActionType', 'ActionStatus' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Reference to the order ID associated with the action.\n orderId?: string;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The trade this action is part of.\n trade: Trade;\n // The order associated with this action.\n order?: Order;\n}\n\nexport enum ActionType {\n BUY = \"BUY\",\n GET_OPTION_CONTRACTS = \"GET_OPTION_CONTRACTS\",\n EXERCISE_OPTION = \"EXERCISE_OPTION\",\n SELL = \"SELL\",\n CANCEL = \"CANCEL\",\n ADJUST = \"ADJUST\",\n HEDGE = \"HEDGE\"\n}\n\nexport enum ActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Symbol of the asset (ticker symbol).\n symbol: string;\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Client-supplied identifier for the order.\n clientOrderId?: string;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Reference to the action associated with the order.\n actionId: string;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\n";
2
2
  //# sourceMappingURL=Action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,uzPA4Q5B,CAAC"}
1
+ {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,4zRA4S5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Q/B,CAAC"}
1
+ {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4S/B,CAAC"}
@@ -182,23 +182,36 @@ export enum AssetType {
182
182
  OTHER = "OTHER"
183
183
  }
184
184
 
185
+ export enum OrderSide {
186
+ BUY = "BUY",
187
+ SELL = "SELL"
188
+ }
189
+
185
190
  export enum OrderType {
186
191
  MARKET = "MARKET",
187
192
  LIMIT = "LIMIT",
188
193
  STOP = "STOP",
189
- STOP_LIMIT = "STOP_LIMIT"
194
+ STOP_LIMIT = "STOP_LIMIT",
195
+ TRAILING_STOP = "TRAILING_STOP"
190
196
  }
191
197
 
192
- export enum OrderSide {
193
- BUY = "BUY",
194
- SELL = "SELL"
198
+ // Time in force enum (day, gtc, opg, cls, etc.).
199
+ export enum TimeInForce {
200
+ DAY = "DAY",
201
+ GTC = "GTC",
202
+ OPG = "OPG",
203
+ CLS = "CLS",
204
+ IOC = "IOC",
205
+ FOK = "FOK"
195
206
  }
196
207
 
197
208
  export enum OrderStatus {
198
- PENDING = "PENDING",
209
+ NEW = "NEW",
210
+ PARTIALLY_FILLED = "PARTIALLY_FILLED",
199
211
  FILLED = "FILLED",
200
- CANCELLED = "CANCELLED",
201
- REJECTED = "REJECTED"
212
+ CANCELED = "CANCELED",
213
+ REJECTED = "REJECTED",
214
+ EXPIRED = "EXPIRED"
202
215
  }
203
216
 
204
217
  export type Order = {
@@ -206,21 +219,40 @@ export type Order = {
206
219
  alpacaAccountId: string;
207
220
  // Reference to the asset being ordered.
208
221
  assetId: string;
209
- // Reference to the action associated with the order.
210
- actionId: string;
211
- // Type of order, defined by OrderType enum.
212
- type: OrderType;
222
+ // Symbol of the asset (ticker symbol).
223
+ symbol: string;
224
+ // Quantity of the asset to be ordered.
225
+ qty?: number;
226
+ // Notional value of the order. Optional, used if qty is not provided.
227
+ notional?: number;
213
228
  // Side of the order (BUY or SELL).
214
229
  side: OrderSide;
215
- // Quantity of the asset to be ordered.
216
- qty: number;
217
- // Price at which the asset is to be bought or sold.
218
- price: number;
219
- stopLoss?: number;
220
- // Current status of the order, defined by OrderStatus enum.
230
+ // Type of order (market, limit, stop, stop_limit, trailing_stop).
231
+ type: OrderType;
232
+ // Time in force for the order (day, gtc, opg, cls, ioc, fok).
233
+ timeInForce: TimeInForce;
234
+ // Limit price for limit or stop-limit orders.
235
+ limitPrice?: number;
236
+ // Stop price for stop or stop-limit orders.
237
+ stopPrice?: number;
238
+ // Trailing price for trailing stop orders.
239
+ trailPrice?: number;
240
+ // Trailing percent for trailing stop orders.
241
+ trailPercent?: number;
242
+ // Whether the order is eligible for extended hours.
243
+ extendedHours?: boolean;
244
+ // Client-supplied identifier for the order.
245
+ clientOrderId?: string;
246
+ // Current status of the order.
221
247
  status: OrderStatus;
222
- // Timestamp when the action was executed.
223
- executionTime?: Date;
248
+ // Timestamp when the order was submitted.
249
+ submittedAt?: Date;
250
+ // Timestamp when the order was filled.
251
+ filledAt?: Date;
252
+ // Average price at which the order was filled.
253
+ filledAvgPrice?: number;
254
+ // Reference to the action associated with the order.
255
+ actionId: string;
224
256
  // The Alpaca account this order is associated with.
225
257
  alpacaAccount: AlpacaAccount;
226
258
  // The action this order is associated with.
@@ -1,2 +1,2 @@
1
- export declare const AlpacaAccountTypeString = "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" type, and its nested object types (which include 'User', 'Trade', 'Order', 'Position', 'Alert' types), as well as any ENUMS used by it (which include 'AlpacaAccountType' enum).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type Customer = {\n // Reference to the authenticated user associated with the customer.\n authUserId: string;\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // Unique Stripe customer ID for billing.\n stripeCustomerId?: string;\n // Unique Stripe subscription ID.\n stripeSubscriptionId?: string;\n // Stripe price ID associated with the customer's subscription.\n stripePriceId?: string;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport type Account = {\n // Reference to the user who owns this account.\n userId: string;\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 // Unique identifier provided by the external provider.\n providerAccountId: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Relation to the User model.\n user: User;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Reference to the user who owns this session.\n userId: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport type Authenticator = {\n // Reference to the user who owns this authenticator.\n userId: string;\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\nexport enum 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 OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n stopLoss?: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport type NewsArticleAssetSentiment = {\n // Reference to the associated asset.\n assetId: string;\n // Reference to the associated news article.\n newsArticleId: string;\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\n // Relation to the Asset model.\n asset: Asset;\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n}\n\nexport type Asset = {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\n";
1
+ export declare const AlpacaAccountTypeString = "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" type, and its nested object types (which include 'User', 'Trade', 'Order', 'Position', 'Alert' types), as well as any ENUMS used by it (which include 'AlpacaAccountType' enum).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type Customer = {\n // Reference to the authenticated user associated with the customer.\n authUserId: string;\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // Unique Stripe customer ID for billing.\n stripeCustomerId?: string;\n // Unique Stripe subscription ID.\n stripeSubscriptionId?: string;\n // Stripe price ID associated with the customer's subscription.\n stripePriceId?: string;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport type Account = {\n // Reference to the user who owns this account.\n userId: string;\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 // Unique identifier provided by the external provider.\n providerAccountId: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Relation to the User model.\n user: User;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Reference to the user who owns this session.\n userId: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport type Authenticator = {\n // Reference to the user who owns this authenticator.\n userId: string;\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\nexport enum 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 OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Symbol of the asset (ticker symbol).\n symbol: string;\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Client-supplied identifier for the order.\n clientOrderId?: string;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Reference to the action associated with the order.\n actionId: string;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport type NewsArticleAssetSentiment = {\n // Reference to the associated asset.\n assetId: string;\n // Reference to the associated news article.\n newsArticleId: string;\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\n // Relation to the Asset model.\n asset: Asset;\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n}\n\nexport type Asset = {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\n";
2
2
  //# sourceMappingURL=AlpacaAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,+1cAidnC,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,o2eAifnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAidtC,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiftC,CAAC"}
@@ -208,23 +208,36 @@ export type User = {
208
208
  alpacaAccounts: AlpacaAccount[];
209
209
  }
210
210
 
211
+ export enum OrderSide {
212
+ BUY = "BUY",
213
+ SELL = "SELL"
214
+ }
215
+
211
216
  export enum OrderType {
212
217
  MARKET = "MARKET",
213
218
  LIMIT = "LIMIT",
214
219
  STOP = "STOP",
215
- STOP_LIMIT = "STOP_LIMIT"
220
+ STOP_LIMIT = "STOP_LIMIT",
221
+ TRAILING_STOP = "TRAILING_STOP"
216
222
  }
217
223
 
218
- export enum OrderSide {
219
- BUY = "BUY",
220
- SELL = "SELL"
224
+ // Time in force enum (day, gtc, opg, cls, etc.).
225
+ export enum TimeInForce {
226
+ DAY = "DAY",
227
+ GTC = "GTC",
228
+ OPG = "OPG",
229
+ CLS = "CLS",
230
+ IOC = "IOC",
231
+ FOK = "FOK"
221
232
  }
222
233
 
223
234
  export enum OrderStatus {
224
- PENDING = "PENDING",
235
+ NEW = "NEW",
236
+ PARTIALLY_FILLED = "PARTIALLY_FILLED",
225
237
  FILLED = "FILLED",
226
- CANCELLED = "CANCELLED",
227
- REJECTED = "REJECTED"
238
+ CANCELED = "CANCELED",
239
+ REJECTED = "REJECTED",
240
+ EXPIRED = "EXPIRED"
228
241
  }
229
242
 
230
243
  export type Order = {
@@ -232,21 +245,40 @@ export type Order = {
232
245
  alpacaAccountId: string;
233
246
  // Reference to the asset being ordered.
234
247
  assetId: string;
235
- // Reference to the action associated with the order.
236
- actionId: string;
237
- // Type of order, defined by OrderType enum.
238
- type: OrderType;
248
+ // Symbol of the asset (ticker symbol).
249
+ symbol: string;
250
+ // Quantity of the asset to be ordered.
251
+ qty?: number;
252
+ // Notional value of the order. Optional, used if qty is not provided.
253
+ notional?: number;
239
254
  // Side of the order (BUY or SELL).
240
255
  side: OrderSide;
241
- // Quantity of the asset to be ordered.
242
- qty: number;
243
- // Price at which the asset is to be bought or sold.
244
- price: number;
245
- stopLoss?: number;
246
- // Current status of the order, defined by OrderStatus enum.
256
+ // Type of order (market, limit, stop, stop_limit, trailing_stop).
257
+ type: OrderType;
258
+ // Time in force for the order (day, gtc, opg, cls, ioc, fok).
259
+ timeInForce: TimeInForce;
260
+ // Limit price for limit or stop-limit orders.
261
+ limitPrice?: number;
262
+ // Stop price for stop or stop-limit orders.
263
+ stopPrice?: number;
264
+ // Trailing price for trailing stop orders.
265
+ trailPrice?: number;
266
+ // Trailing percent for trailing stop orders.
267
+ trailPercent?: number;
268
+ // Whether the order is eligible for extended hours.
269
+ extendedHours?: boolean;
270
+ // Client-supplied identifier for the order.
271
+ clientOrderId?: string;
272
+ // Current status of the order.
247
273
  status: OrderStatus;
248
- // Timestamp when the action was executed.
249
- executionTime?: Date;
274
+ // Timestamp when the order was submitted.
275
+ submittedAt?: Date;
276
+ // Timestamp when the order was filled.
277
+ filledAt?: Date;
278
+ // Average price at which the order was filled.
279
+ filledAvgPrice?: number;
280
+ // Reference to the action associated with the order.
281
+ actionId: string;
250
282
  // The Alpaca account this order is associated with.
251
283
  alpacaAccount: AlpacaAccount;
252
284
  // The action this order is associated with.
@@ -1,2 +1,2 @@
1
- export declare const AssetTypeString = "\nYour response should adhere to the following type definition for the \"Asset\" type, and its nested object types (which include 'Trade', 'Order', 'Position', 'NewsArticleAssetSentiment' types), as well as any ENUMS used by it (which include 'AssetType' enum).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type Asset = {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n stopLoss?: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport type NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n // List of asset sentiments associated with this news article.\n assets: NewsArticleAssetSentiment[];\n}\n\nexport type NewsArticleAssetSentiment = {\n // Reference to the associated asset.\n assetId: string;\n // Reference to the associated news article.\n newsArticleId: string;\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\n // Relation to the Asset model.\n asset: Asset;\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n}\n\n";
1
+ export declare const AssetTypeString = "\nYour response should adhere to the following type definition for the \"Asset\" type, and its nested object types (which include 'Trade', 'Order', 'Position', 'NewsArticleAssetSentiment' types), as well as any ENUMS used by it (which include 'AssetType' enum).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type Asset = {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Symbol of the asset (ticker symbol).\n symbol: string;\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Client-supplied identifier for the order.\n clientOrderId?: string;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Reference to the action associated with the order.\n actionId: string;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport type NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n // List of asset sentiments associated with this news article.\n assets: NewsArticleAssetSentiment[];\n}\n\nexport type NewsArticleAssetSentiment = {\n // Reference to the associated asset.\n assetId: string;\n // Reference to the associated news article.\n newsArticleId: string;\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\n // Relation to the Asset model.\n asset: Asset;\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n}\n\n";
2
2
  //# sourceMappingURL=Asset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,soaA0a3B,CAAC"}
1
+ {"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,2ocA0c3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0a9B,CAAC"}
1
+ {"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0c9B,CAAC"}