adaptic-backend 1.0.246 → 1.0.248

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 (355) hide show
  1. package/Action.cjs +13 -0
  2. package/Alert.cjs +40 -0
  3. package/AlpacaAccount.cjs +36 -0
  4. package/Asset.cjs +54 -0
  5. package/Contract.cjs +58 -0
  6. package/Deliverable.cjs +21 -0
  7. package/NewsArticleAssetSentiment.cjs +40 -0
  8. package/Order.cjs +55 -0
  9. package/Position.cjs +80 -0
  10. package/StopLoss.cjs +17 -0
  11. package/TakeProfit.cjs +17 -0
  12. package/Trade.cjs +55 -0
  13. package/User.cjs +42 -0
  14. package/generated/typeStrings/Action.cjs +5 -3
  15. package/generated/typeStrings/Action.d.ts +1 -1
  16. package/generated/typeStrings/Action.d.ts.map +1 -1
  17. package/generated/typeStrings/Action.js.map +1 -1
  18. package/generated/typeStrings/Contract.cjs +3 -3
  19. package/generated/typeStrings/Contract.d.ts +1 -1
  20. package/generated/typeStrings/Contract.d.ts.map +1 -1
  21. package/generated/typeStrings/Deliverable.cjs +3 -3
  22. package/generated/typeStrings/Deliverable.d.ts +1 -1
  23. package/generated/typeStrings/Deliverable.d.ts.map +1 -1
  24. package/generated/typeStrings/Order.cjs +3 -3
  25. package/generated/typeStrings/Order.d.ts +1 -1
  26. package/generated/typeStrings/Order.d.ts.map +1 -1
  27. package/generated/typeStrings/Trade.cjs +3 -3
  28. package/generated/typeStrings/Trade.d.ts +1 -1
  29. package/generated/typeStrings/Trade.d.ts.map +1 -1
  30. package/generated/typeStrings/index.d.ts +5 -5
  31. package/generated/typegraphql-prisma/enhance.cjs +24 -24
  32. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  33. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.cjs +1 -0
  34. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts +1 -0
  35. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts.map +1 -1
  36. package/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.js.map +1 -1
  37. package/generated/typegraphql-prisma/models/Action.cjs +7 -0
  38. package/generated/typegraphql-prisma/models/Action.d.ts +4 -0
  39. package/generated/typegraphql-prisma/models/Action.d.ts.map +1 -1
  40. package/generated/typegraphql-prisma/models/Action.js.map +1 -1
  41. package/generated/typegraphql-prisma/models/Order.cjs +3 -3
  42. package/generated/typegraphql-prisma/models/Order.d.ts +3 -3
  43. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  44. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts +1 -1
  45. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts.map +1 -1
  46. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.js.map +1 -1
  47. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts +1 -1
  48. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts.map +1 -1
  49. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.js.map +1 -1
  50. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts +1 -1
  51. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts.map +1 -1
  52. package/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.js.map +1 -1
  53. package/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts +1 -1
  54. package/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts.map +1 -1
  55. package/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.js.map +1 -1
  56. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.cjs +6 -0
  57. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts +1 -0
  58. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts.map +1 -1
  59. package/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.js.map +1 -1
  60. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.cjs +6 -0
  61. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts +1 -0
  62. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts.map +1 -1
  63. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.js.map +1 -1
  64. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.cjs +6 -0
  65. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts +1 -0
  66. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts.map +1 -1
  67. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.js.map +1 -1
  68. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.cjs +6 -0
  69. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts +1 -0
  70. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts.map +1 -1
  71. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.js.map +1 -1
  72. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.cjs +6 -0
  73. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.d.ts +1 -0
  74. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.d.ts.map +1 -1
  75. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.js.map +1 -1
  76. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.cjs +6 -0
  77. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts +1 -0
  78. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts.map +1 -1
  79. package/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.js.map +1 -1
  80. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.cjs +6 -0
  81. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts +1 -0
  82. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts.map +1 -1
  83. package/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.js.map +1 -1
  84. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.cjs +6 -0
  85. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts +1 -0
  86. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts.map +1 -1
  87. package/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.js.map +1 -1
  88. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.cjs +6 -0
  89. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts +1 -0
  90. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts.map +1 -1
  91. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.js.map +1 -1
  92. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.cjs +6 -0
  93. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts +1 -0
  94. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts.map +1 -1
  95. package/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.js.map +1 -1
  96. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.cjs +7 -0
  97. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts +2 -0
  98. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts.map +1 -1
  99. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.js.map +1 -1
  100. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.cjs +7 -0
  101. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts +2 -0
  102. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts.map +1 -1
  103. package/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.js.map +1 -1
  104. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.cjs +7 -0
  105. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts +2 -0
  106. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts.map +1 -1
  107. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.js.map +1 -1
  108. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.cjs +7 -0
  109. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts +2 -0
  110. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts.map +1 -1
  111. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.js.map +1 -1
  112. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.cjs +7 -0
  113. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.d.ts +2 -0
  114. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.d.ts.map +1 -1
  115. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.js.map +1 -1
  116. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.cjs +7 -0
  117. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts +2 -0
  118. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts.map +1 -1
  119. package/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.js.map +1 -1
  120. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.cjs +7 -0
  121. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts +2 -0
  122. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts.map +1 -1
  123. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.js.map +1 -1
  124. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.cjs +7 -0
  125. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts +2 -0
  126. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts.map +1 -1
  127. package/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.js.map +1 -1
  128. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.cjs +6 -0
  129. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts +1 -0
  130. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts.map +1 -1
  131. package/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.js.map +1 -1
  132. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.cjs +6 -0
  133. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts +1 -0
  134. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts.map +1 -1
  135. package/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.js.map +1 -1
  136. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.cjs +6 -0
  137. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts +1 -0
  138. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts.map +1 -1
  139. package/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.js.map +1 -1
  140. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.cjs +6 -0
  141. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts +1 -0
  142. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts.map +1 -1
  143. package/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.js.map +1 -1
  144. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAction.cjs +6 -0
  145. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAction.d.ts +1 -0
  146. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAction.d.ts.map +1 -1
  147. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAction.js.map +1 -1
  148. package/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts +1 -1
  149. package/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts.map +1 -1
  150. package/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.js.map +1 -1
  151. package/package.json +1 -1
  152. package/server/Action.d.ts.map +1 -1
  153. package/server/Action.js.map +1 -1
  154. package/server/Action.mjs +13 -0
  155. package/server/Alert.d.ts.map +1 -1
  156. package/server/Alert.js.map +1 -1
  157. package/server/Alert.mjs +40 -0
  158. package/server/AlpacaAccount.d.ts.map +1 -1
  159. package/server/AlpacaAccount.js.map +1 -1
  160. package/server/AlpacaAccount.mjs +36 -0
  161. package/server/Asset.d.ts.map +1 -1
  162. package/server/Asset.js.map +1 -1
  163. package/server/Asset.mjs +54 -0
  164. package/server/Contract.d.ts.map +1 -1
  165. package/server/Contract.js.map +1 -1
  166. package/server/Contract.mjs +58 -0
  167. package/server/Deliverable.d.ts.map +1 -1
  168. package/server/Deliverable.js.map +1 -1
  169. package/server/Deliverable.mjs +21 -0
  170. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  171. package/server/NewsArticleAssetSentiment.js.map +1 -1
  172. package/server/NewsArticleAssetSentiment.mjs +40 -0
  173. package/server/Order.d.ts.map +1 -1
  174. package/server/Order.js.map +1 -1
  175. package/server/Order.mjs +55 -0
  176. package/server/Position.d.ts.map +1 -1
  177. package/server/Position.js.map +1 -1
  178. package/server/Position.mjs +80 -0
  179. package/server/StopLoss.d.ts.map +1 -1
  180. package/server/StopLoss.js.map +1 -1
  181. package/server/StopLoss.mjs +17 -0
  182. package/server/TakeProfit.d.ts.map +1 -1
  183. package/server/TakeProfit.js.map +1 -1
  184. package/server/TakeProfit.mjs +17 -0
  185. package/server/Trade.d.ts.map +1 -1
  186. package/server/Trade.js.map +1 -1
  187. package/server/Trade.mjs +55 -0
  188. package/server/User.d.ts.map +1 -1
  189. package/server/User.js.map +1 -1
  190. package/server/User.mjs +42 -0
  191. package/server/generated/selectionSets/Action.d.ts +1 -1
  192. package/server/generated/selectionSets/Action.d.ts.map +1 -1
  193. package/server/generated/selectionSets/Action.js.map +1 -1
  194. package/server/generated/selectionSets/Action.mjs +1 -0
  195. package/server/generated/selectionSets/AlpacaAccount.d.ts +1 -1
  196. package/server/generated/selectionSets/AlpacaAccount.d.ts.map +1 -1
  197. package/server/generated/selectionSets/AlpacaAccount.js.map +1 -1
  198. package/server/generated/selectionSets/AlpacaAccount.mjs +2 -0
  199. package/server/generated/selectionSets/Contract.d.ts +1 -1
  200. package/server/generated/selectionSets/Contract.d.ts.map +1 -1
  201. package/server/generated/selectionSets/Contract.js.map +1 -1
  202. package/server/generated/selectionSets/Contract.mjs +1 -0
  203. package/server/generated/selectionSets/Deliverable.d.ts +1 -1
  204. package/server/generated/selectionSets/Deliverable.d.ts.map +1 -1
  205. package/server/generated/selectionSets/Deliverable.js.map +1 -1
  206. package/server/generated/selectionSets/Deliverable.mjs +1 -0
  207. package/server/generated/selectionSets/Order.d.ts +1 -1
  208. package/server/generated/selectionSets/Order.d.ts.map +1 -1
  209. package/server/generated/selectionSets/Order.js.map +1 -1
  210. package/server/generated/selectionSets/Order.mjs +1 -0
  211. package/server/generated/selectionSets/Trade.d.ts +1 -1
  212. package/server/generated/selectionSets/Trade.d.ts.map +1 -1
  213. package/server/generated/selectionSets/Trade.js.map +1 -1
  214. package/server/generated/selectionSets/Trade.mjs +1 -0
  215. package/server/generated/selectionSets/User.d.ts +1 -1
  216. package/server/generated/selectionSets/User.d.ts.map +1 -1
  217. package/server/generated/selectionSets/User.js.map +1 -1
  218. package/server/generated/selectionSets/User.mjs +2 -0
  219. package/server/generated/typeStrings/Action.d.ts +1 -1
  220. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  221. package/server/generated/typeStrings/Action.js.map +1 -1
  222. package/server/generated/typeStrings/Action.mjs +5 -3
  223. package/server/generated/typeStrings/Contract.d.ts +1 -1
  224. package/server/generated/typeStrings/Contract.d.ts.map +1 -1
  225. package/server/generated/typeStrings/Contract.mjs +3 -3
  226. package/server/generated/typeStrings/Deliverable.d.ts +1 -1
  227. package/server/generated/typeStrings/Deliverable.d.ts.map +1 -1
  228. package/server/generated/typeStrings/Deliverable.mjs +3 -3
  229. package/server/generated/typeStrings/Order.d.ts +1 -1
  230. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  231. package/server/generated/typeStrings/Order.mjs +3 -3
  232. package/server/generated/typeStrings/Trade.d.ts +1 -1
  233. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  234. package/server/generated/typeStrings/Trade.mjs +3 -3
  235. package/server/generated/typeStrings/index.d.ts +5 -5
  236. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  237. package/server/generated/typegraphql-prisma/enhance.mjs +24 -24
  238. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts +1 -0
  239. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.d.ts.map +1 -1
  240. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.js.map +1 -1
  241. package/server/generated/typegraphql-prisma/enums/ActionScalarFieldEnum.mjs +1 -0
  242. package/server/generated/typegraphql-prisma/models/Action.d.ts +4 -0
  243. package/server/generated/typegraphql-prisma/models/Action.d.ts.map +1 -1
  244. package/server/generated/typegraphql-prisma/models/Action.js.map +1 -1
  245. package/server/generated/typegraphql-prisma/models/Action.mjs +11 -0
  246. package/server/generated/typegraphql-prisma/models/Order.d.ts +3 -3
  247. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  248. package/server/generated/typegraphql-prisma/models/Order.mjs +6 -6
  249. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts +1 -1
  250. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.d.ts.map +1 -1
  251. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionArgs.js.map +1 -1
  252. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts +1 -1
  253. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.d.ts.map +1 -1
  254. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindFirstActionOrThrowArgs.js.map +1 -1
  255. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts +1 -1
  256. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.d.ts.map +1 -1
  257. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/FindManyActionArgs.js.map +1 -1
  258. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts +1 -1
  259. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.d.ts.map +1 -1
  260. package/server/generated/typegraphql-prisma/resolvers/crud/Action/args/GroupByActionArgs.js.map +1 -1
  261. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts +1 -0
  262. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.d.ts.map +1 -1
  263. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.js.map +1 -1
  264. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCountOrderByAggregateInput.mjs +7 -0
  265. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts +1 -0
  266. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.d.ts.map +1 -1
  267. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.js.map +1 -1
  268. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateInput.mjs +7 -0
  269. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts +1 -0
  270. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.d.ts.map +1 -1
  271. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.js.map +1 -1
  272. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyInput.mjs +7 -0
  273. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts +1 -0
  274. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.d.ts.map +1 -1
  275. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.js.map +1 -1
  276. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateManyTradeInput.mjs +7 -0
  277. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.d.ts +1 -0
  278. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.d.ts.map +1 -1
  279. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.js.map +1 -1
  280. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutOrderInput.mjs +7 -0
  281. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts +1 -0
  282. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.d.ts.map +1 -1
  283. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.js.map +1 -1
  284. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionCreateWithoutTradeInput.mjs +7 -0
  285. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts +1 -0
  286. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.d.ts.map +1 -1
  287. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.js.map +1 -1
  288. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMaxOrderByAggregateInput.mjs +7 -0
  289. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts +1 -0
  290. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.d.ts.map +1 -1
  291. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.js.map +1 -1
  292. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionMinOrderByAggregateInput.mjs +7 -0
  293. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts +1 -0
  294. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.d.ts.map +1 -1
  295. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.js.map +1 -1
  296. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithAggregationInput.mjs +7 -0
  297. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts +1 -0
  298. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.d.ts.map +1 -1
  299. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.js.map +1 -1
  300. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionOrderByWithRelationInput.mjs +7 -0
  301. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts +2 -0
  302. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.d.ts.map +1 -1
  303. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.js.map +1 -1
  304. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereInput.mjs +8 -0
  305. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts +2 -0
  306. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.d.ts.map +1 -1
  307. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.js.map +1 -1
  308. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionScalarWhereWithAggregatesInput.mjs +8 -0
  309. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts +2 -0
  310. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.d.ts.map +1 -1
  311. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.js.map +1 -1
  312. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateInput.mjs +8 -0
  313. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts +2 -0
  314. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.d.ts.map +1 -1
  315. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.js.map +1 -1
  316. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateManyMutationInput.mjs +8 -0
  317. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.d.ts +2 -0
  318. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.d.ts.map +1 -1
  319. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.js.map +1 -1
  320. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutOrderInput.mjs +8 -0
  321. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts +2 -0
  322. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.d.ts.map +1 -1
  323. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.js.map +1 -1
  324. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionUpdateWithoutTradeInput.mjs +8 -0
  325. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts +2 -0
  326. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.d.ts.map +1 -1
  327. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.js.map +1 -1
  328. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereInput.mjs +8 -0
  329. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts +2 -0
  330. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.d.ts.map +1 -1
  331. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.js.map +1 -1
  332. package/server/generated/typegraphql-prisma/resolvers/inputs/ActionWhereUniqueInput.mjs +8 -0
  333. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts +1 -0
  334. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.d.ts.map +1 -1
  335. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.js.map +1 -1
  336. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionCountAggregate.mjs +7 -0
  337. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts +1 -0
  338. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.d.ts.map +1 -1
  339. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.js.map +1 -1
  340. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionGroupBy.mjs +7 -0
  341. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts +1 -0
  342. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.d.ts.map +1 -1
  343. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.js.map +1 -1
  344. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMaxAggregate.mjs +7 -0
  345. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts +1 -0
  346. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.d.ts.map +1 -1
  347. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.js.map +1 -1
  348. package/server/generated/typegraphql-prisma/resolvers/outputs/ActionMinAggregate.mjs +7 -0
  349. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAction.d.ts +1 -0
  350. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAction.d.ts.map +1 -1
  351. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAction.js.map +1 -1
  352. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAction.mjs +7 -0
  353. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts +1 -1
  354. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.d.ts.map +1 -1
  355. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/args/TradeActionsArgs.js.map +1 -1
@@ -9,11 +9,11 @@ export declare const typeStrings: {
9
9
  readonly verificationToken: "\n// Your response should adhere to the following type definition for the \"VerificationToken\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type VerificationToken = {\n\n};\n\n";
10
10
  readonly customer: "\n// Your response should adhere to the following type definition for the \"Customer\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\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 // List of users associated with the customer.\n users: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n }[];\n};\n\nenum SubscriptionPlan {\n FREE\n\n PRO\n\n BUSINESS\n}\n\n";
11
11
  readonly asset: "\n// Your response should adhere to the following type definition for the \"Asset\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Asset = {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n};\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\n";
12
- readonly contract: "\n// Your response should adhere to the following type definition for the \"Contract\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Contract = {\n // Symbol of the contract\n symbol: string;\n // Name of the contract\n name: string;\n // Status of the contract (active, inactive)\n status: string;\n // Indicates if the contract is tradable\n tradable: boolean;\n // Expiration date of the contract\n expirationDate: Date;\n // Root symbol of the contract\n rootSymbol: string;\n // Underlying symbol of the contract\n underlyingSymbol: string;\n // Type of the option (call or put)\n type: OptionType;\n // Style of the option (american or european)\n style: OptionStyle;\n // Strike price of the option\n strikePrice: number;\n // Multiplier of the option\n multiplier: number;\n // Size of the option\n size: number;\n // Open interest of the option\n openInterest?: number;\n // Date when the open interest was recorded\n openInterestDate?: Date;\n // Close price of the option\n closePrice?: number;\n // Date when the close price was recorded\n closePriceDate?: Date;\n // Deliverables associated with the contract\n deliverables: {\n // Type of deliverable (cash or equity)\n type: DeliverableType;\n // Symbol of the deliverable\n symbol: string;\n // Amount of the deliverable\n amount?: number;\n // Allocation percentage of the deliverable\n allocationPercentage: number;\n // Settlement type (e.g., T+1)\n settlementType: string;\n // Settlement method (e.g., CCC)\n settlementMethod: string;\n // Indicates if the settlement is delayed\n delayedSettlement: boolean;\n }[];\n // PPIND flag\n ppind?: boolean;\n // Relation to the Asset model\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Optional relation to an order that created this contract\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\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 // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n};\n\nenum OptionType {\n CALL\n\n PUT\n}\n\nenum OptionStyle {\n AMERICAN\n\n EUROPEAN\n}\n\nenum DeliverableType {\n CASH\n\n EQUITY\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\n";
13
- readonly deliverable: "\n// Your response should adhere to the following type definition for the \"Deliverable\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Deliverable = {\n // Type of deliverable (cash or equity)\n type: DeliverableType;\n // Symbol of the deliverable\n symbol: string;\n // Amount of the deliverable\n amount?: number;\n // Allocation percentage of the deliverable\n allocationPercentage: number;\n // Settlement type (e.g., T+1)\n settlementType: string;\n // Settlement method (e.g., CCC)\n settlementMethod: string;\n // Indicates if the settlement is delayed\n delayedSettlement: boolean;\n // Relation to the Contract model\n contract: {\n // Symbol of the contract\n symbol: string;\n // Name of the contract\n name: string;\n // Status of the contract (active, inactive)\n status: string;\n // Indicates if the contract is tradable\n tradable: boolean;\n // Expiration date of the contract\n expirationDate: Date;\n // Root symbol of the contract\n rootSymbol: string;\n // Underlying symbol of the contract\n underlyingSymbol: string;\n // Type of the option (call or put)\n type: OptionType;\n // Style of the option (american or european)\n style: OptionStyle;\n // Strike price of the option\n strikePrice: number;\n // Multiplier of the option\n multiplier: number;\n // Size of the option\n size: number;\n // Open interest of the option\n openInterest?: number;\n // Date when the open interest was recorded\n openInterestDate?: Date;\n // Close price of the option\n closePrice?: number;\n // Date when the close price was recorded\n closePriceDate?: Date;\n // PPIND flag\n ppind?: boolean;\n // Relation to the Asset model\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Optional relation to an order that created this contract\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\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 // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n };\n};\n\nenum DeliverableType {\n CASH\n\n EQUITY\n}\n\nenum OptionType {\n CALL\n\n PUT\n}\n\nenum OptionStyle {\n AMERICAN\n\n EUROPEAN\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\n";
14
- readonly trade: "\n// Your response should adhere to the following type definition for the \"Trade\" type.\n// Importantly, 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 // Option Type (CALL or PUT) if the asset is an option.\n optionType?: OptionType;\n // Signal that triggered the trade.\n signal: TradeSignal;\n // Strategy used to execute the trade.\n strategy: TradeStrategy;\n // summary of the trade decision (this should be a short description of the trade).\n summary: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the Asset model.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // List of actions associated with this trade.\n actions: {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // The order associated with this action.\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: 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 // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n // A list of action sequence numbers, for any sibling actions that are part of the same trade, that this action depends on.\n dependsOn: string[];\n // A list of action sequence numbers, for any sibling actions that depend on this action.\n dependedOnBy: string[];\n }[];\n};\n\nenum OptionType {\n CALL\n\n PUT\n}\n\nenum TradeSignal {\n GOLDEN_CROSS\n\n MOVING_AVERAGE_CROSSOVER\n\n RSI_OVERBOUGHT\n\n RSI_OVERSOLD\n\n MACD_CROSSOVER\n\n BOLLINGER_BANDS_BREAKOUT\n\n TREND_REVERSAL\n\n VOLATILITY_SPIKE\n\n PRICE_ACTION\n\n IMPLIED_VOLATILITY_SURGE\n\n BREAKOUT_ABOVE_RESISTANCE\n\n BREAKDOWN_BELOW_SUPPORT\n\n SUPPORT_LEVEL_HOLD\n\n RESISTANCE_LEVEL_HOLD\n\n FIBONACCI_RETRACEMENT\n\n ELLIOTT_WAVE\n\n PARABOLIC_SAR\n\n ADX_TREND_STRENGTH\n\n CCI_OVERBOUGHT\n\n CCI_OVERSOLD\n\n STOCHASTIC_OVERSOLD\n\n STOCHASTIC_OVERBOUGHT\n\n DIVERGENCE_SIGNAL\n\n GANN_FAN\n\n DONCHIAN_CHANNEL_BREAKOUT\n\n PIVOT_POINT\n\n KELTNER_CHANNEL_BREAK\n\n HEIKIN_ASHI_CROSSOVER\n\n VOLUME_SURGE\n\n ORDER_BOOK_IMBALANCE\n\n TIME_SERIES_ANOMALY\n\n MEAN_REVERSION_LEVEL\n\n PAIR_TRADING_SIGNAL\n\n SENTIMENT_SCORE_THRESHOLD\n\n NEWS_SENTIMENT_CHANGE\n\n ORDER_FLOW_IMPACT\n\n LIQUIDITY_DRIVEN_MOVE\n\n MACHINE_LEARNING_PREDICTION\n\n SENTIMENT_ANALYSIS_TRIGGER\n\n NO_SIGNAL\n}\n\nenum TradeStrategy {\n TECHNICAL_ANALYSIS\n\n TREND_FOLLOWING\n\n MEAN_REVERSION\n\n OPTIONS_STRATEGY\n\n MOMENTUM_STRATEGY\n\n MARKET_MAKING\n\n NEWS_BASED_STRATEGY\n\n SENTIMENT_ANALYSIS\n\n SCALPING\n\n VOLATILITY_TRADING\n\n EVENT_DRIVEN\n\n BREAKOUT_STRATEGY\n\n ORDER_FLOW_TRADING\n\n NO_STRATEGY\n}\n\nenum TradeStatus {\n PENDING\n\n OPEN\n\n PARTIAL\n\n COMPLETED\n\n CANCELED\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum ActionType {\n BUY\n\n BUY_OPTION\n\n EXERCISE_OPTION\n\n SELL\n\n CANCEL\n\n ADJUST\n\n HEDGE\n}\n\nenum ActionStatus {\n STAGED\n\n EXECUTED\n\n COMPLETED\n\n CANCELED\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\n";
15
- readonly action: "\n// Your response should adhere to the following type definition for the \"Action\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\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 order associated with this action.\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: 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 // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n // A list of action sequence numbers, for any sibling actions that are part of the same trade, that this action depends on.\n dependsOn: string[];\n // A list of action sequence numbers, for any sibling actions that depend on this action.\n dependedOnBy: string[];\n};\n\nenum ActionType {\n BUY\n\n BUY_OPTION\n\n EXERCISE_OPTION\n\n SELL\n\n CANCEL\n\n ADJUST\n\n HEDGE\n}\n\nenum ActionStatus {\n STAGED\n\n EXECUTED\n\n COMPLETED\n\n CANCELED\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\nenum OptionType {\n CALL\n\n PUT\n}\n\n";
16
- readonly order: "\n// Your response should adhere to the following type definition for the \"Order\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Order = {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\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 // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n};\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum OptionType {\n CALL\n\n PUT\n}\n\n";
12
+ readonly contract: "\n// Your response should adhere to the following type definition for the \"Contract\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Contract = {\n // Symbol of the contract\n symbol: string;\n // Name of the contract\n name: string;\n // Status of the contract (active, inactive)\n status: string;\n // Indicates if the contract is tradable\n tradable: boolean;\n // Expiration date of the contract\n expirationDate: Date;\n // Root symbol of the contract\n rootSymbol: string;\n // Underlying symbol of the contract\n underlyingSymbol: string;\n // Type of the option (call or put)\n type: OptionType;\n // Style of the option (american or european)\n style: OptionStyle;\n // Strike price of the option\n strikePrice: number;\n // Multiplier of the option\n multiplier: number;\n // Size of the option\n size: number;\n // Open interest of the option\n openInterest?: number;\n // Date when the open interest was recorded\n openInterestDate?: Date;\n // Close price of the option\n closePrice?: number;\n // Date when the close price was recorded\n closePriceDate?: Date;\n // Deliverables associated with the contract\n deliverables: {\n // Type of deliverable (cash or equity)\n type: DeliverableType;\n // Symbol of the deliverable\n symbol: string;\n // Amount of the deliverable\n amount?: number;\n // Allocation percentage of the deliverable\n allocationPercentage: number;\n // Settlement type (e.g., T+1)\n settlementType: string;\n // Settlement method (e.g., CCC)\n settlementMethod: string;\n // Indicates if the settlement is delayed\n delayedSettlement: boolean;\n }[];\n // PPIND flag\n ppind?: boolean;\n // Relation to the Asset model\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Optional relation to an order that created this contract\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\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 // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // For option orders. Strike price for option orders. Required only when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // For option orders. Expiration date for option orders. Required only when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // For option orders. Type of option contract ('CALL' or 'PUT'). Required only when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n};\n\nenum OptionType {\n CALL\n\n PUT\n}\n\nenum OptionStyle {\n AMERICAN\n\n EUROPEAN\n}\n\nenum DeliverableType {\n CASH\n\n EQUITY\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\n";
13
+ readonly deliverable: "\n// Your response should adhere to the following type definition for the \"Deliverable\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Deliverable = {\n // Type of deliverable (cash or equity)\n type: DeliverableType;\n // Symbol of the deliverable\n symbol: string;\n // Amount of the deliverable\n amount?: number;\n // Allocation percentage of the deliverable\n allocationPercentage: number;\n // Settlement type (e.g., T+1)\n settlementType: string;\n // Settlement method (e.g., CCC)\n settlementMethod: string;\n // Indicates if the settlement is delayed\n delayedSettlement: boolean;\n // Relation to the Contract model\n contract: {\n // Symbol of the contract\n symbol: string;\n // Name of the contract\n name: string;\n // Status of the contract (active, inactive)\n status: string;\n // Indicates if the contract is tradable\n tradable: boolean;\n // Expiration date of the contract\n expirationDate: Date;\n // Root symbol of the contract\n rootSymbol: string;\n // Underlying symbol of the contract\n underlyingSymbol: string;\n // Type of the option (call or put)\n type: OptionType;\n // Style of the option (american or european)\n style: OptionStyle;\n // Strike price of the option\n strikePrice: number;\n // Multiplier of the option\n multiplier: number;\n // Size of the option\n size: number;\n // Open interest of the option\n openInterest?: number;\n // Date when the open interest was recorded\n openInterestDate?: Date;\n // Close price of the option\n closePrice?: number;\n // Date when the close price was recorded\n closePriceDate?: Date;\n // PPIND flag\n ppind?: boolean;\n // Relation to the Asset model\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // Optional relation to an order that created this contract\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\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 // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // For option orders. Strike price for option orders. Required only when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // For option orders. Expiration date for option orders. Required only when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // For option orders. Type of option contract ('CALL' or 'PUT'). Required only when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n };\n};\n\nenum DeliverableType {\n CASH\n\n EQUITY\n}\n\nenum OptionType {\n CALL\n\n PUT\n}\n\nenum OptionStyle {\n AMERICAN\n\n EUROPEAN\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\n";
14
+ readonly trade: "\n// Your response should adhere to the following type definition for the \"Trade\" type.\n// Importantly, 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 // Option Type (CALL or PUT) if the asset is an option.\n optionType?: OptionType;\n // Signal that triggered the trade.\n signal: TradeSignal;\n // Strategy used to execute the trade.\n strategy: TradeStrategy;\n // summary of the trade decision (this should be a short description of the trade).\n summary: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the Asset model.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // List of actions associated with this trade.\n actions: {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // The order associated with this action.\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: 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 // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // For option orders. Strike price for option orders. Required only when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // For option orders. Expiration date for option orders. Required only when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // For option orders. Type of option contract ('CALL' or 'PUT'). Required only when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n // A list of action sequence numbers, for any sibling actions that are part of the same trade, that this action depends on.\n dependsOn: string[];\n // A list of action sequence numbers, for any sibling actions that depend on this action.\n dependedOnBy: string[];\n }[];\n};\n\nenum OptionType {\n CALL\n\n PUT\n}\n\nenum TradeSignal {\n GOLDEN_CROSS\n\n MOVING_AVERAGE_CROSSOVER\n\n RSI_OVERBOUGHT\n\n RSI_OVERSOLD\n\n MACD_CROSSOVER\n\n BOLLINGER_BANDS_BREAKOUT\n\n TREND_REVERSAL\n\n VOLATILITY_SPIKE\n\n PRICE_ACTION\n\n IMPLIED_VOLATILITY_SURGE\n\n BREAKOUT_ABOVE_RESISTANCE\n\n BREAKDOWN_BELOW_SUPPORT\n\n SUPPORT_LEVEL_HOLD\n\n RESISTANCE_LEVEL_HOLD\n\n FIBONACCI_RETRACEMENT\n\n ELLIOTT_WAVE\n\n PARABOLIC_SAR\n\n ADX_TREND_STRENGTH\n\n CCI_OVERBOUGHT\n\n CCI_OVERSOLD\n\n STOCHASTIC_OVERSOLD\n\n STOCHASTIC_OVERBOUGHT\n\n DIVERGENCE_SIGNAL\n\n GANN_FAN\n\n DONCHIAN_CHANNEL_BREAKOUT\n\n PIVOT_POINT\n\n KELTNER_CHANNEL_BREAK\n\n HEIKIN_ASHI_CROSSOVER\n\n VOLUME_SURGE\n\n ORDER_BOOK_IMBALANCE\n\n TIME_SERIES_ANOMALY\n\n MEAN_REVERSION_LEVEL\n\n PAIR_TRADING_SIGNAL\n\n SENTIMENT_SCORE_THRESHOLD\n\n NEWS_SENTIMENT_CHANGE\n\n ORDER_FLOW_IMPACT\n\n LIQUIDITY_DRIVEN_MOVE\n\n MACHINE_LEARNING_PREDICTION\n\n SENTIMENT_ANALYSIS_TRIGGER\n\n NO_SIGNAL\n}\n\nenum TradeStrategy {\n TECHNICAL_ANALYSIS\n\n TREND_FOLLOWING\n\n MEAN_REVERSION\n\n OPTIONS_STRATEGY\n\n MOMENTUM_STRATEGY\n\n MARKET_MAKING\n\n NEWS_BASED_STRATEGY\n\n SENTIMENT_ANALYSIS\n\n SCALPING\n\n VOLATILITY_TRADING\n\n EVENT_DRIVEN\n\n BREAKOUT_STRATEGY\n\n ORDER_FLOW_TRADING\n\n NO_STRATEGY\n}\n\nenum TradeStatus {\n PENDING\n\n OPEN\n\n PARTIAL\n\n COMPLETED\n\n CANCELED\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum ActionType {\n BUY\n\n BUY_OPTION\n\n EXERCISE_OPTION\n\n SELL\n\n CANCEL\n\n ADJUST\n\n HEDGE\n}\n\nenum ActionStatus {\n STAGED\n\n EXECUTED\n\n COMPLETED\n\n CANCELED\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\n";
15
+ readonly action: "\n// Your response should adhere to the following type definition for the \"Action\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Whether the action is the primary action for the trade.\n primary: boolean;\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 order associated with this action.\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: 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 // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // For option orders. Strike price for option orders. Required only when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // For option orders. Expiration date for option orders. Required only when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // For option orders. Type of option contract ('CALL' or 'PUT'). Required only when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n // A list of action sequence numbers, for any sibling actions that are part of the same trade, that this action depends on.\n dependsOn: string[];\n // A list of action sequence numbers, for any sibling actions that depend on this action.\n dependedOnBy: string[];\n};\n\nenum ActionType {\n BUY\n\n BUY_OPTION\n\n EXERCISE_OPTION\n\n SELL\n\n CANCEL\n\n ADJUST\n\n HEDGE\n}\n\nenum ActionStatus {\n STAGED\n\n EXECUTED\n\n COMPLETED\n\n CANCELED\n}\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\nenum OptionType {\n CALL\n\n PUT\n}\n\n";
16
+ readonly order: "\n// Your response should adhere to the following type definition for the \"Order\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Order = {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Notional dollar amount to trade. Required if 'qty' is not provided. Only valid for 'MARKET' orders with 'timeInForce' set to 'DAY'.\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 // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Limit price of the order. Required for 'LIMIT' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' orders, 'limitPrice' represents the maximum price to pay; for 'SELL' orders, it represents the minimum price to accept.\n limitPrice?: number;\n // Stop price of the order. Required for 'STOP' and 'STOP_LIMIT' order types. Must be a positive number. For 'BUY' 'STOP_LIMIT' orders, 'stopPrice' must be less than or equal to 'limitPrice'. For 'SELL' 'STOP_LIMIT' orders, 'stopPrice' must be greater than or equal to 'limitPrice'.\n stopPrice?: number;\n // Stop loss object. Required for 'BRACKET' and 'OTO' order classes when setting a stop-loss order. For 'BUY' bracket orders, 'stopLoss.stopPrice' must be less than 'takeProfit.limitPrice'.\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n // Take profit object. Required for 'BRACKET' and 'OTO' order classes when setting a take-profit order. For 'BUY' bracket orders, 'takeProfit.limitPrice' must be greater than 'stopLoss.stopPrice'.\n takeProfit?: {\n // Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n // Trail price for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPrice?: number;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // The asset this order is for.\n asset?: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n // For option orders. Strike price for option orders. Required only when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // For option orders. Expiration date for option orders. Required only when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // For option orders. Type of option contract ('CALL' or 'PUT'). Required only when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n};\n\nenum OrderSide {\n BUY\n\n SELL\n}\n\nenum OrderType {\n MARKET\n\n LIMIT\n\n STOP\n\n STOP_LIMIT\n\n TRAILING_STOP\n}\n\nenum OrderClass {\n SIMPLE\n\n BRACKET\n\n OCO\n\n OSO\n\n OTO\n}\n\nenum TimeInForce {\n DAY\n\n GTC\n\n OPG\n\n CLS\n\n IOC\n\n FOK\n}\n\nenum OrderStatus {\n STAGED\n\n NEW\n\n PARTIALLY_FILLED\n\n FILLED\n\n DONE_FOR_DAY\n\n CANCELED\n\n EXPIRED\n\n HELD\n\n REPLACED\n\n PENDING_CANCEL\n\n PENDING_REPLACE\n\n ACCEPTED\n\n PENDING_NEW\n\n ACCEPTED_FOR_BIDDING\n\n STOPPED\n\n REJECTED\n\n SUSPENDED\n\n CALCULATED\n}\n\nenum AssetType {\n STOCK\n\n ETF\n\n MUTUAL_FUND\n\n CRYPTOCURRENCY\n\n INDEX\n\n COMMODITY\n\n CURRENCY\n\n OPTION\n\n FUTURE\n\n BOND\n\n WARRANT\n\n ADR\n\n GDR\n\n UNIT\n\n RIGHT\n\n REIT\n\n STRUCTURED_PRODUCT\n\n SWAP\n\n SPOT\n\n FORWARD\n\n OTHER\n}\n\nenum OptionType {\n CALL\n\n PUT\n}\n\n";
17
17
  readonly stopLoss: "\n// Your response should adhere to the following type definition for the \"StopLoss\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type StopLoss = {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n};\n\n";
18
18
  readonly takeProfit: "\n// Your response should adhere to the following type definition for the \"TakeProfit\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type TakeProfit = {\n // Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n};\n\n";
19
19
  readonly alert: "\n// Your response should adhere to the following type definition for the \"Alert\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\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\nenum AlertType {\n SUCCESS\n\n WARNING\n\n ERROR\n\n INFO\n}\n\n";
@@ -939,7 +939,7 @@ const modelsInfo = {
939
939
  Contract: ["id", "alpacaId", "symbol", "name", "status", "tradable", "expirationDate", "rootSymbol", "underlyingSymbol", "underlyingAssetId", "type", "style", "strikePrice", "multiplier", "size", "openInterest", "openInterestDate", "closePrice", "closePriceDate", "ppind", "assetId", "orderId", "createdAt", "updatedAt"],
940
940
  Deliverable: ["id", "type", "symbol", "assetId", "amount", "allocationPercentage", "settlementType", "settlementMethod", "delayedSettlement", "contractId", "createdAt", "updatedAt"],
941
941
  Trade: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
942
- Action: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy"],
942
+ Action: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy"],
943
943
  Order: ["id", "clientOrderId", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "contractId"],
944
944
  StopLoss: ["id", "stopPrice", "limitPrice", "createdAt", "updatedAt", "orderId"],
945
945
  TakeProfit: ["id", "limitPrice", "stopPrice", "createdAt", "updatedAt", "orderId"],
@@ -986,7 +986,7 @@ const outputsInfo = {
986
986
  AggregateTrade: ["_count", "_avg", "_sum", "_min", "_max"],
987
987
  TradeGroupBy: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "_count", "_avg", "_sum", "_min", "_max"],
988
988
  AggregateAction: ["_count", "_avg", "_sum", "_min", "_max"],
989
- ActionGroupBy: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "_count", "_avg", "_sum", "_min", "_max"],
989
+ ActionGroupBy: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "_count", "_avg", "_sum", "_min", "_max"],
990
990
  AggregateOrder: ["_count", "_avg", "_sum", "_min", "_max"],
991
991
  OrderGroupBy: ["id", "clientOrderId", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "contractId", "_count", "_avg", "_sum", "_min", "_max"],
992
992
  AggregateStopLoss: ["_count", "_avg", "_sum", "_min", "_max"],
@@ -1069,11 +1069,11 @@ const outputsInfo = {
1069
1069
  TradeSumAggregate: ["qty", "price", "total", "confidence"],
1070
1070
  TradeMinAggregate: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1071
1071
  TradeMaxAggregate: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1072
- ActionCountAggregate: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "_all"],
1072
+ ActionCountAggregate: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "_all"],
1073
1073
  ActionAvgAggregate: ["sequence", "fee"],
1074
1074
  ActionSumAggregate: ["sequence", "fee"],
1075
- ActionMinAggregate: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
1076
- ActionMaxAggregate: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
1075
+ ActionMinAggregate: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee"],
1076
+ ActionMaxAggregate: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee"],
1077
1077
  OrderCountAggregate: ["id", "clientOrderId", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "contractId", "_all"],
1078
1078
  OrderAvgAggregate: ["qty", "notional", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "filledQty", "filledAvgPrice", "fee", "strikePrice"],
1079
1079
  OrderSumAggregate: ["qty", "notional", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "filledQty", "filledAvgPrice", "fee", "strikePrice"],
@@ -1118,7 +1118,7 @@ const outputsInfo = {
1118
1118
  CreateManyAndReturnContract: ["id", "alpacaId", "symbol", "name", "status", "tradable", "expirationDate", "rootSymbol", "underlyingSymbol", "underlyingAssetId", "type", "style", "strikePrice", "multiplier", "size", "openInterest", "openInterestDate", "closePrice", "closePriceDate", "ppind", "assetId", "orderId", "createdAt", "updatedAt", "asset"],
1119
1119
  CreateManyAndReturnDeliverable: ["id", "type", "symbol", "assetId", "amount", "allocationPercentage", "settlementType", "settlementMethod", "delayedSettlement", "contractId", "createdAt", "updatedAt", "contract"],
1120
1120
  CreateManyAndReturnTrade: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset"],
1121
- CreateManyAndReturnAction: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade"],
1121
+ CreateManyAndReturnAction: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade"],
1122
1122
  CreateManyAndReturnOrder: ["id", "clientOrderId", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "contractId", "alpacaAccount", "action", "asset", "contract"],
1123
1123
  CreateManyAndReturnStopLoss: ["id", "stopPrice", "limitPrice", "createdAt", "updatedAt", "orderId", "Order"],
1124
1124
  CreateManyAndReturnTakeProfit: ["id", "limitPrice", "stopPrice", "createdAt", "updatedAt", "orderId", "Order"],
@@ -1203,11 +1203,11 @@ const inputsInfo = {
1203
1203
  TradeWhereUniqueInput: ["id", "AND", "OR", "NOT", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
1204
1204
  TradeOrderByWithAggregationInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "_count", "_avg", "_max", "_min", "_sum"],
1205
1205
  TradeScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1206
- ActionWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade", "order"],
1207
- ActionOrderByWithRelationInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade", "order"],
1208
- ActionWhereUniqueInput: ["id", "AND", "OR", "NOT", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade", "order"],
1209
- ActionOrderByWithAggregationInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "_count", "_avg", "_max", "_min", "_sum"],
1210
- ActionScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy"],
1206
+ ActionWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade", "order"],
1207
+ ActionOrderByWithRelationInput: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade", "order"],
1208
+ ActionWhereUniqueInput: ["id", "AND", "OR", "NOT", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade", "order"],
1209
+ ActionOrderByWithAggregationInput: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "_count", "_avg", "_max", "_min", "_sum"],
1210
+ ActionScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy"],
1211
1211
  OrderWhereInput: ["AND", "OR", "NOT", "id", "clientOrderId", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "contractId", "stopLoss", "takeProfit", "alpacaAccount", "action", "asset", "contract"],
1212
1212
  OrderOrderByWithRelationInput: ["id", "clientOrderId", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "contractId", "stopLoss", "takeProfit", "alpacaAccount", "action", "asset", "contract"],
1213
1213
  OrderWhereUniqueInput: ["id", "clientOrderId", "actionId", "stopLossId", "contractId", "AND", "OR", "NOT", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "action", "asset", "contract"],
@@ -1300,10 +1300,10 @@ const inputsInfo = {
1300
1300
  TradeUpdateInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset", "actions"],
1301
1301
  TradeCreateManyInput: ["id", "alpacaAccountId", "assetId", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1302
1302
  TradeUpdateManyMutationInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status"],
1303
- ActionCreateInput: ["id", "sequence", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade", "order"],
1304
- ActionUpdateInput: ["id", "sequence", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade", "order"],
1305
- ActionCreateManyInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy"],
1306
- ActionUpdateManyMutationInput: ["id", "sequence", "type", "note", "status", "fee", "dependsOn", "dependedOnBy"],
1303
+ ActionCreateInput: ["id", "sequence", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade", "order"],
1304
+ ActionUpdateInput: ["id", "sequence", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade", "order"],
1305
+ ActionCreateManyInput: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy"],
1306
+ ActionUpdateManyMutationInput: ["id", "sequence", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy"],
1307
1307
  OrderCreateInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "action", "asset", "contract"],
1308
1308
  OrderUpdateInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "action", "asset", "contract"],
1309
1309
  OrderCreateManyInput: ["id", "clientOrderId", "alpacaAccountId", "assetId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "actionId", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "contractId"],
@@ -1487,10 +1487,10 @@ const inputsInfo = {
1487
1487
  EnumActionStatusFilter: ["equals", "in", "notIn", "not"],
1488
1488
  StringNullableListFilter: ["equals", "has", "hasEvery", "hasSome", "isEmpty"],
1489
1489
  TradeRelationFilter: ["is", "isNot"],
1490
- ActionCountOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy"],
1490
+ ActionCountOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy"],
1491
1491
  ActionAvgOrderByAggregateInput: ["sequence", "fee"],
1492
- ActionMaxOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
1493
- ActionMinOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "note", "status", "fee"],
1492
+ ActionMaxOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee"],
1493
+ ActionMinOrderByAggregateInput: ["id", "sequence", "tradeId", "type", "primary", "note", "status", "fee"],
1494
1494
  ActionSumOrderByAggregateInput: ["sequence", "fee"],
1495
1495
  EnumActionTypeWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1496
1496
  EnumActionStatusWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
@@ -1901,7 +1901,7 @@ const inputsInfo = {
1901
1901
  AlpacaAccountCreateOrConnectWithoutTradesInput: ["where", "create"],
1902
1902
  AssetCreateWithoutTradesInput: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt", "orders", "positions", "newsMentions", "contracts"],
1903
1903
  AssetCreateOrConnectWithoutTradesInput: ["where", "create"],
1904
- ActionCreateWithoutTradeInput: ["id", "sequence", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "order"],
1904
+ ActionCreateWithoutTradeInput: ["id", "sequence", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "order"],
1905
1905
  ActionCreateOrConnectWithoutTradeInput: ["where", "create"],
1906
1906
  ActionCreateManyTradeInputEnvelope: ["data", "skipDuplicates"],
1907
1907
  AlpacaAccountUpsertWithoutTradesInput: ["update", "create", "where"],
@@ -1913,7 +1913,7 @@ const inputsInfo = {
1913
1913
  ActionUpsertWithWhereUniqueWithoutTradeInput: ["where", "update", "create"],
1914
1914
  ActionUpdateWithWhereUniqueWithoutTradeInput: ["where", "data"],
1915
1915
  ActionUpdateManyWithWhereWithoutTradeInput: ["where", "data"],
1916
- ActionScalarWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "note", "status", "fee", "dependsOn", "dependedOnBy"],
1916
+ ActionScalarWhereInput: ["AND", "OR", "NOT", "id", "sequence", "tradeId", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy"],
1917
1917
  TradeCreateWithoutActionsInput: ["id", "qty", "price", "total", "optionType", "signal", "strategy", "analysis", "summary", "confidence", "timestamp", "createdAt", "updatedAt", "status", "alpacaAccount", "asset"],
1918
1918
  TradeCreateOrConnectWithoutActionsInput: ["where", "create"],
1919
1919
  OrderCreateWithoutActionInput: ["id", "clientOrderId", "qty", "notional", "side", "type", "orderClass", "timeInForce", "limitPrice", "stopPrice", "trailPrice", "trailPercent", "extendedHours", "status", "createdAt", "updatedAt", "submittedAt", "filledAt", "filledQty", "filledAvgPrice", "cancelRequestedAt", "canceledAt", "fee", "strikePrice", "expirationDate", "optionType", "stopLossId", "takeProfitId", "stopLoss", "takeProfit", "alpacaAccount", "asset", "contract"],
@@ -1930,7 +1930,7 @@ const inputsInfo = {
1930
1930
  TakeProfitCreateOrConnectWithoutOrderInput: ["where", "create"],
1931
1931
  AlpacaAccountCreateWithoutOrdersInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "realTime", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "createdAt", "updatedAt", "user", "trades", "positions", "alerts"],
1932
1932
  AlpacaAccountCreateOrConnectWithoutOrdersInput: ["where", "create"],
1933
- ActionCreateWithoutOrderInput: ["id", "sequence", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade"],
1933
+ ActionCreateWithoutOrderInput: ["id", "sequence", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade"],
1934
1934
  ActionCreateOrConnectWithoutOrderInput: ["where", "create"],
1935
1935
  AssetCreateWithoutOrdersInput: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt", "trades", "positions", "newsMentions", "contracts"],
1936
1936
  AssetCreateOrConnectWithoutOrdersInput: ["where", "create"],
@@ -1947,7 +1947,7 @@ const inputsInfo = {
1947
1947
  AlpacaAccountUpdateWithoutOrdersInput: ["id", "type", "APIKey", "APISecret", "configuration", "marketOpen", "realTime", "minOrderSize", "maxOrderSize", "minPercentageChange", "volumeThreshold", "createdAt", "updatedAt", "user", "trades", "positions", "alerts"],
1948
1948
  ActionUpsertWithoutOrderInput: ["update", "create", "where"],
1949
1949
  ActionUpdateToOneWithWhereWithoutOrderInput: ["where", "data"],
1950
- ActionUpdateWithoutOrderInput: ["id", "sequence", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade"],
1950
+ ActionUpdateWithoutOrderInput: ["id", "sequence", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "trade"],
1951
1951
  AssetUpsertWithoutOrdersInput: ["update", "create", "where"],
1952
1952
  AssetUpdateToOneWithWhereWithoutOrdersInput: ["where", "data"],
1953
1953
  AssetUpdateWithoutOrdersInput: ["id", "symbol", "name", "type", "logoUrl", "description", "cik", "exchange", "currency", "country", "sector", "industry", "address", "officialSite", "fiscalYearEnd", "latestQuarter", "marketCapitalization", "ebitda", "peRatio", "pegRatio", "bookValue", "dividendPerShare", "dividendYield", "eps", "revenuePerShareTTM", "profitMargin", "operatingMarginTTM", "returnOnAssetsTTM", "returnOnEquityTTM", "revenueTTM", "grossProfitTTM", "dilutedEPSTTM", "quarterlyEarningsGrowthYOY", "quarterlyRevenueGrowthYOY", "analystTargetPrice", "analystRatingStrongBuy", "analystRatingBuy", "analystRatingHold", "analystRatingSell", "analystRatingStrongSell", "trailingPE", "forwardPE", "priceToSalesRatioTTM", "priceToBookRatio", "evToRevenue", "evToEbitda", "beta", "week52High", "week52Low", "day50MovingAverage", "day200MovingAverage", "sharesOutstanding", "dividendDate", "exDividendDate", "askPrice", "bidPrice", "createdAt", "updatedAt", "trades", "positions", "newsMentions", "contracts"],
@@ -2015,8 +2015,8 @@ const inputsInfo = {
2015
2015
  ContractUpdateWithoutAssetInput: ["id", "alpacaId", "symbol", "name", "status", "tradable", "expirationDate", "rootSymbol", "underlyingSymbol", "underlyingAssetId", "type", "style", "strikePrice", "multiplier", "size", "openInterest", "openInterestDate", "closePrice", "closePriceDate", "ppind", "orderId", "createdAt", "updatedAt", "deliverables", "order"],
2016
2016
  DeliverableCreateManyContractInput: ["id", "type", "symbol", "assetId", "amount", "allocationPercentage", "settlementType", "settlementMethod", "delayedSettlement", "createdAt", "updatedAt"],
2017
2017
  DeliverableUpdateWithoutContractInput: ["id", "type", "symbol", "assetId", "amount", "allocationPercentage", "settlementType", "settlementMethod", "delayedSettlement", "createdAt", "updatedAt"],
2018
- ActionCreateManyTradeInput: ["id", "sequence", "type", "note", "status", "fee", "dependsOn", "dependedOnBy"],
2019
- ActionUpdateWithoutTradeInput: ["id", "sequence", "type", "note", "status", "fee", "dependsOn", "dependedOnBy", "order"],
2018
+ ActionCreateManyTradeInput: ["id", "sequence", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy"],
2019
+ ActionUpdateWithoutTradeInput: ["id", "sequence", "type", "primary", "note", "status", "fee", "dependsOn", "dependedOnBy", "order"],
2020
2020
  NewsArticleAssetSentimentCreateManyNewsInput: ["id", "assetId", "url", "relevancyScore", "sentimentScore", "sentimentLabel"],
2021
2021
  NewsArticleAssetSentimentUpdateWithoutNewsInput: ["id", "url", "relevancyScore", "sentimentScore", "sentimentLabel", "asset"]
2022
2022
  };