adaptic-backend 1.0.70 → 1.0.72

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 (435) hide show
  1. package/Account.cjs +0 -6
  2. package/Action.cjs +0 -24
  3. package/Alert.cjs +0 -32
  4. package/AlpacaAccount.cjs +0 -24
  5. package/Asset.cjs +0 -24
  6. package/Authenticator.cjs +0 -6
  7. package/Customer.cjs +0 -6
  8. package/NewsArticle.cjs +0 -6
  9. package/NewsArticleAssetSentiment.cjs +0 -32
  10. package/Order.cjs +0 -26
  11. package/Position.cjs +0 -58
  12. package/Session.cjs +0 -6
  13. package/Trade.cjs +0 -84
  14. package/User.cjs +0 -32
  15. package/generated/typeStrings/Account.cjs +0 -213
  16. package/generated/typeStrings/Account.d.ts +1 -1
  17. package/generated/typeStrings/Account.d.ts.map +1 -1
  18. package/generated/typeStrings/Account.js.map +1 -1
  19. package/generated/typeStrings/Action.cjs +143 -197
  20. package/generated/typeStrings/Action.d.ts +1 -1
  21. package/generated/typeStrings/Action.d.ts.map +1 -1
  22. package/generated/typeStrings/Action.js.map +1 -1
  23. package/generated/typeStrings/Alert.cjs +100 -268
  24. package/generated/typeStrings/Alert.d.ts +1 -1
  25. package/generated/typeStrings/Alert.d.ts.map +1 -1
  26. package/generated/typeStrings/Alert.js.map +1 -1
  27. package/generated/typeStrings/AlpacaAccount.cjs +31 -179
  28. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  29. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  30. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  31. package/generated/typeStrings/Asset.cjs +31 -201
  32. package/generated/typeStrings/Asset.d.ts +1 -1
  33. package/generated/typeStrings/Asset.d.ts.map +1 -1
  34. package/generated/typeStrings/Asset.js.map +1 -1
  35. package/generated/typeStrings/Authenticator.cjs +0 -213
  36. package/generated/typeStrings/Authenticator.d.ts +1 -1
  37. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  38. package/generated/typeStrings/Authenticator.js.map +1 -1
  39. package/generated/typeStrings/Customer.cjs +0 -213
  40. package/generated/typeStrings/Customer.d.ts +1 -1
  41. package/generated/typeStrings/Customer.d.ts.map +1 -1
  42. package/generated/typeStrings/Customer.js.map +1 -1
  43. package/generated/typeStrings/NewsArticle.cjs +0 -171
  44. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  45. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  46. package/generated/typeStrings/NewsArticle.js.map +1 -1
  47. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +100 -81
  48. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  49. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  50. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  51. package/generated/typeStrings/Order.cjs +31 -280
  52. package/generated/typeStrings/Order.d.ts +1 -1
  53. package/generated/typeStrings/Order.d.ts.map +1 -1
  54. package/generated/typeStrings/Order.js.map +1 -1
  55. package/generated/typeStrings/Position.cjs +67 -114
  56. package/generated/typeStrings/Position.d.ts +1 -1
  57. package/generated/typeStrings/Position.d.ts.map +1 -1
  58. package/generated/typeStrings/Position.js.map +1 -1
  59. package/generated/typeStrings/Session.cjs +0 -213
  60. package/generated/typeStrings/Session.d.ts +1 -1
  61. package/generated/typeStrings/Session.d.ts.map +1 -1
  62. package/generated/typeStrings/Session.js.map +1 -1
  63. package/generated/typeStrings/Trade.cjs +31 -280
  64. package/generated/typeStrings/Trade.d.ts +1 -1
  65. package/generated/typeStrings/Trade.d.ts.map +1 -1
  66. package/generated/typeStrings/Trade.js.map +1 -1
  67. package/generated/typeStrings/User.cjs +100 -222
  68. package/generated/typeStrings/User.d.ts +1 -1
  69. package/generated/typeStrings/User.d.ts.map +1 -1
  70. package/generated/typeStrings/User.js.map +1 -1
  71. package/generated/typeStrings/index.d.ts +14 -14
  72. package/generated/typegraphql-prisma/enhance.cjs +27 -27
  73. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  74. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.cjs +0 -1
  75. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +0 -1
  76. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
  77. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
  78. package/generated/typegraphql-prisma/models/Order.cjs +0 -7
  79. package/generated/typegraphql-prisma/models/Order.d.ts +0 -4
  80. package/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
  81. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  82. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
  83. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
  84. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
  85. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
  86. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
  87. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
  88. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
  89. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
  90. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
  91. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
  92. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
  93. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
  94. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.cjs +0 -6
  95. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +0 -1
  96. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
  97. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
  98. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.cjs +0 -6
  99. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +0 -1
  100. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
  101. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
  102. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.cjs +0 -6
  103. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +0 -1
  104. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
  105. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
  106. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.cjs +0 -6
  107. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +0 -1
  108. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
  109. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
  110. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.cjs +0 -6
  111. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +0 -1
  112. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
  113. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
  114. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.cjs +0 -6
  115. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +0 -1
  116. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
  117. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
  118. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.cjs +0 -6
  119. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +0 -1
  120. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  121. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
  122. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.cjs +0 -6
  123. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +0 -1
  124. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
  125. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
  126. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.cjs +0 -6
  127. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +0 -1
  128. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
  129. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
  130. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.cjs +0 -6
  131. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +0 -1
  132. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
  133. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
  134. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.cjs +0 -6
  135. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +0 -1
  136. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
  137. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
  138. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.cjs +0 -6
  139. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +0 -1
  140. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
  141. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
  142. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.cjs +0 -7
  143. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +0 -2
  144. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
  145. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
  146. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.cjs +0 -7
  147. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +0 -2
  148. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
  149. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
  150. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.cjs +0 -6
  151. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +0 -1
  152. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
  153. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
  154. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.cjs +0 -6
  155. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +0 -1
  156. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
  157. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
  158. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.cjs +0 -6
  159. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +0 -1
  160. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
  161. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
  162. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.cjs +0 -6
  163. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +0 -1
  164. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  165. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
  166. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.cjs +0 -6
  167. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +0 -1
  168. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
  169. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
  170. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.cjs +0 -7
  171. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +0 -2
  172. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
  173. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
  174. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.cjs +0 -7
  175. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +0 -2
  176. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  177. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  178. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.cjs +0 -6
  179. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +0 -1
  180. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
  181. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
  182. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.cjs +0 -6
  183. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +0 -1
  184. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
  185. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
  186. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.cjs +0 -6
  187. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +0 -1
  188. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
  189. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
  190. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.cjs +0 -6
  191. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +0 -1
  192. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
  193. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
  194. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.cjs +0 -6
  195. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +0 -1
  196. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
  197. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
  198. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
  199. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
  200. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
  201. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
  202. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
  203. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
  204. package/package.json +1 -1
  205. package/server/Account.d.ts.map +1 -1
  206. package/server/Account.js.map +1 -1
  207. package/server/Account.mjs +0 -6
  208. package/server/Action.d.ts.map +1 -1
  209. package/server/Action.js.map +1 -1
  210. package/server/Action.mjs +0 -24
  211. package/server/Alert.d.ts.map +1 -1
  212. package/server/Alert.js.map +1 -1
  213. package/server/Alert.mjs +0 -32
  214. package/server/AlpacaAccount.d.ts.map +1 -1
  215. package/server/AlpacaAccount.js.map +1 -1
  216. package/server/AlpacaAccount.mjs +0 -24
  217. package/server/Asset.d.ts.map +1 -1
  218. package/server/Asset.js.map +1 -1
  219. package/server/Asset.mjs +0 -24
  220. package/server/Authenticator.d.ts.map +1 -1
  221. package/server/Authenticator.js.map +1 -1
  222. package/server/Authenticator.mjs +0 -6
  223. package/server/Customer.d.ts.map +1 -1
  224. package/server/Customer.js.map +1 -1
  225. package/server/Customer.mjs +0 -6
  226. package/server/NewsArticle.d.ts.map +1 -1
  227. package/server/NewsArticle.js.map +1 -1
  228. package/server/NewsArticle.mjs +0 -6
  229. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  230. package/server/NewsArticleAssetSentiment.js.map +1 -1
  231. package/server/NewsArticleAssetSentiment.mjs +0 -32
  232. package/server/Order.d.ts.map +1 -1
  233. package/server/Order.js.map +1 -1
  234. package/server/Order.mjs +0 -26
  235. package/server/Position.d.ts.map +1 -1
  236. package/server/Position.js.map +1 -1
  237. package/server/Position.mjs +0 -58
  238. package/server/Session.d.ts.map +1 -1
  239. package/server/Session.js.map +1 -1
  240. package/server/Session.mjs +0 -6
  241. package/server/Trade.d.ts.map +1 -1
  242. package/server/Trade.js.map +1 -1
  243. package/server/Trade.mjs +0 -84
  244. package/server/User.d.ts.map +1 -1
  245. package/server/User.js.map +1 -1
  246. package/server/User.mjs +0 -32
  247. package/server/generated/typeStrings/Account.d.ts +1 -1
  248. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  249. package/server/generated/typeStrings/Account.js.map +1 -1
  250. package/server/generated/typeStrings/Account.mjs +0 -213
  251. package/server/generated/typeStrings/Action.d.ts +1 -1
  252. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  253. package/server/generated/typeStrings/Action.js.map +1 -1
  254. package/server/generated/typeStrings/Action.mjs +143 -197
  255. package/server/generated/typeStrings/Alert.d.ts +1 -1
  256. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  257. package/server/generated/typeStrings/Alert.js.map +1 -1
  258. package/server/generated/typeStrings/Alert.mjs +100 -268
  259. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  260. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  261. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  262. package/server/generated/typeStrings/AlpacaAccount.mjs +31 -179
  263. package/server/generated/typeStrings/Asset.d.ts +1 -1
  264. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  265. package/server/generated/typeStrings/Asset.js.map +1 -1
  266. package/server/generated/typeStrings/Asset.mjs +31 -201
  267. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  268. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  269. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  270. package/server/generated/typeStrings/Authenticator.mjs +0 -213
  271. package/server/generated/typeStrings/Customer.d.ts +1 -1
  272. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  273. package/server/generated/typeStrings/Customer.js.map +1 -1
  274. package/server/generated/typeStrings/Customer.mjs +0 -213
  275. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  276. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  277. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  278. package/server/generated/typeStrings/NewsArticle.mjs +0 -171
  279. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  280. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  281. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  282. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +100 -81
  283. package/server/generated/typeStrings/Order.d.ts +1 -1
  284. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  285. package/server/generated/typeStrings/Order.js.map +1 -1
  286. package/server/generated/typeStrings/Order.mjs +31 -280
  287. package/server/generated/typeStrings/Position.d.ts +1 -1
  288. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  289. package/server/generated/typeStrings/Position.js.map +1 -1
  290. package/server/generated/typeStrings/Position.mjs +67 -114
  291. package/server/generated/typeStrings/Session.d.ts +1 -1
  292. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  293. package/server/generated/typeStrings/Session.js.map +1 -1
  294. package/server/generated/typeStrings/Session.mjs +0 -213
  295. package/server/generated/typeStrings/Trade.d.ts +1 -1
  296. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  297. package/server/generated/typeStrings/Trade.js.map +1 -1
  298. package/server/generated/typeStrings/Trade.mjs +31 -280
  299. package/server/generated/typeStrings/User.d.ts +1 -1
  300. package/server/generated/typeStrings/User.d.ts.map +1 -1
  301. package/server/generated/typeStrings/User.js.map +1 -1
  302. package/server/generated/typeStrings/User.mjs +100 -222
  303. package/server/generated/typeStrings/index.d.ts +14 -14
  304. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  305. package/server/generated/typegraphql-prisma/enhance.mjs +27 -27
  306. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +0 -1
  307. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
  308. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
  309. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.mjs +0 -1
  310. package/server/generated/typegraphql-prisma/models/Order.d.ts +0 -4
  311. package/server/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
  312. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  313. package/server/generated/typegraphql-prisma/models/Order.mjs +0 -11
  314. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
  315. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
  316. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
  317. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
  318. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
  319. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
  320. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
  321. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
  322. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
  323. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
  324. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
  325. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
  326. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +0 -1
  327. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
  328. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
  329. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.mjs +0 -7
  330. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +0 -1
  331. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
  332. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
  333. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.mjs +0 -7
  334. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +0 -1
  335. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
  336. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
  337. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.mjs +0 -7
  338. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +0 -1
  339. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
  340. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
  341. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.mjs +0 -7
  342. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +0 -1
  343. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
  344. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
  345. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.mjs +0 -7
  346. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +0 -1
  347. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
  348. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
  349. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.mjs +0 -7
  350. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +0 -1
  351. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  352. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
  353. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.mjs +0 -7
  354. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +0 -1
  355. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
  356. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
  357. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.mjs +0 -7
  358. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +0 -1
  359. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
  360. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
  361. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.mjs +0 -7
  362. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +0 -1
  363. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
  364. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
  365. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.mjs +0 -7
  366. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +0 -1
  367. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
  368. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
  369. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.mjs +0 -7
  370. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +0 -1
  371. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
  372. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
  373. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.mjs +0 -7
  374. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +0 -2
  375. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
  376. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
  377. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.mjs +0 -8
  378. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +0 -2
  379. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
  380. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
  381. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.mjs +0 -8
  382. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +0 -1
  383. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
  384. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
  385. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.mjs +0 -7
  386. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +0 -1
  387. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
  388. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
  389. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.mjs +0 -7
  390. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +0 -1
  391. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
  392. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
  393. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.mjs +0 -7
  394. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +0 -1
  395. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  396. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
  397. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.mjs +0 -7
  398. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +0 -1
  399. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
  400. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
  401. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.mjs +0 -7
  402. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +0 -2
  403. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
  404. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
  405. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.mjs +0 -8
  406. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +0 -2
  407. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  408. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  409. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.mjs +0 -8
  410. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +0 -1
  411. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
  412. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
  413. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.mjs +0 -7
  414. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +0 -1
  415. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
  416. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
  417. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.mjs +0 -7
  418. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +0 -1
  419. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
  420. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
  421. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.mjs +0 -7
  422. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +0 -1
  423. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
  424. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
  425. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.mjs +0 -7
  426. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +0 -1
  427. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
  428. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
  429. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.mjs +0 -7
  430. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
  431. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
  432. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
  433. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
  434. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
  435. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
@@ -4,8 +4,6 @@ Your response should adhere to the following type definition for the "Position"
4
4
  Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
5
5
 
6
6
  export type Position = {
7
- // Reference to the associated asset.
8
- assetId: string;
9
7
  // Relation to the Asset model.
10
8
  asset: Asset;
11
9
  // The average price at which the asset was acquired.
@@ -36,8 +34,6 @@ export type Position = {
36
34
  assetMarginable: boolean;
37
35
  // Relation to the AlpacaAccount model, if applicable.
38
36
  alpacaAccount?: AlpacaAccount;
39
- // Foreign key referencing the AlpacaAccount.
40
- alpacaAccountId: string;
41
37
  }
42
38
 
43
39
  export enum AssetType {
@@ -71,83 +67,12 @@ export enum TradeStatus {
71
67
  COMPLETED = "COMPLETED"
72
68
  }
73
69
 
74
- export enum AlpacaAccountType {
75
- PAPER = "PAPER",
76
- LIVE = "LIVE"
77
- }
78
-
79
- export type AlpacaAccount = {
80
- // The type of Alpaca account (PAPER or LIVE).
81
- type: AlpacaAccountType;
82
- // API key for authenticating requests to Alpaca.
83
- APIKey: string;
84
- // API secret for authenticating requests to Alpaca.
85
- APISecret: string;
86
- // JSON configuration settings for the Alpaca account.
87
- configuration?: any;
88
- // Indicates whether the market is currently open for trading.
89
- marketOpen: boolean;
90
- // Relation to the User model who owns this Alpaca account.
91
- user: User;
92
- // Foreign key referencing the User.
93
- userId: string;
94
- // List of trades executed through this Alpaca account.
95
- trades: Trade[];
96
- // List of orders placed through this Alpaca account.
97
- orders: Order[];
98
- // List of positions held in this Alpaca account.
99
- positions: Position[];
100
- // List of alerts generated for this Alpaca account.
101
- alerts: Alert[];
102
- }
103
-
104
70
  export enum OptionContractType {
105
71
  CALL = "CALL",
106
72
  PUT = "PUT"
107
73
  }
108
74
 
109
- export enum ActionType {
110
- BUY = "BUY",
111
- GET_OPTION_CONTRACTS = "GET_OPTION_CONTRACTS",
112
- EXERCISE_OPTION = "EXERCISE_OPTION",
113
- SELL = "SELL",
114
- CANCEL = "CANCEL",
115
- ADJUST = "ADJUST",
116
- HEDGE = "HEDGE"
117
- }
118
-
119
- export enum ActionStatus {
120
- STAGED = "STAGED",
121
- EXECUTED = "EXECUTED",
122
- COMPLETED = "COMPLETED"
123
- }
124
-
125
- export type Action = {
126
- // Sequence number of the action within the trade.
127
- sequence: number;
128
- // Reference to the trade this action is part of.
129
- tradeId: string;
130
- // Type of trade action, defined by ActionType enum.
131
- type: ActionType;
132
- // Reference to the order ID associated with the action.
133
- orderId?: string;
134
- // Additional notes or comments about the action.
135
- note: string;
136
- // Current status of the trade action.
137
- status: ActionStatus;
138
- // Fees associated with the action.
139
- fee?: number;
140
- // The trade this action is part of.
141
- trade: Trade;
142
- // The order associated with this action.
143
- order?: Order;
144
- }
145
-
146
75
  export type Trade = {
147
- // Reference to the Alpaca account used for the trade.
148
- alpacaAccountId: string;
149
- // Reference to the asset being traded.
150
- assetId: string;
151
76
  // Quantity of the asset being traded.
152
77
  qty: number;
153
78
  // Price at which the asset was traded.
@@ -168,56 +93,86 @@ export type Trade = {
168
93
  status: TradeStatus;
169
94
  // Relation to the AlpacaAccount model.
170
95
  alpacaAccount: AlpacaAccount;
171
- // Relation to the Asset model.
172
- asset: Asset;
173
96
  // If the asset.type is OPTION, then provide type of contract (CALL or PUT).
174
97
  optionContractType?: OptionContractType;
175
98
  // List of actions associated with this trade.
176
99
  actions: Action[];
177
100
  }
178
101
 
179
- export type NewsArticle = {
180
- // Title of the news article.
181
- title: string;
182
- // Full content of the news article.
183
- content?: string;
184
- // Source of the news article (e.g., Bloomberg, Reuters).
185
- source: string;
186
- // Domain of the source website.
187
- sourceDomain?: string;
188
- // URL to the original news article, must be unique.
189
- url: string;
190
- // Sentiment analysis result of the article.
191
- sentiment: string;
192
- // List of authors who wrote the article.
193
- authors: string[];
194
- // Summary or abstract of the news article.
195
- summary?: string;
196
- // URL to the banner image of the article.
197
- bannerImage?: string;
198
- // Publication time of the article.
199
- timePublished: string;
200
- // Category or genre of the news article.
201
- category?: string;
202
- // Topics covered in the news article.
203
- topics: string[];
204
- // URL to the logo image of the news source.
205
- logo?: string;
206
- // List of asset sentiments associated with this news article.
207
- assets: NewsArticleAssetSentiment[];
102
+ export enum OrderSide {
103
+ BUY = "BUY",
104
+ SELL = "SELL"
105
+ }
106
+
107
+ export enum OrderType {
108
+ MARKET = "MARKET",
109
+ LIMIT = "LIMIT",
110
+ STOP = "STOP",
111
+ STOP_LIMIT = "STOP_LIMIT",
112
+ TRAILING_STOP = "TRAILING_STOP"
113
+ }
114
+
115
+ // Time in force enum (day, gtc, opg, cls, etc.).
116
+ export enum TimeInForce {
117
+ DAY = "DAY",
118
+ GTC = "GTC",
119
+ OPG = "OPG",
120
+ CLS = "CLS",
121
+ IOC = "IOC",
122
+ FOK = "FOK"
123
+ }
124
+
125
+ export enum OrderStatus {
126
+ NEW = "NEW",
127
+ PARTIALLY_FILLED = "PARTIALLY_FILLED",
128
+ FILLED = "FILLED",
129
+ CANCELED = "CANCELED",
130
+ REJECTED = "REJECTED",
131
+ EXPIRED = "EXPIRED"
132
+ }
133
+
134
+ export type Order = {
135
+ // Quantity of the asset to be ordered.
136
+ qty?: number;
137
+ // Notional value of the order. Optional, used if qty is not provided.
138
+ notional?: number;
139
+ // Side of the order (BUY or SELL).
140
+ side: OrderSide;
141
+ // Type of order (market, limit, stop, stop_limit, trailing_stop).
142
+ type: OrderType;
143
+ // Time in force for the order (day, gtc, opg, cls, ioc, fok).
144
+ timeInForce: TimeInForce;
145
+ // Limit price for limit or stop-limit orders.
146
+ limitPrice?: number;
147
+ // Stop price for stop or stop-limit orders.
148
+ stopPrice?: number;
149
+ // Trailing price for trailing stop orders.
150
+ trailPrice?: number;
151
+ // Trailing percent for trailing stop orders.
152
+ trailPercent?: number;
153
+ // Whether the order is eligible for extended hours.
154
+ extendedHours?: boolean;
155
+ // Current status of the order.
156
+ status: OrderStatus;
157
+ // Timestamp when the order was submitted.
158
+ submittedAt?: Date;
159
+ // Timestamp when the order was filled.
160
+ filledAt?: Date;
161
+ // Average price at which the order was filled.
162
+ filledAvgPrice?: number;
163
+ // The Alpaca account this order is associated with.
164
+ alpacaAccount: AlpacaAccount;
165
+ // The action this order is associated with.
166
+ action: Action;
167
+ // Fee associated with the order.
168
+ fee?: number;
208
169
  }
209
170
 
210
171
  export type NewsArticleAssetSentiment = {
211
- // Reference to the associated asset.
212
- assetId: string;
213
- // Reference to the associated news article.
214
- newsArticleId: string;
215
172
  // URL of the news article, must be unique.
216
173
  url: string;
217
174
  // Relation to the NewsArticle model.
218
175
  news: NewsArticle;
219
- // Relation to the Asset model.
220
- asset: Asset;
221
176
  // Relevancy score indicating how relevant the news is to the asset.
222
177
  relevancyScore?: string;
223
178
  // Sentiment score derived from the news content.
@@ -341,8 +296,6 @@ export type Asset = {
341
296
  trades: Trade[];
342
297
  // List of orders involving this asset.
343
298
  orders: Order[];
344
- // List of positions involving this asset.
345
- positions: Position[];
346
299
  // List of news article sentiments related to this asset.
347
300
  newsMentions: NewsArticleAssetSentiment[];
348
301
  }
@@ -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 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 OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Symbol of the asset (ticker symbol).\n symbol: string;\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Client-supplied identifier for the order.\n clientOrderId?: string;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Reference to the action associated with the order.\n actionId: string;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport 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";
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 // 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 // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n}\n\nexport type Account = {\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 // 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}\n\nexport type Authenticator = {\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}\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 // 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 // List of accounts associated with the user.\n accounts: Account[];\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,47TA6U7B,CAAC"}
1
+ {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,soHAwH7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6UhC,CAAC"}
1
+ {"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHhC,CAAC"}
@@ -6,8 +6,6 @@ Importantly, DO NOT include any annotations in your response (i.e. remove the on
6
6
  export type Session = {
7
7
  // Token associated with the session for authentication.
8
8
  sessionToken: string;
9
- // Reference to the user who owns this session.
10
- userId: string;
11
9
  // Expiration date and time of the session.
12
10
  expires: Date;
13
11
  // Relation to the User model.
@@ -32,33 +30,19 @@ export enum SubscriptionPlan {
32
30
  }
33
31
 
34
32
  export type Customer = {
35
- // Reference to the authenticated user associated with the customer.
36
- authUserId: string;
37
33
  // Name of the customer.
38
34
  name?: string;
39
35
  // Subscription plan the customer is enrolled in.
40
36
  plan?: SubscriptionPlan;
41
- // Unique Stripe customer ID for billing.
42
- stripeCustomerId?: string;
43
- // Unique Stripe subscription ID.
44
- stripeSubscriptionId?: string;
45
- // Stripe price ID associated with the customer's subscription.
46
- stripePriceId?: string;
47
37
  // End date of the current billing period in Stripe.
48
38
  stripeCurrentPeriodEnd?: Date;
49
- // List of users associated with the customer.
50
- users: User[];
51
39
  }
52
40
 
53
41
  export type Account = {
54
- // Reference to the user who owns this account.
55
- userId: string;
56
42
  // Type of the account (e.g., OAuth provider).
57
43
  type: string;
58
44
  // Provider of the account (e.g., Google, GitHub).
59
45
  provider: string;
60
- // Unique identifier provided by the external provider.
61
- providerAccountId: string;
62
46
  // Refresh token for the external account, if applicable.
63
47
  refresh_token?: string;
64
48
  // Access token for the external account, if applicable.
@@ -73,204 +57,15 @@ export type Account = {
73
57
  id_token?: string;
74
58
  // State of the session associated with the account.
75
59
  session_state?: string;
76
- // Relation to the User model.
77
- user: User;
78
60
  }
79
61
 
80
62
  export type Authenticator = {
81
- // Reference to the user who owns this authenticator.
82
- userId: string;
83
63
  // Unique credential ID for the authenticator.
84
64
  credentialID: string;
85
65
  // Public key associated with the authenticator.
86
66
  publicKey: string;
87
67
  // Counter for the number of authentication attempts.
88
68
  counter: number;
89
- // Relation to the User model.
90
- user: User;
91
- }
92
-
93
- export enum TradeStatus {
94
- PENDING = "PENDING",
95
- OPEN = "OPEN",
96
- PARTIAL = "PARTIAL",
97
- COMPLETED = "COMPLETED"
98
- }
99
-
100
- export enum OptionContractType {
101
- CALL = "CALL",
102
- PUT = "PUT"
103
- }
104
-
105
- export type Trade = {
106
- // Reference to the Alpaca account used for the trade.
107
- alpacaAccountId: string;
108
- // Reference to the asset being traded.
109
- assetId: string;
110
- // Quantity of the asset being traded.
111
- qty: number;
112
- // Price at which the asset was traded.
113
- price: number;
114
- // Total value of the trade (qty * price).
115
- total: number;
116
- // Signal that triggered the trade.
117
- signal: string;
118
- // Strategy used to execute the trade.
119
- strategy: string;
120
- // Analysis supporting the trade decision.
121
- analysis: string;
122
- // Confidence level in the trade decision.
123
- confidence: number;
124
- // Timestamp when the trade was executed.
125
- timestamp: Date;
126
- // Current status of the trade.
127
- status: TradeStatus;
128
- // Relation to the AlpacaAccount model.
129
- alpacaAccount: AlpacaAccount;
130
- // Relation to the Asset model.
131
- asset: Asset;
132
- // If the asset.type is OPTION, then provide type of contract (CALL or PUT).
133
- optionContractType?: OptionContractType;
134
- // List of actions associated with this trade.
135
- actions: Action[];
136
- }
137
-
138
- export enum OrderSide {
139
- BUY = "BUY",
140
- SELL = "SELL"
141
- }
142
-
143
- export enum OrderType {
144
- MARKET = "MARKET",
145
- LIMIT = "LIMIT",
146
- STOP = "STOP",
147
- STOP_LIMIT = "STOP_LIMIT",
148
- TRAILING_STOP = "TRAILING_STOP"
149
- }
150
-
151
- // Time in force enum (day, gtc, opg, cls, etc.).
152
- export enum TimeInForce {
153
- DAY = "DAY",
154
- GTC = "GTC",
155
- OPG = "OPG",
156
- CLS = "CLS",
157
- IOC = "IOC",
158
- FOK = "FOK"
159
- }
160
-
161
- export enum OrderStatus {
162
- NEW = "NEW",
163
- PARTIALLY_FILLED = "PARTIALLY_FILLED",
164
- FILLED = "FILLED",
165
- CANCELED = "CANCELED",
166
- REJECTED = "REJECTED",
167
- EXPIRED = "EXPIRED"
168
- }
169
-
170
- export type Order = {
171
- // Reference to the Alpaca account used for the order.
172
- alpacaAccountId: string;
173
- // Reference to the asset being ordered.
174
- assetId: string;
175
- // Symbol of the asset (ticker symbol).
176
- symbol: string;
177
- // Quantity of the asset to be ordered.
178
- qty?: number;
179
- // Notional value of the order. Optional, used if qty is not provided.
180
- notional?: number;
181
- // Side of the order (BUY or SELL).
182
- side: OrderSide;
183
- // Type of order (market, limit, stop, stop_limit, trailing_stop).
184
- type: OrderType;
185
- // Time in force for the order (day, gtc, opg, cls, ioc, fok).
186
- timeInForce: TimeInForce;
187
- // Limit price for limit or stop-limit orders.
188
- limitPrice?: number;
189
- // Stop price for stop or stop-limit orders.
190
- stopPrice?: number;
191
- // Trailing price for trailing stop orders.
192
- trailPrice?: number;
193
- // Trailing percent for trailing stop orders.
194
- trailPercent?: number;
195
- // Whether the order is eligible for extended hours.
196
- extendedHours?: boolean;
197
- // Client-supplied identifier for the order.
198
- clientOrderId?: string;
199
- // Current status of the order.
200
- status: OrderStatus;
201
- // Timestamp when the order was submitted.
202
- submittedAt?: Date;
203
- // Timestamp when the order was filled.
204
- filledAt?: Date;
205
- // Average price at which the order was filled.
206
- filledAvgPrice?: number;
207
- // Reference to the action associated with the order.
208
- actionId: string;
209
- // The Alpaca account this order is associated with.
210
- alpacaAccount: AlpacaAccount;
211
- // The action this order is associated with.
212
- action: Action;
213
- // The asset this order is for.
214
- asset: Asset;
215
- // Fee associated with the order.
216
- fee?: number;
217
- }
218
-
219
- export type Position = {
220
- // Reference to the associated asset.
221
- assetId: string;
222
- // Relation to the Asset model.
223
- asset: Asset;
224
- // The average price at which the asset was acquired.
225
- averageEntryPrice: number;
226
- // Total quantity of the asset held.
227
- qty: number;
228
- // Quantity of the asset available for trading.
229
- qtyAvailable: number;
230
- // Current market value of the position.
231
- marketValue: number;
232
- // Total cost basis of the position.
233
- costBasis: number;
234
- // Unrealized profit or loss of the position.
235
- unrealizedPL: number;
236
- // Unrealized profit or loss as a percentage.
237
- unrealizedPLPC: number;
238
- // Unrealized intraday profit or loss.
239
- unrealisedIntradayPL: number;
240
- // Unrealized intraday profit or loss as a percentage.
241
- unrealisedIntradayPLPC: number;
242
- // Current price of the asset.
243
- currentPrice: number;
244
- // Last traded price of the asset.
245
- lastTradePrice: number;
246
- // Price change of the asset for the day.
247
- changeToday: number;
248
- // Indicates if the asset is marginable.
249
- assetMarginable: boolean;
250
- // Relation to the AlpacaAccount model, if applicable.
251
- alpacaAccount?: AlpacaAccount;
252
- // Foreign key referencing the AlpacaAccount.
253
- alpacaAccountId: string;
254
- }
255
-
256
- export enum AlertType {
257
- SUCCESS = "SUCCESS",
258
- WARNING = "WARNING",
259
- ERROR = "ERROR",
260
- INFO = "INFO"
261
- }
262
-
263
- export type Alert = {
264
- // Reference to the Alpaca account associated with the alert.
265
- alpacaAccountId: string;
266
- // Message content of the alert.
267
- message: string;
268
- // Type of the alert, defined by AlertType enum.
269
- type: AlertType;
270
- // Indicates whether the alert has been read by the user.
271
- isRead: boolean;
272
- // Relation to the AlpacaAccount model.
273
- alpacaAccount: AlpacaAccount;
274
69
  }
275
70
 
276
71
  export type AlpacaAccount = {
@@ -284,10 +79,6 @@ export type AlpacaAccount = {
284
79
  configuration?: any;
285
80
  // Indicates whether the market is currently open for trading.
286
81
  marketOpen: boolean;
287
- // Relation to the User model who owns this Alpaca account.
288
- user: User;
289
- // Foreign key referencing the User.
290
- userId: string;
291
82
  // List of trades executed through this Alpaca account.
292
83
  trades: Trade[];
293
84
  // List of orders placed through this Alpaca account.
@@ -317,12 +108,8 @@ export type User = {
317
108
  currentAccount: AlpacaAccountType;
318
109
  // Relation to the Customer model, if applicable.
319
110
  customer?: Customer;
320
- // Foreign key referencing the Customer.
321
- customerId?: number;
322
111
  // List of accounts associated with the user.
323
112
  accounts: Account[];
324
- // List of sessions associated with the user.
325
- sessions: Session[];
326
113
  // List of authenticators for the user.
327
114
  authenticators: Authenticator[];
328
115
  // The subscription plan the user is enrolled in.
@@ -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 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 OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport 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 // Symbol of the asset (ticker symbol).\n symbol: string;\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Client-supplied identifier for the order.\n clientOrderId?: string;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Reference to the action associated with the order.\n actionId: string;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport 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";
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 // 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 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 // 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}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // 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 // 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}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\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}\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 // 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,09cA8d3B,CAAC"}
1
+ {"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,omNAqO3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Trade.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8d9B,CAAC"}
1
+ {"version":3,"file":"Trade.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqO9B,CAAC"}