adaptic-backend 1.0.65 → 1.0.66

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 (592) hide show
  1. package/Action.cjs +62 -56
  2. package/Alert.cjs +24 -24
  3. package/AlpacaAccount.cjs +112 -68
  4. package/Asset.cjs +62 -68
  5. package/NewsArticle.cjs +34 -0
  6. package/NewsArticleAssetSentiment.cjs +42 -24
  7. package/Order.cjs +42 -24
  8. package/Position.cjs +42 -24
  9. package/Trade.cjs +60 -60
  10. package/User.cjs +24 -24
  11. package/generated/typeStrings/Action.cjs +4 -8
  12. package/generated/typeStrings/Action.d.ts +1 -1
  13. package/generated/typeStrings/Action.d.ts.map +1 -1
  14. package/generated/typeStrings/Action.js.map +1 -1
  15. package/generated/typeStrings/Alert.cjs +8 -8
  16. package/generated/typeStrings/Alert.d.ts +1 -1
  17. package/generated/typeStrings/Alert.d.ts.map +1 -1
  18. package/generated/typeStrings/AlpacaAccount.cjs +8 -8
  19. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  20. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  21. package/generated/typeStrings/Asset.cjs +8 -8
  22. package/generated/typeStrings/Asset.d.ts +1 -1
  23. package/generated/typeStrings/Asset.d.ts.map +1 -1
  24. package/generated/typeStrings/NewsArticle.cjs +4 -0
  25. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  26. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  27. package/generated/typeStrings/NewsArticle.js.map +1 -1
  28. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +8 -8
  29. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  30. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  31. package/generated/typeStrings/Order.cjs +8 -8
  32. package/generated/typeStrings/Order.d.ts +1 -1
  33. package/generated/typeStrings/Order.d.ts.map +1 -1
  34. package/generated/typeStrings/Position.cjs +8 -8
  35. package/generated/typeStrings/Position.d.ts +1 -1
  36. package/generated/typeStrings/Position.d.ts.map +1 -1
  37. package/generated/typeStrings/Trade.cjs +8 -8
  38. package/generated/typeStrings/Trade.d.ts +1 -1
  39. package/generated/typeStrings/Trade.d.ts.map +1 -1
  40. package/generated/typeStrings/User.cjs +8 -8
  41. package/generated/typeStrings/User.d.ts +1 -1
  42. package/generated/typeStrings/User.d.ts.map +1 -1
  43. package/generated/typeStrings/index.d.ts +10 -10
  44. package/generated/typegraphql-prisma/enhance.cjs +56 -56
  45. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  46. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.cjs +2 -4
  47. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts +2 -4
  48. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts.map +1 -1
  49. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.js.map +1 -1
  50. package/generated/typegraphql-prisma/enums/AssetScalarFieldEnum.cjs +2 -0
  51. package/generated/typegraphql-prisma/enums/AssetScalarFieldEnum.d.ts +2 -0
  52. package/generated/typegraphql-prisma/enums/AssetScalarFieldEnum.d.ts.map +1 -1
  53. package/generated/typegraphql-prisma/enums/AssetScalarFieldEnum.js.map +1 -1
  54. package/generated/typegraphql-prisma/models/Action.cjs +14 -28
  55. package/generated/typegraphql-prisma/models/Action.d.ts +8 -16
  56. package/generated/typegraphql-prisma/models/Action.d.ts.map +1 -1
  57. package/generated/typegraphql-prisma/models/Action.js.map +1 -1
  58. package/generated/typegraphql-prisma/models/Asset.cjs +14 -0
  59. package/generated/typegraphql-prisma/models/Asset.d.ts +8 -0
  60. package/generated/typegraphql-prisma/models/Asset.d.ts.map +1 -1
  61. package/generated/typegraphql-prisma/models/Asset.js.map +1 -1
  62. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts +1 -1
  63. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts.map +1 -1
  64. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.js.map +1 -1
  65. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts +1 -1
  66. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts.map +1 -1
  67. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.js.map +1 -1
  68. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts +1 -1
  69. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts.map +1 -1
  70. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.js.map +1 -1
  71. package/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts +1 -1
  72. package/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts.map +1 -1
  73. package/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.js.map +1 -1
  74. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetArgs.d.ts +1 -1
  75. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetArgs.d.ts.map +1 -1
  76. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetArgs.js.map +1 -1
  77. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetOrThrowArgs.d.ts +1 -1
  78. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetOrThrowArgs.d.ts.map +1 -1
  79. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetOrThrowArgs.js.map +1 -1
  80. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindManyAssetArgs.d.ts +1 -1
  81. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindManyAssetArgs.d.ts.map +1 -1
  82. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindManyAssetArgs.js.map +1 -1
  83. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/GroupByAssetArgs.d.ts +1 -1
  84. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/GroupByAssetArgs.d.ts.map +1 -1
  85. package/generated/typegraphql-prisma/resolvers/crud/Asset/args/GroupByAssetArgs.js.map +1 -1
  86. package/generated/typegraphql-prisma/resolvers/inputs/ActionAvgOrderByAggregateInput.cjs +3 -9
  87. package/generated/typegraphql-prisma/resolvers/inputs/ActionAvgOrderByAggregateInput.d.ts +2 -3
  88. package/generated/typegraphql-prisma/resolvers/inputs/ActionAvgOrderByAggregateInput.d.ts.map +1 -1
  89. package/generated/typegraphql-prisma/resolvers/inputs/ActionAvgOrderByAggregateInput.js.map +1 -1
  90. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.cjs +5 -17
  91. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts +2 -4
  92. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts.map +1 -1
  93. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.js.map +1 -1
  94. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.cjs +12 -24
  95. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts +2 -4
  96. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts.map +1 -1
  97. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.js.map +1 -1
  98. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.cjs +12 -24
  99. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts +2 -4
  100. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts.map +1 -1
  101. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.js.map +1 -1
  102. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.cjs +12 -24
  103. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts +2 -4
  104. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts.map +1 -1
  105. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.js.map +1 -1
  106. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.cjs +12 -24
  107. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts +2 -4
  108. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts.map +1 -1
  109. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.js.map +1 -1
  110. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.cjs +5 -17
  111. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts +2 -4
  112. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts.map +1 -1
  113. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.js.map +1 -1
  114. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.cjs +5 -17
  115. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts +2 -4
  116. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts.map +1 -1
  117. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.js.map +1 -1
  118. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.cjs +9 -21
  119. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts +2 -4
  120. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts.map +1 -1
  121. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.js.map +1 -1
  122. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.cjs +9 -21
  123. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts +2 -4
  124. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts.map +1 -1
  125. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.js.map +1 -1
  126. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.cjs +9 -22
  127. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts +2 -5
  128. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts.map +1 -1
  129. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.js.map +1 -1
  130. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.cjs +9 -22
  131. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts +2 -5
  132. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts.map +1 -1
  133. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.js.map +1 -1
  134. package/generated/typegraphql-prisma/resolvers/inputs/ActionSumOrderByAggregateInput.cjs +3 -9
  135. package/generated/typegraphql-prisma/resolvers/inputs/ActionSumOrderByAggregateInput.d.ts +2 -3
  136. package/generated/typegraphql-prisma/resolvers/inputs/ActionSumOrderByAggregateInput.d.ts.map +1 -1
  137. package/generated/typegraphql-prisma/resolvers/inputs/ActionSumOrderByAggregateInput.js.map +1 -1
  138. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.cjs +9 -22
  139. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts +2 -5
  140. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts.map +1 -1
  141. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.js.map +1 -1
  142. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.cjs +9 -22
  143. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts +2 -5
  144. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts.map +1 -1
  145. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.js.map +1 -1
  146. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.cjs +9 -22
  147. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts +2 -5
  148. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts.map +1 -1
  149. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.js.map +1 -1
  150. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.cjs +9 -22
  151. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts +2 -5
  152. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts.map +1 -1
  153. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.js.map +1 -1
  154. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.cjs +9 -22
  155. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts +2 -5
  156. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts.map +1 -1
  157. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.js.map +1 -1
  158. package/generated/typegraphql-prisma/resolvers/inputs/AssetCountOrderByAggregateInput.cjs +12 -0
  159. package/generated/typegraphql-prisma/resolvers/inputs/AssetCountOrderByAggregateInput.d.ts +2 -0
  160. package/generated/typegraphql-prisma/resolvers/inputs/AssetCountOrderByAggregateInput.d.ts.map +1 -1
  161. package/generated/typegraphql-prisma/resolvers/inputs/AssetCountOrderByAggregateInput.js.map +1 -1
  162. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateInput.cjs +12 -0
  163. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateInput.d.ts +2 -0
  164. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateInput.d.ts.map +1 -1
  165. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateInput.js.map +1 -1
  166. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateManyInput.cjs +12 -0
  167. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateManyInput.d.ts +2 -0
  168. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateManyInput.d.ts.map +1 -1
  169. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateManyInput.js.map +1 -1
  170. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutNewsMentionsInput.cjs +12 -0
  171. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutNewsMentionsInput.d.ts +2 -0
  172. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutNewsMentionsInput.d.ts.map +1 -1
  173. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutNewsMentionsInput.js.map +1 -1
  174. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutOrdersInput.cjs +12 -0
  175. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutOrdersInput.d.ts +2 -0
  176. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutOrdersInput.d.ts.map +1 -1
  177. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutOrdersInput.js.map +1 -1
  178. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutPositionsInput.cjs +12 -0
  179. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutPositionsInput.d.ts +2 -0
  180. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutPositionsInput.d.ts.map +1 -1
  181. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutPositionsInput.js.map +1 -1
  182. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutTradesInput.cjs +12 -0
  183. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutTradesInput.d.ts +2 -0
  184. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutTradesInput.d.ts.map +1 -1
  185. package/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutTradesInput.js.map +1 -1
  186. package/generated/typegraphql-prisma/resolvers/inputs/AssetMaxOrderByAggregateInput.cjs +12 -0
  187. package/generated/typegraphql-prisma/resolvers/inputs/AssetMaxOrderByAggregateInput.d.ts +2 -0
  188. package/generated/typegraphql-prisma/resolvers/inputs/AssetMaxOrderByAggregateInput.d.ts.map +1 -1
  189. package/generated/typegraphql-prisma/resolvers/inputs/AssetMaxOrderByAggregateInput.js.map +1 -1
  190. package/generated/typegraphql-prisma/resolvers/inputs/AssetMinOrderByAggregateInput.cjs +12 -0
  191. package/generated/typegraphql-prisma/resolvers/inputs/AssetMinOrderByAggregateInput.d.ts +2 -0
  192. package/generated/typegraphql-prisma/resolvers/inputs/AssetMinOrderByAggregateInput.d.ts.map +1 -1
  193. package/generated/typegraphql-prisma/resolvers/inputs/AssetMinOrderByAggregateInput.js.map +1 -1
  194. package/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithAggregationInput.cjs +12 -0
  195. package/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithAggregationInput.d.ts +2 -0
  196. package/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithAggregationInput.d.ts.map +1 -1
  197. package/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithAggregationInput.js.map +1 -1
  198. package/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithRelationInput.cjs +12 -0
  199. package/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithRelationInput.d.ts +2 -0
  200. package/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithRelationInput.d.ts.map +1 -1
  201. package/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithRelationInput.js.map +1 -1
  202. package/generated/typegraphql-prisma/resolvers/inputs/AssetScalarWhereWithAggregatesInput.cjs +12 -0
  203. package/generated/typegraphql-prisma/resolvers/inputs/AssetScalarWhereWithAggregatesInput.d.ts +2 -0
  204. package/generated/typegraphql-prisma/resolvers/inputs/AssetScalarWhereWithAggregatesInput.d.ts.map +1 -1
  205. package/generated/typegraphql-prisma/resolvers/inputs/AssetScalarWhereWithAggregatesInput.js.map +1 -1
  206. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateInput.cjs +12 -0
  207. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateInput.d.ts +2 -0
  208. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateInput.d.ts.map +1 -1
  209. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateInput.js.map +1 -1
  210. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateManyMutationInput.cjs +12 -0
  211. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateManyMutationInput.d.ts +2 -0
  212. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateManyMutationInput.d.ts.map +1 -1
  213. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateManyMutationInput.js.map +1 -1
  214. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutNewsMentionsInput.cjs +12 -0
  215. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutNewsMentionsInput.d.ts +2 -0
  216. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutNewsMentionsInput.d.ts.map +1 -1
  217. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutNewsMentionsInput.js.map +1 -1
  218. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutOrdersInput.cjs +12 -0
  219. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutOrdersInput.d.ts +2 -0
  220. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutOrdersInput.d.ts.map +1 -1
  221. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutOrdersInput.js.map +1 -1
  222. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutPositionsInput.cjs +12 -0
  223. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutPositionsInput.d.ts +2 -0
  224. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutPositionsInput.d.ts.map +1 -1
  225. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutPositionsInput.js.map +1 -1
  226. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutTradesInput.cjs +12 -0
  227. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutTradesInput.d.ts +2 -0
  228. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutTradesInput.d.ts.map +1 -1
  229. package/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutTradesInput.js.map +1 -1
  230. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereInput.cjs +12 -0
  231. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereInput.d.ts +2 -0
  232. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereInput.d.ts.map +1 -1
  233. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereInput.js.map +1 -1
  234. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.cjs +12 -0
  235. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts +2 -0
  236. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts.map +1 -1
  237. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.js.map +1 -1
  238. package/generated/typegraphql-prisma/resolvers/outputs/ActionAvgAggregate.cjs +3 -9
  239. package/generated/typegraphql-prisma/resolvers/outputs/ActionAvgAggregate.d.ts +2 -3
  240. package/generated/typegraphql-prisma/resolvers/outputs/ActionAvgAggregate.d.ts.map +1 -1
  241. package/generated/typegraphql-prisma/resolvers/outputs/ActionAvgAggregate.js.map +1 -1
  242. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.cjs +5 -17
  243. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts +2 -4
  244. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts.map +1 -1
  245. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.js.map +1 -1
  246. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.cjs +12 -24
  247. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts +2 -4
  248. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts.map +1 -1
  249. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.js.map +1 -1
  250. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.cjs +8 -20
  251. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts +2 -4
  252. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts.map +1 -1
  253. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.js.map +1 -1
  254. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.cjs +8 -20
  255. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts +2 -4
  256. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts.map +1 -1
  257. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.js.map +1 -1
  258. package/generated/typegraphql-prisma/resolvers/outputs/ActionSumAggregate.cjs +3 -9
  259. package/generated/typegraphql-prisma/resolvers/outputs/ActionSumAggregate.d.ts +2 -3
  260. package/generated/typegraphql-prisma/resolvers/outputs/ActionSumAggregate.d.ts.map +1 -1
  261. package/generated/typegraphql-prisma/resolvers/outputs/ActionSumAggregate.js.map +1 -1
  262. package/generated/typegraphql-prisma/resolvers/outputs/AssetCountAggregate.cjs +12 -0
  263. package/generated/typegraphql-prisma/resolvers/outputs/AssetCountAggregate.d.ts +2 -0
  264. package/generated/typegraphql-prisma/resolvers/outputs/AssetCountAggregate.d.ts.map +1 -1
  265. package/generated/typegraphql-prisma/resolvers/outputs/AssetCountAggregate.js.map +1 -1
  266. package/generated/typegraphql-prisma/resolvers/outputs/AssetGroupBy.cjs +12 -0
  267. package/generated/typegraphql-prisma/resolvers/outputs/AssetGroupBy.d.ts +2 -0
  268. package/generated/typegraphql-prisma/resolvers/outputs/AssetGroupBy.d.ts.map +1 -1
  269. package/generated/typegraphql-prisma/resolvers/outputs/AssetGroupBy.js.map +1 -1
  270. package/generated/typegraphql-prisma/resolvers/outputs/AssetMaxAggregate.cjs +12 -0
  271. package/generated/typegraphql-prisma/resolvers/outputs/AssetMaxAggregate.d.ts +2 -0
  272. package/generated/typegraphql-prisma/resolvers/outputs/AssetMaxAggregate.d.ts.map +1 -1
  273. package/generated/typegraphql-prisma/resolvers/outputs/AssetMaxAggregate.js.map +1 -1
  274. package/generated/typegraphql-prisma/resolvers/outputs/AssetMinAggregate.cjs +12 -0
  275. package/generated/typegraphql-prisma/resolvers/outputs/AssetMinAggregate.d.ts +2 -0
  276. package/generated/typegraphql-prisma/resolvers/outputs/AssetMinAggregate.d.ts.map +1 -1
  277. package/generated/typegraphql-prisma/resolvers/outputs/AssetMinAggregate.js.map +1 -1
  278. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.cjs +12 -24
  279. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.d.ts +2 -4
  280. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.d.ts.map +1 -1
  281. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.js.map +1 -1
  282. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAssetAndReturnOutputType.cjs +12 -0
  283. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAssetAndReturnOutputType.d.ts +2 -0
  284. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAssetAndReturnOutputType.d.ts.map +1 -1
  285. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAssetAndReturnOutputType.js.map +1 -1
  286. package/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts +1 -1
  287. package/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts.map +1 -1
  288. package/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.js.map +1 -1
  289. package/package.json +1 -1
  290. package/server/Action.d.ts.map +1 -1
  291. package/server/Action.js.map +1 -1
  292. package/server/Action.mjs +62 -56
  293. package/server/Alert.mjs +24 -24
  294. package/server/AlpacaAccount.d.ts.map +1 -1
  295. package/server/AlpacaAccount.js.map +1 -1
  296. package/server/AlpacaAccount.mjs +112 -68
  297. package/server/Asset.d.ts.map +1 -1
  298. package/server/Asset.js.map +1 -1
  299. package/server/Asset.mjs +62 -68
  300. package/server/NewsArticle.d.ts.map +1 -1
  301. package/server/NewsArticle.js.map +1 -1
  302. package/server/NewsArticle.mjs +34 -0
  303. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  304. package/server/NewsArticleAssetSentiment.js.map +1 -1
  305. package/server/NewsArticleAssetSentiment.mjs +42 -24
  306. package/server/Order.d.ts.map +1 -1
  307. package/server/Order.js.map +1 -1
  308. package/server/Order.mjs +42 -24
  309. package/server/Position.d.ts.map +1 -1
  310. package/server/Position.js.map +1 -1
  311. package/server/Position.mjs +42 -24
  312. package/server/Trade.js.map +1 -1
  313. package/server/Trade.mjs +60 -60
  314. package/server/User.mjs +24 -24
  315. package/server/generated/typeStrings/Action.d.ts +1 -1
  316. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  317. package/server/generated/typeStrings/Action.js.map +1 -1
  318. package/server/generated/typeStrings/Action.mjs +4 -8
  319. package/server/generated/typeStrings/Alert.d.ts +1 -1
  320. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  321. package/server/generated/typeStrings/Alert.mjs +8 -8
  322. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  323. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  324. package/server/generated/typeStrings/AlpacaAccount.mjs +8 -8
  325. package/server/generated/typeStrings/Asset.d.ts +1 -1
  326. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  327. package/server/generated/typeStrings/Asset.mjs +8 -8
  328. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  329. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  330. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  331. package/server/generated/typeStrings/NewsArticle.mjs +4 -0
  332. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  333. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  334. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +8 -8
  335. package/server/generated/typeStrings/Order.d.ts +1 -1
  336. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  337. package/server/generated/typeStrings/Order.mjs +8 -8
  338. package/server/generated/typeStrings/Position.d.ts +1 -1
  339. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  340. package/server/generated/typeStrings/Position.mjs +8 -8
  341. package/server/generated/typeStrings/Trade.d.ts +1 -1
  342. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  343. package/server/generated/typeStrings/Trade.mjs +8 -8
  344. package/server/generated/typeStrings/User.d.ts +1 -1
  345. package/server/generated/typeStrings/User.d.ts.map +1 -1
  346. package/server/generated/typeStrings/User.mjs +8 -8
  347. package/server/generated/typeStrings/index.d.ts +10 -10
  348. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  349. package/server/generated/typegraphql-prisma/enhance.mjs +56 -56
  350. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts +2 -4
  351. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts.map +1 -1
  352. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.js.map +1 -1
  353. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.mjs +2 -4
  354. package/server/generated/typegraphql-prisma/enums/AssetScalarFieldEnum.d.ts +2 -0
  355. package/server/generated/typegraphql-prisma/enums/AssetScalarFieldEnum.d.ts.map +1 -1
  356. package/server/generated/typegraphql-prisma/enums/AssetScalarFieldEnum.js.map +1 -1
  357. package/server/generated/typegraphql-prisma/enums/AssetScalarFieldEnum.mjs +2 -0
  358. package/server/generated/typegraphql-prisma/models/Action.d.ts +8 -16
  359. package/server/generated/typegraphql-prisma/models/Action.d.ts.map +1 -1
  360. package/server/generated/typegraphql-prisma/models/Action.js.map +1 -1
  361. package/server/generated/typegraphql-prisma/models/Action.mjs +22 -44
  362. package/server/generated/typegraphql-prisma/models/Asset.d.ts +8 -0
  363. package/server/generated/typegraphql-prisma/models/Asset.d.ts.map +1 -1
  364. package/server/generated/typegraphql-prisma/models/Asset.js.map +1 -1
  365. package/server/generated/typegraphql-prisma/models/Asset.mjs +22 -0
  366. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts +1 -1
  367. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts.map +1 -1
  368. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.js.map +1 -1
  369. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts +1 -1
  370. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts.map +1 -1
  371. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.js.map +1 -1
  372. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts +1 -1
  373. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts.map +1 -1
  374. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.js.map +1 -1
  375. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts +1 -1
  376. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts.map +1 -1
  377. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.js.map +1 -1
  378. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetArgs.d.ts +1 -1
  379. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetArgs.d.ts.map +1 -1
  380. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetArgs.js.map +1 -1
  381. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetOrThrowArgs.d.ts +1 -1
  382. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetOrThrowArgs.d.ts.map +1 -1
  383. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindFirstAssetOrThrowArgs.js.map +1 -1
  384. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindManyAssetArgs.d.ts +1 -1
  385. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindManyAssetArgs.d.ts.map +1 -1
  386. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/FindManyAssetArgs.js.map +1 -1
  387. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/GroupByAssetArgs.d.ts +1 -1
  388. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/GroupByAssetArgs.d.ts.map +1 -1
  389. package/server/generated/typegraphql-prisma/resolvers/crud/Asset/args/GroupByAssetArgs.js.map +1 -1
  390. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionAvgOrderByAggregateInput.d.ts +2 -3
  391. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionAvgOrderByAggregateInput.d.ts.map +1 -1
  392. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionAvgOrderByAggregateInput.js.map +1 -1
  393. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionAvgOrderByAggregateInput.mjs +5 -12
  394. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts +2 -4
  395. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts.map +1 -1
  396. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.js.map +1 -1
  397. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.mjs +7 -21
  398. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts +2 -4
  399. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts.map +1 -1
  400. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.js.map +1 -1
  401. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.mjs +14 -28
  402. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts +2 -4
  403. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts.map +1 -1
  404. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.js.map +1 -1
  405. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.mjs +14 -28
  406. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts +2 -4
  407. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts.map +1 -1
  408. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.js.map +1 -1
  409. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.mjs +14 -28
  410. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts +2 -4
  411. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts.map +1 -1
  412. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.js.map +1 -1
  413. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.mjs +14 -28
  414. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts +2 -4
  415. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts.map +1 -1
  416. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.js.map +1 -1
  417. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.mjs +7 -21
  418. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts +2 -4
  419. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts.map +1 -1
  420. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.js.map +1 -1
  421. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.mjs +7 -21
  422. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts +2 -4
  423. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts.map +1 -1
  424. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.js.map +1 -1
  425. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.mjs +11 -25
  426. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts +2 -4
  427. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts.map +1 -1
  428. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.js.map +1 -1
  429. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.mjs +11 -25
  430. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts +2 -5
  431. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts.map +1 -1
  432. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.js.map +1 -1
  433. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.mjs +11 -26
  434. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts +2 -5
  435. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts.map +1 -1
  436. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.js.map +1 -1
  437. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.mjs +11 -26
  438. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionSumOrderByAggregateInput.d.ts +2 -3
  439. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionSumOrderByAggregateInput.d.ts.map +1 -1
  440. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionSumOrderByAggregateInput.js.map +1 -1
  441. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionSumOrderByAggregateInput.mjs +5 -12
  442. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts +2 -5
  443. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts.map +1 -1
  444. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.js.map +1 -1
  445. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.mjs +11 -26
  446. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts +2 -5
  447. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts.map +1 -1
  448. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.js.map +1 -1
  449. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.mjs +11 -26
  450. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts +2 -5
  451. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts.map +1 -1
  452. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.js.map +1 -1
  453. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.mjs +11 -26
  454. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts +2 -5
  455. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts.map +1 -1
  456. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.js.map +1 -1
  457. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.mjs +11 -26
  458. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts +2 -5
  459. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts.map +1 -1
  460. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.js.map +1 -1
  461. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.mjs +11 -26
  462. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCountOrderByAggregateInput.d.ts +2 -0
  463. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCountOrderByAggregateInput.d.ts.map +1 -1
  464. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCountOrderByAggregateInput.js.map +1 -1
  465. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCountOrderByAggregateInput.mjs +14 -0
  466. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateInput.d.ts +2 -0
  467. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateInput.d.ts.map +1 -1
  468. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateInput.js.map +1 -1
  469. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateInput.mjs +14 -0
  470. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateManyInput.d.ts +2 -0
  471. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateManyInput.d.ts.map +1 -1
  472. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateManyInput.js.map +1 -1
  473. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateManyInput.mjs +14 -0
  474. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutNewsMentionsInput.d.ts +2 -0
  475. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutNewsMentionsInput.d.ts.map +1 -1
  476. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutNewsMentionsInput.js.map +1 -1
  477. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutNewsMentionsInput.mjs +14 -0
  478. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutOrdersInput.d.ts +2 -0
  479. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutOrdersInput.d.ts.map +1 -1
  480. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutOrdersInput.js.map +1 -1
  481. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutOrdersInput.mjs +14 -0
  482. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutPositionsInput.d.ts +2 -0
  483. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutPositionsInput.d.ts.map +1 -1
  484. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutPositionsInput.js.map +1 -1
  485. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutPositionsInput.mjs +14 -0
  486. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutTradesInput.d.ts +2 -0
  487. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutTradesInput.d.ts.map +1 -1
  488. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutTradesInput.js.map +1 -1
  489. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetCreateWithoutTradesInput.mjs +14 -0
  490. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetMaxOrderByAggregateInput.d.ts +2 -0
  491. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetMaxOrderByAggregateInput.d.ts.map +1 -1
  492. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetMaxOrderByAggregateInput.js.map +1 -1
  493. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetMaxOrderByAggregateInput.mjs +14 -0
  494. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetMinOrderByAggregateInput.d.ts +2 -0
  495. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetMinOrderByAggregateInput.d.ts.map +1 -1
  496. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetMinOrderByAggregateInput.js.map +1 -1
  497. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetMinOrderByAggregateInput.mjs +14 -0
  498. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithAggregationInput.d.ts +2 -0
  499. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithAggregationInput.d.ts.map +1 -1
  500. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithAggregationInput.js.map +1 -1
  501. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithAggregationInput.mjs +14 -0
  502. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithRelationInput.d.ts +2 -0
  503. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithRelationInput.d.ts.map +1 -1
  504. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithRelationInput.js.map +1 -1
  505. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetOrderByWithRelationInput.mjs +14 -0
  506. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetScalarWhereWithAggregatesInput.d.ts +2 -0
  507. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetScalarWhereWithAggregatesInput.d.ts.map +1 -1
  508. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetScalarWhereWithAggregatesInput.js.map +1 -1
  509. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetScalarWhereWithAggregatesInput.mjs +14 -0
  510. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateInput.d.ts +2 -0
  511. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateInput.d.ts.map +1 -1
  512. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateInput.js.map +1 -1
  513. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateInput.mjs +14 -0
  514. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateManyMutationInput.d.ts +2 -0
  515. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateManyMutationInput.d.ts.map +1 -1
  516. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateManyMutationInput.js.map +1 -1
  517. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateManyMutationInput.mjs +14 -0
  518. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutNewsMentionsInput.d.ts +2 -0
  519. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutNewsMentionsInput.d.ts.map +1 -1
  520. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutNewsMentionsInput.js.map +1 -1
  521. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutNewsMentionsInput.mjs +14 -0
  522. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutOrdersInput.d.ts +2 -0
  523. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutOrdersInput.d.ts.map +1 -1
  524. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutOrdersInput.js.map +1 -1
  525. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutOrdersInput.mjs +14 -0
  526. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutPositionsInput.d.ts +2 -0
  527. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutPositionsInput.d.ts.map +1 -1
  528. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutPositionsInput.js.map +1 -1
  529. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutPositionsInput.mjs +14 -0
  530. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutTradesInput.d.ts +2 -0
  531. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutTradesInput.d.ts.map +1 -1
  532. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutTradesInput.js.map +1 -1
  533. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetUpdateWithoutTradesInput.mjs +14 -0
  534. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereInput.d.ts +2 -0
  535. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereInput.d.ts.map +1 -1
  536. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereInput.js.map +1 -1
  537. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereInput.mjs +14 -0
  538. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts +2 -0
  539. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts.map +1 -1
  540. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.js.map +1 -1
  541. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.mjs +14 -0
  542. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionAvgAggregate.d.ts +2 -3
  543. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionAvgAggregate.d.ts.map +1 -1
  544. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionAvgAggregate.js.map +1 -1
  545. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionAvgAggregate.mjs +5 -12
  546. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts +2 -4
  547. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts.map +1 -1
  548. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.js.map +1 -1
  549. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.mjs +7 -21
  550. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts +2 -4
  551. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts.map +1 -1
  552. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.js.map +1 -1
  553. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.mjs +14 -28
  554. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts +2 -4
  555. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts.map +1 -1
  556. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.js.map +1 -1
  557. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.mjs +10 -24
  558. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts +2 -4
  559. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts.map +1 -1
  560. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.js.map +1 -1
  561. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.mjs +10 -24
  562. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionSumAggregate.d.ts +2 -3
  563. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionSumAggregate.d.ts.map +1 -1
  564. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionSumAggregate.js.map +1 -1
  565. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionSumAggregate.mjs +5 -12
  566. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetCountAggregate.d.ts +2 -0
  567. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetCountAggregate.d.ts.map +1 -1
  568. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetCountAggregate.js.map +1 -1
  569. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetCountAggregate.mjs +14 -0
  570. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetGroupBy.d.ts +2 -0
  571. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetGroupBy.d.ts.map +1 -1
  572. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetGroupBy.js.map +1 -1
  573. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetGroupBy.mjs +14 -0
  574. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetMaxAggregate.d.ts +2 -0
  575. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetMaxAggregate.d.ts.map +1 -1
  576. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetMaxAggregate.js.map +1 -1
  577. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetMaxAggregate.mjs +14 -0
  578. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetMinAggregate.d.ts +2 -0
  579. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetMinAggregate.d.ts.map +1 -1
  580. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetMinAggregate.js.map +1 -1
  581. package/server/generated/typegraphql-prisma/resolvers/outputs/AssetMinAggregate.mjs +14 -0
  582. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.d.ts +2 -4
  583. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.d.ts.map +1 -1
  584. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.js.map +1 -1
  585. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyActionAndReturnOutputType.mjs +14 -28
  586. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyAssetAndReturnOutputType.d.ts +2 -0
  587. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyAssetAndReturnOutputType.d.ts.map +1 -1
  588. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyAssetAndReturnOutputType.js.map +1 -1
  589. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyAssetAndReturnOutputType.mjs +14 -0
  590. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts +1 -1
  591. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts.map +1 -1
  592. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,87fA2gB3B,CAAC"}
1
+ {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Order.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,o7fA2gB3B,CAAC"}
@@ -356,6 +356,10 @@ export interface Asset {
356
356
  dividendDate?: string;
357
357
  // Date when the asset goes ex-dividend.
358
358
  exDividendDate?: string;
359
+ // Last sell price of the asset.
360
+ sellPrice?: string;
361
+ // Last buy price of the asset.
362
+ buyPrice?: string;
359
363
  // Timestamp when the asset was created in the database.
360
364
  createdAt: Date;
361
365
  // Timestamp when the asset was last updated in the database.
@@ -395,20 +399,16 @@ export interface Action {
395
399
  sequence: number;
396
400
  // Type of trade action, defined by TradeAction enum.
397
401
  action: TradeAction;
398
- // Type of hedge applied, if any.
399
- hedgeType?: string;
400
- // Price at which the hedge was executed.
401
- hedgePrice?: number;
402
- // Price at which the asset was bought.
403
- buyPrice?: number;
404
- // Price at which the asset was sold.
405
- sellPrice?: number;
406
402
  // Quantity of the asset involved in the action.
407
403
  qty: number;
408
404
  // Side of the trade action (BUY or SELL).
409
405
  side: TradeActionSide;
410
406
  // Type of order used in the action, defined by OrderType enum.
411
407
  type: OrderType;
408
+ // Price at which the asset was bought.
409
+ boughtPrice?: number;
410
+ // Price at which the asset was sold.
411
+ soldPrice?: number;
412
412
  // Stop-loss price set for the action.
413
413
  stopLoss?: number;
414
414
  // Target price set for the action.
@@ -1,2 +1,2 @@
1
- export declare const PositionTypeString = "\nYour response should adhere to the following type definition for the \"Position\" type, and its nested object types (which include 'Asset', 'AlpacaAccount' types).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface Position {\n // Unique identifier for the position.\n id: string;\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 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\n// Simplified reference to User.\nexport interface User {\n// Unique identifier for the user.\n id: string;\n}\n\n// Simplified reference to Order.\nexport interface Order {\n// Unique identifier for the order.\n id: string;\n}\n\n// Simplified reference to Alert.\nexport interface Alert {\n// Unique identifier for the alert.\n id: string;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\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 enum TradeAction {\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 TradeActionSide {\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}\n\nexport enum TradeActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by TradeAction enum.\n action: TradeAction;\n // Type of hedge applied, if any.\n hedgeType?: string;\n // Price at which the hedge was executed.\n hedgePrice?: number;\n // Price at which the asset was bought.\n buyPrice?: number;\n // Price at which the asset was sold.\n sellPrice?: number;\n // Quantity of the asset involved in the action.\n qty: number;\n // Side of the trade action (BUY or SELL).\n side: TradeActionSide;\n // Type of order used in the action, defined by OrderType enum.\n type: OrderType;\n // Stop-loss price set for the action.\n stopLoss?: number;\n // Target price set for the action.\n targetPrice?: number;\n // Additional notes or comments about the action.\n note: string;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // Current status of the trade action.\n status: TradeActionStatus;\n // Fees associated with the action.\n fee?: number;\n // Relation to the Trade model.\n trade: Trade;\n}\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: 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 interface NewsArticle {\n // Unique identifier for the news article.\n id: string;\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 // Timestamp when the news article was added to the database.\n createdAt: Date;\n // Timestamp when the news article was last updated.\n updatedAt: Date;\n // List of asset sentiments associated with this news article.\n assets: NewsArticleAssetSentiment[];\n}\n\nexport interface NewsArticleAssetSentiment {\n // Unique identifier for the sentiment record.\n id: string;\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 interface Asset {\n // Unique identifier for the asset.\n id: string;\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 // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\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\n";
1
+ export declare const PositionTypeString = "\nYour response should adhere to the following type definition for the \"Position\" type, and its nested object types (which include 'Asset', 'AlpacaAccount' types).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface Position {\n // Unique identifier for the position.\n id: string;\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 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\n// Simplified reference to User.\nexport interface User {\n// Unique identifier for the user.\n id: string;\n}\n\n// Simplified reference to Order.\nexport interface Order {\n// Unique identifier for the order.\n id: string;\n}\n\n// Simplified reference to Alert.\nexport interface Alert {\n// Unique identifier for the alert.\n id: string;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\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 enum TradeAction {\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 TradeActionSide {\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}\n\nexport enum TradeActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by TradeAction enum.\n action: TradeAction;\n // Quantity of the asset involved in the action.\n qty: number;\n // Side of the trade action (BUY or SELL).\n side: TradeActionSide;\n // Type of order used in the action, defined by OrderType enum.\n type: OrderType;\n // Price at which the asset was bought.\n boughtPrice?: number;\n // Price at which the asset was sold.\n soldPrice?: number;\n // Stop-loss price set for the action.\n stopLoss?: number;\n // Target price set for the action.\n targetPrice?: number;\n // Additional notes or comments about the action.\n note: string;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // Current status of the trade action.\n status: TradeActionStatus;\n // Fees associated with the action.\n fee?: number;\n // Relation to the Trade model.\n trade: Trade;\n}\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: 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 interface NewsArticle {\n // Unique identifier for the news article.\n id: string;\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 // Timestamp when the news article was added to the database.\n createdAt: Date;\n // Timestamp when the news article was last updated.\n updatedAt: Date;\n // List of asset sentiments associated with this news article.\n assets: NewsArticleAssetSentiment[];\n}\n\nexport interface NewsArticleAssetSentiment {\n // Unique identifier for the sentiment record.\n id: string;\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 interface Asset {\n // Unique identifier for the asset.\n id: string;\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 // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\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\n";
2
2
  //# sourceMappingURL=Position.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,+7ZAqa9B,CAAC"}
1
+ {"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Position.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,q7ZAqa9B,CAAC"}
@@ -169,20 +169,16 @@ export interface Action {
169
169
  sequence: number;
170
170
  // Type of trade action, defined by TradeAction enum.
171
171
  action: TradeAction;
172
- // Type of hedge applied, if any.
173
- hedgeType?: string;
174
- // Price at which the hedge was executed.
175
- hedgePrice?: number;
176
- // Price at which the asset was bought.
177
- buyPrice?: number;
178
- // Price at which the asset was sold.
179
- sellPrice?: number;
180
172
  // Quantity of the asset involved in the action.
181
173
  qty: number;
182
174
  // Side of the trade action (BUY or SELL).
183
175
  side: TradeActionSide;
184
176
  // Type of order used in the action, defined by OrderType enum.
185
177
  type: OrderType;
178
+ // Price at which the asset was bought.
179
+ boughtPrice?: number;
180
+ // Price at which the asset was sold.
181
+ soldPrice?: number;
186
182
  // Stop-loss price set for the action.
187
183
  stopLoss?: number;
188
184
  // Target price set for the action.
@@ -405,6 +401,10 @@ export interface Asset {
405
401
  dividendDate?: string;
406
402
  // Date when the asset goes ex-dividend.
407
403
  exDividendDate?: string;
404
+ // Last sell price of the asset.
405
+ sellPrice?: string;
406
+ // Last buy price of the asset.
407
+ buyPrice?: string;
408
408
  // Timestamp when the asset was created in the database.
409
409
  createdAt: Date;
410
410
  // Timestamp when the asset was last updated in the database.
@@ -1,2 +1,2 @@
1
- export declare const TradeTypeString = "\nYour response should adhere to the following type definition for the \"Trade\" type, and its nested object types (which include 'AlpacaAccount', 'Asset', 'Action' types), as well as any ENUMS used by it (which include 'TradeStatus', 'OptionContractType' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\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 // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\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 // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Session {\n // Unique identifier for the session.\n id: string;\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 // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\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 // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\n}\n\nexport interface User {\n // Unique identifier for the user.\n id: string;\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 // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\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 TradeAction {\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 OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n// Simplified reference to Position.\nexport interface Position {\n// Unique identifier for the position.\n id: string;\n}\n\n// Simplified reference to NewsArticleAssetSentiment.\nexport interface NewsArticleAssetSentiment {\n// Unique identifier for the sentiment record.\n id: string;\n}\n\nexport interface Asset {\n // Unique identifier for the asset.\n id: string;\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 // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\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 interface Order {\n // Unique identifier for the order.\n id: string;\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Action of the order, defined by TradeAction enum.\n action: TradeAction;\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 // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the order was created.\n createdAt: Date;\n // Timestamp when the order was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport interface Alert {\n // Unique identifier for the alert.\n id: string;\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 // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\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 enum TradeActionSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum TradeActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by TradeAction enum.\n action: TradeAction;\n // Type of hedge applied, if any.\n hedgeType?: string;\n // Price at which the hedge was executed.\n hedgePrice?: number;\n // Price at which the asset was bought.\n buyPrice?: number;\n // Price at which the asset was sold.\n sellPrice?: number;\n // Quantity of the asset involved in the action.\n qty: number;\n // Side of the trade action (BUY or SELL).\n side: TradeActionSide;\n // Type of order used in the action, defined by OrderType enum.\n type: OrderType;\n // Stop-loss price set for the action.\n stopLoss?: number;\n // Target price set for the action.\n targetPrice?: number;\n // Additional notes or comments about the action.\n note: string;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // Current status of the trade action.\n status: TradeActionStatus;\n // Fees associated with the action.\n fee?: number;\n // Relation to the Trade model.\n trade: Trade;\n}\n\n";
1
+ export declare const TradeTypeString = "\nYour response should adhere to the following type definition for the \"Trade\" type, and its nested object types (which include 'AlpacaAccount', 'Asset', 'Action' types), as well as any ENUMS used by it (which include 'TradeStatus', 'OptionContractType' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\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 // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\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 // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Session {\n // Unique identifier for the session.\n id: string;\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 // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\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 // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\n}\n\nexport interface User {\n // Unique identifier for the user.\n id: string;\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 // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\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 TradeAction {\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 OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n// Simplified reference to Position.\nexport interface Position {\n// Unique identifier for the position.\n id: string;\n}\n\n// Simplified reference to NewsArticleAssetSentiment.\nexport interface NewsArticleAssetSentiment {\n// Unique identifier for the sentiment record.\n id: string;\n}\n\nexport interface Asset {\n // Unique identifier for the asset.\n id: string;\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 // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\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 interface Order {\n // Unique identifier for the order.\n id: string;\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Action of the order, defined by TradeAction enum.\n action: TradeAction;\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 // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the order was created.\n createdAt: Date;\n // Timestamp when the order was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport interface Alert {\n // Unique identifier for the alert.\n id: string;\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 // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\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 enum TradeActionSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum TradeActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by TradeAction enum.\n action: TradeAction;\n // Quantity of the asset involved in the action.\n qty: number;\n // Side of the trade action (BUY or SELL).\n side: TradeActionSide;\n // Type of order used in the action, defined by OrderType enum.\n type: OrderType;\n // Price at which the asset was bought.\n boughtPrice?: number;\n // Price at which the asset was sold.\n soldPrice?: number;\n // Stop-loss price set for the action.\n stopLoss?: number;\n // Target price set for the action.\n targetPrice?: number;\n // Additional notes or comments about the action.\n note: string;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // Current status of the trade action.\n status: TradeActionStatus;\n // Fees associated with the action.\n fee?: number;\n // Relation to the Trade model.\n trade: Trade;\n}\n\n";
2
2
  //# sourceMappingURL=Trade.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,k8fA2gB3B,CAAC"}
1
+ {"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,w7fA2gB3B,CAAC"}
@@ -368,6 +368,10 @@ export interface Asset {
368
368
  dividendDate?: string;
369
369
  // Date when the asset goes ex-dividend.
370
370
  exDividendDate?: string;
371
+ // Last sell price of the asset.
372
+ sellPrice?: string;
373
+ // Last buy price of the asset.
374
+ buyPrice?: string;
371
375
  // Timestamp when the asset was created in the database.
372
376
  createdAt: Date;
373
377
  // Timestamp when the asset was last updated in the database.
@@ -491,20 +495,16 @@ export interface Action {
491
495
  sequence: number;
492
496
  // Type of trade action, defined by TradeAction enum.
493
497
  action: TradeAction;
494
- // Type of hedge applied, if any.
495
- hedgeType?: string;
496
- // Price at which the hedge was executed.
497
- hedgePrice?: number;
498
- // Price at which the asset was bought.
499
- buyPrice?: number;
500
- // Price at which the asset was sold.
501
- sellPrice?: number;
502
498
  // Quantity of the asset involved in the action.
503
499
  qty: number;
504
500
  // Side of the trade action (BUY or SELL).
505
501
  side: TradeActionSide;
506
502
  // Type of order used in the action, defined by OrderType enum.
507
503
  type: OrderType;
504
+ // Price at which the asset was bought.
505
+ boughtPrice?: number;
506
+ // Price at which the asset was sold.
507
+ soldPrice?: number;
508
508
  // Stop-loss price set for the action.
509
509
  stopLoss?: number;
510
510
  // Target price set for the action.
@@ -1,2 +1,2 @@
1
- export declare const UserTypeString = "\nYour response should adhere to the following type definition for the \"User\" type, and its nested object types (which include 'Customer', 'Account', 'Session', 'Authenticator', 'AlpacaAccount' types), as well as any ENUMS used by it (which include 'UserRole', 'AlpacaAccountType', 'SubscriptionPlan' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface User {\n // Unique identifier for the user.\n id: string;\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 // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\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 UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\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 // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\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 // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Session {\n // Unique identifier for the session.\n id: string;\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 // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\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 // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\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\n// Simplified reference to Order.\nexport interface Order {\n// Unique identifier for the order.\n id: string;\n}\n\n// Simplified reference to Position.\nexport interface Position {\n// Unique identifier for the position.\n id: string;\n}\n\n// Simplified reference to NewsArticleAssetSentiment.\nexport interface NewsArticleAssetSentiment {\n// Unique identifier for the sentiment record.\n id: string;\n}\n\nexport interface Asset {\n // Unique identifier for the asset.\n id: string;\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 // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\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 enum TradeAction {\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 TradeActionSide {\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}\n\nexport enum TradeActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by TradeAction enum.\n action: TradeAction;\n // Type of hedge applied, if any.\n hedgeType?: string;\n // Price at which the hedge was executed.\n hedgePrice?: number;\n // Price at which the asset was bought.\n buyPrice?: number;\n // Price at which the asset was sold.\n sellPrice?: number;\n // Quantity of the asset involved in the action.\n qty: number;\n // Side of the trade action (BUY or SELL).\n side: TradeActionSide;\n // Type of order used in the action, defined by OrderType enum.\n type: OrderType;\n // Stop-loss price set for the action.\n stopLoss?: number;\n // Target price set for the action.\n targetPrice?: number;\n // Additional notes or comments about the action.\n note: string;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // Current status of the trade action.\n status: TradeActionStatus;\n // Fees associated with the action.\n fee?: number;\n // Relation to the Trade model.\n trade: Trade;\n}\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: 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 interface Alert {\n // Unique identifier for the alert.\n id: string;\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 // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\n";
1
+ export declare const UserTypeString = "\nYour response should adhere to the following type definition for the \"User\" type, and its nested object types (which include 'Customer', 'Account', 'Session', 'Authenticator', 'AlpacaAccount' types), as well as any ENUMS used by it (which include 'UserRole', 'AlpacaAccountType', 'SubscriptionPlan' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface User {\n // Unique identifier for the user.\n id: string;\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 // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\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 UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\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 // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\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 // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Session {\n // Unique identifier for the session.\n id: string;\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 // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\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 // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\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\n// Simplified reference to Order.\nexport interface Order {\n// Unique identifier for the order.\n id: string;\n}\n\n// Simplified reference to Position.\nexport interface Position {\n// Unique identifier for the position.\n id: string;\n}\n\n// Simplified reference to NewsArticleAssetSentiment.\nexport interface NewsArticleAssetSentiment {\n// Unique identifier for the sentiment record.\n id: string;\n}\n\nexport interface Asset {\n // Unique identifier for the asset.\n id: string;\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 // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\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 enum TradeAction {\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 TradeActionSide {\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}\n\nexport enum TradeActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by TradeAction enum.\n action: TradeAction;\n // Quantity of the asset involved in the action.\n qty: number;\n // Side of the trade action (BUY or SELL).\n side: TradeActionSide;\n // Type of order used in the action, defined by OrderType enum.\n type: OrderType;\n // Price at which the asset was bought.\n boughtPrice?: number;\n // Price at which the asset was sold.\n soldPrice?: number;\n // Stop-loss price set for the action.\n stopLoss?: number;\n // Target price set for the action.\n targetPrice?: number;\n // Additional notes or comments about the action.\n note: string;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // Current status of the trade action.\n status: TradeActionStatus;\n // Fees associated with the action.\n fee?: number;\n // Relation to the Trade model.\n trade: Trade;\n}\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: 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 interface Alert {\n // Unique identifier for the alert.\n id: string;\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 // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\n";
2
2
  //# sourceMappingURL=User.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/User.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,2neA+e1B,CAAC"}
1
+ {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/User.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,ineA+e1B,CAAC"}
@@ -311,6 +311,10 @@ export interface Asset {
311
311
  dividendDate?: string;
312
312
  // Date when the asset goes ex-dividend.
313
313
  exDividendDate?: string;
314
+ // Last sell price of the asset.
315
+ sellPrice?: string;
316
+ // Last buy price of the asset.
317
+ buyPrice?: string;
314
318
  // Timestamp when the asset was created in the database.
315
319
  createdAt: Date;
316
320
  // Timestamp when the asset was last updated in the database.
@@ -367,20 +371,16 @@ export interface Action {
367
371
  sequence: number;
368
372
  // Type of trade action, defined by TradeAction enum.
369
373
  action: TradeAction;
370
- // Type of hedge applied, if any.
371
- hedgeType?: string;
372
- // Price at which the hedge was executed.
373
- hedgePrice?: number;
374
- // Price at which the asset was bought.
375
- buyPrice?: number;
376
- // Price at which the asset was sold.
377
- sellPrice?: number;
378
374
  // Quantity of the asset involved in the action.
379
375
  qty: number;
380
376
  // Side of the trade action (BUY or SELL).
381
377
  side: TradeActionSide;
382
378
  // Type of order used in the action, defined by OrderType enum.
383
379
  type: OrderType;
380
+ // Price at which the asset was bought.
381
+ boughtPrice?: number;
382
+ // Price at which the asset was sold.
383
+ soldPrice?: number;
384
384
  // Stop-loss price set for the action.
385
385
  stopLoss?: number;
386
386
  // Target price set for the action.