@adaptic/backend-legacy 0.0.954 → 0.0.956

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 (346) hide show
  1. package/Account.cjs +200 -0
  2. package/AccountLinkingRequest.cjs +200 -0
  3. package/Alert.cjs +170 -0
  4. package/Allocation.cjs +170 -0
  5. package/AlpacaAccount.cjs +150 -0
  6. package/Authenticator.cjs +200 -0
  7. package/Customer.cjs +210 -0
  8. package/LinkedProvider.cjs +200 -0
  9. package/LlmConfiguration.cjs +200 -0
  10. package/PolicyOverlay.cjs +140 -0
  11. package/Session.cjs +200 -0
  12. package/TradingPolicy.cjs +130 -0
  13. package/User.cjs +180 -0
  14. package/WaitlistEntry.cjs +200 -0
  15. package/client.cjs +53 -5
  16. package/esm/Account.d.ts.map +1 -1
  17. package/esm/Account.js.map +1 -1
  18. package/esm/Account.mjs +200 -0
  19. package/esm/AccountLinkingRequest.d.ts.map +1 -1
  20. package/esm/AccountLinkingRequest.js.map +1 -1
  21. package/esm/AccountLinkingRequest.mjs +200 -0
  22. package/esm/Alert.d.ts.map +1 -1
  23. package/esm/Alert.js.map +1 -1
  24. package/esm/Alert.mjs +170 -0
  25. package/esm/Allocation.d.ts.map +1 -1
  26. package/esm/Allocation.js.map +1 -1
  27. package/esm/Allocation.mjs +170 -0
  28. package/esm/AlpacaAccount.d.ts.map +1 -1
  29. package/esm/AlpacaAccount.js.map +1 -1
  30. package/esm/AlpacaAccount.mjs +150 -0
  31. package/esm/Authenticator.d.ts.map +1 -1
  32. package/esm/Authenticator.js.map +1 -1
  33. package/esm/Authenticator.mjs +200 -0
  34. package/esm/Customer.d.ts.map +1 -1
  35. package/esm/Customer.js.map +1 -1
  36. package/esm/Customer.mjs +210 -0
  37. package/esm/LinkedProvider.d.ts.map +1 -1
  38. package/esm/LinkedProvider.js.map +1 -1
  39. package/esm/LinkedProvider.mjs +200 -0
  40. package/esm/LlmConfiguration.d.ts.map +1 -1
  41. package/esm/LlmConfiguration.js.map +1 -1
  42. package/esm/LlmConfiguration.mjs +200 -0
  43. package/esm/PolicyOverlay.d.ts.map +1 -1
  44. package/esm/PolicyOverlay.js.map +1 -1
  45. package/esm/PolicyOverlay.mjs +140 -0
  46. package/esm/Session.d.ts.map +1 -1
  47. package/esm/Session.js.map +1 -1
  48. package/esm/Session.mjs +200 -0
  49. package/esm/TradingPolicy.d.ts.map +1 -1
  50. package/esm/TradingPolicy.js.map +1 -1
  51. package/esm/TradingPolicy.mjs +130 -0
  52. package/esm/User.d.ts.map +1 -1
  53. package/esm/User.js.map +1 -1
  54. package/esm/User.mjs +180 -0
  55. package/esm/WaitlistEntry.d.ts.map +1 -1
  56. package/esm/WaitlistEntry.js.map +1 -1
  57. package/esm/WaitlistEntry.mjs +200 -0
  58. package/esm/client.d.ts.map +1 -1
  59. package/esm/client.js.map +1 -1
  60. package/esm/client.mjs +52 -5
  61. package/esm/generated/selectionSets/AlpacaAccount.d.ts +1 -1
  62. package/esm/generated/selectionSets/AlpacaAccount.d.ts.map +1 -1
  63. package/esm/generated/selectionSets/AlpacaAccount.js.map +1 -1
  64. package/esm/generated/selectionSets/AlpacaAccount.mjs +10 -0
  65. package/esm/generated/selectionSets/Customer.d.ts +1 -1
  66. package/esm/generated/selectionSets/Customer.d.ts.map +1 -1
  67. package/esm/generated/selectionSets/Customer.js.map +1 -1
  68. package/esm/generated/selectionSets/Customer.mjs +10 -0
  69. package/esm/generated/selectionSets/TradingPolicy.d.ts +1 -1
  70. package/esm/generated/selectionSets/TradingPolicy.d.ts.map +1 -1
  71. package/esm/generated/selectionSets/TradingPolicy.js.map +1 -1
  72. package/esm/generated/selectionSets/TradingPolicy.mjs +10 -0
  73. package/esm/generated/selectionSets/User.d.ts +1 -1
  74. package/esm/generated/selectionSets/User.d.ts.map +1 -1
  75. package/esm/generated/selectionSets/User.js.map +1 -1
  76. package/esm/generated/selectionSets/User.mjs +10 -0
  77. package/esm/generated/typeStrings/PolicyOverlay.d.ts +1 -1
  78. package/esm/generated/typeStrings/PolicyOverlay.d.ts.map +1 -1
  79. package/esm/generated/typeStrings/PolicyOverlay.js.map +1 -1
  80. package/esm/generated/typeStrings/PolicyOverlay.mjs +20 -0
  81. package/esm/generated/typeStrings/TradingPolicy.d.ts +1 -1
  82. package/esm/generated/typeStrings/TradingPolicy.d.ts.map +1 -1
  83. package/esm/generated/typeStrings/TradingPolicy.js.map +1 -1
  84. package/esm/generated/typeStrings/TradingPolicy.mjs +20 -0
  85. package/esm/generated/typeStrings/index.d.ts +2 -2
  86. package/esm/generated/typegraphql-prisma/enhance.js.map +1 -1
  87. package/esm/generated/typegraphql-prisma/enhance.mjs +26 -26
  88. package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts +10 -0
  89. package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts.map +1 -1
  90. package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.js.map +1 -1
  91. package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.mjs +10 -0
  92. package/esm/generated/typegraphql-prisma/models/AlpacaAccount.d.ts +10 -10
  93. package/esm/generated/typegraphql-prisma/models/AlpacaAccount.js.map +1 -1
  94. package/esm/generated/typegraphql-prisma/models/AlpacaAccount.mjs +20 -20
  95. package/esm/generated/typegraphql-prisma/models/TradingPolicy.d.ts +40 -0
  96. package/esm/generated/typegraphql-prisma/models/TradingPolicy.d.ts.map +1 -1
  97. package/esm/generated/typegraphql-prisma/models/TradingPolicy.js.map +1 -1
  98. package/esm/generated/typegraphql-prisma/models/TradingPolicy.mjs +110 -0
  99. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts +1 -1
  100. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts.map +1 -1
  101. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.js.map +1 -1
  102. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts +1 -1
  103. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts.map +1 -1
  104. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.js.map +1 -1
  105. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts +1 -1
  106. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts.map +1 -1
  107. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.js.map +1 -1
  108. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts +1 -1
  109. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts.map +1 -1
  110. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.js.map +1 -1
  111. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.d.ts +9 -0
  112. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.d.ts.map +1 -1
  113. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.js.map +1 -1
  114. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.mjs +63 -0
  115. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts +10 -0
  116. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts.map +1 -1
  117. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.js.map +1 -1
  118. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.mjs +70 -0
  119. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts +10 -0
  120. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts.map +1 -1
  121. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.js.map +1 -1
  122. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.mjs +70 -0
  123. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts +10 -0
  124. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts.map +1 -1
  125. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.js.map +1 -1
  126. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.mjs +70 -0
  127. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts +10 -0
  128. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  129. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.js.map +1 -1
  130. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.mjs +70 -0
  131. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts +10 -0
  132. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts.map +1 -1
  133. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.js.map +1 -1
  134. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.mjs +70 -0
  135. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.d.ts +10 -0
  136. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.d.ts.map +1 -1
  137. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.js.map +1 -1
  138. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.mjs +70 -0
  139. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.d.ts +10 -0
  140. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.d.ts.map +1 -1
  141. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.js.map +1 -1
  142. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.mjs +70 -0
  143. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts +10 -0
  144. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts.map +1 -1
  145. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.js.map +1 -1
  146. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.mjs +70 -0
  147. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts +10 -0
  148. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts.map +1 -1
  149. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.js.map +1 -1
  150. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.mjs +70 -0
  151. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts +10 -0
  152. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts.map +1 -1
  153. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.js.map +1 -1
  154. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.mjs +70 -0
  155. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.d.ts +9 -0
  156. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.d.ts.map +1 -1
  157. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.js.map +1 -1
  158. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.mjs +63 -0
  159. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts +10 -0
  160. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts.map +1 -1
  161. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.js.map +1 -1
  162. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.mjs +70 -0
  163. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts +10 -0
  164. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts.map +1 -1
  165. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.js.map +1 -1
  166. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.mjs +70 -0
  167. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts +10 -0
  168. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  169. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.js.map +1 -1
  170. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.mjs +70 -0
  171. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts +10 -0
  172. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts.map +1 -1
  173. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.js.map +1 -1
  174. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.mjs +70 -0
  175. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts +10 -0
  176. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts.map +1 -1
  177. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.js.map +1 -1
  178. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.mjs +70 -0
  179. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts +10 -0
  180. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts.map +1 -1
  181. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.js.map +1 -1
  182. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.mjs +70 -0
  183. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts +10 -0
  184. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts.map +1 -1
  185. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.js.map +1 -1
  186. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.mjs +70 -0
  187. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.d.ts +9 -0
  188. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.d.ts.map +1 -1
  189. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.js.map +1 -1
  190. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.mjs +63 -0
  191. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts +10 -0
  192. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts.map +1 -1
  193. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.js.map +1 -1
  194. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.mjs +70 -0
  195. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts +10 -0
  196. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts.map +1 -1
  197. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.js.map +1 -1
  198. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.mjs +70 -0
  199. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.d.ts +10 -0
  200. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.d.ts.map +1 -1
  201. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.js.map +1 -1
  202. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.mjs +70 -0
  203. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.d.ts +10 -0
  204. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.d.ts.map +1 -1
  205. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.js.map +1 -1
  206. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.mjs +70 -0
  207. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.d.ts +9 -0
  208. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.d.ts.map +1 -1
  209. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.js.map +1 -1
  210. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.mjs +63 -0
  211. package/esm/index.d.ts.map +1 -1
  212. package/generated/typeStrings/PolicyOverlay.cjs +20 -0
  213. package/generated/typeStrings/PolicyOverlay.d.ts +1 -1
  214. package/generated/typeStrings/PolicyOverlay.d.ts.map +1 -1
  215. package/generated/typeStrings/PolicyOverlay.js.map +1 -1
  216. package/generated/typeStrings/TradingPolicy.cjs +20 -0
  217. package/generated/typeStrings/TradingPolicy.d.ts +1 -1
  218. package/generated/typeStrings/TradingPolicy.d.ts.map +1 -1
  219. package/generated/typeStrings/TradingPolicy.js.map +1 -1
  220. package/generated/typeStrings/index.d.ts +2 -2
  221. package/generated/typegraphql-prisma/enhance.cjs +26 -26
  222. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  223. package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.cjs +10 -0
  224. package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts +10 -0
  225. package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts.map +1 -1
  226. package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.js.map +1 -1
  227. package/generated/typegraphql-prisma/models/AlpacaAccount.cjs +10 -10
  228. package/generated/typegraphql-prisma/models/AlpacaAccount.d.ts +10 -10
  229. package/generated/typegraphql-prisma/models/AlpacaAccount.js.map +1 -1
  230. package/generated/typegraphql-prisma/models/TradingPolicy.cjs +70 -0
  231. package/generated/typegraphql-prisma/models/TradingPolicy.d.ts +40 -0
  232. package/generated/typegraphql-prisma/models/TradingPolicy.d.ts.map +1 -1
  233. package/generated/typegraphql-prisma/models/TradingPolicy.js.map +1 -1
  234. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts +1 -1
  235. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts.map +1 -1
  236. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.js.map +1 -1
  237. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts +1 -1
  238. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts.map +1 -1
  239. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.js.map +1 -1
  240. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts +1 -1
  241. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts.map +1 -1
  242. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.js.map +1 -1
  243. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts +1 -1
  244. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts.map +1 -1
  245. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.js.map +1 -1
  246. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.cjs +54 -0
  247. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.d.ts +9 -0
  248. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.d.ts.map +1 -1
  249. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyAvgOrderByAggregateInput.js.map +1 -1
  250. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.cjs +60 -0
  251. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts +10 -0
  252. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts.map +1 -1
  253. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.js.map +1 -1
  254. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.cjs +60 -0
  255. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts +10 -0
  256. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts.map +1 -1
  257. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.js.map +1 -1
  258. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.cjs +60 -0
  259. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts +10 -0
  260. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts.map +1 -1
  261. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.js.map +1 -1
  262. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.cjs +60 -0
  263. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts +10 -0
  264. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  265. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.js.map +1 -1
  266. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.cjs +60 -0
  267. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts +10 -0
  268. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts.map +1 -1
  269. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.js.map +1 -1
  270. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.cjs +60 -0
  271. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.d.ts +10 -0
  272. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.d.ts.map +1 -1
  273. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMaxOrderByAggregateInput.js.map +1 -1
  274. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.cjs +60 -0
  275. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.d.ts +10 -0
  276. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.d.ts.map +1 -1
  277. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyMinOrderByAggregateInput.js.map +1 -1
  278. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.cjs +60 -0
  279. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts +10 -0
  280. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts.map +1 -1
  281. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.js.map +1 -1
  282. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.cjs +60 -0
  283. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts +10 -0
  284. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts.map +1 -1
  285. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.js.map +1 -1
  286. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.cjs +60 -0
  287. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts +10 -0
  288. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts.map +1 -1
  289. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.js.map +1 -1
  290. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.cjs +54 -0
  291. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.d.ts +9 -0
  292. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.d.ts.map +1 -1
  293. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicySumOrderByAggregateInput.js.map +1 -1
  294. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.cjs +60 -0
  295. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts +10 -0
  296. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts.map +1 -1
  297. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.js.map +1 -1
  298. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.cjs +60 -0
  299. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts +10 -0
  300. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts.map +1 -1
  301. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.js.map +1 -1
  302. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.cjs +60 -0
  303. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts +10 -0
  304. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  305. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.js.map +1 -1
  306. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.cjs +60 -0
  307. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts +10 -0
  308. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts.map +1 -1
  309. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.js.map +1 -1
  310. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.cjs +60 -0
  311. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts +10 -0
  312. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts.map +1 -1
  313. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.js.map +1 -1
  314. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.cjs +60 -0
  315. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts +10 -0
  316. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts.map +1 -1
  317. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.js.map +1 -1
  318. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.cjs +60 -0
  319. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts +10 -0
  320. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts.map +1 -1
  321. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.js.map +1 -1
  322. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.cjs +54 -0
  323. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.d.ts +9 -0
  324. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.d.ts.map +1 -1
  325. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyAvgAggregate.js.map +1 -1
  326. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.cjs +60 -0
  327. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts +10 -0
  328. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts.map +1 -1
  329. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.js.map +1 -1
  330. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.cjs +60 -0
  331. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts +10 -0
  332. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts.map +1 -1
  333. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.js.map +1 -1
  334. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.cjs +60 -0
  335. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.d.ts +10 -0
  336. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.d.ts.map +1 -1
  337. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMaxAggregate.js.map +1 -1
  338. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.cjs +60 -0
  339. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.d.ts +10 -0
  340. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.d.ts.map +1 -1
  341. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyMinAggregate.js.map +1 -1
  342. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.cjs +54 -0
  343. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.d.ts +9 -0
  344. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.d.ts.map +1 -1
  345. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicySumAggregate.js.map +1 -1
  346. package/package.json +1 -1
package/WaitlistEntry.cjs CHANGED
@@ -327,6 +327,16 @@ exports.WaitlistEntry = {
327
327
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
328
328
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
329
329
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
330
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
331
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
332
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
333
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
334
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
335
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
336
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
337
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
338
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
339
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
330
340
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
331
341
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
332
342
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -1316,6 +1326,36 @@ exports.WaitlistEntry = {
1316
1326
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? {
1317
1327
  set: item.tradingPolicy.perTradeCryptoAllocationPct
1318
1328
  } : undefined,
1329
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? {
1330
+ set: item.tradingPolicy.enablePortfolioTrailingStop
1331
+ } : undefined,
1332
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? {
1333
+ set: item.tradingPolicy.portfolioTrailPercent
1334
+ } : undefined,
1335
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? {
1336
+ set: item.tradingPolicy.portfolioProfitThresholdPercent
1337
+ } : undefined,
1338
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? {
1339
+ set: item.tradingPolicy.reducedPortfolioTrailPercent
1340
+ } : undefined,
1341
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? {
1342
+ set: item.tradingPolicy.defaultTrailingStopPercentage100
1343
+ } : undefined,
1344
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? {
1345
+ set: item.tradingPolicy.firstTrailReductionThreshold100
1346
+ } : undefined,
1347
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? {
1348
+ set: item.tradingPolicy.secondTrailReductionThreshold100
1349
+ } : undefined,
1350
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? {
1351
+ set: item.tradingPolicy.firstReducedTrailPercentage100
1352
+ } : undefined,
1353
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? {
1354
+ set: item.tradingPolicy.secondReducedTrailPercentage100
1355
+ } : undefined,
1356
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? {
1357
+ set: item.tradingPolicy.minimumPriceChangePercent100
1358
+ } : undefined,
1319
1359
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
1320
1360
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
1321
1361
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -1403,6 +1443,16 @@ exports.WaitlistEntry = {
1403
1443
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
1404
1444
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
1405
1445
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
1446
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
1447
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
1448
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
1449
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
1450
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
1451
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
1452
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
1453
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
1454
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
1455
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
1406
1456
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
1407
1457
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
1408
1458
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -1607,6 +1657,16 @@ exports.WaitlistEntry = {
1607
1657
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
1608
1658
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
1609
1659
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
1660
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
1661
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
1662
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
1663
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
1664
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
1665
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
1666
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
1667
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
1668
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
1669
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
1610
1670
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
1611
1671
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
1612
1672
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -2116,6 +2176,16 @@ exports.WaitlistEntry = {
2116
2176
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
2117
2177
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
2118
2178
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
2179
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
2180
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
2181
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
2182
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
2183
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
2184
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
2185
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
2186
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
2187
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
2188
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
2119
2189
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
2120
2190
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
2121
2191
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -2716,6 +2786,16 @@ exports.WaitlistEntry = {
2716
2786
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
2717
2787
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
2718
2788
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
2789
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
2790
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
2791
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
2792
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
2793
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
2794
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
2795
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
2796
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
2797
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
2798
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
2719
2799
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
2720
2800
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
2721
2801
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -3440,6 +3520,36 @@ exports.WaitlistEntry = {
3440
3520
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? {
3441
3521
  set: item.tradingPolicy.perTradeCryptoAllocationPct
3442
3522
  } : undefined,
3523
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? {
3524
+ set: item.tradingPolicy.enablePortfolioTrailingStop
3525
+ } : undefined,
3526
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? {
3527
+ set: item.tradingPolicy.portfolioTrailPercent
3528
+ } : undefined,
3529
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? {
3530
+ set: item.tradingPolicy.portfolioProfitThresholdPercent
3531
+ } : undefined,
3532
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? {
3533
+ set: item.tradingPolicy.reducedPortfolioTrailPercent
3534
+ } : undefined,
3535
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? {
3536
+ set: item.tradingPolicy.defaultTrailingStopPercentage100
3537
+ } : undefined,
3538
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? {
3539
+ set: item.tradingPolicy.firstTrailReductionThreshold100
3540
+ } : undefined,
3541
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? {
3542
+ set: item.tradingPolicy.secondTrailReductionThreshold100
3543
+ } : undefined,
3544
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? {
3545
+ set: item.tradingPolicy.firstReducedTrailPercentage100
3546
+ } : undefined,
3547
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? {
3548
+ set: item.tradingPolicy.secondReducedTrailPercentage100
3549
+ } : undefined,
3550
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? {
3551
+ set: item.tradingPolicy.minimumPriceChangePercent100
3552
+ } : undefined,
3443
3553
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
3444
3554
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
3445
3555
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -3527,6 +3637,16 @@ exports.WaitlistEntry = {
3527
3637
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
3528
3638
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
3529
3639
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
3640
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
3641
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
3642
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
3643
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
3644
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
3645
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
3646
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
3647
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
3648
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
3649
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
3530
3650
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
3531
3651
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
3532
3652
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -3731,6 +3851,16 @@ exports.WaitlistEntry = {
3731
3851
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
3732
3852
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
3733
3853
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
3854
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
3855
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
3856
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
3857
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
3858
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
3859
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
3860
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
3861
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
3862
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
3863
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
3734
3864
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
3735
3865
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
3736
3866
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -4240,6 +4370,16 @@ exports.WaitlistEntry = {
4240
4370
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
4241
4371
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
4242
4372
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
4373
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
4374
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
4375
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
4376
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
4377
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
4378
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
4379
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
4380
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
4381
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
4382
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
4243
4383
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
4244
4384
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
4245
4385
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -5123,6 +5263,36 @@ exports.WaitlistEntry = {
5123
5263
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? {
5124
5264
  set: item.tradingPolicy.perTradeCryptoAllocationPct
5125
5265
  } : undefined,
5266
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? {
5267
+ set: item.tradingPolicy.enablePortfolioTrailingStop
5268
+ } : undefined,
5269
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? {
5270
+ set: item.tradingPolicy.portfolioTrailPercent
5271
+ } : undefined,
5272
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? {
5273
+ set: item.tradingPolicy.portfolioProfitThresholdPercent
5274
+ } : undefined,
5275
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? {
5276
+ set: item.tradingPolicy.reducedPortfolioTrailPercent
5277
+ } : undefined,
5278
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? {
5279
+ set: item.tradingPolicy.defaultTrailingStopPercentage100
5280
+ } : undefined,
5281
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? {
5282
+ set: item.tradingPolicy.firstTrailReductionThreshold100
5283
+ } : undefined,
5284
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? {
5285
+ set: item.tradingPolicy.secondTrailReductionThreshold100
5286
+ } : undefined,
5287
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? {
5288
+ set: item.tradingPolicy.firstReducedTrailPercentage100
5289
+ } : undefined,
5290
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? {
5291
+ set: item.tradingPolicy.secondReducedTrailPercentage100
5292
+ } : undefined,
5293
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? {
5294
+ set: item.tradingPolicy.minimumPriceChangePercent100
5295
+ } : undefined,
5126
5296
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
5127
5297
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
5128
5298
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -5210,6 +5380,16 @@ exports.WaitlistEntry = {
5210
5380
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
5211
5381
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
5212
5382
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
5383
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
5384
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
5385
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
5386
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
5387
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
5388
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
5389
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
5390
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
5391
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
5392
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
5213
5393
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
5214
5394
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
5215
5395
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -5414,6 +5594,16 @@ exports.WaitlistEntry = {
5414
5594
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
5415
5595
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
5416
5596
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
5597
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
5598
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
5599
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
5600
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
5601
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
5602
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
5603
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
5604
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
5605
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
5606
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
5417
5607
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
5418
5608
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
5419
5609
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
@@ -5923,6 +6113,16 @@ exports.WaitlistEntry = {
5923
6113
  maxOpenOrders: item.tradingPolicy.maxOpenOrders !== undefined ? item.tradingPolicy.maxOpenOrders : undefined,
5924
6114
  perTradeEquityAllocationPct: item.tradingPolicy.perTradeEquityAllocationPct !== undefined ? item.tradingPolicy.perTradeEquityAllocationPct : undefined,
5925
6115
  perTradeCryptoAllocationPct: item.tradingPolicy.perTradeCryptoAllocationPct !== undefined ? item.tradingPolicy.perTradeCryptoAllocationPct : undefined,
6116
+ enablePortfolioTrailingStop: item.tradingPolicy.enablePortfolioTrailingStop !== undefined ? item.tradingPolicy.enablePortfolioTrailingStop : undefined,
6117
+ portfolioTrailPercent: item.tradingPolicy.portfolioTrailPercent !== undefined ? item.tradingPolicy.portfolioTrailPercent : undefined,
6118
+ portfolioProfitThresholdPercent: item.tradingPolicy.portfolioProfitThresholdPercent !== undefined ? item.tradingPolicy.portfolioProfitThresholdPercent : undefined,
6119
+ reducedPortfolioTrailPercent: item.tradingPolicy.reducedPortfolioTrailPercent !== undefined ? item.tradingPolicy.reducedPortfolioTrailPercent : undefined,
6120
+ defaultTrailingStopPercentage100: item.tradingPolicy.defaultTrailingStopPercentage100 !== undefined ? item.tradingPolicy.defaultTrailingStopPercentage100 : undefined,
6121
+ firstTrailReductionThreshold100: item.tradingPolicy.firstTrailReductionThreshold100 !== undefined ? item.tradingPolicy.firstTrailReductionThreshold100 : undefined,
6122
+ secondTrailReductionThreshold100: item.tradingPolicy.secondTrailReductionThreshold100 !== undefined ? item.tradingPolicy.secondTrailReductionThreshold100 : undefined,
6123
+ firstReducedTrailPercentage100: item.tradingPolicy.firstReducedTrailPercentage100 !== undefined ? item.tradingPolicy.firstReducedTrailPercentage100 : undefined,
6124
+ secondReducedTrailPercentage100: item.tradingPolicy.secondReducedTrailPercentage100 !== undefined ? item.tradingPolicy.secondReducedTrailPercentage100 : undefined,
6125
+ minimumPriceChangePercent100: item.tradingPolicy.minimumPriceChangePercent100 !== undefined ? item.tradingPolicy.minimumPriceChangePercent100 : undefined,
5926
6126
  riskBudgetPrefs: item.tradingPolicy.riskBudgetPrefs !== undefined ? item.tradingPolicy.riskBudgetPrefs : undefined,
5927
6127
  signalConsumptionPrefs: item.tradingPolicy.signalConsumptionPrefs !== undefined ? item.tradingPolicy.signalConsumptionPrefs : undefined,
5928
6128
  executionPrefs: item.tradingPolicy.executionPrefs !== undefined ? item.tradingPolicy.executionPrefs : undefined,
package/client.cjs CHANGED
@@ -167,10 +167,44 @@ function processQueue() {
167
167
  }
168
168
  }
169
169
  }
170
+ /**
171
+ * Extract the GraphQL operation name from a query or mutation DocumentNode.
172
+ * Returns the name of the first OperationDefinition (e.g. `findManyTrade`,
173
+ * `createOneAlert`) so callers see which operations participate in a retry
174
+ * or timeout cascade. Returns 'anonymous' for unnamed operations and
175
+ * 'unknown' when the document shape is unexpected — never throws, so
176
+ * observability code never degrades the request path.
177
+ */
178
+ function extractOperationName(options) {
179
+ var _a, _b, _c;
180
+ try {
181
+ const opts = options;
182
+ const doc = (_a = opts === null || opts === void 0 ? void 0 : opts.query) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.mutation;
183
+ const defs = doc === null || doc === void 0 ? void 0 : doc.definitions;
184
+ if (!Array.isArray(defs))
185
+ return 'unknown';
186
+ for (const def of defs) {
187
+ const d = def;
188
+ if ((d === null || d === void 0 ? void 0 : d.kind) === 'OperationDefinition') {
189
+ return (_c = (_b = d.name) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : 'anonymous';
190
+ }
191
+ }
192
+ return 'unknown';
193
+ }
194
+ catch (_d) {
195
+ return 'unknown';
196
+ }
197
+ }
170
198
  /**
171
199
  * Adds an operation to the queue with retry capability.
200
+ *
201
+ * `operationName` is threaded through retries so every log line names the
202
+ * GraphQL operation (e.g. `findManyTrade`, `createManyEquityBar`) that is
203
+ * being retried or rejected. Without it, cascade bursts of 4-17 concurrent
204
+ * timeouts are indistinguishable in logs and root-cause diagnosis is
205
+ * impossible.
172
206
  */
173
- async function enqueueOperation(operation, attempt = 0) {
207
+ async function enqueueOperation(operation, operationName, attempt = 0) {
174
208
  return new Promise((resolve, reject) => {
175
209
  const executeWithRetry = async () => {
176
210
  try {
@@ -197,16 +231,30 @@ async function enqueueOperation(operation, attempt = 0) {
197
231
  error.message.includes('status code 502') ||
198
232
  error.message.includes('status code 503') ||
199
233
  error.message.includes('status code 504'));
234
+ const errorMessage = error instanceof Error ? error.message : String(error);
200
235
  if (attempt < poolConfig.retryAttempts && isRetryable) {
201
236
  const delay = poolConfig.retryDelay * Math.pow(2, attempt);
202
- logger_1.logger.warn(`Apollo operation failed, retrying in ${delay}ms (attempt ${attempt + 1}/${poolConfig.retryAttempts})`, { error: error instanceof Error ? error.message : String(error) });
237
+ logger_1.logger.warn(`Apollo operation '${operationName}' failed, retrying in ${delay}ms (attempt ${attempt + 1}/${poolConfig.retryAttempts})`, {
238
+ operation: operationName,
239
+ attempt: attempt + 1,
240
+ maxAttempts: poolConfig.retryAttempts,
241
+ delayMs: delay,
242
+ error: errorMessage,
243
+ });
203
244
  setTimeout(() => {
204
- enqueueOperation(operation, attempt + 1)
245
+ enqueueOperation(operation, operationName, attempt + 1)
205
246
  .then(resolve)
206
247
  .catch(reject);
207
248
  }, delay);
208
249
  }
209
250
  else {
251
+ if (isRetryable) {
252
+ logger_1.logger.warn(`Apollo operation '${operationName}' exhausted retries (${poolConfig.retryAttempts}/${poolConfig.retryAttempts})`, {
253
+ operation: operationName,
254
+ attempts: poolConfig.retryAttempts,
255
+ error: errorMessage,
256
+ });
257
+ }
210
258
  reject(error);
211
259
  }
212
260
  }
@@ -380,10 +428,10 @@ async function getApolloClient() {
380
428
  const originalQuery = apolloClient.query.bind(apolloClient);
381
429
  const originalMutate = apolloClient.mutate.bind(apolloClient);
382
430
  apolloClient.query = (options) => {
383
- return enqueueOperation(() => originalQuery(options));
431
+ return enqueueOperation(() => originalQuery(options), extractOperationName(options));
384
432
  };
385
433
  apolloClient.mutate = (options) => {
386
- return enqueueOperation(() => originalMutate(options));
434
+ return enqueueOperation(() => originalMutate(options), extractOperationName(options));
387
435
  };
388
436
  return apolloClient;
389
437
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../src/Account.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA2BpG,eAAO,MAAM,OAAO;IAElB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IA4jBhH;;;;;;;OAOG;sBACqB,WAAW,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,YAAY;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA4IzK;;;;;;OAMG;kBACiB,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IAmsD9G;;;;;;OAMG;kBACiB,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IA4nE9G;;;;;;OAMG;sBACqB,WAAW,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAksDjI;;;;;;OAMG;kBACiB,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IAwI9G;;;;;;;OAOG;eACc,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,GAAG,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAgHpI;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC;IAiGnG;;;;;;;OAOG;oBACmB,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,GAAG,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC;CA8H5I,CAAC"}
1
+ {"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../src/Account.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA2BpG,eAAO,MAAM,OAAO;IAElB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IAskBhH;;;;;;;OAOG;sBACqB,WAAW,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,YAAY;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA4IzK;;;;;;OAMG;kBACiB,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IA+vD9G;;;;;;OAMG;kBACiB,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IAksE9G;;;;;;OAMG;sBACqB,WAAW,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA8vDjI;;;;;;OAMG;kBACiB,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;IAwI9G;;;;;;;OAOG;eACc,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,GAAG,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAgHpI;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC;IAiGnG;;;;;;;OAOG;oBACmB,WAAW,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,GAAG,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC;CA8H5I,CAAC"}