@adaptic/backend-legacy 0.0.991 → 0.0.993

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 (356) hide show
  1. package/Account.cjs +40 -0
  2. package/AccountLinkingRequest.cjs +40 -0
  3. package/AccountRiskMetrics.cjs +36 -0
  4. package/Alert.cjs +34 -0
  5. package/Allocation.cjs +34 -0
  6. package/AlpacaAccount.cjs +110 -0
  7. package/Authenticator.cjs +40 -0
  8. package/Customer.cjs +42 -0
  9. package/LinkedProvider.cjs +40 -0
  10. package/LlmConfiguration.cjs +40 -0
  11. package/PolicyOverlay.cjs +188 -0
  12. package/RiskEscalationEvent.cjs +102 -0
  13. package/Session.cjs +40 -0
  14. package/StrategyHealthSnapshot.cjs +36 -0
  15. package/TradingPolicy.cjs +26 -0
  16. package/User.cjs +36 -0
  17. package/WaitlistEntry.cjs +40 -0
  18. package/esm/Account.d.ts.map +1 -1
  19. package/esm/Account.js.map +1 -1
  20. package/esm/Account.mjs +40 -0
  21. package/esm/AccountLinkingRequest.d.ts.map +1 -1
  22. package/esm/AccountLinkingRequest.js.map +1 -1
  23. package/esm/AccountLinkingRequest.mjs +40 -0
  24. package/esm/AccountRiskMetrics.d.ts.map +1 -1
  25. package/esm/AccountRiskMetrics.js.map +1 -1
  26. package/esm/AccountRiskMetrics.mjs +36 -0
  27. package/esm/Alert.d.ts.map +1 -1
  28. package/esm/Alert.js.map +1 -1
  29. package/esm/Alert.mjs +34 -0
  30. package/esm/Allocation.d.ts.map +1 -1
  31. package/esm/Allocation.js.map +1 -1
  32. package/esm/Allocation.mjs +34 -0
  33. package/esm/AlpacaAccount.d.ts.map +1 -1
  34. package/esm/AlpacaAccount.js.map +1 -1
  35. package/esm/AlpacaAccount.mjs +110 -0
  36. package/esm/Authenticator.d.ts.map +1 -1
  37. package/esm/Authenticator.js.map +1 -1
  38. package/esm/Authenticator.mjs +40 -0
  39. package/esm/Customer.d.ts.map +1 -1
  40. package/esm/Customer.js.map +1 -1
  41. package/esm/Customer.mjs +42 -0
  42. package/esm/LinkedProvider.d.ts.map +1 -1
  43. package/esm/LinkedProvider.js.map +1 -1
  44. package/esm/LinkedProvider.mjs +40 -0
  45. package/esm/LlmConfiguration.d.ts.map +1 -1
  46. package/esm/LlmConfiguration.js.map +1 -1
  47. package/esm/LlmConfiguration.mjs +40 -0
  48. package/esm/PolicyOverlay.d.ts.map +1 -1
  49. package/esm/PolicyOverlay.js.map +1 -1
  50. package/esm/PolicyOverlay.mjs +188 -0
  51. package/esm/RiskEscalationEvent.d.ts.map +1 -1
  52. package/esm/RiskEscalationEvent.js.map +1 -1
  53. package/esm/RiskEscalationEvent.mjs +102 -0
  54. package/esm/Session.d.ts.map +1 -1
  55. package/esm/Session.js.map +1 -1
  56. package/esm/Session.mjs +40 -0
  57. package/esm/StrategyHealthSnapshot.d.ts.map +1 -1
  58. package/esm/StrategyHealthSnapshot.js.map +1 -1
  59. package/esm/StrategyHealthSnapshot.mjs +36 -0
  60. package/esm/TradingPolicy.d.ts.map +1 -1
  61. package/esm/TradingPolicy.js.map +1 -1
  62. package/esm/TradingPolicy.mjs +26 -0
  63. package/esm/User.d.ts.map +1 -1
  64. package/esm/User.js.map +1 -1
  65. package/esm/User.mjs +36 -0
  66. package/esm/WaitlistEntry.d.ts.map +1 -1
  67. package/esm/WaitlistEntry.js.map +1 -1
  68. package/esm/WaitlistEntry.mjs +40 -0
  69. package/esm/generated/selectionSets/AccountRiskMetrics.d.ts +1 -1
  70. package/esm/generated/selectionSets/AccountRiskMetrics.d.ts.map +1 -1
  71. package/esm/generated/selectionSets/AccountRiskMetrics.js.map +1 -1
  72. package/esm/generated/selectionSets/AccountRiskMetrics.mjs +2 -0
  73. package/esm/generated/selectionSets/AlpacaAccount.d.ts +1 -1
  74. package/esm/generated/selectionSets/AlpacaAccount.d.ts.map +1 -1
  75. package/esm/generated/selectionSets/AlpacaAccount.js.map +1 -1
  76. package/esm/generated/selectionSets/AlpacaAccount.mjs +2 -0
  77. package/esm/generated/selectionSets/Customer.d.ts +1 -1
  78. package/esm/generated/selectionSets/Customer.d.ts.map +1 -1
  79. package/esm/generated/selectionSets/Customer.js.map +1 -1
  80. package/esm/generated/selectionSets/Customer.mjs +2 -0
  81. package/esm/generated/selectionSets/StrategyHealthSnapshot.d.ts +1 -1
  82. package/esm/generated/selectionSets/StrategyHealthSnapshot.d.ts.map +1 -1
  83. package/esm/generated/selectionSets/StrategyHealthSnapshot.js.map +1 -1
  84. package/esm/generated/selectionSets/StrategyHealthSnapshot.mjs +2 -0
  85. package/esm/generated/selectionSets/TradingPolicy.d.ts +1 -1
  86. package/esm/generated/selectionSets/TradingPolicy.d.ts.map +1 -1
  87. package/esm/generated/selectionSets/TradingPolicy.js.map +1 -1
  88. package/esm/generated/selectionSets/TradingPolicy.mjs +2 -0
  89. package/esm/generated/selectionSets/User.d.ts +1 -1
  90. package/esm/generated/selectionSets/User.d.ts.map +1 -1
  91. package/esm/generated/selectionSets/User.js.map +1 -1
  92. package/esm/generated/selectionSets/User.mjs +2 -0
  93. package/esm/generated/typeStrings/PolicyOverlay.d.ts +1 -1
  94. package/esm/generated/typeStrings/PolicyOverlay.d.ts.map +1 -1
  95. package/esm/generated/typeStrings/PolicyOverlay.js.map +1 -1
  96. package/esm/generated/typeStrings/PolicyOverlay.mjs +4 -0
  97. package/esm/generated/typeStrings/TradingPolicy.d.ts +1 -1
  98. package/esm/generated/typeStrings/TradingPolicy.d.ts.map +1 -1
  99. package/esm/generated/typeStrings/TradingPolicy.js.map +1 -1
  100. package/esm/generated/typeStrings/TradingPolicy.mjs +4 -0
  101. package/esm/generated/typeStrings/index.d.ts +2 -2
  102. package/esm/generated/typegraphql-prisma/enhance.js.map +1 -1
  103. package/esm/generated/typegraphql-prisma/enhance.mjs +26 -26
  104. package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts +2 -0
  105. package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts.map +1 -1
  106. package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.js.map +1 -1
  107. package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.mjs +2 -0
  108. package/esm/generated/typegraphql-prisma/models/TradingPolicy.d.ts +8 -0
  109. package/esm/generated/typegraphql-prisma/models/TradingPolicy.d.ts.map +1 -1
  110. package/esm/generated/typegraphql-prisma/models/TradingPolicy.js.map +1 -1
  111. package/esm/generated/typegraphql-prisma/models/TradingPolicy.mjs +22 -0
  112. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts +1 -1
  113. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts.map +1 -1
  114. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.js.map +1 -1
  115. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts +1 -1
  116. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts.map +1 -1
  117. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.js.map +1 -1
  118. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts +1 -1
  119. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts.map +1 -1
  120. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.js.map +1 -1
  121. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts +1 -1
  122. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts.map +1 -1
  123. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.js.map +1 -1
  124. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.d.ts +1 -0
  125. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.d.ts.map +1 -1
  126. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.js.map +1 -1
  127. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.mjs +7 -0
  128. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts +2 -0
  129. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts.map +1 -1
  130. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.js.map +1 -1
  131. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.mjs +14 -0
  132. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts +2 -0
  133. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts.map +1 -1
  134. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.js.map +1 -1
  135. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.mjs +14 -0
  136. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts +2 -0
  137. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts.map +1 -1
  138. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.js.map +1 -1
  139. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.mjs +14 -0
  140. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts +2 -0
  141. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  142. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.js.map +1 -1
  143. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.mjs +14 -0
  144. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts +2 -0
  145. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts.map +1 -1
  146. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.js.map +1 -1
  147. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.mjs +14 -0
  148. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.d.ts +2 -0
  149. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.d.ts.map +1 -1
  150. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.js.map +1 -1
  151. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.mjs +14 -0
  152. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.d.ts +2 -0
  153. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.d.ts.map +1 -1
  154. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.js.map +1 -1
  155. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.mjs +14 -0
  156. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts +2 -0
  157. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts.map +1 -1
  158. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.js.map +1 -1
  159. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.mjs +14 -0
  160. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts +2 -0
  161. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts.map +1 -1
  162. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.js.map +1 -1
  163. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.mjs +14 -0
  164. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts +4 -0
  165. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts.map +1 -1
  166. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.js.map +1 -1
  167. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.mjs +16 -0
  168. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.d.ts +1 -0
  169. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.d.ts.map +1 -1
  170. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.js.map +1 -1
  171. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.mjs +7 -0
  172. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts +4 -0
  173. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts.map +1 -1
  174. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.js.map +1 -1
  175. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.mjs +16 -0
  176. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts +4 -0
  177. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts.map +1 -1
  178. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.js.map +1 -1
  179. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.mjs +16 -0
  180. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts +4 -0
  181. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  182. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.js.map +1 -1
  183. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.mjs +16 -0
  184. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts +4 -0
  185. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts.map +1 -1
  186. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.js.map +1 -1
  187. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.mjs +16 -0
  188. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts +4 -0
  189. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts.map +1 -1
  190. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.js.map +1 -1
  191. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.mjs +16 -0
  192. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts +4 -0
  193. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts.map +1 -1
  194. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.js.map +1 -1
  195. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.mjs +16 -0
  196. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts +2 -0
  197. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts.map +1 -1
  198. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.js.map +1 -1
  199. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.mjs +14 -0
  200. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.d.ts +1 -0
  201. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.d.ts.map +1 -1
  202. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.js.map +1 -1
  203. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.mjs +7 -0
  204. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts +2 -0
  205. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts.map +1 -1
  206. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.js.map +1 -1
  207. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.mjs +14 -0
  208. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts +2 -0
  209. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts.map +1 -1
  210. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.js.map +1 -1
  211. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.mjs +14 -0
  212. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.d.ts +2 -0
  213. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.d.ts.map +1 -1
  214. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.js.map +1 -1
  215. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.mjs +14 -0
  216. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.d.ts +2 -0
  217. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.d.ts.map +1 -1
  218. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.js.map +1 -1
  219. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.mjs +14 -0
  220. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.d.ts +1 -0
  221. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.d.ts.map +1 -1
  222. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.js.map +1 -1
  223. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.mjs +7 -0
  224. package/esm/index.d.ts.map +1 -1
  225. package/generated/typeStrings/PolicyOverlay.cjs +4 -0
  226. package/generated/typeStrings/PolicyOverlay.d.ts +1 -1
  227. package/generated/typeStrings/PolicyOverlay.d.ts.map +1 -1
  228. package/generated/typeStrings/PolicyOverlay.js.map +1 -1
  229. package/generated/typeStrings/TradingPolicy.cjs +4 -0
  230. package/generated/typeStrings/TradingPolicy.d.ts +1 -1
  231. package/generated/typeStrings/TradingPolicy.d.ts.map +1 -1
  232. package/generated/typeStrings/TradingPolicy.js.map +1 -1
  233. package/generated/typeStrings/index.d.ts +2 -2
  234. package/generated/typegraphql-prisma/enhance.cjs +26 -26
  235. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  236. package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.cjs +2 -0
  237. package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts +2 -0
  238. package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts.map +1 -1
  239. package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.js.map +1 -1
  240. package/generated/typegraphql-prisma/models/TradingPolicy.cjs +14 -0
  241. package/generated/typegraphql-prisma/models/TradingPolicy.d.ts +8 -0
  242. package/generated/typegraphql-prisma/models/TradingPolicy.d.ts.map +1 -1
  243. package/generated/typegraphql-prisma/models/TradingPolicy.js.map +1 -1
  244. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts +1 -1
  245. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts.map +1 -1
  246. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.js.map +1 -1
  247. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts +1 -1
  248. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts.map +1 -1
  249. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.js.map +1 -1
  250. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts +1 -1
  251. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts.map +1 -1
  252. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.js.map +1 -1
  253. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts +1 -1
  254. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts.map +1 -1
  255. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.js.map +1 -1
  256. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.cjs +6 -0
  257. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.d.ts +1 -0
  258. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.d.ts.map +1 -1
  259. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.js.map +1 -1
  260. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.cjs +12 -0
  261. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts +2 -0
  262. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts.map +1 -1
  263. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.js.map +1 -1
  264. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.cjs +12 -0
  265. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts +2 -0
  266. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts.map +1 -1
  267. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.js.map +1 -1
  268. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.cjs +12 -0
  269. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts +2 -0
  270. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts.map +1 -1
  271. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.js.map +1 -1
  272. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.cjs +12 -0
  273. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts +2 -0
  274. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  275. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.js.map +1 -1
  276. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.cjs +12 -0
  277. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts +2 -0
  278. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts.map +1 -1
  279. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.js.map +1 -1
  280. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.cjs +12 -0
  281. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.d.ts +2 -0
  282. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.d.ts.map +1 -1
  283. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.js.map +1 -1
  284. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.cjs +12 -0
  285. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.d.ts +2 -0
  286. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.d.ts.map +1 -1
  287. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.js.map +1 -1
  288. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.cjs +12 -0
  289. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts +2 -0
  290. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts.map +1 -1
  291. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.js.map +1 -1
  292. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.cjs +12 -0
  293. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts +2 -0
  294. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts.map +1 -1
  295. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.js.map +1 -1
  296. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.cjs +14 -0
  297. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts +4 -0
  298. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts.map +1 -1
  299. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.js.map +1 -1
  300. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.cjs +6 -0
  301. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.d.ts +1 -0
  302. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.d.ts.map +1 -1
  303. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.js.map +1 -1
  304. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.cjs +14 -0
  305. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts +4 -0
  306. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts.map +1 -1
  307. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.js.map +1 -1
  308. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.cjs +14 -0
  309. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts +4 -0
  310. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts.map +1 -1
  311. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.js.map +1 -1
  312. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.cjs +14 -0
  313. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts +4 -0
  314. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  315. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.js.map +1 -1
  316. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.cjs +14 -0
  317. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts +4 -0
  318. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts.map +1 -1
  319. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.js.map +1 -1
  320. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.cjs +14 -0
  321. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts +4 -0
  322. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts.map +1 -1
  323. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.js.map +1 -1
  324. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.cjs +14 -0
  325. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts +4 -0
  326. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts.map +1 -1
  327. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.js.map +1 -1
  328. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.cjs +12 -0
  329. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts +2 -0
  330. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts.map +1 -1
  331. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.js.map +1 -1
  332. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.cjs +6 -0
  333. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.d.ts +1 -0
  334. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.d.ts.map +1 -1
  335. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.js.map +1 -1
  336. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.cjs +12 -0
  337. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts +2 -0
  338. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts.map +1 -1
  339. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.js.map +1 -1
  340. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.cjs +12 -0
  341. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts +2 -0
  342. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts.map +1 -1
  343. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.js.map +1 -1
  344. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.cjs +12 -0
  345. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.d.ts +2 -0
  346. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.d.ts.map +1 -1
  347. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.js.map +1 -1
  348. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.cjs +12 -0
  349. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.d.ts +2 -0
  350. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.d.ts.map +1 -1
  351. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.js.map +1 -1
  352. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.cjs +6 -0
  353. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.d.ts +1 -0
  354. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.d.ts.map +1 -1
  355. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.js.map +1 -1
  356. package/package.json +1 -1
@@ -331,6 +331,8 @@ export const WaitlistEntry = {
331
331
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
332
332
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
333
333
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
334
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
335
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
334
336
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
335
337
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
336
338
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -1514,6 +1516,12 @@ export const WaitlistEntry = {
1514
1516
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? {
1515
1517
  set: item.tradingPolicy.reducedPortfolioTrailPercent
1516
1518
  } : undefined,
1519
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? {
1520
+ set: item.tradingPolicy.enablePortfolioTakeProfit
1521
+ } : undefined,
1522
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? {
1523
+ set: item.tradingPolicy.portfolioTakeProfitThresholdPercent
1524
+ } : undefined,
1517
1525
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? {
1518
1526
  set: item.tradingPolicy.defaultTrailingStopPercentage100
1519
1527
  } : undefined,
@@ -1673,6 +1681,8 @@ export const WaitlistEntry = {
1673
1681
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
1674
1682
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
1675
1683
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
1684
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
1685
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
1676
1686
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
1677
1687
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
1678
1688
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -2209,6 +2219,8 @@ export const WaitlistEntry = {
2209
2219
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
2210
2220
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
2211
2221
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
2222
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
2223
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
2212
2224
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
2213
2225
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
2214
2226
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -2862,6 +2874,8 @@ export const WaitlistEntry = {
2862
2874
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
2863
2875
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
2864
2876
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
2877
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
2878
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
2865
2879
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
2866
2880
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
2867
2881
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -3619,6 +3633,8 @@ export const WaitlistEntry = {
3619
3633
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
3620
3634
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
3621
3635
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
3636
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
3637
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
3622
3638
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
3623
3639
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
3624
3640
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -4510,6 +4526,12 @@ export const WaitlistEntry = {
4510
4526
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? {
4511
4527
  set: item.tradingPolicy.reducedPortfolioTrailPercent
4512
4528
  } : undefined,
4529
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? {
4530
+ set: item.tradingPolicy.enablePortfolioTakeProfit
4531
+ } : undefined,
4532
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? {
4533
+ set: item.tradingPolicy.portfolioTakeProfitThresholdPercent
4534
+ } : undefined,
4513
4535
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? {
4514
4536
  set: item.tradingPolicy.defaultTrailingStopPercentage100
4515
4537
  } : undefined,
@@ -4669,6 +4691,8 @@ export const WaitlistEntry = {
4669
4691
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
4670
4692
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
4671
4693
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
4694
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
4695
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
4672
4696
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
4673
4697
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
4674
4698
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -5205,6 +5229,8 @@ export const WaitlistEntry = {
5205
5229
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
5206
5230
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
5207
5231
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
5232
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
5233
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
5208
5234
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
5209
5235
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
5210
5236
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -5858,6 +5884,8 @@ export const WaitlistEntry = {
5858
5884
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
5859
5885
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
5860
5886
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
5887
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
5888
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
5861
5889
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
5862
5890
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
5863
5891
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -6921,6 +6949,12 @@ export const WaitlistEntry = {
6921
6949
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? {
6922
6950
  set: item.tradingPolicy.reducedPortfolioTrailPercent
6923
6951
  } : undefined,
6952
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? {
6953
+ set: item.tradingPolicy.enablePortfolioTakeProfit
6954
+ } : undefined,
6955
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? {
6956
+ set: item.tradingPolicy.portfolioTakeProfitThresholdPercent
6957
+ } : undefined,
6924
6958
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? {
6925
6959
  set: item.tradingPolicy.defaultTrailingStopPercentage100
6926
6960
  } : undefined,
@@ -7080,6 +7114,8 @@ export const WaitlistEntry = {
7080
7114
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
7081
7115
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
7082
7116
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
7117
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
7118
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
7083
7119
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
7084
7120
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
7085
7121
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -7616,6 +7652,8 @@ export const WaitlistEntry = {
7616
7652
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
7617
7653
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
7618
7654
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
7655
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
7656
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
7619
7657
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
7620
7658
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
7621
7659
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -8269,6 +8307,8 @@ export const WaitlistEntry = {
8269
8307
  portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
8270
8308
  portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
8271
8309
  reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
8310
+ enablePortfolioTakeProfit: item.tradingPolicy.enablePortfolioTakeProfit !== undefined ? item.tradingPolicy.enablePortfolioTakeProfit : undefined,
8311
+ portfolioTakeProfitThresholdPercent: item.tradingPolicy.portfolioTakeProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioTakeProfitThresholdPercent : undefined,
8272
8312
  defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
8273
8313
  firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
8274
8314
  secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
@@ -1,2 +1,2 @@
1
- export declare const AccountRiskMetrics = "\n id\n alpacaAccountId\n alpacaAccount {\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n realTime\n cryptoTradingEnabled\n cryptoTradingPairs\n cryptoTradeAllocationPct\n tradeAllocationPct\n allocation {\n id\n equities\n optionsContracts\n futures\n etfs\n forex\n crypto\n stocks\n options\n alpacaAccountId\n createdAt\n updatedAt\n }\n tradingPolicy {\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n }\n autoAllocation\n minPercentageChange\n volumeThreshold\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n user {\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n deletedAt\n role\n bio\n jobTitle\n currentAccount\n customerId\n plan\n openaiAPIKey\n openaiModel\n }\n userId\n createdAt\n updatedAt\n deletedAt\n alerts {\n id\n alpacaAccountId\n title\n message\n type\n severity\n category\n status\n isRead\n acknowledgedAt\n resolvedAt\n metadata\n createdAt\n updatedAt\n }\n }\n currentRiskState\n currentScopeState\n riskStateChangedAt\n riskStateChangedBy\n riskStateChangeReason\n accountHighWaterMark\n accountHighWaterMarkAt\n currentEquity\n currentDrawdownPct\n intradayDrawdownPct\n maxDrawdownPctLifetime\n dailyPnlAmount\n dailyPnlPct\n weeklyPnlAmount\n weeklyPnlPct\n monthlyPnlAmount\n monthlyPnlPct\n peakToTroughAmount\n peakToTroughPct\n nextRecoveryEligibleAt\n lastSyncedAt\n updatedAt\n";
1
+ export declare const AccountRiskMetrics = "\n id\n alpacaAccountId\n alpacaAccount {\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n realTime\n cryptoTradingEnabled\n cryptoTradingPairs\n cryptoTradeAllocationPct\n tradeAllocationPct\n allocation {\n id\n equities\n optionsContracts\n futures\n etfs\n forex\n crypto\n stocks\n options\n alpacaAccountId\n createdAt\n updatedAt\n }\n tradingPolicy {\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n enablePortfolioTakeProfit\n portfolioTakeProfitThresholdPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n }\n autoAllocation\n minPercentageChange\n volumeThreshold\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n user {\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n deletedAt\n role\n bio\n jobTitle\n currentAccount\n customerId\n plan\n openaiAPIKey\n openaiModel\n }\n userId\n createdAt\n updatedAt\n deletedAt\n alerts {\n id\n alpacaAccountId\n title\n message\n type\n severity\n category\n status\n isRead\n acknowledgedAt\n resolvedAt\n metadata\n createdAt\n updatedAt\n }\n }\n currentRiskState\n currentScopeState\n riskStateChangedAt\n riskStateChangedBy\n riskStateChangeReason\n accountHighWaterMark\n accountHighWaterMarkAt\n currentEquity\n currentDrawdownPct\n intradayDrawdownPct\n maxDrawdownPctLifetime\n dailyPnlAmount\n dailyPnlPct\n weeklyPnlAmount\n weeklyPnlPct\n monthlyPnlAmount\n monthlyPnlPct\n peakToTroughAmount\n peakToTroughPct\n nextRecoveryEligibleAt\n lastSyncedAt\n updatedAt\n";
2
2
  //# sourceMappingURL=AccountRiskMetrics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccountRiskMetrics.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AccountRiskMetrics.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,wrIA8L9B,CAAC"}
1
+ {"version":3,"file":"AccountRiskMetrics.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AccountRiskMetrics.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,owIAgM9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AccountRiskMetrics.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AccountRiskMetrics.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8LjC,CAAC"}
1
+ {"version":3,"file":"AccountRiskMetrics.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AccountRiskMetrics.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgMjC,CAAC"}
@@ -63,6 +63,8 @@ export const AccountRiskMetrics = `
63
63
  portfolioTrailPercent
64
64
  portfolioProfitThresholdPercent
65
65
  reducedPortfolioTrailPercent
66
+ enablePortfolioTakeProfit
67
+ portfolioTakeProfitThresholdPercent
66
68
  defaultTrailingStopPercentage100
67
69
  firstTrailReductionThreshold100
68
70
  secondTrailReductionThreshold100
@@ -1,2 +1,2 @@
1
- export declare const AlpacaAccount = "\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n realTime\n cryptoTradingEnabled\n cryptoTradingPairs\n cryptoTradeAllocationPct\n tradeAllocationPct\n allocation {\n id\n equities\n optionsContracts\n futures\n etfs\n forex\n crypto\n stocks\n options\n alpacaAccountId\n createdAt\n updatedAt\n }\n tradingPolicy {\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n }\n autoAllocation\n minPercentageChange\n volumeThreshold\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n user {\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n deletedAt\n role\n bio\n jobTitle\n currentAccount\n customerId\n plan\n openaiAPIKey\n openaiModel\n }\n userId\n createdAt\n updatedAt\n deletedAt\n alerts {\n id\n alpacaAccountId\n title\n message\n type\n severity\n category\n status\n isRead\n acknowledgedAt\n resolvedAt\n metadata\n createdAt\n updatedAt\n }\n";
1
+ export declare const AlpacaAccount = "\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n realTime\n cryptoTradingEnabled\n cryptoTradingPairs\n cryptoTradeAllocationPct\n tradeAllocationPct\n allocation {\n id\n equities\n optionsContracts\n futures\n etfs\n forex\n crypto\n stocks\n options\n alpacaAccountId\n createdAt\n updatedAt\n }\n tradingPolicy {\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n enablePortfolioTakeProfit\n portfolioTakeProfitThresholdPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n }\n autoAllocation\n minPercentageChange\n volumeThreshold\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n user {\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n deletedAt\n role\n bio\n jobTitle\n currentAccount\n customerId\n plan\n openaiAPIKey\n openaiModel\n }\n userId\n createdAt\n updatedAt\n deletedAt\n alerts {\n id\n alpacaAccountId\n title\n message\n type\n severity\n category\n status\n isRead\n acknowledgedAt\n resolvedAt\n metadata\n createdAt\n updatedAt\n }\n";
2
2
  //# sourceMappingURL=AlpacaAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,g4GAoKzB,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,w8GAsKzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoK5B,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsK5B,CAAC"}
@@ -60,6 +60,8 @@ export const AlpacaAccount = `
60
60
  portfolioTrailPercent
61
61
  portfolioProfitThresholdPercent
62
62
  reducedPortfolioTrailPercent
63
+ enablePortfolioTakeProfit
64
+ portfolioTakeProfitThresholdPercent
63
65
  defaultTrailingStopPercentage100
64
66
  firstTrailReductionThreshold100
65
67
  secondTrailReductionThreshold100
@@ -1,2 +1,2 @@
1
- export declare const Customer = "\n id\n authUserId\n name\n plan\n stripeCustomerId\n stripeSubscriptionId\n stripePriceId\n stripeCurrentPeriodEnd\n jurisdiction\n riskProfile\n amlStatus\n lastKycUpdate\n createdAt\n updatedAt\n users {\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n deletedAt\n role\n bio\n jobTitle\n currentAccount\n customerId\n plan\n alpacaAccounts {\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n realTime\n cryptoTradingEnabled\n cryptoTradingPairs\n cryptoTradeAllocationPct\n tradeAllocationPct\n allocation {\n id\n equities\n optionsContracts\n futures\n etfs\n forex\n crypto\n stocks\n options\n alpacaAccountId\n createdAt\n updatedAt\n }\n tradingPolicy {\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n }\n autoAllocation\n minPercentageChange\n volumeThreshold\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n userId\n createdAt\n updatedAt\n deletedAt\n alerts {\n id\n alpacaAccountId\n title\n message\n type\n severity\n category\n status\n isRead\n acknowledgedAt\n resolvedAt\n metadata\n createdAt\n updatedAt\n }\n }\n openaiAPIKey\n openaiModel\n linkedProviders {\n id\n userId\n provider\n providerAccountId\n email\n accessToken\n refreshToken\n expiresAt\n linkedAt\n updatedAt\n }\n accountLinkingRequests {\n id\n userId\n email\n provider\n providerAccountId\n status\n verificationToken\n userAgent\n ipAddress\n createdAt\n expiresAt\n verifiedAt\n approvedAt\n rejectedAt\n }\n }\n";
1
+ export declare const Customer = "\n id\n authUserId\n name\n plan\n stripeCustomerId\n stripeSubscriptionId\n stripePriceId\n stripeCurrentPeriodEnd\n jurisdiction\n riskProfile\n amlStatus\n lastKycUpdate\n createdAt\n updatedAt\n users {\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n deletedAt\n role\n bio\n jobTitle\n currentAccount\n customerId\n plan\n alpacaAccounts {\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n realTime\n cryptoTradingEnabled\n cryptoTradingPairs\n cryptoTradeAllocationPct\n tradeAllocationPct\n allocation {\n id\n equities\n optionsContracts\n futures\n etfs\n forex\n crypto\n stocks\n options\n alpacaAccountId\n createdAt\n updatedAt\n }\n tradingPolicy {\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n enablePortfolioTakeProfit\n portfolioTakeProfitThresholdPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n }\n autoAllocation\n minPercentageChange\n volumeThreshold\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n userId\n createdAt\n updatedAt\n deletedAt\n alerts {\n id\n alpacaAccountId\n title\n message\n type\n severity\n category\n status\n isRead\n acknowledgedAt\n resolvedAt\n metadata\n createdAt\n updatedAt\n }\n }\n openaiAPIKey\n openaiModel\n linkedProviders {\n id\n userId\n provider\n providerAccountId\n email\n accessToken\n refreshToken\n expiresAt\n linkedAt\n updatedAt\n }\n accountLinkingRequests {\n id\n userId\n email\n provider\n providerAccountId\n status\n verificationToken\n userAgent\n ipAddress\n createdAt\n expiresAt\n verifiedAt\n approvedAt\n rejectedAt\n }\n }\n";
2
2
  //# sourceMappingURL=Customer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,6oJAgNpB,CAAC"}
1
+ {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,6tJAkNpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/Customer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgNvB,CAAC"}
1
+ {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/Customer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkNvB,CAAC"}
@@ -90,6 +90,8 @@ export const Customer = `
90
90
  portfolioTrailPercent
91
91
  portfolioProfitThresholdPercent
92
92
  reducedPortfolioTrailPercent
93
+ enablePortfolioTakeProfit
94
+ portfolioTakeProfitThresholdPercent
93
95
  defaultTrailingStopPercentage100
94
96
  firstTrailReductionThreshold100
95
97
  secondTrailReductionThreshold100
@@ -1,2 +1,2 @@
1
- export declare const StrategyHealthSnapshot = "\n id\n alpacaAccountId\n alpacaAccount {\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n realTime\n cryptoTradingEnabled\n cryptoTradingPairs\n cryptoTradeAllocationPct\n tradeAllocationPct\n allocation {\n id\n equities\n optionsContracts\n futures\n etfs\n forex\n crypto\n stocks\n options\n alpacaAccountId\n createdAt\n updatedAt\n }\n tradingPolicy {\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n }\n autoAllocation\n minPercentageChange\n volumeThreshold\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n user {\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n deletedAt\n role\n bio\n jobTitle\n currentAccount\n customerId\n plan\n openaiAPIKey\n openaiModel\n }\n userId\n createdAt\n updatedAt\n deletedAt\n alerts {\n id\n alpacaAccountId\n title\n message\n type\n severity\n category\n status\n isRead\n acknowledgedAt\n resolvedAt\n metadata\n createdAt\n updatedAt\n }\n }\n strategyName\n currentState\n stateChangedAt\n stateChangedReason\n windowSize\n windowTradeCount\n windowHitRate\n windowExpectancy\n windowProfitFactor\n windowSortino\n windowMaxDrawdownPct\n windowCumulativePnlAmt\n backtestExpectancy\n backtestHitRate\n backtestHitRateStdDev\n backtestExpectancyStdDev\n divergenceZScore\n divergenceAlertActive\n averageConfidence\n confidenceTrend\n lastUpdatedAt\n updatedAt\n";
1
+ export declare const StrategyHealthSnapshot = "\n id\n alpacaAccountId\n alpacaAccount {\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n realTime\n cryptoTradingEnabled\n cryptoTradingPairs\n cryptoTradeAllocationPct\n tradeAllocationPct\n allocation {\n id\n equities\n optionsContracts\n futures\n etfs\n forex\n crypto\n stocks\n options\n alpacaAccountId\n createdAt\n updatedAt\n }\n tradingPolicy {\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n enablePortfolioTakeProfit\n portfolioTakeProfitThresholdPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n }\n autoAllocation\n minPercentageChange\n volumeThreshold\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n user {\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n deletedAt\n role\n bio\n jobTitle\n currentAccount\n customerId\n plan\n openaiAPIKey\n openaiModel\n }\n userId\n createdAt\n updatedAt\n deletedAt\n alerts {\n id\n alpacaAccountId\n title\n message\n type\n severity\n category\n status\n isRead\n acknowledgedAt\n resolvedAt\n metadata\n createdAt\n updatedAt\n }\n }\n strategyName\n currentState\n stateChangedAt\n stateChangedReason\n windowSize\n windowTradeCount\n windowHitRate\n windowExpectancy\n windowProfitFactor\n windowSortino\n windowMaxDrawdownPct\n windowCumulativePnlAmt\n backtestExpectancy\n backtestHitRate\n backtestHitRateStdDev\n backtestExpectancyStdDev\n divergenceZScore\n divergenceAlertActive\n averageConfidence\n confidenceTrend\n lastUpdatedAt\n updatedAt\n";
2
2
  //# sourceMappingURL=StrategyHealthSnapshot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StrategyHealthSnapshot.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/StrategyHealthSnapshot.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,grIA8LlC,CAAC"}
1
+ {"version":3,"file":"StrategyHealthSnapshot.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/StrategyHealthSnapshot.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,4vIAgMlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StrategyHealthSnapshot.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/StrategyHealthSnapshot.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8LrC,CAAC"}
1
+ {"version":3,"file":"StrategyHealthSnapshot.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/StrategyHealthSnapshot.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgMrC,CAAC"}
@@ -63,6 +63,8 @@ export const StrategyHealthSnapshot = `
63
63
  portfolioTrailPercent
64
64
  portfolioProfitThresholdPercent
65
65
  reducedPortfolioTrailPercent
66
+ enablePortfolioTakeProfit
67
+ portfolioTakeProfitThresholdPercent
66
68
  defaultTrailingStopPercentage100
67
69
  firstTrailReductionThreshold100
68
70
  secondTrailReductionThreshold100
@@ -1,2 +1,2 @@
1
- export declare const TradingPolicy = "\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n";
1
+ export declare const TradingPolicy = "\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n enablePortfolioTakeProfit\n portfolioTakeProfitThresholdPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n";
2
2
  //# sourceMappingURL=TradingPolicy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TradingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/TradingPolicy.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,89DAsFzB,CAAC"}
1
+ {"version":3,"file":"TradingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/TradingPolicy.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kiEAwFzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TradingPolicy.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/TradingPolicy.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsF5B,CAAC"}
1
+ {"version":3,"file":"TradingPolicy.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/TradingPolicy.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwF5B,CAAC"}
@@ -34,6 +34,8 @@ export const TradingPolicy = `
34
34
  portfolioTrailPercent
35
35
  portfolioProfitThresholdPercent
36
36
  reducedPortfolioTrailPercent
37
+ enablePortfolioTakeProfit
38
+ portfolioTakeProfitThresholdPercent
37
39
  defaultTrailingStopPercentage100
38
40
  firstTrailReductionThreshold100
39
41
  secondTrailReductionThreshold100
@@ -1,2 +1,2 @@
1
- export declare const User = "\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n deletedAt\n role\n bio\n jobTitle\n currentAccount\n customer {\n id\n authUserId\n name\n plan\n stripeCustomerId\n stripeSubscriptionId\n stripePriceId\n stripeCurrentPeriodEnd\n jurisdiction\n riskProfile\n amlStatus\n lastKycUpdate\n createdAt\n updatedAt\n }\n customerId\n plan\n alpacaAccounts {\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n realTime\n cryptoTradingEnabled\n cryptoTradingPairs\n cryptoTradeAllocationPct\n tradeAllocationPct\n allocation {\n id\n equities\n optionsContracts\n futures\n etfs\n forex\n crypto\n stocks\n options\n alpacaAccountId\n createdAt\n updatedAt\n }\n tradingPolicy {\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n }\n autoAllocation\n minPercentageChange\n volumeThreshold\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n userId\n createdAt\n updatedAt\n deletedAt\n alerts {\n id\n alpacaAccountId\n title\n message\n type\n severity\n category\n status\n isRead\n acknowledgedAt\n resolvedAt\n metadata\n createdAt\n updatedAt\n }\n }\n openaiAPIKey\n openaiModel\n linkedProviders {\n id\n userId\n provider\n providerAccountId\n email\n accessToken\n refreshToken\n expiresAt\n linkedAt\n updatedAt\n }\n accountLinkingRequests {\n id\n userId\n email\n provider\n providerAccountId\n status\n verificationToken\n userAgent\n ipAddress\n createdAt\n expiresAt\n verifiedAt\n approvedAt\n rejectedAt\n }\n";
1
+ export declare const User = "\n id\n name\n email\n emailVerified\n image\n createdAt\n updatedAt\n deletedAt\n role\n bio\n jobTitle\n currentAccount\n customer {\n id\n authUserId\n name\n plan\n stripeCustomerId\n stripeSubscriptionId\n stripePriceId\n stripeCurrentPeriodEnd\n jurisdiction\n riskProfile\n amlStatus\n lastKycUpdate\n createdAt\n updatedAt\n }\n customerId\n plan\n alpacaAccounts {\n id\n type\n APIKey\n APISecret\n configuration\n marketOpen\n realTime\n cryptoTradingEnabled\n cryptoTradingPairs\n cryptoTradeAllocationPct\n tradeAllocationPct\n allocation {\n id\n equities\n optionsContracts\n futures\n etfs\n forex\n crypto\n stocks\n options\n alpacaAccountId\n createdAt\n updatedAt\n }\n tradingPolicy {\n id\n alpacaAccountId\n version\n lastModifiedBy\n lastModifiedAt\n autonomyMode\n realtimeTradingEnabled\n paperTradingOnly\n killSwitchEnabled\n autonomyPrefs\n equitiesEnabled\n etfsEnabled\n cryptoEnabled\n optionsEnabled\n futuresEnabled\n forexEnabled\n shortingEnabled\n marginEnabled\n fractionalSharesEnabled\n assetUniversePrefs\n maxBuyingPowerUtilPct\n cashFloorPct\n maxGrossExposurePct\n maxNetExposurePct\n maxLeverage\n maxSymbolConcentrationPct\n maxSectorConcentrationPct\n maxOpenPositions\n maxOpenOrders\n perTradeEquityAllocationPct\n perTradeCryptoAllocationPct\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n enablePortfolioTakeProfit\n portfolioTakeProfitThresholdPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n equityWashTradeCooldownMs\n minIntradayLiquidityShares\n maxEntrySpreadBps\n sameSideReentryDelayMs\n minAtrPercentage\n maxAtrPercentage\n minBookDepthShares\n maxAnomalousSlippageBps\n intradayTradingWindows\n hardPositionExitMinutes\n maxOrdersPerWindow\n orderWindowSeconds\n dayTradeOnly\n riskBudgetPrefs\n signalConsumptionPrefs\n executionPrefs\n positionManagementPrefs\n portfolioConstructionPrefs\n macroOverlayEnabled\n sectorOverlayEnabled\n volatilityOverlayEnabled\n liquidityStressOverlayEnabled\n blackSwanProtectionEnabled\n drawdownGuardianEnabled\n correlationSpikeProtectionEnabled\n newsEventRiskOverlayEnabled\n exchangeHealthOverlayEnabled\n dataQualitySentinelEnabled\n overlayResponsePrefs\n miniModelProvider\n miniModelId\n normalModelProvider\n normalModelId\n advancedModelProvider\n advancedModelId\n modelPrefs\n auditNotificationPrefs\n escalationPolicyOverrides\n currentRiskState\n currentRiskStateAt\n lastRiskStateChangedBy\n lastRiskEscalationEventId\n createdAt\n updatedAt\n }\n autoAllocation\n minPercentageChange\n volumeThreshold\n enablePortfolioTrailingStop\n portfolioTrailPercent\n portfolioProfitThresholdPercent\n reducedPortfolioTrailPercent\n defaultTrailingStopPercentage100\n firstTrailReductionThreshold100\n secondTrailReductionThreshold100\n firstReducedTrailPercentage100\n secondReducedTrailPercentage100\n minimumPriceChangePercent100\n userId\n createdAt\n updatedAt\n deletedAt\n alerts {\n id\n alpacaAccountId\n title\n message\n type\n severity\n category\n status\n isRead\n acknowledgedAt\n resolvedAt\n metadata\n createdAt\n updatedAt\n }\n }\n openaiAPIKey\n openaiModel\n linkedProviders {\n id\n userId\n provider\n providerAccountId\n email\n accessToken\n refreshToken\n expiresAt\n linkedAt\n updatedAt\n }\n accountLinkingRequests {\n id\n userId\n email\n provider\n providerAccountId\n status\n verificationToken\n userAgent\n ipAddress\n createdAt\n expiresAt\n verifiedAt\n approvedAt\n rejectedAt\n }\n";
2
2
  //# sourceMappingURL=User.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/User.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,8yIAgNhB,CAAC"}
1
+ {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../src/generated/selectionSets/User.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,03IAkNhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/User.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgNnB,CAAC"}
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/generated/selectionSets/User.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkNnB,CAAC"}
@@ -91,6 +91,8 @@ export const User = `
91
91
  portfolioTrailPercent
92
92
  portfolioProfitThresholdPercent
93
93
  reducedPortfolioTrailPercent
94
+ enablePortfolioTakeProfit
95
+ portfolioTakeProfitThresholdPercent
94
96
  defaultTrailingStopPercentage100
95
97
  firstTrailReductionThreshold100
96
98
  secondTrailReductionThreshold100
@@ -1,2 +1,2 @@
1
- export declare const PolicyOverlayTypeString = "\n// Your response should adhere to the following type definition for the \"PolicyOverlay\" 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 PolicyOverlay = {\n // Relation to TradingPolicy.\n tradingPolicy: {\n // Relation to AlpacaAccount.\n alpacaAccount: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n };\n version: number;\n lastModifiedBy?: string;\n lastModifiedAt: Date;\n autonomyMode: AutonomyMode;\n realtimeTradingEnabled: boolean;\n paperTradingOnly: boolean;\n killSwitchEnabled: boolean;\n autonomyPrefs?: any;\n equitiesEnabled: boolean;\n etfsEnabled: boolean;\n cryptoEnabled: boolean;\n optionsEnabled: boolean;\n futuresEnabled: boolean;\n forexEnabled: boolean;\n shortingEnabled: boolean;\n marginEnabled: boolean;\n fractionalSharesEnabled: boolean;\n assetUniversePrefs?: any;\n maxBuyingPowerUtilPct: number;\n cashFloorPct: number;\n maxGrossExposurePct: number;\n maxNetExposurePct: number;\n maxLeverage: number;\n maxSymbolConcentrationPct: number;\n maxSectorConcentrationPct: number;\n maxOpenPositions: number;\n maxOpenOrders: number;\n // Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct.\n perTradeEquityAllocationPct: number;\n // Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct.\n perTradeCryptoAllocationPct: number;\n // Opt-in for enabling the portfolio-level trailing stop service within Adaptic's Realtime Trade Engine. Canonical replacement for legacy AlpacaAccount.enablePortfolioTrailingStop.\n enablePortfolioTrailingStop: boolean;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioTrailPercent.\n portfolioTrailPercent: number;\n // Portfolio-level profit threshold percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioProfitThresholdPercent.\n portfolioProfitThresholdPercent: number;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.\n reducedPortfolioTrailPercent: number;\n // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.\n defaultTrailingStopPercentage100: number;\n // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.\n firstTrailReductionThreshold100: number;\n // Second profit threshold at which the Position Trailing Stop Service further reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.secondTrailReductionThreshold100.\n secondTrailReductionThreshold100: number;\n // Trailing stop percentage to use when profit exceeds the first threshold. Canonical replacement for legacy AlpacaAccount.firstReducedTrailPercentage100.\n firstReducedTrailPercentage100: number;\n // Trailing stop percentage to use when profit exceeds the second threshold. Canonical replacement for legacy AlpacaAccount.secondReducedTrailPercentage100.\n secondReducedTrailPercentage100: number;\n // Minimum change in trailing stop percent to warrant an adjustment. Canonical replacement for legacy AlpacaAccount.minimumPriceChangePercent100.\n minimumPriceChangePercent100: number;\n // Wash-trade cooldown period in milliseconds for equities \u2014 minimum elapsed time between opposing-side fills on the same symbol per FINRA Rule 5210. Mirrors the 30s default already enforced for crypto. Default: 30000 (30 seconds).\n equityWashTradeCooldownMs: number;\n // Minimum intraday liquidity threshold (shares traded in last 5 min). Required for scalping. Default: 10000 (10k shares in last 5 min).\n minIntradayLiquidityShares: number;\n // Maximum spread in basis points (1/100ths of 1%) to allow entry. Scalping requires tight spreads; use 1-3 bps. Default: 5 (0.05%).\n maxEntrySpreadBps: number;\n // Minimum time between same-symbol same-side entries (ms). FINRA Rule 5210 requires 30s for opposite-side trades; this controls same-side rapid re-entry. Default: 5000 (5 seconds) for scalping; 30000 for normal trading.\n sameSideReentryDelayMs: number;\n // Volatility filter: only trade if ATR(14) >= minAtrPercentage. Scalping needs moderate volatility; too low = no edge. Default: 0.3 (0.3%).\n minAtrPercentage: number;\n // Volatility filter: only trade if ATR(14) <= maxAtrPercentage. Scalping needs moderate volatility; too high = whipsaws. Default: 2.0 (2.0%).\n maxAtrPercentage: number;\n // Order book depth requirement: minimum shares at best bid/ask to qualify for entry. Scalping needs guaranteed liquidity. Default: 5000 shares.\n minBookDepthShares: number;\n // Maximum market order slippage in basis points before flagging as anomaly. Helps detect liquidity crunches. Default: 10 bps.\n maxAnomalousSlippageBps: number;\n // Intraday session windows allowed (JSON array). Format: [{ startMinutesFromOpen, endMinutesFromOpen, active }]. Example: skip first 5 min and last 10 min of RTH.\n intradayTradingWindows?: any;\n // Hard position exit clock (minutes from entry). 0 = disabled. Forces liquidation regardless of signal. Useful for strict day-trading discipline. Default: 0.\n hardPositionExitMinutes: number;\n // Rapid-fire order-rate limit: max orders within orderWindowSeconds. Default: 10 orders per 5 seconds.\n maxOrdersPerWindow: number;\n // Window size for maxOrdersPerWindow rate limit (seconds). Default: 5.\n orderWindowSeconds: number;\n // Enforce intraday-only trading (auto-close all positions before EOD). Default: false.\n dayTradeOnly: boolean;\n riskBudgetPrefs?: any;\n signalConsumptionPrefs?: any;\n executionPrefs?: any;\n positionManagementPrefs?: any;\n portfolioConstructionPrefs?: any;\n macroOverlayEnabled: boolean;\n sectorOverlayEnabled: boolean;\n volatilityOverlayEnabled: boolean;\n liquidityStressOverlayEnabled: boolean;\n blackSwanProtectionEnabled: boolean;\n drawdownGuardianEnabled: boolean;\n correlationSpikeProtectionEnabled: boolean;\n newsEventRiskOverlayEnabled: boolean;\n exchangeHealthOverlayEnabled: boolean;\n dataQualitySentinelEnabled: boolean;\n overlayResponsePrefs?: any;\n miniModelProvider?: LlmProvider;\n normalModelProvider?: LlmProvider;\n advancedModelProvider?: LlmProvider;\n modelPrefs?: any;\n auditNotificationPrefs?: any;\n // List of policy overlays.\n overlays: PolicyOverlay[];\n escalationPolicyOverrides?: any;\n currentRiskState: AccountRiskState;\n currentRiskStateAt?: Date;\n lastRiskStateChangedBy?: string;\n };\n overlayType: OverlayType;\n source: string;\n reason: string;\n severity: OverlaySeverity;\n version: number;\n mutations: any;\n status: OverlayStatus;\n activatedAt: Date;\n expiresAt?: Date;\n deactivatedAt?: Date;\n deactivatedBy?: string;\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum AutonomyMode {\n ADVISORY_ONLY\n\n EXECUTION_ON_APPROVAL\n\n SEMI_AUTONOMOUS\n\n FULLY_AUTONOMOUS\n\n EMERGENCY_SAFE_MODE\n}\n\nenum LlmProvider {\n OPENAI\n\n ANTHROPIC\n\n DEEPSEEK\n\n KIMI\n\n QWEN\n\n XAI\n\n GEMINI\n}\n\nenum AccountRiskState {\n NORMAL\n\n WARN\n\n THROTTLE\n\n PAUSED\n\n FLATTEN\n\n HALT\n}\n\nenum OverlayType {\n BLACK_SWAN\n\n VOLATILITY_REGIME\n\n SECTOR_DETERIORATION\n\n DRAWDOWN_BREACH\n\n CORRELATION_SPIKE\n\n LIQUIDITY_STRESS\n\n EXCHANGE_DEGRADATION\n\n DATA_QUALITY\n\n NEWS_EVENT_RISK\n\n RATES_BONDS_STRESS\n\n MANUAL_OVERRIDE\n\n INCIDENT_RESPONSE\n}\n\nenum OverlaySeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\nenum OverlayStatus {\n ACTIVE\n\n EXPIRED\n\n DEACTIVATED\n\n SUPERSEDED\n}\n\n";
1
+ export declare const PolicyOverlayTypeString = "\n// Your response should adhere to the following type definition for the \"PolicyOverlay\" 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 PolicyOverlay = {\n // Relation to TradingPolicy.\n tradingPolicy: {\n // Relation to AlpacaAccount.\n alpacaAccount: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n };\n version: number;\n lastModifiedBy?: string;\n lastModifiedAt: Date;\n autonomyMode: AutonomyMode;\n realtimeTradingEnabled: boolean;\n paperTradingOnly: boolean;\n killSwitchEnabled: boolean;\n autonomyPrefs?: any;\n equitiesEnabled: boolean;\n etfsEnabled: boolean;\n cryptoEnabled: boolean;\n optionsEnabled: boolean;\n futuresEnabled: boolean;\n forexEnabled: boolean;\n shortingEnabled: boolean;\n marginEnabled: boolean;\n fractionalSharesEnabled: boolean;\n assetUniversePrefs?: any;\n maxBuyingPowerUtilPct: number;\n cashFloorPct: number;\n maxGrossExposurePct: number;\n maxNetExposurePct: number;\n maxLeverage: number;\n maxSymbolConcentrationPct: number;\n maxSectorConcentrationPct: number;\n maxOpenPositions: number;\n maxOpenOrders: number;\n // Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct.\n perTradeEquityAllocationPct: number;\n // Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct.\n perTradeCryptoAllocationPct: number;\n // Opt-in for enabling the portfolio-level trailing stop service within Adaptic's Realtime Trade Engine. Canonical replacement for legacy AlpacaAccount.enablePortfolioTrailingStop.\n enablePortfolioTrailingStop: boolean;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioTrailPercent.\n portfolioTrailPercent: number;\n // Portfolio-level profit threshold percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioProfitThresholdPercent.\n portfolioProfitThresholdPercent: number;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.\n reducedPortfolioTrailPercent: number;\n // Whether the portfolio-level daily take-profit circuit breaker is enabled for this account.\n enablePortfolioTakeProfit?: boolean;\n // Daily gain target (whole percent, e.g. 1 = 1%) since the 09:30 open that trips the take-profit breaker.\n portfolioTakeProfitThresholdPercent?: number;\n // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.\n defaultTrailingStopPercentage100: number;\n // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.\n firstTrailReductionThreshold100: number;\n // Second profit threshold at which the Position Trailing Stop Service further reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.secondTrailReductionThreshold100.\n secondTrailReductionThreshold100: number;\n // Trailing stop percentage to use when profit exceeds the first threshold. Canonical replacement for legacy AlpacaAccount.firstReducedTrailPercentage100.\n firstReducedTrailPercentage100: number;\n // Trailing stop percentage to use when profit exceeds the second threshold. Canonical replacement for legacy AlpacaAccount.secondReducedTrailPercentage100.\n secondReducedTrailPercentage100: number;\n // Minimum change in trailing stop percent to warrant an adjustment. Canonical replacement for legacy AlpacaAccount.minimumPriceChangePercent100.\n minimumPriceChangePercent100: number;\n // Wash-trade cooldown period in milliseconds for equities \u2014 minimum elapsed time between opposing-side fills on the same symbol per FINRA Rule 5210. Mirrors the 30s default already enforced for crypto. Default: 30000 (30 seconds).\n equityWashTradeCooldownMs: number;\n // Minimum intraday liquidity threshold (shares traded in last 5 min). Required for scalping. Default: 10000 (10k shares in last 5 min).\n minIntradayLiquidityShares: number;\n // Maximum spread in basis points (1/100ths of 1%) to allow entry. Scalping requires tight spreads; use 1-3 bps. Default: 5 (0.05%).\n maxEntrySpreadBps: number;\n // Minimum time between same-symbol same-side entries (ms). FINRA Rule 5210 requires 30s for opposite-side trades; this controls same-side rapid re-entry. Default: 5000 (5 seconds) for scalping; 30000 for normal trading.\n sameSideReentryDelayMs: number;\n // Volatility filter: only trade if ATR(14) >= minAtrPercentage. Scalping needs moderate volatility; too low = no edge. Default: 0.3 (0.3%).\n minAtrPercentage: number;\n // Volatility filter: only trade if ATR(14) <= maxAtrPercentage. Scalping needs moderate volatility; too high = whipsaws. Default: 2.0 (2.0%).\n maxAtrPercentage: number;\n // Order book depth requirement: minimum shares at best bid/ask to qualify for entry. Scalping needs guaranteed liquidity. Default: 5000 shares.\n minBookDepthShares: number;\n // Maximum market order slippage in basis points before flagging as anomaly. Helps detect liquidity crunches. Default: 10 bps.\n maxAnomalousSlippageBps: number;\n // Intraday session windows allowed (JSON array). Format: [{ startMinutesFromOpen, endMinutesFromOpen, active }]. Example: skip first 5 min and last 10 min of RTH.\n intradayTradingWindows?: any;\n // Hard position exit clock (minutes from entry). 0 = disabled. Forces liquidation regardless of signal. Useful for strict day-trading discipline. Default: 0.\n hardPositionExitMinutes: number;\n // Rapid-fire order-rate limit: max orders within orderWindowSeconds. Default: 10 orders per 5 seconds.\n maxOrdersPerWindow: number;\n // Window size for maxOrdersPerWindow rate limit (seconds). Default: 5.\n orderWindowSeconds: number;\n // Enforce intraday-only trading (auto-close all positions before EOD). Default: false.\n dayTradeOnly: boolean;\n riskBudgetPrefs?: any;\n signalConsumptionPrefs?: any;\n executionPrefs?: any;\n positionManagementPrefs?: any;\n portfolioConstructionPrefs?: any;\n macroOverlayEnabled: boolean;\n sectorOverlayEnabled: boolean;\n volatilityOverlayEnabled: boolean;\n liquidityStressOverlayEnabled: boolean;\n blackSwanProtectionEnabled: boolean;\n drawdownGuardianEnabled: boolean;\n correlationSpikeProtectionEnabled: boolean;\n newsEventRiskOverlayEnabled: boolean;\n exchangeHealthOverlayEnabled: boolean;\n dataQualitySentinelEnabled: boolean;\n overlayResponsePrefs?: any;\n miniModelProvider?: LlmProvider;\n normalModelProvider?: LlmProvider;\n advancedModelProvider?: LlmProvider;\n modelPrefs?: any;\n auditNotificationPrefs?: any;\n // List of policy overlays.\n overlays: PolicyOverlay[];\n escalationPolicyOverrides?: any;\n currentRiskState: AccountRiskState;\n currentRiskStateAt?: Date;\n lastRiskStateChangedBy?: string;\n };\n overlayType: OverlayType;\n source: string;\n reason: string;\n severity: OverlaySeverity;\n version: number;\n mutations: any;\n status: OverlayStatus;\n activatedAt: Date;\n expiresAt?: Date;\n deactivatedAt?: Date;\n deactivatedBy?: string;\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum AutonomyMode {\n ADVISORY_ONLY\n\n EXECUTION_ON_APPROVAL\n\n SEMI_AUTONOMOUS\n\n FULLY_AUTONOMOUS\n\n EMERGENCY_SAFE_MODE\n}\n\nenum LlmProvider {\n OPENAI\n\n ANTHROPIC\n\n DEEPSEEK\n\n KIMI\n\n QWEN\n\n XAI\n\n GEMINI\n}\n\nenum AccountRiskState {\n NORMAL\n\n WARN\n\n THROTTLE\n\n PAUSED\n\n FLATTEN\n\n HALT\n}\n\nenum OverlayType {\n BLACK_SWAN\n\n VOLATILITY_REGIME\n\n SECTOR_DETERIORATION\n\n DRAWDOWN_BREACH\n\n CORRELATION_SPIKE\n\n LIQUIDITY_STRESS\n\n EXCHANGE_DEGRADATION\n\n DATA_QUALITY\n\n NEWS_EVENT_RISK\n\n RATES_BONDS_STRESS\n\n MANUAL_OVERRIDE\n\n INCIDENT_RESPONSE\n}\n\nenum OverlaySeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\nenum OverlayStatus {\n ACTIVE\n\n EXPIRED\n\n DEACTIVATED\n\n SUPERSEDED\n}\n\n";
2
2
  //# sourceMappingURL=PolicyOverlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PolicyOverlay.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/PolicyOverlay.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,85QAkOnC,CAAC"}
1
+ {"version":3,"file":"PolicyOverlay.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/PolicyOverlay.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,8sRAsOnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PolicyOverlay.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/PolicyOverlay.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkOtC,CAAC"}
1
+ {"version":3,"file":"PolicyOverlay.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/PolicyOverlay.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsOtC,CAAC"}
@@ -51,6 +51,10 @@ export type PolicyOverlay = {
51
51
  portfolioProfitThresholdPercent: number;
52
52
  // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.
53
53
  reducedPortfolioTrailPercent: number;
54
+ // Whether the portfolio-level daily take-profit circuit breaker is enabled for this account.
55
+ enablePortfolioTakeProfit?: boolean;
56
+ // Daily gain target (whole percent, e.g. 1 = 1%) since the 09:30 open that trips the take-profit breaker.
57
+ portfolioTakeProfitThresholdPercent?: number;
54
58
  // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.
55
59
  defaultTrailingStopPercentage100: number;
56
60
  // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.
@@ -1,2 +1,2 @@
1
- export declare const TradingPolicyTypeString = "\n// Your response should adhere to the following type definition for the \"TradingPolicy\" 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 TradingPolicy = {\n // Relation to AlpacaAccount.\n alpacaAccount: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n };\n version: number;\n lastModifiedBy?: string;\n lastModifiedAt: Date;\n autonomyMode: AutonomyMode;\n realtimeTradingEnabled: boolean;\n paperTradingOnly: boolean;\n killSwitchEnabled: boolean;\n autonomyPrefs?: any;\n equitiesEnabled: boolean;\n etfsEnabled: boolean;\n cryptoEnabled: boolean;\n optionsEnabled: boolean;\n futuresEnabled: boolean;\n forexEnabled: boolean;\n shortingEnabled: boolean;\n marginEnabled: boolean;\n fractionalSharesEnabled: boolean;\n assetUniversePrefs?: any;\n maxBuyingPowerUtilPct: number;\n cashFloorPct: number;\n maxGrossExposurePct: number;\n maxNetExposurePct: number;\n maxLeverage: number;\n maxSymbolConcentrationPct: number;\n maxSectorConcentrationPct: number;\n maxOpenPositions: number;\n maxOpenOrders: number;\n // Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct.\n perTradeEquityAllocationPct: number;\n // Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct.\n perTradeCryptoAllocationPct: number;\n // Opt-in for enabling the portfolio-level trailing stop service within Adaptic's Realtime Trade Engine. Canonical replacement for legacy AlpacaAccount.enablePortfolioTrailingStop.\n enablePortfolioTrailingStop: boolean;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioTrailPercent.\n portfolioTrailPercent: number;\n // Portfolio-level profit threshold percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioProfitThresholdPercent.\n portfolioProfitThresholdPercent: number;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.\n reducedPortfolioTrailPercent: number;\n // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.\n defaultTrailingStopPercentage100: number;\n // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.\n firstTrailReductionThreshold100: number;\n // Second profit threshold at which the Position Trailing Stop Service further reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.secondTrailReductionThreshold100.\n secondTrailReductionThreshold100: number;\n // Trailing stop percentage to use when profit exceeds the first threshold. Canonical replacement for legacy AlpacaAccount.firstReducedTrailPercentage100.\n firstReducedTrailPercentage100: number;\n // Trailing stop percentage to use when profit exceeds the second threshold. Canonical replacement for legacy AlpacaAccount.secondReducedTrailPercentage100.\n secondReducedTrailPercentage100: number;\n // Minimum change in trailing stop percent to warrant an adjustment. Canonical replacement for legacy AlpacaAccount.minimumPriceChangePercent100.\n minimumPriceChangePercent100: number;\n // Wash-trade cooldown period in milliseconds for equities \u2014 minimum elapsed time between opposing-side fills on the same symbol per FINRA Rule 5210. Mirrors the 30s default already enforced for crypto. Default: 30000 (30 seconds).\n equityWashTradeCooldownMs: number;\n // Minimum intraday liquidity threshold (shares traded in last 5 min). Required for scalping. Default: 10000 (10k shares in last 5 min).\n minIntradayLiquidityShares: number;\n // Maximum spread in basis points (1/100ths of 1%) to allow entry. Scalping requires tight spreads; use 1-3 bps. Default: 5 (0.05%).\n maxEntrySpreadBps: number;\n // Minimum time between same-symbol same-side entries (ms). FINRA Rule 5210 requires 30s for opposite-side trades; this controls same-side rapid re-entry. Default: 5000 (5 seconds) for scalping; 30000 for normal trading.\n sameSideReentryDelayMs: number;\n // Volatility filter: only trade if ATR(14) >= minAtrPercentage. Scalping needs moderate volatility; too low = no edge. Default: 0.3 (0.3%).\n minAtrPercentage: number;\n // Volatility filter: only trade if ATR(14) <= maxAtrPercentage. Scalping needs moderate volatility; too high = whipsaws. Default: 2.0 (2.0%).\n maxAtrPercentage: number;\n // Order book depth requirement: minimum shares at best bid/ask to qualify for entry. Scalping needs guaranteed liquidity. Default: 5000 shares.\n minBookDepthShares: number;\n // Maximum market order slippage in basis points before flagging as anomaly. Helps detect liquidity crunches. Default: 10 bps.\n maxAnomalousSlippageBps: number;\n // Intraday session windows allowed (JSON array). Format: [{ startMinutesFromOpen, endMinutesFromOpen, active }]. Example: skip first 5 min and last 10 min of RTH.\n intradayTradingWindows?: any;\n // Hard position exit clock (minutes from entry). 0 = disabled. Forces liquidation regardless of signal. Useful for strict day-trading discipline. Default: 0.\n hardPositionExitMinutes: number;\n // Rapid-fire order-rate limit: max orders within orderWindowSeconds. Default: 10 orders per 5 seconds.\n maxOrdersPerWindow: number;\n // Window size for maxOrdersPerWindow rate limit (seconds). Default: 5.\n orderWindowSeconds: number;\n // Enforce intraday-only trading (auto-close all positions before EOD). Default: false.\n dayTradeOnly: boolean;\n riskBudgetPrefs?: any;\n signalConsumptionPrefs?: any;\n executionPrefs?: any;\n positionManagementPrefs?: any;\n portfolioConstructionPrefs?: any;\n macroOverlayEnabled: boolean;\n sectorOverlayEnabled: boolean;\n volatilityOverlayEnabled: boolean;\n liquidityStressOverlayEnabled: boolean;\n blackSwanProtectionEnabled: boolean;\n drawdownGuardianEnabled: boolean;\n correlationSpikeProtectionEnabled: boolean;\n newsEventRiskOverlayEnabled: boolean;\n exchangeHealthOverlayEnabled: boolean;\n dataQualitySentinelEnabled: boolean;\n overlayResponsePrefs?: any;\n miniModelProvider?: LlmProvider;\n normalModelProvider?: LlmProvider;\n advancedModelProvider?: LlmProvider;\n modelPrefs?: any;\n auditNotificationPrefs?: any;\n // List of policy overlays.\n overlays: {\n overlayType: OverlayType;\n source: string;\n reason: string;\n severity: OverlaySeverity;\n version: number;\n mutations: any;\n status: OverlayStatus;\n activatedAt: Date;\n expiresAt?: Date;\n deactivatedAt?: Date;\n deactivatedBy?: string;\n }[];\n escalationPolicyOverrides?: any;\n currentRiskState: AccountRiskState;\n currentRiskStateAt?: Date;\n lastRiskStateChangedBy?: string;\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum AutonomyMode {\n ADVISORY_ONLY\n\n EXECUTION_ON_APPROVAL\n\n SEMI_AUTONOMOUS\n\n FULLY_AUTONOMOUS\n\n EMERGENCY_SAFE_MODE\n}\n\nenum LlmProvider {\n OPENAI\n\n ANTHROPIC\n\n DEEPSEEK\n\n KIMI\n\n QWEN\n\n XAI\n\n GEMINI\n}\n\nenum OverlayType {\n BLACK_SWAN\n\n VOLATILITY_REGIME\n\n SECTOR_DETERIORATION\n\n DRAWDOWN_BREACH\n\n CORRELATION_SPIKE\n\n LIQUIDITY_STRESS\n\n EXCHANGE_DEGRADATION\n\n DATA_QUALITY\n\n NEWS_EVENT_RISK\n\n RATES_BONDS_STRESS\n\n MANUAL_OVERRIDE\n\n INCIDENT_RESPONSE\n}\n\nenum OverlaySeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\nenum OverlayStatus {\n ACTIVE\n\n EXPIRED\n\n DEACTIVATED\n\n SUPERSEDED\n}\n\nenum AccountRiskState {\n NORMAL\n\n WARN\n\n THROTTLE\n\n PAUSED\n\n FLATTEN\n\n HALT\n}\n\n";
1
+ export declare const TradingPolicyTypeString = "\n// Your response should adhere to the following type definition for the \"TradingPolicy\" 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 TradingPolicy = {\n // Relation to AlpacaAccount.\n alpacaAccount: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n };\n version: number;\n lastModifiedBy?: string;\n lastModifiedAt: Date;\n autonomyMode: AutonomyMode;\n realtimeTradingEnabled: boolean;\n paperTradingOnly: boolean;\n killSwitchEnabled: boolean;\n autonomyPrefs?: any;\n equitiesEnabled: boolean;\n etfsEnabled: boolean;\n cryptoEnabled: boolean;\n optionsEnabled: boolean;\n futuresEnabled: boolean;\n forexEnabled: boolean;\n shortingEnabled: boolean;\n marginEnabled: boolean;\n fractionalSharesEnabled: boolean;\n assetUniversePrefs?: any;\n maxBuyingPowerUtilPct: number;\n cashFloorPct: number;\n maxGrossExposurePct: number;\n maxNetExposurePct: number;\n maxLeverage: number;\n maxSymbolConcentrationPct: number;\n maxSectorConcentrationPct: number;\n maxOpenPositions: number;\n maxOpenOrders: number;\n // Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct.\n perTradeEquityAllocationPct: number;\n // Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct.\n perTradeCryptoAllocationPct: number;\n // Opt-in for enabling the portfolio-level trailing stop service within Adaptic's Realtime Trade Engine. Canonical replacement for legacy AlpacaAccount.enablePortfolioTrailingStop.\n enablePortfolioTrailingStop: boolean;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioTrailPercent.\n portfolioTrailPercent: number;\n // Portfolio-level profit threshold percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioProfitThresholdPercent.\n portfolioProfitThresholdPercent: number;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.\n reducedPortfolioTrailPercent: number;\n // Whether the portfolio-level daily take-profit circuit breaker is enabled for this account.\n enablePortfolioTakeProfit?: boolean;\n // Daily gain target (whole percent, e.g. 1 = 1%) since the 09:30 open that trips the take-profit breaker.\n portfolioTakeProfitThresholdPercent?: number;\n // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.\n defaultTrailingStopPercentage100: number;\n // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.\n firstTrailReductionThreshold100: number;\n // Second profit threshold at which the Position Trailing Stop Service further reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.secondTrailReductionThreshold100.\n secondTrailReductionThreshold100: number;\n // Trailing stop percentage to use when profit exceeds the first threshold. Canonical replacement for legacy AlpacaAccount.firstReducedTrailPercentage100.\n firstReducedTrailPercentage100: number;\n // Trailing stop percentage to use when profit exceeds the second threshold. Canonical replacement for legacy AlpacaAccount.secondReducedTrailPercentage100.\n secondReducedTrailPercentage100: number;\n // Minimum change in trailing stop percent to warrant an adjustment. Canonical replacement for legacy AlpacaAccount.minimumPriceChangePercent100.\n minimumPriceChangePercent100: number;\n // Wash-trade cooldown period in milliseconds for equities \u2014 minimum elapsed time between opposing-side fills on the same symbol per FINRA Rule 5210. Mirrors the 30s default already enforced for crypto. Default: 30000 (30 seconds).\n equityWashTradeCooldownMs: number;\n // Minimum intraday liquidity threshold (shares traded in last 5 min). Required for scalping. Default: 10000 (10k shares in last 5 min).\n minIntradayLiquidityShares: number;\n // Maximum spread in basis points (1/100ths of 1%) to allow entry. Scalping requires tight spreads; use 1-3 bps. Default: 5 (0.05%).\n maxEntrySpreadBps: number;\n // Minimum time between same-symbol same-side entries (ms). FINRA Rule 5210 requires 30s for opposite-side trades; this controls same-side rapid re-entry. Default: 5000 (5 seconds) for scalping; 30000 for normal trading.\n sameSideReentryDelayMs: number;\n // Volatility filter: only trade if ATR(14) >= minAtrPercentage. Scalping needs moderate volatility; too low = no edge. Default: 0.3 (0.3%).\n minAtrPercentage: number;\n // Volatility filter: only trade if ATR(14) <= maxAtrPercentage. Scalping needs moderate volatility; too high = whipsaws. Default: 2.0 (2.0%).\n maxAtrPercentage: number;\n // Order book depth requirement: minimum shares at best bid/ask to qualify for entry. Scalping needs guaranteed liquidity. Default: 5000 shares.\n minBookDepthShares: number;\n // Maximum market order slippage in basis points before flagging as anomaly. Helps detect liquidity crunches. Default: 10 bps.\n maxAnomalousSlippageBps: number;\n // Intraday session windows allowed (JSON array). Format: [{ startMinutesFromOpen, endMinutesFromOpen, active }]. Example: skip first 5 min and last 10 min of RTH.\n intradayTradingWindows?: any;\n // Hard position exit clock (minutes from entry). 0 = disabled. Forces liquidation regardless of signal. Useful for strict day-trading discipline. Default: 0.\n hardPositionExitMinutes: number;\n // Rapid-fire order-rate limit: max orders within orderWindowSeconds. Default: 10 orders per 5 seconds.\n maxOrdersPerWindow: number;\n // Window size for maxOrdersPerWindow rate limit (seconds). Default: 5.\n orderWindowSeconds: number;\n // Enforce intraday-only trading (auto-close all positions before EOD). Default: false.\n dayTradeOnly: boolean;\n riskBudgetPrefs?: any;\n signalConsumptionPrefs?: any;\n executionPrefs?: any;\n positionManagementPrefs?: any;\n portfolioConstructionPrefs?: any;\n macroOverlayEnabled: boolean;\n sectorOverlayEnabled: boolean;\n volatilityOverlayEnabled: boolean;\n liquidityStressOverlayEnabled: boolean;\n blackSwanProtectionEnabled: boolean;\n drawdownGuardianEnabled: boolean;\n correlationSpikeProtectionEnabled: boolean;\n newsEventRiskOverlayEnabled: boolean;\n exchangeHealthOverlayEnabled: boolean;\n dataQualitySentinelEnabled: boolean;\n overlayResponsePrefs?: any;\n miniModelProvider?: LlmProvider;\n normalModelProvider?: LlmProvider;\n advancedModelProvider?: LlmProvider;\n modelPrefs?: any;\n auditNotificationPrefs?: any;\n // List of policy overlays.\n overlays: {\n overlayType: OverlayType;\n source: string;\n reason: string;\n severity: OverlaySeverity;\n version: number;\n mutations: any;\n status: OverlayStatus;\n activatedAt: Date;\n expiresAt?: Date;\n deactivatedAt?: Date;\n deactivatedBy?: string;\n }[];\n escalationPolicyOverrides?: any;\n currentRiskState: AccountRiskState;\n currentRiskStateAt?: Date;\n lastRiskStateChangedBy?: string;\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum AutonomyMode {\n ADVISORY_ONLY\n\n EXECUTION_ON_APPROVAL\n\n SEMI_AUTONOMOUS\n\n FULLY_AUTONOMOUS\n\n EMERGENCY_SAFE_MODE\n}\n\nenum LlmProvider {\n OPENAI\n\n ANTHROPIC\n\n DEEPSEEK\n\n KIMI\n\n QWEN\n\n XAI\n\n GEMINI\n}\n\nenum OverlayType {\n BLACK_SWAN\n\n VOLATILITY_REGIME\n\n SECTOR_DETERIORATION\n\n DRAWDOWN_BREACH\n\n CORRELATION_SPIKE\n\n LIQUIDITY_STRESS\n\n EXCHANGE_DEGRADATION\n\n DATA_QUALITY\n\n NEWS_EVENT_RISK\n\n RATES_BONDS_STRESS\n\n MANUAL_OVERRIDE\n\n INCIDENT_RESPONSE\n}\n\nenum OverlaySeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\nenum OverlayStatus {\n ACTIVE\n\n EXPIRED\n\n DEACTIVATED\n\n SUPERSEDED\n}\n\nenum AccountRiskState {\n NORMAL\n\n WARN\n\n THROTTLE\n\n PAUSED\n\n FLATTEN\n\n HALT\n}\n\n";
2
2
  //# sourceMappingURL=TradingPolicy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TradingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/TradingPolicy.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,opQAgOnC,CAAC"}
1
+ {"version":3,"file":"TradingPolicy.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/TradingPolicy.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,47QAoOnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TradingPolicy.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/TradingPolicy.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgOtC,CAAC"}
1
+ {"version":3,"file":"TradingPolicy.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/TradingPolicy.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoOtC,CAAC"}
@@ -49,6 +49,10 @@ export type TradingPolicy = {
49
49
  portfolioProfitThresholdPercent: number;
50
50
  // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.
51
51
  reducedPortfolioTrailPercent: number;
52
+ // Whether the portfolio-level daily take-profit circuit breaker is enabled for this account.
53
+ enablePortfolioTakeProfit?: boolean;
54
+ // Daily gain target (whole percent, e.g. 1 = 1%) since the 09:30 open that trips the take-profit breaker.
55
+ portfolioTakeProfitThresholdPercent?: number;
52
56
  // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.
53
57
  defaultTrailingStopPercentage100: number;
54
58
  // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.