adaptic-backend 1.0.67 → 1.0.69

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 (488) hide show
  1. package/Account.cjs +12 -0
  2. package/Action.cjs +30 -0
  3. package/Alert.cjs +34 -0
  4. package/AlpacaAccount.cjs +30 -0
  5. package/Asset.cjs +30 -0
  6. package/Authenticator.cjs +12 -0
  7. package/Customer.cjs +12 -0
  8. package/NewsArticle.cjs +12 -0
  9. package/NewsArticleAssetSentiment.cjs +34 -0
  10. package/Order.cjs +28 -0
  11. package/Position.cjs +56 -0
  12. package/README.md +1 -1
  13. package/Session.cjs +12 -0
  14. package/Trade.cjs +78 -0
  15. package/User.cjs +34 -0
  16. package/generated/typeStrings/Account.cjs +13 -78
  17. package/generated/typeStrings/Account.d.ts +1 -1
  18. package/generated/typeStrings/Account.d.ts.map +1 -1
  19. package/generated/typeStrings/Account.js.map +1 -1
  20. package/generated/typeStrings/Action.cjs +10 -71
  21. package/generated/typeStrings/Action.d.ts +1 -1
  22. package/generated/typeStrings/Action.d.ts.map +1 -1
  23. package/generated/typeStrings/Action.js.map +1 -1
  24. package/generated/typeStrings/Alert.cjs +10 -84
  25. package/generated/typeStrings/Alert.d.ts +1 -1
  26. package/generated/typeStrings/Alert.d.ts.map +1 -1
  27. package/generated/typeStrings/Alert.js.map +1 -1
  28. package/generated/typeStrings/AlpacaAccount.cjs +15 -88
  29. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  30. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  31. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  32. package/generated/typeStrings/Asset.cjs +12 -85
  33. package/generated/typeStrings/Asset.d.ts +1 -1
  34. package/generated/typeStrings/Asset.d.ts.map +1 -1
  35. package/generated/typeStrings/Asset.js.map +1 -1
  36. package/generated/typeStrings/Authenticator.cjs +13 -78
  37. package/generated/typeStrings/Authenticator.d.ts +1 -1
  38. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  39. package/generated/typeStrings/Authenticator.js.map +1 -1
  40. package/generated/typeStrings/Customer.cjs +13 -78
  41. package/generated/typeStrings/Customer.d.ts +1 -1
  42. package/generated/typeStrings/Customer.d.ts.map +1 -1
  43. package/generated/typeStrings/Customer.js.map +1 -1
  44. package/generated/typeStrings/EconomicEvent.cjs +1 -7
  45. package/generated/typeStrings/EconomicEvent.d.ts +1 -1
  46. package/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  47. package/generated/typeStrings/EconomicEvent.js.map +1 -1
  48. package/generated/typeStrings/NewsArticle.cjs +9 -46
  49. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  50. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  51. package/generated/typeStrings/NewsArticle.js.map +1 -1
  52. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +6 -58
  53. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  54. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  55. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  56. package/generated/typeStrings/Order.cjs +14 -85
  57. package/generated/typeStrings/Order.d.ts +1 -1
  58. package/generated/typeStrings/Order.d.ts.map +1 -1
  59. package/generated/typeStrings/Order.js.map +1 -1
  60. package/generated/typeStrings/Position.cjs +7 -55
  61. package/generated/typeStrings/Position.d.ts +1 -1
  62. package/generated/typeStrings/Position.d.ts.map +1 -1
  63. package/generated/typeStrings/Position.js.map +1 -1
  64. package/generated/typeStrings/Session.cjs +13 -78
  65. package/generated/typeStrings/Session.d.ts +1 -1
  66. package/generated/typeStrings/Session.d.ts.map +1 -1
  67. package/generated/typeStrings/Session.js.map +1 -1
  68. package/generated/typeStrings/Trade.cjs +14 -85
  69. package/generated/typeStrings/Trade.d.ts +1 -1
  70. package/generated/typeStrings/Trade.d.ts.map +1 -1
  71. package/generated/typeStrings/Trade.js.map +1 -1
  72. package/generated/typeStrings/User.cjs +10 -84
  73. package/generated/typeStrings/User.d.ts +1 -1
  74. package/generated/typeStrings/User.d.ts.map +1 -1
  75. package/generated/typeStrings/User.js.map +1 -1
  76. package/generated/typeStrings/VerificationToken.cjs +1 -3
  77. package/generated/typeStrings/VerificationToken.d.ts +1 -1
  78. package/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  79. package/generated/typeStrings/VerificationToken.js.map +1 -1
  80. package/generated/typeStrings/index.d.ts +16 -16
  81. package/generated/typeStrings/index.d.ts.map +1 -1
  82. package/generated/typeStrings/index.js.map +1 -1
  83. package/generated/typegraphql-prisma/enhance.cjs +31 -31
  84. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  85. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.cjs +2 -0
  86. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +3 -1
  87. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
  88. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
  89. package/generated/typegraphql-prisma/models/Order.cjs +13 -0
  90. package/generated/typegraphql-prisma/models/Order.d.ts +5 -0
  91. package/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
  92. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  93. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
  94. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
  95. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
  96. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
  97. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
  98. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
  99. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
  100. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
  101. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
  102. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
  103. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
  104. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
  105. package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.cjs +12 -0
  106. package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts +2 -0
  107. package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts.map +1 -1
  108. package/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.js.map +1 -1
  109. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.cjs +12 -0
  110. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +2 -0
  111. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
  112. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
  113. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.cjs +12 -0
  114. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +2 -0
  115. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
  116. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
  117. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.cjs +12 -0
  118. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +2 -0
  119. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
  120. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
  121. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.cjs +12 -0
  122. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +2 -0
  123. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
  124. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
  125. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.cjs +12 -0
  126. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +2 -0
  127. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
  128. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
  129. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.cjs +12 -0
  130. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +2 -0
  131. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
  132. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
  133. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.cjs +12 -0
  134. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +2 -0
  135. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  136. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
  137. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.cjs +12 -0
  138. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +2 -0
  139. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
  140. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
  141. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.cjs +12 -0
  142. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +2 -0
  143. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
  144. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
  145. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.cjs +12 -0
  146. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +2 -0
  147. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
  148. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
  149. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.cjs +12 -0
  150. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +2 -0
  151. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
  152. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
  153. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.cjs +12 -0
  154. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +2 -0
  155. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
  156. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
  157. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.cjs +13 -0
  158. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +3 -0
  159. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
  160. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
  161. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.cjs +13 -0
  162. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +3 -0
  163. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
  164. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
  165. package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.cjs +12 -0
  166. package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts +2 -0
  167. package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts.map +1 -1
  168. package/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.js.map +1 -1
  169. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.cjs +13 -0
  170. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +3 -0
  171. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
  172. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
  173. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.cjs +13 -0
  174. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +3 -0
  175. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
  176. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
  177. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.cjs +13 -0
  178. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +3 -0
  179. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
  180. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
  181. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.cjs +13 -0
  182. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +3 -0
  183. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  184. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
  185. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.cjs +13 -0
  186. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +3 -0
  187. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
  188. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
  189. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.cjs +13 -0
  190. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +3 -0
  191. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
  192. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
  193. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.cjs +13 -0
  194. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +3 -0
  195. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  196. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  197. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.cjs +12 -0
  198. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +2 -0
  199. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
  200. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
  201. package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.cjs +12 -0
  202. package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts +2 -0
  203. package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts.map +1 -1
  204. package/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.js.map +1 -1
  205. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.cjs +12 -0
  206. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +2 -0
  207. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
  208. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
  209. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.cjs +12 -0
  210. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +2 -0
  211. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
  212. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
  213. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.cjs +12 -0
  214. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +2 -0
  215. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
  216. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
  217. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.cjs +12 -0
  218. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +2 -0
  219. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
  220. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
  221. package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.cjs +12 -0
  222. package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts +2 -0
  223. package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts.map +1 -1
  224. package/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.js.map +1 -1
  225. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
  226. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
  227. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
  228. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
  229. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
  230. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
  231. package/package.json +1 -1
  232. package/server/Account.d.ts.map +1 -1
  233. package/server/Account.js.map +1 -1
  234. package/server/Account.mjs +12 -0
  235. package/server/Action.d.ts.map +1 -1
  236. package/server/Action.js.map +1 -1
  237. package/server/Action.mjs +30 -0
  238. package/server/Alert.d.ts.map +1 -1
  239. package/server/Alert.js.map +1 -1
  240. package/server/Alert.mjs +34 -0
  241. package/server/AlpacaAccount.d.ts.map +1 -1
  242. package/server/AlpacaAccount.js.map +1 -1
  243. package/server/AlpacaAccount.mjs +30 -0
  244. package/server/Asset.d.ts.map +1 -1
  245. package/server/Asset.js.map +1 -1
  246. package/server/Asset.mjs +30 -0
  247. package/server/Authenticator.d.ts.map +1 -1
  248. package/server/Authenticator.js.map +1 -1
  249. package/server/Authenticator.mjs +12 -0
  250. package/server/Customer.d.ts.map +1 -1
  251. package/server/Customer.js.map +1 -1
  252. package/server/Customer.mjs +12 -0
  253. package/server/NewsArticle.d.ts.map +1 -1
  254. package/server/NewsArticle.js.map +1 -1
  255. package/server/NewsArticle.mjs +12 -0
  256. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  257. package/server/NewsArticleAssetSentiment.js.map +1 -1
  258. package/server/NewsArticleAssetSentiment.mjs +34 -0
  259. package/server/Order.d.ts.map +1 -1
  260. package/server/Order.js.map +1 -1
  261. package/server/Order.mjs +28 -0
  262. package/server/Position.d.ts.map +1 -1
  263. package/server/Position.js.map +1 -1
  264. package/server/Position.mjs +56 -0
  265. package/server/Session.d.ts.map +1 -1
  266. package/server/Session.js.map +1 -1
  267. package/server/Session.mjs +12 -0
  268. package/server/Trade.d.ts.map +1 -1
  269. package/server/Trade.js.map +1 -1
  270. package/server/Trade.mjs +78 -0
  271. package/server/User.d.ts.map +1 -1
  272. package/server/User.js.map +1 -1
  273. package/server/User.mjs +34 -0
  274. package/server/generated/typeStrings/Account.d.ts +1 -1
  275. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  276. package/server/generated/typeStrings/Account.js.map +1 -1
  277. package/server/generated/typeStrings/Account.mjs +13 -78
  278. package/server/generated/typeStrings/Action.d.ts +1 -1
  279. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  280. package/server/generated/typeStrings/Action.js.map +1 -1
  281. package/server/generated/typeStrings/Action.mjs +10 -71
  282. package/server/generated/typeStrings/Alert.d.ts +1 -1
  283. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  284. package/server/generated/typeStrings/Alert.js.map +1 -1
  285. package/server/generated/typeStrings/Alert.mjs +10 -84
  286. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  287. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  288. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  289. package/server/generated/typeStrings/AlpacaAccount.mjs +15 -88
  290. package/server/generated/typeStrings/Asset.d.ts +1 -1
  291. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  292. package/server/generated/typeStrings/Asset.js.map +1 -1
  293. package/server/generated/typeStrings/Asset.mjs +12 -85
  294. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  295. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  296. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  297. package/server/generated/typeStrings/Authenticator.mjs +13 -78
  298. package/server/generated/typeStrings/Customer.d.ts +1 -1
  299. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  300. package/server/generated/typeStrings/Customer.js.map +1 -1
  301. package/server/generated/typeStrings/Customer.mjs +13 -78
  302. package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
  303. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  304. package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
  305. package/server/generated/typeStrings/EconomicEvent.mjs +1 -7
  306. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  307. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  308. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  309. package/server/generated/typeStrings/NewsArticle.mjs +9 -46
  310. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  311. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  312. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  313. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +6 -58
  314. package/server/generated/typeStrings/Order.d.ts +1 -1
  315. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  316. package/server/generated/typeStrings/Order.js.map +1 -1
  317. package/server/generated/typeStrings/Order.mjs +14 -85
  318. package/server/generated/typeStrings/Position.d.ts +1 -1
  319. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  320. package/server/generated/typeStrings/Position.js.map +1 -1
  321. package/server/generated/typeStrings/Position.mjs +7 -55
  322. package/server/generated/typeStrings/Session.d.ts +1 -1
  323. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  324. package/server/generated/typeStrings/Session.js.map +1 -1
  325. package/server/generated/typeStrings/Session.mjs +13 -78
  326. package/server/generated/typeStrings/Trade.d.ts +1 -1
  327. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  328. package/server/generated/typeStrings/Trade.js.map +1 -1
  329. package/server/generated/typeStrings/Trade.mjs +14 -85
  330. package/server/generated/typeStrings/User.d.ts +1 -1
  331. package/server/generated/typeStrings/User.d.ts.map +1 -1
  332. package/server/generated/typeStrings/User.js.map +1 -1
  333. package/server/generated/typeStrings/User.mjs +10 -84
  334. package/server/generated/typeStrings/VerificationToken.d.ts +1 -1
  335. package/server/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  336. package/server/generated/typeStrings/VerificationToken.js.map +1 -1
  337. package/server/generated/typeStrings/VerificationToken.mjs +1 -3
  338. package/server/generated/typeStrings/index.d.ts +16 -16
  339. package/server/generated/typeStrings/index.d.ts.map +1 -1
  340. package/server/generated/typeStrings/index.js.map +1 -1
  341. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  342. package/server/generated/typegraphql-prisma/enhance.mjs +31 -31
  343. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +3 -1
  344. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
  345. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
  346. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.mjs +2 -0
  347. package/server/generated/typegraphql-prisma/models/Order.d.ts +5 -0
  348. package/server/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
  349. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  350. package/server/generated/typegraphql-prisma/models/Order.mjs +18 -0
  351. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
  352. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
  353. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
  354. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
  355. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
  356. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
  357. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
  358. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
  359. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
  360. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
  361. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
  362. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
  363. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts +2 -0
  364. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.d.ts.map +1 -1
  365. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.js.map +1 -1
  366. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderAvgOrderByAggregateInput.mjs +14 -0
  367. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +2 -0
  368. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
  369. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
  370. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.mjs +14 -0
  371. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +2 -0
  372. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
  373. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
  374. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.mjs +14 -0
  375. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +2 -0
  376. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
  377. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
  378. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.mjs +14 -0
  379. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +2 -0
  380. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
  381. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
  382. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.mjs +14 -0
  383. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +2 -0
  384. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
  385. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
  386. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.mjs +14 -0
  387. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +2 -0
  388. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
  389. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
  390. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.mjs +14 -0
  391. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +2 -0
  392. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  393. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
  394. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.mjs +14 -0
  395. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +2 -0
  396. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
  397. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
  398. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.mjs +14 -0
  399. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +2 -0
  400. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
  401. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
  402. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.mjs +14 -0
  403. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +2 -0
  404. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
  405. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
  406. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.mjs +14 -0
  407. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +2 -0
  408. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
  409. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
  410. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.mjs +14 -0
  411. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +2 -0
  412. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
  413. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
  414. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.mjs +14 -0
  415. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +3 -0
  416. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
  417. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
  418. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.mjs +15 -0
  419. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +3 -0
  420. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
  421. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
  422. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.mjs +15 -0
  423. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts +2 -0
  424. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.d.ts.map +1 -1
  425. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.js.map +1 -1
  426. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderSumOrderByAggregateInput.mjs +14 -0
  427. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +3 -0
  428. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
  429. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
  430. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.mjs +15 -0
  431. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +3 -0
  432. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
  433. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
  434. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.mjs +15 -0
  435. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +3 -0
  436. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
  437. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
  438. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.mjs +15 -0
  439. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +3 -0
  440. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  441. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
  442. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.mjs +15 -0
  443. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +3 -0
  444. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
  445. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
  446. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.mjs +15 -0
  447. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +3 -0
  448. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
  449. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
  450. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.mjs +15 -0
  451. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +3 -0
  452. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  453. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  454. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.mjs +15 -0
  455. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +2 -0
  456. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
  457. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
  458. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.mjs +14 -0
  459. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts +2 -0
  460. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.d.ts.map +1 -1
  461. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.js.map +1 -1
  462. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderAvgAggregate.mjs +14 -0
  463. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +2 -0
  464. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
  465. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
  466. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.mjs +14 -0
  467. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +2 -0
  468. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
  469. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
  470. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.mjs +14 -0
  471. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +2 -0
  472. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
  473. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
  474. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.mjs +14 -0
  475. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +2 -0
  476. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
  477. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
  478. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.mjs +14 -0
  479. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts +2 -0
  480. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.d.ts.map +1 -1
  481. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.js.map +1 -1
  482. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderSumAggregate.mjs +14 -0
  483. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
  484. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
  485. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
  486. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
  487. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
  488. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
@@ -6,9 +6,7 @@ Your response should adhere to the following type definition for the "Session" t
6
6
 
7
7
  Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
8
8
 
9
- export interface Session {
10
- // Unique identifier for the session.
11
- id: string;
9
+ export type Session = {
12
10
  // Token associated with the session for authentication.
13
11
  sessionToken: string;
14
12
  // Reference to the user who owns this session.
@@ -17,10 +15,6 @@ export interface Session {
17
15
  expires: Date;
18
16
  // Relation to the User model.
19
17
  user: User;
20
- // Timestamp when the session was created.
21
- createdAt: Date;
22
- // Timestamp when the session was last updated.
23
- updatedAt: Date;
24
18
  }
25
19
 
26
20
  export enum UserRole {
@@ -40,9 +34,7 @@ export enum SubscriptionPlan {
40
34
  BUSINESS = "BUSINESS"
41
35
  }
42
36
 
43
- export interface Customer {
44
- // Unique identifier for the customer.
45
- id: number;
37
+ export type Customer = {
46
38
  // Reference to the authenticated user associated with the customer.
47
39
  authUserId: string;
48
40
  // Name of the customer.
@@ -57,17 +49,11 @@ export interface Customer {
57
49
  stripePriceId?: string;
58
50
  // End date of the current billing period in Stripe.
59
51
  stripeCurrentPeriodEnd?: Date;
60
- // Timestamp when the customer was created.
61
- createdAt: Date;
62
- // Timestamp when the customer was last updated.
63
- updatedAt: Date;
64
52
  // List of users associated with the customer.
65
53
  users: User[];
66
54
  }
67
55
 
68
- export interface Account {
69
- // Unique identifier for the account.
70
- id: string;
56
+ export type Account = {
71
57
  // Reference to the user who owns this account.
72
58
  userId: string;
73
59
  // Type of the account (e.g., OAuth provider).
@@ -90,17 +76,11 @@ export interface Account {
90
76
  id_token?: string;
91
77
  // State of the session associated with the account.
92
78
  session_state?: string;
93
- // Timestamp when the account was created.
94
- createdAt: Date;
95
- // Timestamp when the account was last updated.
96
- updatedAt: Date;
97
79
  // Relation to the User model.
98
80
  user: User;
99
81
  }
100
82
 
101
- export interface Authenticator {
102
- // Unique identifier for the authenticator.
103
- id: string;
83
+ export type Authenticator = {
104
84
  // Reference to the user who owns this authenticator.
105
85
  userId: string;
106
86
  // Unique credential ID for the authenticator.
@@ -111,10 +91,6 @@ export interface Authenticator {
111
91
  counter: number;
112
92
  // Relation to the User model.
113
93
  user: User;
114
- // Timestamp when the authenticator was created.
115
- createdAt: Date;
116
- // Timestamp when the authenticator was last updated.
117
- updatedAt: Date;
118
94
  }
119
95
 
120
96
  export enum TradeStatus {
@@ -124,26 +100,12 @@ export enum TradeStatus {
124
100
  COMPLETED = "COMPLETED"
125
101
  }
126
102
 
127
- // Simplified reference to Asset.
128
- export interface Asset {
129
- // Unique identifier for the asset.
130
- id: string;
131
- }
132
-
133
103
  export enum OptionContractType {
134
104
  CALL = "CALL",
135
105
  PUT = "PUT"
136
106
  }
137
107
 
138
- // Simplified reference to Action.
139
- export interface Action {
140
- // Unique identifier for the action.
141
- id: string;
142
- }
143
-
144
- export interface Trade {
145
- // Unique identifier for the trade.
146
- id: string;
108
+ export type Trade = {
147
109
  // Reference to the Alpaca account used for the trade.
148
110
  alpacaAccountId: string;
149
111
  // Reference to the asset being traded.
@@ -164,10 +126,6 @@ export interface Trade {
164
126
  confidence: number;
165
127
  // Timestamp when the trade was executed.
166
128
  timestamp: Date;
167
- // Timestamp when the trade record was created.
168
- createdAt: Date;
169
- // Timestamp when the trade record was last updated.
170
- updatedAt: Date;
171
129
  // Current status of the trade.
172
130
  status: TradeStatus;
173
131
  // Relation to the AlpacaAccount model.
@@ -199,9 +157,7 @@ export enum OrderStatus {
199
157
  REJECTED = "REJECTED"
200
158
  }
201
159
 
202
- export interface Order {
203
- // Unique identifier for the order.
204
- id: string;
160
+ export type Order = {
205
161
  // Reference to the Alpaca account used for the order.
206
162
  alpacaAccountId: string;
207
163
  // Reference to the asset being ordered.
@@ -216,12 +172,9 @@ export interface Order {
216
172
  qty: number;
217
173
  // Price at which the asset is to be bought or sold.
218
174
  price: number;
175
+ stopLoss?: number;
219
176
  // Current status of the order, defined by OrderStatus enum.
220
177
  status: OrderStatus;
221
- // Timestamp when the order was created.
222
- createdAt: Date;
223
- // Timestamp when the order was last updated.
224
- updatedAt: Date;
225
178
  // Timestamp when the action was executed.
226
179
  executionTime?: Date;
227
180
  // The Alpaca account this order is associated with.
@@ -230,11 +183,11 @@ export interface Order {
230
183
  action: Action;
231
184
  // The asset this order is for.
232
185
  asset: Asset;
186
+ // Fee associated with the order.
187
+ fee?: number;
233
188
  }
234
189
 
235
- export interface Position {
236
- // Unique identifier for the position.
237
- id: string;
190
+ export type Position = {
238
191
  // Reference to the associated asset.
239
192
  assetId: string;
240
193
  // Relation to the Asset model.
@@ -278,9 +231,7 @@ export enum AlertType {
278
231
  INFO = "INFO"
279
232
  }
280
233
 
281
- export interface Alert {
282
- // Unique identifier for the alert.
283
- id: string;
234
+ export type Alert = {
284
235
  // Reference to the Alpaca account associated with the alert.
285
236
  alpacaAccountId: string;
286
237
  // Message content of the alert.
@@ -289,17 +240,11 @@ export interface Alert {
289
240
  type: AlertType;
290
241
  // Indicates whether the alert has been read by the user.
291
242
  isRead: boolean;
292
- // Timestamp when the alert was created.
293
- createdAt: Date;
294
- // Timestamp when the alert was last updated.
295
- updatedAt: Date;
296
243
  // Relation to the AlpacaAccount model.
297
244
  alpacaAccount: AlpacaAccount;
298
245
  }
299
246
 
300
- export interface AlpacaAccount {
301
- // Unique identifier for the Alpaca account.
302
- id: string;
247
+ export type AlpacaAccount = {
303
248
  // The type of Alpaca account (PAPER or LIVE).
304
249
  type: AlpacaAccountType;
305
250
  // API key for authenticating requests to Alpaca.
@@ -314,10 +259,6 @@ export interface AlpacaAccount {
314
259
  user: User;
315
260
  // Foreign key referencing the User.
316
261
  userId: string;
317
- // Timestamp when the Alpaca account was created.
318
- createdAt: Date;
319
- // Timestamp when the Alpaca account was last updated.
320
- updatedAt: Date;
321
262
  // List of trades executed through this Alpaca account.
322
263
  trades: Trade[];
323
264
  // List of orders placed through this Alpaca account.
@@ -328,9 +269,7 @@ export interface AlpacaAccount {
328
269
  alerts: Alert[];
329
270
  }
330
271
 
331
- export interface User {
332
- // Unique identifier for the user.
333
- id: string;
272
+ export type User = {
334
273
  // The user's full name.
335
274
  name?: string;
336
275
  // The user's email address, must be unique.
@@ -339,10 +278,6 @@ export interface User {
339
278
  emailVerified?: Date;
340
279
  // URL to the user's profile image.
341
280
  image?: string;
342
- // Timestamp when the user account was created.
343
- createdAt: Date;
344
- // Timestamp when the user account was last updated.
345
- updatedAt: Date;
346
281
  // The role assigned to the user, determining permissions.
347
282
  role: UserRole;
348
283
  // A short biography or description of the user.
@@ -1,2 +1,2 @@
1
- export declare const SessionTypeString = "\nYour response should adhere to the following type definition for the \"Session\" type, and its nested object types (which include 'User' type).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface Session {\n // Unique identifier for the session.\n id: string;\n // Token associated with the session for authentication.\n sessionToken: string;\n // Reference to the user who owns this session.\n userId: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\n // Reference to the authenticated user associated with the customer.\n authUserId: string;\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // Unique Stripe customer ID for billing.\n stripeCustomerId?: string;\n // Unique Stripe subscription ID.\n stripeSubscriptionId?: string;\n // Stripe price ID associated with the customer's subscription.\n stripePriceId?: string;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\n // Reference to the user who owns this account.\n userId: string;\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Unique identifier provided by the external provider.\n providerAccountId: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\n // Reference to the user who owns this authenticator.\n userId: string;\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\n// Simplified reference to Asset.\nexport interface Asset {\n// Unique identifier for the asset.\n id: string;\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n// Simplified reference to Action.\nexport interface Action {\n// Unique identifier for the action.\n id: string;\n}\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport interface Order {\n // Unique identifier for the order.\n id: string;\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the order was created.\n createdAt: Date;\n // Timestamp when the order was last updated.\n updatedAt: Date;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n}\n\nexport interface Position {\n // Unique identifier for the position.\n id: string;\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport interface Alert {\n // Unique identifier for the alert.\n id: string;\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport interface User {\n // Unique identifier for the user.\n id: string;\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
1
+ export declare const SessionTypeString = "\nYour response should adhere to the following type definition for the \"Session\" type, and its nested object types (which include 'User' type).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Reference to the user who owns this session.\n userId: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type Customer = {\n // Reference to the authenticated user associated with the customer.\n authUserId: string;\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // Unique Stripe customer ID for billing.\n stripeCustomerId?: string;\n // Unique Stripe subscription ID.\n stripeSubscriptionId?: string;\n // Stripe price ID associated with the customer's subscription.\n stripePriceId?: string;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport type Account = {\n // Reference to the user who owns this account.\n userId: string;\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Unique identifier provided by the external provider.\n providerAccountId: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Relation to the User model.\n user: User;\n}\n\nexport type Authenticator = {\n // Reference to the user who owns this authenticator.\n userId: string;\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n stopLoss?: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
2
2
  //# sourceMappingURL=Session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,u6VA8W7B,CAAC"}
1
+ {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,u7RA6S7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8WhC,CAAC"}
1
+ {"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ShC,CAAC"}
@@ -6,9 +6,7 @@ Your response should adhere to the following type definition for the "Trade" typ
6
6
 
7
7
  Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
8
8
 
9
- export interface Trade {
10
- // Unique identifier for the trade.
11
- id: string;
9
+ export type Trade = {
12
10
  // Reference to the Alpaca account used for the trade.
13
11
  alpacaAccountId: string;
14
12
  // Reference to the asset being traded.
@@ -29,10 +27,6 @@ export interface Trade {
29
27
  confidence: number;
30
28
  // Timestamp when the trade was executed.
31
29
  timestamp: Date;
32
- // Timestamp when the trade record was created.
33
- createdAt: Date;
34
- // Timestamp when the trade record was last updated.
35
- updatedAt: Date;
36
30
  // Current status of the trade.
37
31
  status: TradeStatus;
38
32
  // Relation to the AlpacaAccount model.
@@ -69,9 +63,7 @@ export enum SubscriptionPlan {
69
63
  BUSINESS = "BUSINESS"
70
64
  }
71
65
 
72
- export interface Customer {
73
- // Unique identifier for the customer.
74
- id: number;
66
+ export type Customer = {
75
67
  // Reference to the authenticated user associated with the customer.
76
68
  authUserId: string;
77
69
  // Name of the customer.
@@ -86,17 +78,11 @@ export interface Customer {
86
78
  stripePriceId?: string;
87
79
  // End date of the current billing period in Stripe.
88
80
  stripeCurrentPeriodEnd?: Date;
89
- // Timestamp when the customer was created.
90
- createdAt: Date;
91
- // Timestamp when the customer was last updated.
92
- updatedAt: Date;
93
81
  // List of users associated with the customer.
94
82
  users: User[];
95
83
  }
96
84
 
97
- export interface Account {
98
- // Unique identifier for the account.
99
- id: string;
85
+ export type Account = {
100
86
  // Reference to the user who owns this account.
101
87
  userId: string;
102
88
  // Type of the account (e.g., OAuth provider).
@@ -119,17 +105,11 @@ export interface Account {
119
105
  id_token?: string;
120
106
  // State of the session associated with the account.
121
107
  session_state?: string;
122
- // Timestamp when the account was created.
123
- createdAt: Date;
124
- // Timestamp when the account was last updated.
125
- updatedAt: Date;
126
108
  // Relation to the User model.
127
109
  user: User;
128
110
  }
129
111
 
130
- export interface Session {
131
- // Unique identifier for the session.
132
- id: string;
112
+ export type Session = {
133
113
  // Token associated with the session for authentication.
134
114
  sessionToken: string;
135
115
  // Reference to the user who owns this session.
@@ -138,15 +118,9 @@ export interface Session {
138
118
  expires: Date;
139
119
  // Relation to the User model.
140
120
  user: User;
141
- // Timestamp when the session was created.
142
- createdAt: Date;
143
- // Timestamp when the session was last updated.
144
- updatedAt: Date;
145
121
  }
146
122
 
147
- export interface Authenticator {
148
- // Unique identifier for the authenticator.
149
- id: string;
123
+ export type Authenticator = {
150
124
  // Reference to the user who owns this authenticator.
151
125
  userId: string;
152
126
  // Unique credential ID for the authenticator.
@@ -157,15 +131,9 @@ export interface Authenticator {
157
131
  counter: number;
158
132
  // Relation to the User model.
159
133
  user: User;
160
- // Timestamp when the authenticator was created.
161
- createdAt: Date;
162
- // Timestamp when the authenticator was last updated.
163
- updatedAt: Date;
164
134
  }
165
135
 
166
- export interface User {
167
- // Unique identifier for the user.
168
- id: string;
136
+ export type User = {
169
137
  // The user's full name.
170
138
  name?: string;
171
139
  // The user's email address, must be unique.
@@ -174,10 +142,6 @@ export interface User {
174
142
  emailVerified?: Date;
175
143
  // URL to the user's profile image.
176
144
  image?: string;
177
- // Timestamp when the user account was created.
178
- createdAt: Date;
179
- // Timestamp when the user account was last updated.
180
- updatedAt: Date;
181
145
  // The role assigned to the user, determining permissions.
182
146
  role: UserRole;
183
147
  // A short biography or description of the user.
@@ -237,9 +201,7 @@ export enum ActionStatus {
237
201
  COMPLETED = "COMPLETED"
238
202
  }
239
203
 
240
- export interface Action {
241
- // Unique identifier for the action.
242
- id: string;
204
+ export type Action = {
243
205
  // Sequence number of the action within the trade.
244
206
  sequence: number;
245
207
  // Reference to the trade this action is part of.
@@ -284,21 +246,7 @@ export enum AssetType {
284
246
  OTHER = "OTHER"
285
247
  }
286
248
 
287
- // Simplified reference to Position.
288
- export interface Position {
289
- // Unique identifier for the position.
290
- id: string;
291
- }
292
-
293
- // Simplified reference to NewsArticleAssetSentiment.
294
- export interface NewsArticleAssetSentiment {
295
- // Unique identifier for the sentiment record.
296
- id: string;
297
- }
298
-
299
- export interface Asset {
300
- // Unique identifier for the asset.
301
- id: string;
249
+ export type Asset = {
302
250
  // Ticker symbol of the asset, must be unique.
303
251
  symbol: string;
304
252
  // Full name of the asset, must be unique.
@@ -409,10 +357,6 @@ export interface Asset {
409
357
  sellPrice?: string;
410
358
  // Last buy price of the asset.
411
359
  buyPrice?: string;
412
- // Timestamp when the asset was created in the database.
413
- createdAt: Date;
414
- // Timestamp when the asset was last updated in the database.
415
- updatedAt: Date;
416
360
  // List of trades involving this asset.
417
361
  trades: Trade[];
418
362
  // List of orders involving this asset.
@@ -423,9 +367,7 @@ export interface Asset {
423
367
  newsMentions: NewsArticleAssetSentiment[];
424
368
  }
425
369
 
426
- export interface Order {
427
- // Unique identifier for the order.
428
- id: string;
370
+ export type Order = {
429
371
  // Reference to the Alpaca account used for the order.
430
372
  alpacaAccountId: string;
431
373
  // Reference to the asset being ordered.
@@ -440,12 +382,9 @@ export interface Order {
440
382
  qty: number;
441
383
  // Price at which the asset is to be bought or sold.
442
384
  price: number;
385
+ stopLoss?: number;
443
386
  // Current status of the order, defined by OrderStatus enum.
444
387
  status: OrderStatus;
445
- // Timestamp when the order was created.
446
- createdAt: Date;
447
- // Timestamp when the order was last updated.
448
- updatedAt: Date;
449
388
  // Timestamp when the action was executed.
450
389
  executionTime?: Date;
451
390
  // The Alpaca account this order is associated with.
@@ -454,6 +393,8 @@ export interface Order {
454
393
  action: Action;
455
394
  // The asset this order is for.
456
395
  asset: Asset;
396
+ // Fee associated with the order.
397
+ fee?: number;
457
398
  }
458
399
 
459
400
  export enum AlertType {
@@ -463,9 +404,7 @@ export enum AlertType {
463
404
  INFO = "INFO"
464
405
  }
465
406
 
466
- export interface Alert {
467
- // Unique identifier for the alert.
468
- id: string;
407
+ export type Alert = {
469
408
  // Reference to the Alpaca account associated with the alert.
470
409
  alpacaAccountId: string;
471
410
  // Message content of the alert.
@@ -474,17 +413,11 @@ export interface Alert {
474
413
  type: AlertType;
475
414
  // Indicates whether the alert has been read by the user.
476
415
  isRead: boolean;
477
- // Timestamp when the alert was created.
478
- createdAt: Date;
479
- // Timestamp when the alert was last updated.
480
- updatedAt: Date;
481
416
  // Relation to the AlpacaAccount model.
482
417
  alpacaAccount: AlpacaAccount;
483
418
  }
484
419
 
485
- export interface AlpacaAccount {
486
- // Unique identifier for the Alpaca account.
487
- id: string;
420
+ export type AlpacaAccount = {
488
421
  // The type of Alpaca account (PAPER or LIVE).
489
422
  type: AlpacaAccountType;
490
423
  // API key for authenticating requests to Alpaca.
@@ -499,10 +432,6 @@ export interface AlpacaAccount {
499
432
  user: User;
500
433
  // Foreign key referencing the User.
501
434
  userId: string;
502
- // Timestamp when the Alpaca account was created.
503
- createdAt: Date;
504
- // Timestamp when the Alpaca account was last updated.
505
- updatedAt: Date;
506
435
  // List of trades executed through this Alpaca account.
507
436
  trades: Trade[];
508
437
  // List of orders placed through this Alpaca account.
@@ -1,2 +1,2 @@
1
- export declare const TradeTypeString = "\nYour response should adhere to the following type definition for the \"Trade\" type, and its nested object types (which include 'AlpacaAccount', 'Asset', 'Action' types), as well as any ENUMS used by it (which include 'TradeStatus', 'OptionContractType' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\n // Reference to the authenticated user associated with the customer.\n authUserId: string;\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // Unique Stripe customer ID for billing.\n stripeCustomerId?: string;\n // Unique Stripe subscription ID.\n stripeSubscriptionId?: string;\n // Stripe price ID associated with the customer's subscription.\n stripePriceId?: string;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\n // Reference to the user who owns this account.\n userId: string;\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Unique identifier provided by the external provider.\n providerAccountId: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Session {\n // Unique identifier for the session.\n id: string;\n // Token associated with the session for authentication.\n sessionToken: string;\n // Reference to the user who owns this session.\n userId: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\n // Reference to the user who owns this authenticator.\n userId: string;\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\n}\n\nexport interface User {\n // Unique identifier for the user.\n id: string;\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport enum ActionType {\n BUY = \"BUY\",\n GET_OPTION_CONTRACTS = \"GET_OPTION_CONTRACTS\",\n EXERCISE_OPTION = \"EXERCISE_OPTION\",\n SELL = \"SELL\",\n CANCEL = \"CANCEL\",\n ADJUST = \"ADJUST\",\n HEDGE = \"HEDGE\"\n}\n\nexport enum ActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Reference to the order ID associated with the action.\n orderId?: string;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The trade this action is part of.\n trade: Trade;\n // The order associated with this action.\n order?: Order;\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\n// Simplified reference to Position.\nexport interface Position {\n// Unique identifier for the position.\n id: string;\n}\n\n// Simplified reference to NewsArticleAssetSentiment.\nexport interface NewsArticleAssetSentiment {\n// Unique identifier for the sentiment record.\n id: string;\n}\n\nexport interface Asset {\n // Unique identifier for the asset.\n id: string;\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\nexport interface Order {\n // Unique identifier for the order.\n id: string;\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the order was created.\n createdAt: Date;\n // Timestamp when the order was last updated.\n updatedAt: Date;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport interface Alert {\n // Unique identifier for the alert.\n id: string;\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
1
+ export declare const TradeTypeString = "\nYour response should adhere to the following type definition for the \"Trade\" type, and its nested object types (which include 'AlpacaAccount', 'Asset', 'Action' types), as well as any ENUMS used by it (which include 'TradeStatus', 'OptionContractType' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport type Customer = {\n // Reference to the authenticated user associated with the customer.\n authUserId: string;\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // Unique Stripe customer ID for billing.\n stripeCustomerId?: string;\n // Unique Stripe subscription ID.\n stripeSubscriptionId?: string;\n // Stripe price ID associated with the customer's subscription.\n stripePriceId?: string;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport type Account = {\n // Reference to the user who owns this account.\n userId: string;\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Unique identifier provided by the external provider.\n providerAccountId: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Relation to the User model.\n user: User;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Reference to the user who owns this session.\n userId: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport type Authenticator = {\n // Reference to the user who owns this authenticator.\n userId: string;\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport enum ActionType {\n BUY = \"BUY\",\n GET_OPTION_CONTRACTS = \"GET_OPTION_CONTRACTS\",\n EXERCISE_OPTION = \"EXERCISE_OPTION\",\n SELL = \"SELL\",\n CANCEL = \"CANCEL\",\n ADJUST = \"ADJUST\",\n HEDGE = \"HEDGE\"\n}\n\nexport enum ActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Reference to the order ID associated with the action.\n orderId?: string;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The trade this action is part of.\n trade: Trade;\n // The order associated with this action.\n order?: Order;\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport type Asset = {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Reference to the action associated with the order.\n actionId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n stopLoss?: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n";
2
2
  //# sourceMappingURL=Trade.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,0tfAqgB3B,CAAC"}
1
+ {"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,q9aA8b3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Trade.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqgB9B,CAAC"}
1
+ {"version":3,"file":"Trade.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8b9B,CAAC"}