adaptic-backend 1.0.338 → 1.0.340

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 (255) hide show
  1. package/Action.cjs +196 -42
  2. package/Trade.cjs +182 -39
  3. package/esm/Action.d.ts.map +1 -1
  4. package/esm/Action.js.map +1 -1
  5. package/esm/Action.mjs +196 -42
  6. package/esm/Trade.d.ts.map +1 -1
  7. package/esm/Trade.js.map +1 -1
  8. package/esm/Trade.mjs +182 -39
  9. package/esm/generated/selectionSets/Trade.d.ts +1 -1
  10. package/esm/generated/selectionSets/Trade.d.ts.map +1 -1
  11. package/esm/generated/selectionSets/Trade.js.map +1 -1
  12. package/esm/generated/selectionSets/Trade.mjs +14 -3
  13. package/esm/generated/typeStrings/Trade.d.ts +1 -1
  14. package/esm/generated/typeStrings/Trade.d.ts.map +1 -1
  15. package/esm/generated/typeStrings/Trade.js.map +1 -1
  16. package/esm/generated/typeStrings/Trade.mjs +0 -6
  17. package/esm/generated/typeStrings/index.d.ts +1 -1
  18. package/esm/generated/typegraphql-prisma/enhance.js.map +1 -1
  19. package/esm/generated/typegraphql-prisma/enhance.mjs +24 -24
  20. package/esm/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts +15 -4
  21. package/esm/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts.map +1 -1
  22. package/esm/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.js.map +1 -1
  23. package/esm/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.mjs +14 -3
  24. package/esm/generated/typegraphql-prisma/models/Trade.d.ts +56 -12
  25. package/esm/generated/typegraphql-prisma/models/Trade.d.ts.map +1 -1
  26. package/esm/generated/typegraphql-prisma/models/Trade.js.map +1 -1
  27. package/esm/generated/typegraphql-prisma/models/Trade.mjs +154 -33
  28. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts +1 -1
  29. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts.map +1 -1
  30. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.js.map +1 -1
  31. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts +1 -1
  32. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts.map +1 -1
  33. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.js.map +1 -1
  34. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts +1 -1
  35. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts.map +1 -1
  36. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.js.map +1 -1
  37. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts +1 -1
  38. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts.map +1 -1
  39. package/esm/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.js.map +1 -1
  40. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.d.ts +9 -3
  41. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.d.ts.map +1 -1
  42. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.js.map +1 -1
  43. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.mjs +49 -7
  44. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts +14 -3
  45. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts.map +1 -1
  46. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.js.map +1 -1
  47. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.mjs +93 -16
  48. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts +14 -3
  49. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts.map +1 -1
  50. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.js.map +1 -1
  51. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.mjs +98 -21
  52. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts +14 -3
  53. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts.map +1 -1
  54. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.js.map +1 -1
  55. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.mjs +98 -21
  56. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts +14 -3
  57. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts.map +1 -1
  58. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.js.map +1 -1
  59. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.mjs +98 -21
  60. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts +14 -3
  61. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts.map +1 -1
  62. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.js.map +1 -1
  63. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.mjs +93 -16
  64. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts +14 -3
  65. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts.map +1 -1
  66. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.js.map +1 -1
  67. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.mjs +93 -16
  68. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts +14 -3
  69. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts.map +1 -1
  70. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.js.map +1 -1
  71. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.mjs +97 -20
  72. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts +14 -3
  73. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts.map +1 -1
  74. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.js.map +1 -1
  75. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.mjs +97 -20
  76. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts +16 -3
  77. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts.map +1 -1
  78. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.js.map +1 -1
  79. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.mjs +100 -21
  80. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.d.ts +9 -3
  81. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.d.ts.map +1 -1
  82. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.js.map +1 -1
  83. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.mjs +49 -7
  84. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts +16 -3
  85. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts.map +1 -1
  86. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.js.map +1 -1
  87. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.mjs +100 -21
  88. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts +16 -3
  89. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts.map +1 -1
  90. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.js.map +1 -1
  91. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.mjs +100 -21
  92. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts +16 -3
  93. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts.map +1 -1
  94. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.js.map +1 -1
  95. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.mjs +100 -21
  96. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts +16 -3
  97. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts.map +1 -1
  98. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.js.map +1 -1
  99. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.mjs +100 -21
  100. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts +16 -3
  101. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts.map +1 -1
  102. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.js.map +1 -1
  103. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.mjs +100 -21
  104. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.d.ts +14 -3
  105. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.d.ts.map +1 -1
  106. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.js.map +1 -1
  107. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.mjs +98 -21
  108. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.d.ts +9 -3
  109. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.d.ts.map +1 -1
  110. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.js.map +1 -1
  111. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.mjs +49 -7
  112. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts +14 -3
  113. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts.map +1 -1
  114. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.js.map +1 -1
  115. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.mjs +93 -16
  116. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts +14 -3
  117. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts.map +1 -1
  118. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.js.map +1 -1
  119. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.mjs +98 -21
  120. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts +14 -3
  121. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts.map +1 -1
  122. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.js.map +1 -1
  123. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.mjs +98 -21
  124. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts +14 -3
  125. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts.map +1 -1
  126. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.js.map +1 -1
  127. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.mjs +98 -21
  128. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.d.ts +9 -3
  129. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.d.ts.map +1 -1
  130. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.js.map +1 -1
  131. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.mjs +49 -7
  132. package/esm/middleware/auth.d.ts.map +1 -1
  133. package/esm/middleware/auth.js.map +1 -1
  134. package/esm/middleware/auth.mjs +9 -2
  135. package/generated/typeStrings/Trade.cjs +0 -6
  136. package/generated/typeStrings/Trade.d.ts +1 -1
  137. package/generated/typeStrings/Trade.d.ts.map +1 -1
  138. package/generated/typeStrings/Trade.js.map +1 -1
  139. package/generated/typeStrings/index.d.ts +1 -1
  140. package/generated/typegraphql-prisma/enhance.cjs +24 -24
  141. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  142. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.cjs +14 -3
  143. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts +15 -4
  144. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.d.ts.map +1 -1
  145. package/generated/typegraphql-prisma/enums/TradeScalarFieldEnum.js.map +1 -1
  146. package/generated/typegraphql-prisma/models/Trade.cjs +98 -21
  147. package/generated/typegraphql-prisma/models/Trade.d.ts +56 -12
  148. package/generated/typegraphql-prisma/models/Trade.d.ts.map +1 -1
  149. package/generated/typegraphql-prisma/models/Trade.js.map +1 -1
  150. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts +1 -1
  151. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.d.ts.map +1 -1
  152. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeArgs.js.map +1 -1
  153. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts +1 -1
  154. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.d.ts.map +1 -1
  155. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindFirstTradeOrThrowArgs.js.map +1 -1
  156. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts +1 -1
  157. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.d.ts.map +1 -1
  158. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/FindManyTradeArgs.js.map +1 -1
  159. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts +1 -1
  160. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.d.ts.map +1 -1
  161. package/generated/typegraphql-prisma/resolvers/crud/Trade/args/GroupByTradeArgs.js.map +1 -1
  162. package/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.cjs +40 -4
  163. package/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.d.ts +9 -3
  164. package/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.d.ts.map +1 -1
  165. package/generated/typegraphql-prisma/resolvers/inputs/TradeAvgOrderByAggregateInput.js.map +1 -1
  166. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.cjs +79 -13
  167. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts +14 -3
  168. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.d.ts.map +1 -1
  169. package/generated/typegraphql-prisma/resolvers/inputs/TradeCountOrderByAggregateInput.js.map +1 -1
  170. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.cjs +84 -18
  171. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts +14 -3
  172. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.d.ts.map +1 -1
  173. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.js.map +1 -1
  174. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.cjs +84 -18
  175. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts +14 -3
  176. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.d.ts.map +1 -1
  177. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.js.map +1 -1
  178. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.cjs +84 -18
  179. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts +14 -3
  180. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.d.ts.map +1 -1
  181. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.js.map +1 -1
  182. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.cjs +79 -13
  183. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts +14 -3
  184. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.d.ts.map +1 -1
  185. package/generated/typegraphql-prisma/resolvers/inputs/TradeMaxOrderByAggregateInput.js.map +1 -1
  186. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.cjs +79 -13
  187. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts +14 -3
  188. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.d.ts.map +1 -1
  189. package/generated/typegraphql-prisma/resolvers/inputs/TradeMinOrderByAggregateInput.js.map +1 -1
  190. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.cjs +83 -17
  191. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts +14 -3
  192. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.d.ts.map +1 -1
  193. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithAggregationInput.js.map +1 -1
  194. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.cjs +83 -17
  195. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts +14 -3
  196. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.d.ts.map +1 -1
  197. package/generated/typegraphql-prisma/resolvers/inputs/TradeOrderByWithRelationInput.js.map +1 -1
  198. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.cjs +86 -18
  199. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts +16 -3
  200. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts.map +1 -1
  201. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.js.map +1 -1
  202. package/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.cjs +40 -4
  203. package/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.d.ts +9 -3
  204. package/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.d.ts.map +1 -1
  205. package/generated/typegraphql-prisma/resolvers/inputs/TradeSumOrderByAggregateInput.js.map +1 -1
  206. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.cjs +86 -18
  207. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts +16 -3
  208. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts.map +1 -1
  209. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.js.map +1 -1
  210. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.cjs +86 -18
  211. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts +16 -3
  212. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts.map +1 -1
  213. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.js.map +1 -1
  214. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.cjs +86 -18
  215. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts +16 -3
  216. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts.map +1 -1
  217. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.js.map +1 -1
  218. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.cjs +86 -18
  219. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts +16 -3
  220. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts.map +1 -1
  221. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.js.map +1 -1
  222. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.cjs +86 -18
  223. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts +16 -3
  224. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts.map +1 -1
  225. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.js.map +1 -1
  226. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.cjs +84 -18
  227. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.d.ts +14 -3
  228. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.d.ts.map +1 -1
  229. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTrade.js.map +1 -1
  230. package/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.cjs +40 -4
  231. package/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.d.ts +9 -3
  232. package/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.d.ts.map +1 -1
  233. package/generated/typegraphql-prisma/resolvers/outputs/TradeAvgAggregate.js.map +1 -1
  234. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.cjs +79 -13
  235. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts +14 -3
  236. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.d.ts.map +1 -1
  237. package/generated/typegraphql-prisma/resolvers/outputs/TradeCountAggregate.js.map +1 -1
  238. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.cjs +84 -18
  239. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts +14 -3
  240. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.d.ts.map +1 -1
  241. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.js.map +1 -1
  242. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.cjs +84 -18
  243. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts +14 -3
  244. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.d.ts.map +1 -1
  245. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.js.map +1 -1
  246. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.cjs +84 -18
  247. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts +14 -3
  248. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.d.ts.map +1 -1
  249. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.js.map +1 -1
  250. package/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.cjs +40 -4
  251. package/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.d.ts +9 -3
  252. package/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.d.ts.map +1 -1
  253. package/generated/typegraphql-prisma/resolvers/outputs/TradeSumAggregate.js.map +1 -1
  254. package/package.json +1 -1
  255. package/server.cjs +16 -2
@@ -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;AAI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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,CAAC,EAAE,KAAK,CAAC,IAAI,GAAG,iBAAiB,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAAG,SAAS,CAAC;CACpN"}
1
+ {"version":3,"file":"FindFirstTradeArgs.d.ts","sourceRoot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