@adaptic/backend 0.0.1056 → 0.0.1058
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.
- package/Account.cjs +14 -0
- package/AccountLinkingRequest.cjs +14 -0
- package/AccountRiskMetrics.cjs +11 -0
- package/AdaConversation.cjs +14 -0
- package/Alert.cjs +11 -0
- package/Allocation.cjs +11 -0
- package/AlpacaAccount.cjs +36 -0
- package/Authenticator.cjs +14 -0
- package/AutoFollowRule.cjs +14 -0
- package/BrokerageAccount.cjs +11 -0
- package/Customer.cjs +14 -0
- package/DeskDecision.cjs +11 -0
- package/FeatureFlagOverride.cjs +14 -0
- package/Follow.cjs +14 -0
- package/Fund.cjs +56 -0
- package/FundAssignment.cjs +14 -0
- package/Investor.cjs +14 -0
- package/LinkedProvider.cjs +14 -0
- package/LlmConfiguration.cjs +14 -0
- package/Mandate.cjs +14 -0
- package/MandateApproval.cjs +14 -0
- package/MandateVersion.cjs +14 -0
- package/NotificationDelivery.cjs +14 -0
- package/NotificationPreference.cjs +14 -0
- package/OrgMembership.cjs +14 -0
- package/PolicyOverlay.cjs +64 -0
- package/PushSubscription.cjs +14 -0
- package/RiskEscalationEvent.cjs +33 -0
- package/Session.cjs +14 -0
- package/Strategy.cjs +28 -0
- package/StrategyHealthSnapshot.cjs +11 -0
- package/StrategySubscription.cjs +11 -0
- package/TradingPolicy.cjs +6 -0
- package/User.cjs +11 -0
- package/UserTotp.cjs +14 -0
- package/WaitlistEntry.cjs +14 -0
- package/auth/authorization-map.cjs +306 -0
- package/auth/authorization-map.d.ts +143 -0
- package/auth/cortex-auth-checker.cjs +172 -0
- package/auth/cortex-auth-checker.d.ts +114 -0
- package/auth/credential-fields.cjs +51 -0
- package/auth/credential-fields.d.ts +19 -0
- package/auth/credential-redaction.cjs +134 -0
- package/auth/credential-redaction.d.ts +60 -0
- package/auth/graphql-auth-shadow.cjs +317 -0
- package/auth/graphql-auth-shadow.d.ts +194 -0
- package/auth/membership-write-authority.cjs +131 -0
- package/auth/membership-write-authority.d.ts +110 -0
- package/auth/mutation-authorization.cjs +376 -0
- package/auth/mutation-authorization.d.ts +261 -0
- package/auth/nested-write-inspector.cjs +189 -0
- package/auth/nested-write-inspector.d.ts +94 -0
- package/auth/nested-write-policy.cjs +189 -0
- package/auth/nested-write-policy.d.ts +99 -0
- package/auth/service-token.cjs +316 -0
- package/auth/service-token.d.ts +94 -0
- package/auth/tenancy-scope.cjs +736 -0
- package/auth/tenancy-scope.d.ts +347 -0
- package/auth/token-verifier.cjs +451 -0
- package/auth/token-verifier.d.ts +153 -0
- package/auth/totp.cjs +265 -0
- package/auth/totp.d.ts +111 -0
- package/auth/user-write-content.cjs +116 -0
- package/auth/user-write-content.d.ts +47 -0
- package/auth/ws-auth-context.cjs +75 -0
- package/auth/ws-auth-context.d.ts +69 -0
- package/config/jwtConfig.cjs +52 -0
- package/config/jwtConfig.d.ts +16 -0
- package/config/metrics.cjs +356 -0
- package/config/metrics.d.ts +128 -0
- package/config/persisted-queries.cjs +122 -0
- package/config/persisted-queries.d.ts +40 -0
- package/config/server-only-models.cjs +166 -0
- package/config/server-only-models.d.ts +89 -0
- package/config/tracing.d.ts +24 -0
- package/esm/Account.mjs +14 -0
- package/esm/AccountLinkingRequest.mjs +14 -0
- package/esm/AccountRiskMetrics.mjs +11 -0
- package/esm/AdaConversation.mjs +14 -0
- package/esm/Alert.mjs +11 -0
- package/esm/Allocation.mjs +11 -0
- package/esm/AlpacaAccount.mjs +36 -0
- package/esm/Authenticator.mjs +14 -0
- package/esm/AutoFollowRule.mjs +14 -0
- package/esm/BrokerageAccount.mjs +11 -0
- package/esm/Customer.mjs +14 -0
- package/esm/DeskDecision.mjs +11 -0
- package/esm/FeatureFlagOverride.mjs +14 -0
- package/esm/Follow.mjs +14 -0
- package/esm/Fund.mjs +56 -0
- package/esm/FundAssignment.mjs +14 -0
- package/esm/Investor.mjs +14 -0
- package/esm/LinkedProvider.mjs +14 -0
- package/esm/LlmConfiguration.mjs +14 -0
- package/esm/Mandate.mjs +14 -0
- package/esm/MandateApproval.mjs +14 -0
- package/esm/MandateVersion.mjs +14 -0
- package/esm/NotificationDelivery.mjs +14 -0
- package/esm/NotificationPreference.mjs +14 -0
- package/esm/OrgMembership.mjs +14 -0
- package/esm/PolicyOverlay.mjs +64 -0
- package/esm/PushSubscription.mjs +14 -0
- package/esm/RiskEscalationEvent.mjs +33 -0
- package/esm/Session.mjs +14 -0
- package/esm/Strategy.mjs +28 -0
- package/esm/StrategyHealthSnapshot.mjs +11 -0
- package/esm/StrategySubscription.mjs +11 -0
- package/esm/TradingPolicy.mjs +6 -0
- package/esm/User.mjs +11 -0
- package/esm/UserTotp.mjs +14 -0
- package/esm/WaitlistEntry.mjs +14 -0
- package/esm/generated/typeStrings/PolicyOverlay.d.ts +1 -1
- package/esm/generated/typeStrings/PolicyOverlay.mjs +18 -0
- package/esm/generated/typeStrings/TradingPolicy.d.ts +1 -1
- package/esm/generated/typeStrings/TradingPolicy.mjs +18 -0
- package/esm/generated/typeStrings/index.d.ts +2 -2
- package/esm/generated/typegraphql-prisma/enhance.mjs +18 -18
- package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.mjs +1 -0
- package/esm/generated/typegraphql-prisma/models/TradingPolicy.d.ts +20 -0
- package/esm/generated/typegraphql-prisma/models/TradingPolicy.mjs +27 -0
- package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.mjs +7 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.mjs +2 -0
- package/esm/middleware/mutation-account-facts.d.ts +3 -0
- package/esm/middleware/mutation-account-facts.mjs +2 -0
- package/esm/middleware/trading-policy-audit.d.ts +16 -4
- package/esm/middleware/trading-policy-audit.mjs +40 -11
- package/esm/readers/index.d.ts +10 -0
- package/esm/readers/index.mjs +10 -0
- package/esm/readers/intraday-lane-prefs.d.ts +45 -0
- package/esm/readers/intraday-lane-prefs.mjs +71 -0
- package/esm/tests/trading-policy-lane-fields-roundtrip.harness.d.ts +14 -0
- package/esm/tests/trading-policy-lane-fields-roundtrip.harness.mjs +107 -0
- package/generated/typeStrings/PolicyOverlay.cjs +18 -0
- package/generated/typeStrings/PolicyOverlay.d.ts +1 -1
- package/generated/typeStrings/TradingPolicy.cjs +18 -0
- package/generated/typeStrings/TradingPolicy.d.ts +1 -1
- package/generated/typeStrings/index.d.ts +2 -2
- package/generated/typegraphql-prisma/enhance.cjs +21 -21
- package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.cjs +1 -0
- package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts +1 -0
- package/generated/typegraphql-prisma/index.cjs +6 -6
- package/generated/typegraphql-prisma/models/TradingPolicy.cjs +7 -0
- package/generated/typegraphql-prisma/models/TradingPolicy.d.ts +20 -0
- package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/args.index.cjs +95 -95
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/index.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/args.index.cjs +32 -32
- package/index.cjs +2 -0
- package/index.d.ts +1 -0
- package/middleware/audit-log-write-redaction.cjs +143 -0
- package/middleware/audit-log-write-redaction.d.ts +82 -0
- package/middleware/audit-logger.cjs +378 -0
- package/middleware/audit-logger.d.ts +158 -0
- package/middleware/audit-payload-guard.cjs +107 -0
- package/middleware/audit-payload-guard.d.ts +85 -0
- package/middleware/auth.cjs +66 -0
- package/middleware/auth.d.ts +41 -0
- package/middleware/credential-field-guard.cjs +514 -0
- package/middleware/credential-field-guard.d.ts +173 -0
- package/middleware/generated-type-names.cjs +77 -0
- package/middleware/generated-type-names.d.ts +44 -0
- package/middleware/graphql-validation-plugin.cjs +310 -0
- package/middleware/graphql-validation-plugin.d.ts +98 -0
- package/middleware/guard-log-throttle.cjs +89 -0
- package/middleware/guard-log-throttle.d.ts +80 -0
- package/middleware/index.cjs +57 -0
- package/middleware/index.d.ts +14 -0
- package/middleware/input-validator.cjs +220 -0
- package/middleware/input-validator.d.ts +63 -0
- package/middleware/mandate-version-validation.cjs +131 -0
- package/middleware/mandate-version-validation.d.ts +41 -0
- package/middleware/mutation-account-facts.cjs +223 -0
- package/middleware/mutation-account-facts.d.ts +143 -0
- package/middleware/mutation-auth-guard.cjs +536 -0
- package/middleware/mutation-auth-guard.d.ts +100 -0
- package/middleware/mutation-membership-facts.cjs +276 -0
- package/middleware/mutation-membership-facts.d.ts +133 -0
- package/middleware/mutation-tenant-facts.cjs +132 -0
- package/middleware/mutation-tenant-facts.d.ts +81 -0
- package/middleware/query-complexity.cjs +182 -0
- package/middleware/query-complexity.d.ts +56 -0
- package/middleware/rate-limiter.cjs +223 -0
- package/middleware/rate-limiter.d.ts +93 -0
- package/middleware/rate-tier.cjs +111 -0
- package/middleware/rate-tier.d.ts +56 -0
- package/middleware/soft-delete.cjs +175 -0
- package/middleware/soft-delete.d.ts +146 -0
- package/middleware/tenancy-scoping.cjs +229 -0
- package/middleware/tenancy-scoping.d.ts +67 -0
- package/middleware/trading-policy-audit.cjs +353 -0
- package/middleware/trading-policy-audit.d.ts +184 -0
- package/middleware/types.cjs +17 -0
- package/middleware/types.d.ts +87 -0
- package/middleware/validation-examples.cjs +398 -0
- package/middleware/validation-examples.d.ts +76 -0
- package/package.json +10 -2
- package/readers/index.cjs +15 -0
- package/readers/index.d.ts +10 -0
- package/readers/intraday-lane-prefs.cjs +76 -0
- package/readers/intraday-lane-prefs.d.ts +45 -0
- package/esm/config/__tests__/server-only-surface.harness.d.ts +0 -12
- package/esm/config/__tests__/server-only-surface.harness.mjs +0 -41
- package/esm/middleware/__tests__/audit-log-write-redaction.harness.d.ts +0 -144
- package/esm/middleware/__tests__/audit-log-write-redaction.harness.mjs +0 -920
- package/esm/middleware/__tests__/credential-field-coverage.harness.d.ts +0 -55
- package/esm/middleware/__tests__/credential-field-coverage.harness.mjs +0 -440
- package/esm/middleware/__tests__/credential-field-guard.harness.d.ts +0 -34
- package/esm/middleware/__tests__/credential-field-guard.harness.mjs +0 -212
- package/esm/middleware/__tests__/mutation-auth-guard.harness.d.ts +0 -56
- package/esm/middleware/__tests__/mutation-auth-guard.harness.mjs +0 -570
- package/esm/middleware/__tests__/rate-limit-test-utils.d.ts +0 -60
- package/esm/middleware/__tests__/rate-limit-test-utils.mjs +0 -85
- package/esm/middleware/__tests__/ts-node-harness.d.ts +0 -10
- package/esm/middleware/__tests__/ts-node-harness.mjs +0 -71
- package/health.cjs +0 -274
- package/server.cjs +0 -607
|
@@ -56,8 +56,8 @@ export declare const typeStrings: {
|
|
|
56
56
|
readonly waitlistEntry: "\n// Your response should adhere to the following type definition for the \"WaitlistEntry\" 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 WaitlistEntry = {\n // The email address of the person on the waitlist.\n email: string;\n // The full name of the person on the waitlist.\n fullName: string;\n // The company name of the person on the waitlist.\n companyName: string;\n // The company website URL (optional).\n companyWebsite?: string;\n // The job role/title of the person on the waitlist.\n jobRole: string;\n // Whether the person has confirmed they are a professional investor.\n professionalInvestorConfirmed: boolean;\n // The current status of the waitlist entry.\n status: WaitlistStatus;\n // The position in the waitlist queue.\n queuePosition: number;\n};\n\nenum WaitlistStatus {\n PENDING\n\n APPROVED\n\n REJECTED\n}\n\n";
|
|
57
57
|
readonly inviteToken: "\n// Your response should adhere to the following type definition for the \"InviteToken\" 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 InviteToken = {\n // The unique token string used for invitation.\n token: string;\n // The email address the token was generated for.\n email: string;\n // Whether the token has been used.\n used: boolean;\n};\n\n";
|
|
58
58
|
readonly auditLog: "\n// Your response should adhere to the following type definition for the \"AuditLog\" 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 AuditLog = {\n // The type of mutation operation performed.\n operationType: AuditOperationType;\n // The name of the Prisma model that was mutated.\n modelName: string;\n // JSON snapshot of the fields that were changed. For creates: all fields. For updates: changed fields with before/after values. For deletes: all fields at time of deletion.\n changedFields: any;\n // The GraphQL operation name that triggered the mutation, if available.\n operationName?: string;\n // Ledger position, assigned by the database from the `audit_logs_ledger_seq`\nsequence on insert and never by a caller (omitted from the create and\nupdate inputs). Strictly increasing across all rows, so increasing within\nevery fund, with gaps. Rows written before the ledger existed hold null:\nnumbering them would invent an order their timestamps do not establish.\nThe desk ledger id is `L-<ledgerSeq>`; a page before a cursor is\n`where: { fundId: { equals }, ledgerSeq: { lt } }`, `orderBy: [{ ledgerSeq: { sort: desc } }]`.\n@TypeGraphQL.omit(input: [\"create\", \"update\"])\n ledgerSeq?: any;\n};\n\nenum AuditOperationType {\n CREATE\n\n UPDATE\n\n DELETE\n}\n\n";
|
|
59
|
-
readonly tradingPolicy: "\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 // Ordered ladder of portfolio trailing-stop rungs, generalising the single\nportfolioProfitThresholdPercent/reducedPortfolioTrailPercent pair above.\nShape: [{ \"thresholdPercent\": 0.35, \"trailPercent\": 0.25 }, ...] in WHOLE\nPERCENT of the session's opening equity (0.35 = 35bp), ordered ascending by\nthreshold. The engine applies min() across every rung whose threshold the\nsession high-water mark has reached, so the trail tightens monotonically and\na mis-ordered or wider rung can never loosen a stop that has already\ntightened. NULL = use the single legacy rung, which reproduces today's\nbehaviour exactly.\n portfolioTrailRungs?: any;\n // Local ET time (\"HH:MM\", 24h) at which the portfolio trailing-stop state\nre-anchors for a SECOND intraday round: open equity re-seeds from that\ntick, the high-water mark resets to zero and the trail returns to base.\nIntended for an afternoon session traded with freshly entered positions.\nNULL = single round per day, which is today's behaviour.\n portfolioAfternoonResetEt?: string;\n // Rung ladder for the afternoon round, same shape as portfolioTrailRungs.\nThe afternoon window is materially shorter than the morning, so the\nthresholds that are reachable within it differ and must be set from the\nafternoon's own distribution rather than inherited. NULL = reuse\nportfolioTrailRungs for the second round.\n portfolioAfternoonTrailRungs?: any;\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 — 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 DEEPINFRA\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";
|
|
60
|
-
readonly policyOverlay: "\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 // Ordered ladder of portfolio trailing-stop rungs, generalising the single\nportfolioProfitThresholdPercent/reducedPortfolioTrailPercent pair above.\nShape: [{ \"thresholdPercent\": 0.35, \"trailPercent\": 0.25 }, ...] in WHOLE\nPERCENT of the session's opening equity (0.35 = 35bp), ordered ascending by\nthreshold. The engine applies min() across every rung whose threshold the\nsession high-water mark has reached, so the trail tightens monotonically and\na mis-ordered or wider rung can never loosen a stop that has already\ntightened. NULL = use the single legacy rung, which reproduces today's\nbehaviour exactly.\n portfolioTrailRungs?: any;\n // Local ET time (\"HH:MM\", 24h) at which the portfolio trailing-stop state\nre-anchors for a SECOND intraday round: open equity re-seeds from that\ntick, the high-water mark resets to zero and the trail returns to base.\nIntended for an afternoon session traded with freshly entered positions.\nNULL = single round per day, which is today's behaviour.\n portfolioAfternoonResetEt?: string;\n // Rung ladder for the afternoon round, same shape as portfolioTrailRungs.\nThe afternoon window is materially shorter than the morning, so the\nthresholds that are reachable within it differ and must be set from the\nafternoon's own distribution rather than inherited. NULL = reuse\nportfolioTrailRungs for the second round.\n portfolioAfternoonTrailRungs?: any;\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 — 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 DEEPINFRA\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";
|
|
59
|
+
readonly tradingPolicy: "\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 // Ordered ladder of portfolio trailing-stop rungs, generalising the single\nportfolioProfitThresholdPercent/reducedPortfolioTrailPercent pair above.\nShape: [{ \"thresholdPercent\": 0.35, \"trailPercent\": 0.25 }, ...] in WHOLE\nPERCENT of the session's opening equity (0.35 = 35bp), ordered ascending by\nthreshold. The engine applies min() across every rung whose threshold the\nsession high-water mark has reached, so the trail tightens monotonically and\na mis-ordered or wider rung can never loosen a stop that has already\ntightened. NULL = use the single legacy rung, which reproduces today's\nbehaviour exactly.\n portfolioTrailRungs?: any;\n // Local ET time (\"HH:MM\", 24h) at which the portfolio trailing-stop state\nre-anchors for a SECOND intraday round: open equity re-seeds from that\ntick, the high-water mark resets to zero and the trail returns to base.\nIntended for an afternoon session traded with freshly entered positions.\nNULL = single round per day, which is today's behaviour.\n portfolioAfternoonResetEt?: string;\n // Rung ladder for the afternoon round, same shape as portfolioTrailRungs.\nThe afternoon window is materially shorter than the morning, so the\nthresholds that are reachable within it differ and must be set from the\nafternoon's own distribution rather than inherited. NULL = reuse\nportfolioTrailRungs for the second round.\n portfolioAfternoonTrailRungs?: any;\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 — 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 // Per-account multi-lane intraday preferences: the single carrier of the\naccount's lane opt-in (`armed`) and its per-lane caps, including the\ntrades-per-day cap (`perLaneTradesPerDay`). It is validated at the engine's\nread boundary by the strict IntradayLanePrefs schema in @adaptic/utils\n(trading-policy/schemas). NULL, a value that fails that schema, or an\nabsent cap means the lanes are disarmed for this account. One JSON carrier\ninstead of separate arming and cap columns keeps a single arming predicate,\nso there are no two homes for one setting that could disagree.\n\nIt is left out of every generated selection set (GQL.SKIP) on purpose. A\nGraphQL server that predates the column rejects any operation that\nselects it, and the TradingPolicy selection set feeds the engine's order\nchokepoint and broker-credential reads. Keeping the field out lets a\nconsumer of this package run against a server whether or not the\nmigration has been applied. It is read through `readIntradayLanePrefs`,\nwhose failure the lane path treats as disarmed, and written through the\ngenerated create and update inputs.\n intradayLanePrefs?: any;\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 DEEPINFRA\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";
|
|
60
|
+
readonly policyOverlay: "\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 // Ordered ladder of portfolio trailing-stop rungs, generalising the single\nportfolioProfitThresholdPercent/reducedPortfolioTrailPercent pair above.\nShape: [{ \"thresholdPercent\": 0.35, \"trailPercent\": 0.25 }, ...] in WHOLE\nPERCENT of the session's opening equity (0.35 = 35bp), ordered ascending by\nthreshold. The engine applies min() across every rung whose threshold the\nsession high-water mark has reached, so the trail tightens monotonically and\na mis-ordered or wider rung can never loosen a stop that has already\ntightened. NULL = use the single legacy rung, which reproduces today's\nbehaviour exactly.\n portfolioTrailRungs?: any;\n // Local ET time (\"HH:MM\", 24h) at which the portfolio trailing-stop state\nre-anchors for a SECOND intraday round: open equity re-seeds from that\ntick, the high-water mark resets to zero and the trail returns to base.\nIntended for an afternoon session traded with freshly entered positions.\nNULL = single round per day, which is today's behaviour.\n portfolioAfternoonResetEt?: string;\n // Rung ladder for the afternoon round, same shape as portfolioTrailRungs.\nThe afternoon window is materially shorter than the morning, so the\nthresholds that are reachable within it differ and must be set from the\nafternoon's own distribution rather than inherited. NULL = reuse\nportfolioTrailRungs for the second round.\n portfolioAfternoonTrailRungs?: any;\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 — 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 // Per-account multi-lane intraday preferences: the single carrier of the\naccount's lane opt-in (`armed`) and its per-lane caps, including the\ntrades-per-day cap (`perLaneTradesPerDay`). It is validated at the engine's\nread boundary by the strict IntradayLanePrefs schema in @adaptic/utils\n(trading-policy/schemas). NULL, a value that fails that schema, or an\nabsent cap means the lanes are disarmed for this account. One JSON carrier\ninstead of separate arming and cap columns keeps a single arming predicate,\nso there are no two homes for one setting that could disagree.\n\nIt is left out of every generated selection set (GQL.SKIP) on purpose. A\nGraphQL server that predates the column rejects any operation that\nselects it, and the TradingPolicy selection set feeds the engine's order\nchokepoint and broker-credential reads. Keeping the field out lets a\nconsumer of this package run against a server whether or not the\nmigration has been applied. It is read through `readIntradayLanePrefs`,\nwhose failure the lane path treats as disarmed, and written through the\ngenerated create and update inputs.\n intradayLanePrefs?: any;\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 DEEPINFRA\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";
|
|
61
61
|
readonly accountDecisionRecord: "\n// Your response should adhere to the following type definition for the \"AccountDecisionRecord\" 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 AccountDecisionRecord = {\n symbol: string;\n assetClass: string;\n signalAction: string;\n signalConfidence: number;\n decision: DecisionOutcome;\n decisionRationale?: string;\n decisionConfidence?: number;\n actionIntents?: any;\n validationResults?: any;\n executionResults?: any;\n effectivePolicySnapshot: any;\n positionsSnapshot?: any;\n openOrdersSnapshot?: any;\n exposureSnapshot?: any;\n overlaysSnapshot?: any;\n modelProvider: string;\n modelTier: string;\n routingReason?: string;\n tokenUsage?: any;\n sessionDurationMs?: number;\n gatingDurationMs?: number;\n validationDurationMs?: number;\n executionDurationMs?: number;\n status: DecisionRecordStatus;\n};\n\nenum DecisionOutcome {\n DO_NOTHING\n\n OPEN_POSITION\n\n ADD_TO_POSITION\n\n REDUCE_POSITION\n\n CLOSE_POSITION\n\n REVERSE_POSITION\n\n MODIFY_ORDERS\n\n CANCEL_ORDERS\n\n REBALANCE\n\n MUTATE_POLICY\n\n ESCALATE_FOR_APPROVAL\n\n SKIP_INELIGIBLE\n}\n\nenum DecisionRecordStatus {\n PENDING\n\n EXECUTING\n\n COMPLETED\n\n FAILED\n\n CANCELLED\n\n ESCALATED\n}\n\n";
|
|
62
62
|
readonly decisionMemorySummary: "\n// Your response should adhere to the following type definition for the \"DecisionMemorySummary\" 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 DecisionMemorySummary = {\n symbol?: string;\n sector?: string;\n assetClass?: string;\n summary: string;\n keyFactors?: any;\n outcome: DecisionMemoryOutcome;\n outcomeDetails?: any;\n relevanceScore: number;\n expiresAt?: Date;\n};\n\nenum DecisionMemoryOutcome {\n PENDING\n\n PROFITABLE\n\n UNPROFITABLE\n\n STOPPED_OUT\n\n CANCELLED\n}\n\n";
|
|
63
63
|
readonly equityBar: "\n// Your response should adhere to the following type definition for the \"EquityBar\" 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 EquityBar = {\n symbol: string;\n timeStamp: any;\n timespan: EquityBarTimespan;\n open: number;\n high: number;\n low: number;\n close: number;\n vol: number;\n vwap?: number;\n trades?: number;\n source: string;\n};\n\nenum EquityBarTimespan {\n second\n\n minute\n\n hour\n\n day\n}\n\n";
|
|
@@ -3513,7 +3513,7 @@ const modelsInfo = {
|
|
|
3513
3513
|
WaitlistEntry: ["id", "email", "fullName", "companyName", "companyWebsite", "jobRole", "professionalInvestorConfirmed", "status", "queuePosition", "createdAt", "updatedAt", "reviewedAt", "reviewedById"],
|
|
3514
3514
|
InviteToken: ["id", "token", "email", "waitlistEntryId", "used", "usedAt", "expiresAt", "createdAt"],
|
|
3515
3515
|
AuditLog: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
|
|
3516
|
-
TradingPolicy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
3516
|
+
TradingPolicy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
3517
3517
|
PolicyOverlay: ["id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt"],
|
|
3518
3518
|
AccountDecisionRecord: ["id", "alpacaAccountId", "correlationId", "opportunityId", "symbol", "assetClass", "signalAction", "signalConfidence", "decision", "decisionRationale", "decisionConfidence", "actionIntents", "validationResults", "executionResults", "effectivePolicySnapshot", "positionsSnapshot", "openOrdersSnapshot", "exposureSnapshot", "overlaysSnapshot", "modelProvider", "modelId", "modelTier", "routingReason", "tokenUsage", "sessionDurationMs", "gatingDurationMs", "validationDurationMs", "executionDurationMs", "status", "createdAt", "updatedAt"],
|
|
3519
3519
|
DecisionMemorySummary: ["id", "alpacaAccountId", "symbol", "sector", "assetClass", "summary", "keyFactors", "outcome", "outcomeDetails", "decisionRecordId", "correlationId", "relevanceScore", "expiresAt", "createdAt", "updatedAt"],
|
|
@@ -3678,7 +3678,7 @@ const outputsInfo = {
|
|
|
3678
3678
|
AggregateAuditLog: ["_count", "_avg", "_sum", "_min", "_max"],
|
|
3679
3679
|
AuditLogGroupBy: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq", "_count", "_avg", "_sum", "_min", "_max"],
|
|
3680
3680
|
AggregateTradingPolicy: ["_count", "_avg", "_sum", "_min", "_max"],
|
|
3681
|
-
TradingPolicyGroupBy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
|
|
3681
|
+
TradingPolicyGroupBy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
|
|
3682
3682
|
AggregatePolicyOverlay: ["_count", "_avg", "_sum", "_min", "_max"],
|
|
3683
3683
|
PolicyOverlayGroupBy: ["id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
|
|
3684
3684
|
AggregateAccountDecisionRecord: ["_count", "_avg", "_sum", "_min", "_max"],
|
|
@@ -4021,7 +4021,7 @@ const outputsInfo = {
|
|
|
4021
4021
|
AuditLogMinAggregate: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "operationName", "ipAddress", "fundId", "ledgerSeq"],
|
|
4022
4022
|
AuditLogMaxAggregate: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "operationName", "ipAddress", "fundId", "ledgerSeq"],
|
|
4023
4023
|
TradingPolicyCount: ["overlays"],
|
|
4024
|
-
TradingPolicyCountAggregate: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_all"],
|
|
4024
|
+
TradingPolicyCountAggregate: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_all"],
|
|
4025
4025
|
TradingPolicyAvgAggregate: ["version", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds"],
|
|
4026
4026
|
TradingPolicySumAggregate: ["version", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds"],
|
|
4027
4027
|
TradingPolicyMinAggregate: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioAfternoonResetEt", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
@@ -4242,7 +4242,7 @@ const outputsInfo = {
|
|
|
4242
4242
|
CreateManyAndReturnWaitlistEntry: ["id", "email", "fullName", "companyName", "companyWebsite", "jobRole", "professionalInvestorConfirmed", "status", "queuePosition", "createdAt", "updatedAt", "reviewedAt", "reviewedById", "reviewedBy"],
|
|
4243
4243
|
CreateManyAndReturnInviteToken: ["id", "token", "email", "waitlistEntryId", "used", "usedAt", "expiresAt", "createdAt", "waitlistEntry"],
|
|
4244
4244
|
CreateManyAndReturnAuditLog: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
|
|
4245
|
-
CreateManyAndReturnTradingPolicy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
|
|
4245
|
+
CreateManyAndReturnTradingPolicy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
|
|
4246
4246
|
CreateManyAndReturnPolicyOverlay: ["id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent"],
|
|
4247
4247
|
CreateManyAndReturnAccountDecisionRecord: ["id", "alpacaAccountId", "correlationId", "opportunityId", "symbol", "assetClass", "signalAction", "signalConfidence", "decision", "decisionRationale", "decisionConfidence", "actionIntents", "validationResults", "executionResults", "effectivePolicySnapshot", "positionsSnapshot", "openOrdersSnapshot", "exposureSnapshot", "overlaysSnapshot", "modelProvider", "modelId", "modelTier", "routingReason", "tokenUsage", "sessionDurationMs", "gatingDurationMs", "validationDurationMs", "executionDurationMs", "status", "createdAt", "updatedAt"],
|
|
4248
4248
|
CreateManyAndReturnDecisionMemorySummary: ["id", "alpacaAccountId", "symbol", "sector", "assetClass", "summary", "keyFactors", "outcome", "outcomeDetails", "decisionRecordId", "correlationId", "relevanceScore", "expiresAt", "createdAt", "updatedAt"],
|
|
@@ -4580,11 +4580,11 @@ const inputsInfo = {
|
|
|
4580
4580
|
AuditLogWhereUniqueInput: ["id", "ledgerSeq", "AND", "OR", "NOT", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId"],
|
|
4581
4581
|
AuditLogOrderByWithAggregationInput: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq", "_count", "_avg", "_max", "_min", "_sum"],
|
|
4582
4582
|
AuditLogScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
|
|
4583
|
-
TradingPolicyWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
|
|
4584
|
-
TradingPolicyOrderByWithRelationInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
|
|
4585
|
-
TradingPolicyWhereUniqueInput: ["id", "alpacaAccountId", "AND", "OR", "NOT", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
|
|
4586
|
-
TradingPolicyOrderByWithAggregationInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_count", "_avg", "_max", "_min", "_sum"],
|
|
4587
|
-
TradingPolicyScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
4583
|
+
TradingPolicyWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
|
|
4584
|
+
TradingPolicyOrderByWithRelationInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
|
|
4585
|
+
TradingPolicyWhereUniqueInput: ["id", "alpacaAccountId", "AND", "OR", "NOT", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
|
|
4586
|
+
TradingPolicyOrderByWithAggregationInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_count", "_avg", "_max", "_min", "_sum"],
|
|
4587
|
+
TradingPolicyScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
4588
4588
|
PolicyOverlayWhereInput: ["AND", "OR", "NOT", "id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent", "triggeredRiskEvents"],
|
|
4589
4589
|
PolicyOverlayOrderByWithRelationInput: ["id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent", "triggeredRiskEvents"],
|
|
4590
4590
|
PolicyOverlayWhereUniqueInput: ["id", "riskEscalationEventId", "AND", "OR", "NOT", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent", "triggeredRiskEvents"],
|
|
@@ -4997,10 +4997,10 @@ const inputsInfo = {
|
|
|
4997
4997
|
AuditLogUpdateInput: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
|
|
4998
4998
|
AuditLogCreateManyInput: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
|
|
4999
4999
|
AuditLogUpdateManyMutationInput: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
|
|
5000
|
-
TradingPolicyCreateInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
|
|
5001
|
-
TradingPolicyUpdateInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
|
|
5002
|
-
TradingPolicyCreateManyInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
5003
|
-
TradingPolicyUpdateManyMutationInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
5000
|
+
TradingPolicyCreateInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
|
|
5001
|
+
TradingPolicyUpdateInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
|
|
5002
|
+
TradingPolicyCreateManyInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
5003
|
+
TradingPolicyUpdateManyMutationInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
5004
5004
|
PolicyOverlayCreateInput: ["id", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent", "triggeredRiskEvents"],
|
|
5005
5005
|
PolicyOverlayUpdateInput: ["id", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent", "triggeredRiskEvents"],
|
|
5006
5006
|
PolicyOverlayCreateManyInput: ["id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt"],
|
|
@@ -5694,7 +5694,7 @@ const inputsInfo = {
|
|
|
5694
5694
|
EnumAccountRiskStateFilter: ["equals", "in", "notIn", "not"],
|
|
5695
5695
|
PolicyOverlayListRelationFilter: ["every", "some", "none"],
|
|
5696
5696
|
PolicyOverlayOrderByRelationAggregateInput: ["_count"],
|
|
5697
|
-
TradingPolicyCountOrderByAggregateInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
5697
|
+
TradingPolicyCountOrderByAggregateInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
5698
5698
|
TradingPolicyAvgOrderByAggregateInput: ["version", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds"],
|
|
5699
5699
|
TradingPolicyMaxOrderByAggregateInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioAfternoonResetEt", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
5700
5700
|
TradingPolicyMinOrderByAggregateInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioAfternoonResetEt", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
|
|
@@ -6954,7 +6954,7 @@ const inputsInfo = {
|
|
|
6954
6954
|
UserUpdateWithoutAccountLinkingRequestsInput: ["id", "name", "email", "emailVerified", "image", "avatarUrl", "onboardingComplete", "signupCategory", "createdAt", "updatedAt", "deletedAt", "role", "availability", "availabilityUntil", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel", "customer", "accounts", "sessions", "authenticators", "alpacaAccounts", "linkedProviders", "reviewedWaitlistEntries", "llmConfiguration", "orgMemberships", "fundAssignments", "managedFunds", "operatedFunds", "ownedMandates", "authoredMandateVersions", "mandateApprovalsDecided", "investorProfiles", "notificationDeliveries", "notificationPreferences", "ownedStrategies", "featureFlagOverrides", "follows", "autoFollowRules", "pushSubscriptions", "adaConversations", "totp"],
|
|
6955
6955
|
AllocationCreateWithoutAlpacaAccountInput: ["id", "equities", "optionsContracts", "futures", "etfs", "forex", "crypto", "stocks", "options", "createdAt", "updatedAt"],
|
|
6956
6956
|
AllocationCreateOrConnectWithoutAlpacaAccountInput: ["where", "create"],
|
|
6957
|
-
TradingPolicyCreateWithoutAlpacaAccountInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "overlays"],
|
|
6957
|
+
TradingPolicyCreateWithoutAlpacaAccountInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "overlays"],
|
|
6958
6958
|
TradingPolicyCreateOrConnectWithoutAlpacaAccountInput: ["where", "create"],
|
|
6959
6959
|
UserCreateWithoutAlpacaAccountsInput: ["id", "name", "email", "emailVerified", "image", "avatarUrl", "onboardingComplete", "signupCategory", "createdAt", "updatedAt", "deletedAt", "role", "availability", "availabilityUntil", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel", "customer", "accounts", "sessions", "authenticators", "linkedProviders", "accountLinkingRequests", "reviewedWaitlistEntries", "llmConfiguration", "orgMemberships", "fundAssignments", "managedFunds", "operatedFunds", "ownedMandates", "authoredMandateVersions", "mandateApprovalsDecided", "investorProfiles", "notificationDeliveries", "notificationPreferences", "ownedStrategies", "featureFlagOverrides", "follows", "autoFollowRules", "pushSubscriptions", "adaConversations", "totp"],
|
|
6960
6960
|
UserCreateOrConnectWithoutAlpacaAccountsInput: ["where", "create"],
|
|
@@ -6982,7 +6982,7 @@ const inputsInfo = {
|
|
|
6982
6982
|
AllocationUpdateWithoutAlpacaAccountInput: ["id", "equities", "optionsContracts", "futures", "etfs", "forex", "crypto", "stocks", "options", "createdAt", "updatedAt"],
|
|
6983
6983
|
TradingPolicyUpsertWithoutAlpacaAccountInput: ["update", "create", "where"],
|
|
6984
6984
|
TradingPolicyUpdateToOneWithWhereWithoutAlpacaAccountInput: ["where", "data"],
|
|
6985
|
-
TradingPolicyUpdateWithoutAlpacaAccountInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "overlays"],
|
|
6985
|
+
TradingPolicyUpdateWithoutAlpacaAccountInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "overlays"],
|
|
6986
6986
|
UserUpsertWithoutAlpacaAccountsInput: ["update", "create", "where"],
|
|
6987
6987
|
UserUpdateToOneWithWhereWithoutAlpacaAccountsInput: ["where", "data"],
|
|
6988
6988
|
UserUpdateWithoutAlpacaAccountsInput: ["id", "name", "email", "emailVerified", "image", "avatarUrl", "onboardingComplete", "signupCategory", "createdAt", "updatedAt", "deletedAt", "role", "availability", "availabilityUntil", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel", "customer", "accounts", "sessions", "authenticators", "linkedProviders", "accountLinkingRequests", "reviewedWaitlistEntries", "llmConfiguration", "orgMemberships", "fundAssignments", "managedFunds", "operatedFunds", "ownedMandates", "authoredMandateVersions", "mandateApprovalsDecided", "investorProfiles", "notificationDeliveries", "notificationPreferences", "ownedStrategies", "featureFlagOverrides", "follows", "autoFollowRules", "pushSubscriptions", "adaConversations", "totp"],
|
|
@@ -7277,7 +7277,7 @@ const inputsInfo = {
|
|
|
7277
7277
|
PolicyOverlayUpdateWithWhereUniqueWithoutTradingPolicyInput: ["where", "data"],
|
|
7278
7278
|
PolicyOverlayUpdateManyWithWhereWithoutTradingPolicyInput: ["where", "data"],
|
|
7279
7279
|
PolicyOverlayScalarWhereInput: ["AND", "OR", "NOT", "id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt"],
|
|
7280
|
-
TradingPolicyCreateWithoutOverlaysInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
|
|
7280
|
+
TradingPolicyCreateWithoutOverlaysInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
|
|
7281
7281
|
TradingPolicyCreateOrConnectWithoutOverlaysInput: ["where", "create"],
|
|
7282
7282
|
RiskEscalationEventCreateWithoutActivatedPolicyOverlayInput: ["id", "scopeKind", "scopeValue", "fromState", "toState", "reason", "severity", "triggeringObserver", "observedValue", "breachedThreshold", "breachedThresholdKey", "correlationId", "triggeringEventId", "actor", "actorUserId", "rationale", "createdAt", "alpacaAccount", "triggeredByPolicyOverlay"],
|
|
7283
7283
|
RiskEscalationEventCreateOrConnectWithoutActivatedPolicyOverlayInput: ["where", "create"],
|
|
@@ -7286,7 +7286,7 @@ const inputsInfo = {
|
|
|
7286
7286
|
RiskEscalationEventCreateManyTriggeredByPolicyOverlayInputEnvelope: ["data", "skipDuplicates"],
|
|
7287
7287
|
TradingPolicyUpsertWithoutOverlaysInput: ["update", "create", "where"],
|
|
7288
7288
|
TradingPolicyUpdateToOneWithWhereWithoutOverlaysInput: ["where", "data"],
|
|
7289
|
-
TradingPolicyUpdateWithoutOverlaysInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
|
|
7289
|
+
TradingPolicyUpdateWithoutOverlaysInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
|
|
7290
7290
|
RiskEscalationEventUpsertWithoutActivatedPolicyOverlayInput: ["update", "create", "where"],
|
|
7291
7291
|
RiskEscalationEventUpdateToOneWithWhereWithoutActivatedPolicyOverlayInput: ["where", "data"],
|
|
7292
7292
|
RiskEscalationEventUpdateWithoutActivatedPolicyOverlayInput: ["id", "scopeKind", "scopeValue", "fromState", "toState", "reason", "severity", "triggeringObserver", "observedValue", "breachedThreshold", "breachedThresholdKey", "correlationId", "triggeringEventId", "actor", "actorUserId", "rationale", "createdAt", "alpacaAccount", "triggeredByPolicyOverlay"],
|
|
@@ -58,6 +58,7 @@ export declare enum TradingPolicyScalarFieldEnum {
|
|
|
58
58
|
maxOrdersPerWindow = "maxOrdersPerWindow",
|
|
59
59
|
orderWindowSeconds = "orderWindowSeconds",
|
|
60
60
|
dayTradeOnly = "dayTradeOnly",
|
|
61
|
+
intradayLanePrefs = "intradayLanePrefs",
|
|
61
62
|
riskBudgetPrefs = "riskBudgetPrefs",
|
|
62
63
|
signalConsumptionPrefs = "signalConsumptionPrefs",
|
|
63
64
|
executionPrefs = "executionPrefs",
|
|
@@ -60,6 +60,7 @@ export var TradingPolicyScalarFieldEnum;
|
|
|
60
60
|
TradingPolicyScalarFieldEnum["maxOrdersPerWindow"] = "maxOrdersPerWindow";
|
|
61
61
|
TradingPolicyScalarFieldEnum["orderWindowSeconds"] = "orderWindowSeconds";
|
|
62
62
|
TradingPolicyScalarFieldEnum["dayTradeOnly"] = "dayTradeOnly";
|
|
63
|
+
TradingPolicyScalarFieldEnum["intradayLanePrefs"] = "intradayLanePrefs";
|
|
63
64
|
TradingPolicyScalarFieldEnum["riskBudgetPrefs"] = "riskBudgetPrefs";
|
|
64
65
|
TradingPolicyScalarFieldEnum["signalConsumptionPrefs"] = "signalConsumptionPrefs";
|
|
65
66
|
TradingPolicyScalarFieldEnum["executionPrefs"] = "executionPrefs";
|
|
@@ -172,6 +172,26 @@ export declare class TradingPolicy {
|
|
|
172
172
|
* Enforce intraday-only trading (auto-close all positions before EOD). Default: false.
|
|
173
173
|
*/
|
|
174
174
|
dayTradeOnly: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Per-account multi-lane intraday preferences: the single carrier of the
|
|
177
|
+
* account's lane opt-in (`armed`) and its per-lane caps, including the
|
|
178
|
+
* trades-per-day cap (`perLaneTradesPerDay`). It is validated at the engine's
|
|
179
|
+
* read boundary by the strict IntradayLanePrefs schema in @adaptic/utils
|
|
180
|
+
* (trading-policy/schemas). NULL, a value that fails that schema, or an
|
|
181
|
+
* absent cap means the lanes are disarmed for this account. One JSON carrier
|
|
182
|
+
* instead of separate arming and cap columns keeps a single arming predicate,
|
|
183
|
+
* so there are no two homes for one setting that could disagree.
|
|
184
|
+
*
|
|
185
|
+
* It is left out of every generated selection set (GQL.SKIP) on purpose. A
|
|
186
|
+
* GraphQL server that predates the column rejects any operation that
|
|
187
|
+
* selects it, and the TradingPolicy selection set feeds the engine's order
|
|
188
|
+
* chokepoint and broker-credential reads. Keeping the field out lets a
|
|
189
|
+
* consumer of this package run against a server whether or not the
|
|
190
|
+
* migration has been applied. It is read through `readIntradayLanePrefs`,
|
|
191
|
+
* whose failure the lane path treats as disarmed, and written through the
|
|
192
|
+
* generated create and update inputs. GQL.SKIP=true
|
|
193
|
+
*/
|
|
194
|
+
intradayLanePrefs?: Prisma.JsonValue | null;
|
|
175
195
|
riskBudgetPrefs?: Prisma.JsonValue | null;
|
|
176
196
|
signalConsumptionPrefs?: Prisma.JsonValue | null;
|
|
177
197
|
executionPrefs?: Prisma.JsonValue | null;
|