adaptic-backend 1.0.339 → 1.0.341

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 (352) hide show
  1. package/Account.cjs +2543 -2265
  2. package/Account.d.ts +19 -2
  3. package/Action.cjs +1115 -683
  4. package/Action.d.ts +19 -2
  5. package/Alert.cjs +2626 -2348
  6. package/Alert.d.ts +19 -2
  7. package/Allocation.cjs +2578 -2300
  8. package/Allocation.d.ts +19 -2
  9. package/AlpacaAccount.cjs +2383 -2105
  10. package/AlpacaAccount.d.ts +19 -2
  11. package/Asset.cjs +1813 -1535
  12. package/Asset.d.ts +19 -2
  13. package/Authenticator.cjs +2568 -2290
  14. package/Authenticator.d.ts +19 -2
  15. package/Customer.cjs +2495 -2217
  16. package/Customer.d.ts +19 -2
  17. package/EconomicEvent.cjs +645 -367
  18. package/EconomicEvent.d.ts +19 -2
  19. package/MarketSentiment.cjs +618 -340
  20. package/MarketSentiment.d.ts +19 -2
  21. package/NewsArticle.cjs +1933 -1655
  22. package/NewsArticle.d.ts +19 -2
  23. package/NewsArticleAssetSentiment.cjs +1842 -1564
  24. package/NewsArticleAssetSentiment.d.ts +19 -2
  25. package/ScheduledOptionOrder.cjs +594 -316
  26. package/ScheduledOptionOrder.d.ts +19 -2
  27. package/Session.cjs +2570 -2292
  28. package/Session.d.ts +19 -2
  29. package/Trade.cjs +1087 -666
  30. package/Trade.d.ts +19 -2
  31. package/User.cjs +2288 -2010
  32. package/User.d.ts +19 -2
  33. package/VerificationToken.cjs +606 -328
  34. package/VerificationToken.d.ts +19 -2
  35. package/esm/Account.d.ts +19 -2
  36. package/esm/Account.d.ts.map +1 -1
  37. package/esm/Account.js.map +1 -1
  38. package/esm/Account.mjs +2534 -2263
  39. package/esm/Action.d.ts +19 -2
  40. package/esm/Action.d.ts.map +1 -1
  41. package/esm/Action.js.map +1 -1
  42. package/esm/Action.mjs +1106 -681
  43. package/esm/Alert.d.ts +19 -2
  44. package/esm/Alert.d.ts.map +1 -1
  45. package/esm/Alert.js.map +1 -1
  46. package/esm/Alert.mjs +2617 -2346
  47. package/esm/Allocation.d.ts +19 -2
  48. package/esm/Allocation.d.ts.map +1 -1
  49. package/esm/Allocation.js.map +1 -1
  50. package/esm/Allocation.mjs +2569 -2298
  51. package/esm/AlpacaAccount.d.ts +19 -2
  52. package/esm/AlpacaAccount.d.ts.map +1 -1
  53. package/esm/AlpacaAccount.js.map +1 -1
  54. package/esm/AlpacaAccount.mjs +2374 -2103
  55. package/esm/Asset.d.ts +19 -2
  56. package/esm/Asset.d.ts.map +1 -1
  57. package/esm/Asset.js.map +1 -1
  58. package/esm/Asset.mjs +1804 -1533
  59. package/esm/Authenticator.d.ts +19 -2
  60. package/esm/Authenticator.d.ts.map +1 -1
  61. package/esm/Authenticator.js.map +1 -1
  62. package/esm/Authenticator.mjs +2559 -2288
  63. package/esm/Customer.d.ts +19 -2
  64. package/esm/Customer.d.ts.map +1 -1
  65. package/esm/Customer.js.map +1 -1
  66. package/esm/Customer.mjs +2486 -2215
  67. package/esm/EconomicEvent.d.ts +19 -2
  68. package/esm/EconomicEvent.d.ts.map +1 -1
  69. package/esm/EconomicEvent.js.map +1 -1
  70. package/esm/EconomicEvent.mjs +636 -365
  71. package/esm/MarketSentiment.d.ts +19 -2
  72. package/esm/MarketSentiment.d.ts.map +1 -1
  73. package/esm/MarketSentiment.js.map +1 -1
  74. package/esm/MarketSentiment.mjs +609 -338
  75. package/esm/NewsArticle.d.ts +19 -2
  76. package/esm/NewsArticle.d.ts.map +1 -1
  77. package/esm/NewsArticle.js.map +1 -1
  78. package/esm/NewsArticle.mjs +1924 -1653
  79. package/esm/NewsArticleAssetSentiment.d.ts +19 -2
  80. package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
  81. package/esm/NewsArticleAssetSentiment.js.map +1 -1
  82. package/esm/NewsArticleAssetSentiment.mjs +1833 -1562
  83. package/esm/ScheduledOptionOrder.d.ts +19 -2
  84. package/esm/ScheduledOptionOrder.d.ts.map +1 -1
  85. package/esm/ScheduledOptionOrder.js.map +1 -1
  86. package/esm/ScheduledOptionOrder.mjs +585 -314
  87. package/esm/Session.d.ts +19 -2
  88. package/esm/Session.d.ts.map +1 -1
  89. package/esm/Session.js.map +1 -1
  90. package/esm/Session.mjs +2561 -2290
  91. package/esm/Trade.d.ts +19 -2
  92. package/esm/Trade.d.ts.map +1 -1
  93. package/esm/Trade.js.map +1 -1
  94. package/esm/Trade.mjs +1078 -664
  95. package/esm/User.d.ts +19 -2
  96. package/esm/User.d.ts.map +1 -1
  97. package/esm/User.js.map +1 -1
  98. package/esm/User.mjs +2279 -2008
  99. package/esm/VerificationToken.d.ts +19 -2
  100. package/esm/VerificationToken.d.ts.map +1 -1
  101. package/esm/VerificationToken.js.map +1 -1
  102. package/esm/VerificationToken.mjs +597 -326
  103. package/esm/generated/selectionSets/Trade.d.ts +1 -1
  104. package/esm/generated/selectionSets/Trade.d.ts.map +1 -1
  105. package/esm/generated/selectionSets/Trade.js.map +1 -1
  106. package/esm/generated/selectionSets/Trade.mjs +14 -3
  107. package/esm/generated/typeStrings/Trade.d.ts +1 -1
  108. package/esm/generated/typeStrings/Trade.d.ts.map +1 -1
  109. package/esm/generated/typeStrings/Trade.js.map +1 -1
  110. package/esm/generated/typeStrings/Trade.mjs +0 -6
  111. package/esm/generated/typeStrings/index.d.ts +1 -1
  112. package/esm/generated/typegraphql-prisma/enhance.js.map +1 -1
  113. package/esm/generated/typegraphql-prisma/enhance.mjs +24 -24
  114. package/esm/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts +15 -4
  115. package/esm/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts.map +1 -1
  116. package/esm/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.js.map +1 -1
  117. package/esm/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.mjs +14 -3
  118. package/esm/generated/typegraphql-prisma/models/Trade.d.ts +56 -12
  119. package/esm/generated/typegraphql-prisma/models/Trade.d.ts.map +1 -1
  120. package/esm/generated/typegraphql-prisma/models/Trade.js.map +1 -1
  121. package/esm/generated/typegraphql-prisma/models/Trade.mjs +154 -33
  122. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts +1 -1
  123. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts.map +1 -1
  124. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.js.map +1 -1
  125. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts +1 -1
  126. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts.map +1 -1
  127. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.js.map +1 -1
  128. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts +1 -1
  129. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts.map +1 -1
  130. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.js.map +1 -1
  131. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts +1 -1
  132. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts.map +1 -1
  133. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.js.map +1 -1
  134. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.d.ts +9 -3
  135. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.d.ts.map +1 -1
  136. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.js.map +1 -1
  137. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.mjs +49 -7
  138. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts +14 -3
  139. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts.map +1 -1
  140. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.js.map +1 -1
  141. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.mjs +93 -16
  142. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts +14 -3
  143. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts.map +1 -1
  144. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.js.map +1 -1
  145. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.mjs +98 -21
  146. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts +14 -3
  147. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts.map +1 -1
  148. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.js.map +1 -1
  149. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.mjs +98 -21
  150. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts +14 -3
  151. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts.map +1 -1
  152. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.js.map +1 -1
  153. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.mjs +98 -21
  154. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts +14 -3
  155. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts.map +1 -1
  156. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.js.map +1 -1
  157. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.mjs +93 -16
  158. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts +14 -3
  159. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts.map +1 -1
  160. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.js.map +1 -1
  161. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.mjs +93 -16
  162. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts +14 -3
  163. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts.map +1 -1
  164. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.js.map +1 -1
  165. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.mjs +97 -20
  166. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts +14 -3
  167. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts.map +1 -1
  168. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.js.map +1 -1
  169. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.mjs +97 -20
  170. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts +16 -3
  171. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts.map +1 -1
  172. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.js.map +1 -1
  173. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.mjs +100 -21
  174. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.d.ts +9 -3
  175. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.d.ts.map +1 -1
  176. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.js.map +1 -1
  177. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.mjs +49 -7
  178. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts +16 -3
  179. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts.map +1 -1
  180. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.js.map +1 -1
  181. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.mjs +100 -21
  182. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts +16 -3
  183. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts.map +1 -1
  184. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.js.map +1 -1
  185. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.mjs +100 -21
  186. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts +16 -3
  187. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts.map +1 -1
  188. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.js.map +1 -1
  189. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.mjs +100 -21
  190. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts +16 -3
  191. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts.map +1 -1
  192. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.js.map +1 -1
  193. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.mjs +100 -21
  194. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts +16 -3
  195. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts.map +1 -1
  196. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.js.map +1 -1
  197. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.mjs +100 -21
  198. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.d.ts +14 -3
  199. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.d.ts.map +1 -1
  200. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.js.map +1 -1
  201. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.mjs +98 -21
  202. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.d.ts +9 -3
  203. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.d.ts.map +1 -1
  204. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.js.map +1 -1
  205. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.mjs +49 -7
  206. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts +14 -3
  207. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts.map +1 -1
  208. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.js.map +1 -1
  209. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.mjs +93 -16
  210. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts +14 -3
  211. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts.map +1 -1
  212. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.js.map +1 -1
  213. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.mjs +98 -21
  214. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts +14 -3
  215. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts.map +1 -1
  216. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.js.map +1 -1
  217. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.mjs +98 -21
  218. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts +14 -3
  219. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts.map +1 -1
  220. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.js.map +1 -1
  221. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.mjs +98 -21
  222. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.d.ts +9 -3
  223. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.d.ts.map +1 -1
  224. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.js.map +1 -1
  225. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.mjs +49 -7
  226. package/esm/prismaClient.d.ts +4 -5
  227. package/esm/prismaClient.d.ts.map +1 -1
  228. package/esm/prismaClient.js.map +1 -1
  229. package/esm/prismaClient.mjs +13 -11
  230. package/generated/typeStrings/Trade.cjs +0 -6
  231. package/generated/typeStrings/Trade.d.ts +1 -1
  232. package/generated/typeStrings/Trade.d.ts.map +1 -1
  233. package/generated/typeStrings/Trade.js.map +1 -1
  234. package/generated/typeStrings/index.d.ts +1 -1
  235. package/generated/typegraphql-prisma/enhance.cjs +24 -24
  236. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  237. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.cjs +14 -3
  238. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts +15 -4
  239. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts.map +1 -1
  240. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.js.map +1 -1
  241. package/generated/typegraphql-prisma/models/Trade.cjs +98 -21
  242. package/generated/typegraphql-prisma/models/Trade.d.ts +56 -12
  243. package/generated/typegraphql-prisma/models/Trade.d.ts.map +1 -1
  244. package/generated/typegraphql-prisma/models/Trade.js.map +1 -1
  245. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts +1 -1
  246. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts.map +1 -1
  247. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.js.map +1 -1
  248. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts +1 -1
  249. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts.map +1 -1
  250. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.js.map +1 -1
  251. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts +1 -1
  252. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts.map +1 -1
  253. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.js.map +1 -1
  254. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts +1 -1
  255. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts.map +1 -1
  256. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.js.map +1 -1
  257. package/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.cjs +40 -4
  258. package/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.d.ts +9 -3
  259. package/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.d.ts.map +1 -1
  260. package/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.js.map +1 -1
  261. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.cjs +79 -13
  262. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts +14 -3
  263. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts.map +1 -1
  264. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.js.map +1 -1
  265. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.cjs +84 -18
  266. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts +14 -3
  267. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts.map +1 -1
  268. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.js.map +1 -1
  269. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.cjs +84 -18
  270. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts +14 -3
  271. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts.map +1 -1
  272. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.js.map +1 -1
  273. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.cjs +84 -18
  274. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts +14 -3
  275. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts.map +1 -1
  276. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.js.map +1 -1
  277. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.cjs +79 -13
  278. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts +14 -3
  279. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts.map +1 -1
  280. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.js.map +1 -1
  281. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.cjs +79 -13
  282. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts +14 -3
  283. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts.map +1 -1
  284. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.js.map +1 -1
  285. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.cjs +83 -17
  286. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts +14 -3
  287. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts.map +1 -1
  288. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.js.map +1 -1
  289. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.cjs +83 -17
  290. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts +14 -3
  291. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts.map +1 -1
  292. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.js.map +1 -1
  293. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.cjs +86 -18
  294. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts +16 -3
  295. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts.map +1 -1
  296. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.js.map +1 -1
  297. package/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.cjs +40 -4
  298. package/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.d.ts +9 -3
  299. package/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.d.ts.map +1 -1
  300. package/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.js.map +1 -1
  301. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.cjs +86 -18
  302. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts +16 -3
  303. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts.map +1 -1
  304. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.js.map +1 -1
  305. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.cjs +86 -18
  306. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts +16 -3
  307. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts.map +1 -1
  308. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.js.map +1 -1
  309. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.cjs +86 -18
  310. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts +16 -3
  311. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts.map +1 -1
  312. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.js.map +1 -1
  313. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.cjs +86 -18
  314. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts +16 -3
  315. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts.map +1 -1
  316. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.js.map +1 -1
  317. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.cjs +86 -18
  318. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts +16 -3
  319. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts.map +1 -1
  320. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.js.map +1 -1
  321. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.cjs +84 -18
  322. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.d.ts +14 -3
  323. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.d.ts.map +1 -1
  324. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.js.map +1 -1
  325. package/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.cjs +40 -4
  326. package/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.d.ts +9 -3
  327. package/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.d.ts.map +1 -1
  328. package/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.js.map +1 -1
  329. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.cjs +79 -13
  330. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts +14 -3
  331. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts.map +1 -1
  332. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.js.map +1 -1
  333. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.cjs +84 -18
  334. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts +14 -3
  335. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts.map +1 -1
  336. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.js.map +1 -1
  337. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.cjs +84 -18
  338. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts +14 -3
  339. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts.map +1 -1
  340. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.js.map +1 -1
  341. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.cjs +84 -18
  342. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts +14 -3
  343. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts.map +1 -1
  344. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.js.map +1 -1
  345. package/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.cjs +40 -4
  346. package/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.d.ts +9 -3
  347. package/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.d.ts.map +1 -1
  348. package/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.js.map +1 -1
  349. package/package.json +1 -1
  350. package/prismaClient.cjs +13 -11
  351. package/prismaClient.d.ts +4 -5
  352. package/server.cjs +37 -5
@@ -713,7 +713,7 @@ const modelsInfo = {
713
713
  VerificationToken: ["id", "identifier", "token", "expires"],
714
714
  Customer: ["id", "authUserId", "name", "plan", "stripeCustomerId", "stripeSubscriptionId", "stripePriceId", "stripeCurrentPeriodEnd", "createdAt", "updatedAt"],
715
715
  Asset: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt"],
716
- Trade: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
716
+ Trade: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
717
717
  Action: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "createdAt", "updatedAt", "alpacaOrderId"],
718
718
  Alert: ["id", "alpacaAccountId", "message", "type", "isRead", "createdAt", "updatedAt"],
719
719
  NewsArticle: ["id", "title", "content", "source", "sourceDomain", "url", "sentiment", "authors", "summary", "bannerImage", "timePublished", "category", "topics", "logo", "createdAt", "updatedAt"],
@@ -752,7 +752,7 @@ const outputsInfo = {
752
752
  AggregateAsset: ["_count", "_avg", "_sum", "_min", "_max"],
753
753
  AssetGroupBy: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
754
754
  AggregateTrade: ["_count", "_avg", "_sum", "_min", "_max"],
755
- TradeGroupBy: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "_count", "_avg", "_sum", "_min", "_max"],
755
+ TradeGroupBy: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson", "_count", "_avg", "_sum", "_min", "_max"],
756
756
  AggregateAction: ["_count", "_avg", "_sum", "_min", "_max"],
757
757
  ActionGroupBy: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "createdAt", "updatedAt", "alpacaOrderId", "_count", "_avg", "_sum", "_min", "_max"],
758
758
  AggregateAlert: ["_count", "_min", "_max"],
@@ -815,11 +815,11 @@ const outputsInfo = {
815
815
  AssetMinAggregate: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt"],
816
816
  AssetMaxAggregate: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt"],
817
817
  TradeCount: ["actions"],
818
- TradeCountAggregate: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "_all"],
819
- TradeAvgAggregate: ["qty", "price", "total", "confidence"],
820
- TradeSumAggregate: ["qty", "price", "total", "confidence"],
821
- TradeMinAggregate: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
822
- TradeMaxAggregate: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
818
+ TradeCountAggregate: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson", "_all"],
819
+ TradeAvgAggregate: ["confidence", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "pnlAmount", "pnlPercent", "durationMinutes"],
820
+ TradeSumAggregate: ["confidence", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "pnlAmount", "pnlPercent", "durationMinutes"],
821
+ TradeMinAggregate: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
822
+ TradeMaxAggregate: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
823
823
  ActionCountAggregate: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "createdAt", "updatedAt", "alpacaOrderId", "_all"],
824
824
  ActionAvgAggregate: ["sequence"],
825
825
  ActionSumAggregate: ["sequence"],
@@ -851,7 +851,7 @@ const outputsInfo = {
851
851
  CreateManyAndReturnVerificationToken: ["id", "identifier", "token", "expires"],
852
852
  CreateManyAndReturnCustomer: ["id", "authUserId", "name", "plan", "stripeCustomerId", "stripeSubscriptionId", "stripePriceId", "stripeCurrentPeriodEnd", "createdAt", "updatedAt"],
853
853
  CreateManyAndReturnAsset: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt"],
854
- CreateManyAndReturnTrade: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
854
+ CreateManyAndReturnTrade: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
855
855
  CreateManyAndReturnAction: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "createdAt", "updatedAt", "alpacaOrderId", "trade"],
856
856
  CreateManyAndReturnAlert: ["id", "alpacaAccountId", "message", "type", "isRead", "createdAt", "updatedAt", "alpacaAccount"],
857
857
  CreateManyAndReturnNewsArticle: ["id", "title", "content", "source", "sourceDomain", "url", "sentiment", "authors", "summary", "bannerImage", "timePublished", "category", "topics", "logo", "createdAt", "updatedAt"],
@@ -919,11 +919,11 @@ const inputsInfo = {
919
919
  AssetWhereUniqueInput: ["id", "symbol", "name", "AND", "OR", "NOT", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt", "newsMentions"],
920
920
  AssetOrderByWithAggregationInput: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt", "_count", "_avg", "_max", "_min", "_sum"],
921
921
  AssetScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt"],
922
- TradeWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "actions"],
923
- TradeOrderByWithRelationInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "actions"],
924
- TradeWhereUniqueInput: ["id", "AND", "OR", "NOT", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "actions"],
925
- TradeOrderByWithAggregationInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "_count", "_avg", "_max", "_min", "_sum"],
926
- TradeScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
922
+ TradeWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson", "actions"],
923
+ TradeOrderByWithRelationInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson", "actions"],
924
+ TradeWhereUniqueInput: ["id", "AND", "OR", "NOT", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson", "actions"],
925
+ TradeOrderByWithAggregationInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson", "_count", "_avg", "_max", "_min", "_sum"],
926
+ TradeScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
927
927
  ActionWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "primary", "note", "status", "createdAt", "updatedAt", "alpacaOrderId", "trade"],
928
928
  ActionOrderByWithRelationInput: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "createdAt", "updatedAt", "alpacaOrderId", "trade"],
929
929
  ActionWhereUniqueInput: ["id", "alpacaOrderId", "AND", "OR", "NOT", "sequence", "tradeId", "type", "primary", "note", "status", "createdAt", "updatedAt", "trade"],
@@ -994,10 +994,10 @@ const inputsInfo = {
994
994
  AssetUpdateInput: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt", "newsMentions"],
995
995
  AssetCreateManyInput: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt"],
996
996
  AssetUpdateManyMutationInput: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt"],
997
- TradeCreateInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "actions"],
998
- TradeUpdateInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "actions"],
999
- TradeCreateManyInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
1000
- TradeUpdateManyMutationInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
997
+ TradeCreateInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson", "actions"],
998
+ TradeUpdateInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson", "actions"],
999
+ TradeCreateManyInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
1000
+ TradeUpdateManyMutationInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
1001
1001
  ActionCreateInput: ["id", "sequence", "type", "primary", "note", "status", "createdAt", "updatedAt", "alpacaOrderId", "trade"],
1002
1002
  ActionUpdateInput: ["id", "sequence", "type", "primary", "note", "status", "createdAt", "updatedAt", "alpacaOrderId", "trade"],
1003
1003
  ActionCreateManyInput: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "createdAt", "updatedAt", "alpacaOrderId"],
@@ -1127,11 +1127,11 @@ const inputsInfo = {
1127
1127
  EnumTradeStatusFilter: ["equals", "in", "notIn", "not"],
1128
1128
  ActionListRelationFilter: ["every", "some", "none"],
1129
1129
  ActionOrderByRelationAggregateInput: ["_count"],
1130
- TradeCountOrderByAggregateInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
1131
- TradeAvgOrderByAggregateInput: ["qty", "price", "total", "confidence"],
1132
- TradeMaxOrderByAggregateInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
1133
- TradeMinOrderByAggregateInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
1134
- TradeSumOrderByAggregateInput: ["qty", "price", "total", "confidence"],
1130
+ TradeCountOrderByAggregateInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
1131
+ TradeAvgOrderByAggregateInput: ["confidence", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "pnlAmount", "pnlPercent", "durationMinutes"],
1132
+ TradeMaxOrderByAggregateInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
1133
+ TradeMinOrderByAggregateInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
1134
+ TradeSumOrderByAggregateInput: ["confidence", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "pnlAmount", "pnlPercent", "durationMinutes"],
1135
1135
  EnumTradeSignalWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1136
1136
  EnumTradeStrategyWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1137
1137
  EnumTradeStatusWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
@@ -1384,11 +1384,11 @@ const inputsInfo = {
1384
1384
  ActionUpdateWithWhereUniqueWithoutTradeInput: ["where", "data"],
1385
1385
  ActionUpdateManyWithWhereWithoutTradeInput: ["where", "data"],
1386
1386
  ActionScalarWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "primary", "note", "status", "createdAt", "updatedAt", "alpacaOrderId"],
1387
- TradeCreateWithoutActionsInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
1387
+ TradeCreateWithoutActionsInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
1388
1388
  TradeCreateOrConnectWithoutActionsInput: ["where", "create"],
1389
1389
  TradeUpsertWithoutActionsInput: ["update", "create", "where"],
1390
1390
  TradeUpdateToOneWithWhereWithoutActionsInput: ["where", "data"],
1391
- TradeUpdateWithoutActionsInput: ["id", "alpacaAccountId", "qty", "price", "total", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol"],
1391
+ TradeUpdateWithoutActionsInput: ["id", "alpacaAccountId", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "symbol", "entryPrice", "exitPrice", "entryQty", "exitQty", "entryValue", "exitValue", "entryTime", "exitTime", "pnlAmount", "pnlPercent", "durationMinutes", "marketPhase", "marketVolatility", "thresholdsJson"],
1392
1392
  AlpacaAccountCreateWithoutAlertsInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "realTime", "cryptoTradingEnabled", "cryptoTradingPairs", "cryptoTradeAllocationPct", "tradeAllocationPct", "minPercentageChange", "volumeThreshold", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "createdAt", "updatedAt", "allocation", "user"],
1393
1393
  AlpacaAccountCreateOrConnectWithoutAlertsInput: ["where", "create"],
1394
1394
  AlpacaAccountUpsertWithoutAlertsInput: ["update", "create", "where"],
@@ -1,9 +1,6 @@
1
1
  export declare enum TradeScalarFieldEnum {
2
2
  id = "id",
3
3
  alpacaAccountId = "alpacaAccountId",
4
- qty = "qty",
5
- price = "price",
6
- total = "total",
7
4
  signal = "signal",
8
5
  strategy = "strategy",
9
6
  analysis = "analysis",
@@ -13,6 +10,20 @@ export declare enum TradeScalarFieldEnum {
13
10
  createdAt = "createdAt",
14
11
  updatedAt = "updatedAt",
15
12
  status = "status",
16
- symbol = "symbol"
13
+ symbol = "symbol",
14
+ entryPrice = "entryPrice",
15
+ exitPrice = "exitPrice",
16
+ entryQty = "entryQty",
17
+ exitQty = "exitQty",
18
+ entryValue = "entryValue",
19
+ exitValue = "exitValue",
20
+ entryTime = "entryTime",
21
+ exitTime = "exitTime",
22
+ pnlAmount = "pnlAmount",
23
+ pnlPercent = "pnlPercent",
24
+ durationMinutes = "durationMinutes",
25
+ marketPhase = "marketPhase",
26
+ marketVolatility = "marketVolatility",
27
+ thresholdsJson = "thresholdsJson"
17
28
  }
18
29
  //# sourceMappingURL=TradeScalarFieldEnum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TradeScalarFieldEnum.d.ts","sourceRoot":"","sources":["../../../../../src/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.ts"],"names":[],"mappings":"AAEA,oBAAY,oBAAoB;IAC9B,EAAE,OAAO;IACT,eAAe,oBAAoB;IACnC,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
1
+ {"version":3,"file":"TradeScalarFieldEnum.d.ts","sourceRoot":"","sources":["../../../../../src/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.ts"],"names":[],"mappings":"AAEA,oBAAY,oBAAoB;IAC9B,EAAE,OAAO;IACT,eAAe,oBAAoB;IACnC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TradeScalarFieldEnum.js","sourceRoot":"","sources":["../../../../../src/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAE5C,MAAM,CAAN,IAAY,oBAgBX;AAhBD,WAAY,oBAAoB;IAC9B,iCAAS,CAAA;IACT,2DAAmC,CAAA;IACnC,mCAAW,CAAA;IACX,uCAAe,CAAA;IACf,uCAAe,CAAA;IACf,yCAAiB,CAAA;IACjB,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;IACnB,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,+CAAuB,CAAA;IACvB,+CAAuB,CAAA;IACvB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;AACnB,CAAC,EAhBW,oBAAoB,KAApB,oBAAoB,QAgB/B;AACD,WAAW,CAAC,gBAAgB,CAAC,oBAAoB,EAAE;IACjD,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,SAAS;CACvB,CAAC,CAAC"}
1
+ {"version":3,"file":"TradeScalarFieldEnum.js","sourceRoot":"","sources":["../../../../../src/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAE5C,MAAM,CAAN,IAAY,oBA2BX;AA3BD,WAAY,oBAAoB;IAC9B,iCAAS,CAAA;IACT,2DAAmC,CAAA;IACnC,yCAAiB,CAAA;IACjB,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;IACnB,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,+CAAuB,CAAA;IACvB,+CAAuB,CAAA;IACvB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;IACnB,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,+CAAuB,CAAA;IACvB,6CAAqB,CAAA;IACrB,+CAAuB,CAAA;IACvB,iDAAyB,CAAA;IACzB,2DAAmC,CAAA;IACnC,mDAA2B,CAAA;IAC3B,6DAAqC,CAAA;IACrC,yDAAiC,CAAA;AACnC,CAAC,EA3BW,oBAAoB,KAApB,oBAAoB,QA2B/B;AACD,WAAW,CAAC,gBAAgB,CAAC,oBAAoB,EAAE;IACjD,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,SAAS;CACvB,CAAC,CAAC"}
@@ -3,9 +3,6 @@ export var TradeScalarFieldEnum;
3
3
  (function (TradeScalarFieldEnum) {
4
4
  TradeScalarFieldEnum["id"] = "id";
5
5
  TradeScalarFieldEnum["alpacaAccountId"] = "alpacaAccountId";
6
- TradeScalarFieldEnum["qty"] = "qty";
7
- TradeScalarFieldEnum["price"] = "price";
8
- TradeScalarFieldEnum["total"] = "total";
9
6
  TradeScalarFieldEnum["signal"] = "signal";
10
7
  TradeScalarFieldEnum["strategy"] = "strategy";
11
8
  TradeScalarFieldEnum["analysis"] = "analysis";
@@ -16,6 +13,20 @@ export var TradeScalarFieldEnum;
16
13
  TradeScalarFieldEnum["updatedAt"] = "updatedAt";
17
14
  TradeScalarFieldEnum["status"] = "status";
18
15
  TradeScalarFieldEnum["symbol"] = "symbol";
16
+ TradeScalarFieldEnum["entryPrice"] = "entryPrice";
17
+ TradeScalarFieldEnum["exitPrice"] = "exitPrice";
18
+ TradeScalarFieldEnum["entryQty"] = "entryQty";
19
+ TradeScalarFieldEnum["exitQty"] = "exitQty";
20
+ TradeScalarFieldEnum["entryValue"] = "entryValue";
21
+ TradeScalarFieldEnum["exitValue"] = "exitValue";
22
+ TradeScalarFieldEnum["entryTime"] = "entryTime";
23
+ TradeScalarFieldEnum["exitTime"] = "exitTime";
24
+ TradeScalarFieldEnum["pnlAmount"] = "pnlAmount";
25
+ TradeScalarFieldEnum["pnlPercent"] = "pnlPercent";
26
+ TradeScalarFieldEnum["durationMinutes"] = "durationMinutes";
27
+ TradeScalarFieldEnum["marketPhase"] = "marketPhase";
28
+ TradeScalarFieldEnum["marketVolatility"] = "marketVolatility";
29
+ TradeScalarFieldEnum["thresholdsJson"] = "thresholdsJson";
19
30
  })(TradeScalarFieldEnum || (TradeScalarFieldEnum = {}));
20
31
  TypeGraphQL.registerEnumType(TradeScalarFieldEnum, {
21
32
  name: "TradeScalarFieldEnum",
@@ -9,18 +9,6 @@ export declare class Trade {
9
9
  * Reference to the Alpaca account used for the trade. TYPESTRING.SKIP=true
10
10
  */
11
11
  alpacaAccountId: string;
12
- /**
13
- * Quantity of the asset being traded.
14
- */
15
- qty: number;
16
- /**
17
- * Price at which the asset was traded.
18
- */
19
- price: number;
20
- /**
21
- * Total value of the trade (qty * price).
22
- */
23
- total: number;
24
12
  /**
25
13
  * Signal that triggered the trade.
26
14
  */
@@ -65,6 +53,62 @@ export declare class Trade {
65
53
  * List of actions associated with this trade. TYPESTRING.INCLUDE=[\"id\",\"sequence\",\"type\",\"note\",\"status\", \"order\"] GQL.EXCLUDE=['trade']
66
54
  */
67
55
  actions?: Action[];
56
+ /**
57
+ * Entry price for the trade (average of all entry orders). TYPESTRING.SKIP=true
58
+ */
59
+ entryPrice?: number | null;
60
+ /**
61
+ * Exit price for the trade (average of all exit orders). TYPESTRING.SKIP=true
62
+ */
63
+ exitPrice?: number | null;
64
+ /**
65
+ * Quantity of shares/units entered. TYPESTRING.SKIP=true
66
+ */
67
+ entryQty?: number | null;
68
+ /**
69
+ * Quantity of shares/units exited. TYPESTRING.SKIP=true
70
+ */
71
+ exitQty?: number | null;
72
+ /**
73
+ * Total entry value (price * quantity). TYPESTRING.SKIP=true
74
+ */
75
+ entryValue?: number | null;
76
+ /**
77
+ * Total exit value (price * quantity). TYPESTRING.SKIP=true
78
+ */
79
+ exitValue?: number | null;
80
+ /**
81
+ * When the position was entered. TYPESTRING.SKIP=true
82
+ */
83
+ entryTime?: Date | null;
84
+ /**
85
+ * When the position was exited (null if still open). TYPESTRING.SKIP=true
86
+ */
87
+ exitTime?: Date | null;
88
+ /**
89
+ * Profit/loss amount in currency. TYPESTRING.SKIP=true
90
+ */
91
+ pnlAmount?: number | null;
92
+ /**
93
+ * Profit/loss as a percentage. TYPESTRING.SKIP=true
94
+ */
95
+ pnlPercent?: number | null;
96
+ /**
97
+ * Duration of the trade in minutes. TYPESTRING.SKIP=true
98
+ */
99
+ durationMinutes?: number | null;
100
+ /**
101
+ * Market phase when the trade was entered. TYPESTRING.SKIP=true
102
+ */
103
+ marketPhase?: string | null;
104
+ /**
105
+ * Market volatility when the trade was entered. TYPESTRING.SKIP=true
106
+ */
107
+ marketVolatility?: string | null;
108
+ /**
109
+ * Thresholds used for this trade as JSON. TYPESTRING.SKIP=true
110
+ */
111
+ thresholdsJson?: string | null;
68
112
  _count?: TradeCount | null;
69
113
  }
70
114
  //# sourceMappingURL=Trade.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../../../../src/generated/typegraphql-prisma/models/Trade.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAI1C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,qBACa,KAAK;IAChB;;OAEG;IAKH,EAAE,EAAG,MAAM,CAAC;IAEZ;;OAEG;IAKH,eAAe,EAAG,MAAM,CAAC;IAEzB;;OAEG;IAKH,GAAG,EAAG,MAAM,CAAC;IAEb;;OAEG;IAKH,KAAK,EAAG,MAAM,CAAC;IAEf;;OAEG;IAKH,KAAK,EAAG,MAAM,CAAC;IAEf;;OAEG;IAKH,MAAM,EAAG,cAAc,GAAG,aAAa,GAAG,0BAA0B,GAAG,gBAAgB,GAAG,cAAc,GAAG,gBAAgB,GAAG,0BAA0B,GAAG,gBAAgB,GAAG,cAAc,GAAG,0BAA0B,GAAG,2BAA2B,GAAG,yBAAyB,GAAG,oBAAoB,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,qBAAqB,GAAG,uBAAuB,GAAG,aAAa,GAAG,cAAc,GAAG,sBAAsB,GAAG,uBAAuB,GAAG,4BAA4B,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,eAAe,GAAG,gBAAgB,GAAG,cAAc,GAAG,eAAe,GAAG,aAAa,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,WAAW,CAAC;IAE1rB;;OAEG;IAKH,QAAQ,EAAG,oBAAoB,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,mBAAmB,GAAG,qBAAqB,GAAG,UAAU,GAAG,oBAAoB,GAAG,cAAc,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,aAAa,CAAC;IAEvO;;OAE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,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,+DAA+D;KAC7E,CAAC;;0CAC0B;AAS5B;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,oEAAoE;KAClF,CAAC;;+CAC+B;AASjC;IAJC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;QAClC,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,8DAA8D;KAC5E,CAAC;;6CAC6B;AAK/B;IAHC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,EAAE;QACtC,QAAQ,EAAE,IAAI;KACf,CAAC;;qCACyB;AAnPhB,KAAK;IADjB,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;GACvB,KAAK,CAoPjB"}
@@ -21,18 +21,6 @@ let Trade = class Trade {
21
21
  * Reference to the Alpaca account used for the trade. TYPESTRING.SKIP=true
22
22
  */
23
23
  alpacaAccountId;
24
- /**
25
- * Quantity of the asset being traded.
26
- */
27
- qty;
28
- /**
29
- * Price at which the asset was traded.
30
- */
31
- price;
32
- /**
33
- * Total value of the trade (qty * price).
34
- */
35
- total;
36
24
  /**
37
25
  * Signal that triggered the trade.
38
26
  */
@@ -77,6 +65,62 @@ let Trade = class Trade {
77
65
  * List of actions associated with this trade. TYPESTRING.INCLUDE=[\"id\",\"sequence\",\"type\",\"note\",\"status\", \"order\"] GQL.EXCLUDE=['trade']
78
66
  */
79
67
  actions;
68
+ /**
69
+ * Entry price for the trade (average of all entry orders). TYPESTRING.SKIP=true
70
+ */
71
+ entryPrice;
72
+ /**
73
+ * Exit price for the trade (average of all exit orders). TYPESTRING.SKIP=true
74
+ */
75
+ exitPrice;
76
+ /**
77
+ * Quantity of shares/units entered. TYPESTRING.SKIP=true
78
+ */
79
+ entryQty;
80
+ /**
81
+ * Quantity of shares/units exited. TYPESTRING.SKIP=true
82
+ */
83
+ exitQty;
84
+ /**
85
+ * Total entry value (price * quantity). TYPESTRING.SKIP=true
86
+ */
87
+ entryValue;
88
+ /**
89
+ * Total exit value (price * quantity). TYPESTRING.SKIP=true
90
+ */
91
+ exitValue;
92
+ /**
93
+ * When the position was entered. TYPESTRING.SKIP=true
94
+ */
95
+ entryTime;
96
+ /**
97
+ * When the position was exited (null if still open). TYPESTRING.SKIP=true
98
+ */
99
+ exitTime;
100
+ /**
101
+ * Profit/loss amount in currency. TYPESTRING.SKIP=true
102
+ */
103
+ pnlAmount;
104
+ /**
105
+ * Profit/loss as a percentage. TYPESTRING.SKIP=true
106
+ */
107
+ pnlPercent;
108
+ /**
109
+ * Duration of the trade in minutes. TYPESTRING.SKIP=true
110
+ */
111
+ durationMinutes;
112
+ /**
113
+ * Market phase when the trade was entered. TYPESTRING.SKIP=true
114
+ */
115
+ marketPhase;
116
+ /**
117
+ * Market volatility when the trade was entered. TYPESTRING.SKIP=true
118
+ */
119
+ marketVolatility;
120
+ /**
121
+ * Thresholds used for this trade as JSON. TYPESTRING.SKIP=true
122
+ */
123
+ thresholdsJson;
80
124
  _count;
81
125
  };
82
126
  __decorate([
@@ -93,27 +137,6 @@ __decorate([
93
137
  }),
94
138
  __metadata("design:type", String)
95
139
  ], Trade.prototype, "alpacaAccountId", void 0);
96
- __decorate([
97
- TypeGraphQL.Field(_type => TypeGraphQL.Float, {
98
- nullable: false,
99
- description: "Quantity of the asset being traded."
100
- }),
101
- __metadata("design:type", Number)
102
- ], Trade.prototype, "qty", void 0);
103
- __decorate([
104
- TypeGraphQL.Field(_type => TypeGraphQL.Float, {
105
- nullable: false,
106
- description: "Price at which the asset was traded."
107
- }),
108
- __metadata("design:type", Number)
109
- ], Trade.prototype, "price", void 0);
110
- __decorate([
111
- TypeGraphQL.Field(_type => TypeGraphQL.Float, {
112
- nullable: false,
113
- description: "Total value of the trade (qty * price)."
114
- }),
115
- __metadata("design:type", Number)
116
- ], Trade.prototype, "total", void 0);
117
140
  __decorate([
118
141
  TypeGraphQL.Field(_type => TradeSignal, {
119
142
  nullable: false,
@@ -184,6 +207,104 @@ __decorate([
184
207
  }),
185
208
  __metadata("design:type", String)
186
209
  ], Trade.prototype, "symbol", void 0);
210
+ __decorate([
211
+ TypeGraphQL.Field(_type => TypeGraphQL.Float, {
212
+ nullable: true,
213
+ description: "Entry price for the trade (average of all entry orders). TYPESTRING.SKIP=true"
214
+ }),
215
+ __metadata("design:type", Object)
216
+ ], Trade.prototype, "entryPrice", void 0);
217
+ __decorate([
218
+ TypeGraphQL.Field(_type => TypeGraphQL.Float, {
219
+ nullable: true,
220
+ description: "Exit price for the trade (average of all exit orders). TYPESTRING.SKIP=true"
221
+ }),
222
+ __metadata("design:type", Object)
223
+ ], Trade.prototype, "exitPrice", void 0);
224
+ __decorate([
225
+ TypeGraphQL.Field(_type => TypeGraphQL.Float, {
226
+ nullable: true,
227
+ description: "Quantity of shares/units entered. TYPESTRING.SKIP=true"
228
+ }),
229
+ __metadata("design:type", Object)
230
+ ], Trade.prototype, "entryQty", void 0);
231
+ __decorate([
232
+ TypeGraphQL.Field(_type => TypeGraphQL.Float, {
233
+ nullable: true,
234
+ description: "Quantity of shares/units exited. TYPESTRING.SKIP=true"
235
+ }),
236
+ __metadata("design:type", Object)
237
+ ], Trade.prototype, "exitQty", void 0);
238
+ __decorate([
239
+ TypeGraphQL.Field(_type => TypeGraphQL.Float, {
240
+ nullable: true,
241
+ description: "Total entry value (price * quantity). TYPESTRING.SKIP=true"
242
+ }),
243
+ __metadata("design:type", Object)
244
+ ], Trade.prototype, "entryValue", void 0);
245
+ __decorate([
246
+ TypeGraphQL.Field(_type => TypeGraphQL.Float, {
247
+ nullable: true,
248
+ description: "Total exit value (price * quantity). TYPESTRING.SKIP=true"
249
+ }),
250
+ __metadata("design:type", Object)
251
+ ], Trade.prototype, "exitValue", void 0);
252
+ __decorate([
253
+ TypeGraphQL.Field(_type => Date, {
254
+ nullable: true,
255
+ description: "When the position was entered. TYPESTRING.SKIP=true"
256
+ }),
257
+ __metadata("design:type", Object)
258
+ ], Trade.prototype, "entryTime", void 0);
259
+ __decorate([
260
+ TypeGraphQL.Field(_type => Date, {
261
+ nullable: true,
262
+ description: "When the position was exited (null if still open). TYPESTRING.SKIP=true"
263
+ }),
264
+ __metadata("design:type", Object)
265
+ ], Trade.prototype, "exitTime", void 0);
266
+ __decorate([
267
+ TypeGraphQL.Field(_type => TypeGraphQL.Float, {
268
+ nullable: true,
269
+ description: "Profit/loss amount in currency. TYPESTRING.SKIP=true"
270
+ }),
271
+ __metadata("design:type", Object)
272
+ ], Trade.prototype, "pnlAmount", void 0);
273
+ __decorate([
274
+ TypeGraphQL.Field(_type => TypeGraphQL.Float, {
275
+ nullable: true,
276
+ description: "Profit/loss as a percentage. TYPESTRING.SKIP=true"
277
+ }),
278
+ __metadata("design:type", Object)
279
+ ], Trade.prototype, "pnlPercent", void 0);
280
+ __decorate([
281
+ TypeGraphQL.Field(_type => TypeGraphQL.Float, {
282
+ nullable: true,
283
+ description: "Duration of the trade in minutes. TYPESTRING.SKIP=true"
284
+ }),
285
+ __metadata("design:type", Object)
286
+ ], Trade.prototype, "durationMinutes", void 0);
287
+ __decorate([
288
+ TypeGraphQL.Field(_type => String, {
289
+ nullable: true,
290
+ description: "Market phase when the trade was entered. TYPESTRING.SKIP=true"
291
+ }),
292
+ __metadata("design:type", Object)
293
+ ], Trade.prototype, "marketPhase", void 0);
294
+ __decorate([
295
+ TypeGraphQL.Field(_type => String, {
296
+ nullable: true,
297
+ description: "Market volatility when the trade was entered. TYPESTRING.SKIP=true"
298
+ }),
299
+ __metadata("design:type", Object)
300
+ ], Trade.prototype, "marketVolatility", void 0);
301
+ __decorate([
302
+ TypeGraphQL.Field(_type => String, {
303
+ nullable: true,
304
+ description: "Thresholds used for this trade as JSON. TYPESTRING.SKIP=true"
305
+ }),
306
+ __metadata("design:type", Object)
307
+ ], Trade.prototype, "thresholdsJson", void 0);
187
308
  __decorate([
188
309
  TypeGraphQL.Field(_type => TradeCount, {
189
310
  nullable: true
@@ -7,6 +7,6 @@ export declare class FindFirstTradeArgs {
7
7
  cursor?: TradeWhereUniqueInput | undefined;
8
8
  take?: number | undefined;
9
9
  skip?: number | undefined;
10
- distinct?: Array<"id" | "alpacaAccountId" | "qty" | "price" | "total" | "signal" | "strategy" | "analysis" | "summary" | "confidence" | "timestamp" | "createdAt" | "updatedAt" | "status" | "symbol"> | undefined;
10
+ distinct?: Array<"id" | "alpacaAccountId" | "signal" | "strategy" | "analysis" | "summary" | "confidence" | "timestamp" | "createdAt" | "updatedAt" | "status" | "symbol" | "entryPrice" | "exitPrice" | "entryQty" | "exitQty" | "entryValue" | "exitValue" | "entryTime" | "exitTime" | "pnlAmount" | "pnlPercent" | "durationMinutes" | "marketPhase" | "marketVolatility" | "thresholdsJson"> | undefined;
11
11
  }
12
12
  //# sourceMappingURL=FindFirstTradeArgs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FindFirstTradeArgs.d.ts","sourceRoot":"","sources":["../../../../../../../../src/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAG9E,qBACa,kBAAkB;IAI7B,KAAK,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAKpC,OAAO,CAAC,EAAE,6BAA6B,EAAE,GAAG,SAAS,CAAC;IAKtD,MAAM,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAK3C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAK1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAK1B,QAAQ,C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