@adaptic/utils 0.0.932 → 0.0.934
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/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/trading-policy/schemas/audit-notification-prefs.schema.d.ts +8 -0
- package/dist/types/trading-policy/schemas/audit-notification-prefs.schema.d.ts.map +1 -1
- package/dist/types/trading-policy/schemas/effective-policy.schema.d.ts +40 -0
- package/dist/types/trading-policy/schemas/effective-policy.schema.d.ts.map +1 -1
- package/dist/types/trading-policy/schemas/policy-mutation.schema.d.ts +72 -0
- package/dist/types/trading-policy/schemas/policy-mutation.schema.d.ts.map +1 -1
- package/dist/types/trading-policy/schemas/risk-budget-prefs.schema.d.ts +40 -0
- package/dist/types/trading-policy/schemas/risk-budget-prefs.schema.d.ts.map +1 -1
- package/dist/types/trading-policy/schemas/signal-consumption-prefs.schema.d.ts +16 -0
- package/dist/types/trading-policy/schemas/signal-consumption-prefs.schema.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -66994,6 +66994,16 @@ const RiskBudgetPrefsObjectSchema = objectType({
|
|
|
66994
66994
|
weekendExposureCapPct: numberType().min(0).max(100).default(30),
|
|
66995
66995
|
eventRiskExposureCapPct: numberType().min(0).max(100).default(40),
|
|
66996
66996
|
gapRiskSensitivity: enumType(['low', 'medium', 'high']).default('medium'),
|
|
66997
|
+
/** Per-trade equity allocation as % of account equity. Replaces legacy AlpacaAccount.tradeAllocationPct. */
|
|
66998
|
+
perTradeAllocationPct: numberType().min(0).max(100).default(5),
|
|
66999
|
+
/** Per-trade crypto allocation as % of account equity. Replaces legacy AlpacaAccount.cryptoTradeAllocationPct. */
|
|
67000
|
+
perTradeCryptoAllocationPct: numberType().min(0).max(100).default(5),
|
|
67001
|
+
/** Alpaca day-trading buying power check enforcement. Synced to Alpaca API. */
|
|
67002
|
+
dtbpCheck: enumType(['both', 'entry', 'exit']).default('both'),
|
|
67003
|
+
/** Alpaca pattern day trader rule enforcement. Synced to Alpaca API. */
|
|
67004
|
+
pdtCheck: enumType(['both', 'entry', 'exit']).default('both'),
|
|
67005
|
+
/** Strict PDT enforcement — block all violations without exception. Synced to Alpaca API. */
|
|
67006
|
+
ptpNoExceptionEntry: booleanType().default(false),
|
|
66997
67007
|
});
|
|
66998
67008
|
const RiskBudgetPrefsSchema = RiskBudgetPrefsObjectSchema.default({});
|
|
66999
67009
|
|
|
@@ -67047,6 +67057,10 @@ const SignalConsumptionPrefsObjectSchema = objectType({
|
|
|
67047
67057
|
earningsBlackoutEnabled: booleanType().default(false),
|
|
67048
67058
|
earningsBlackoutHoursBefore: numberType().min(0).default(24),
|
|
67049
67059
|
earningsBlackoutHoursAfter: numberType().min(0).default(2),
|
|
67060
|
+
/** Minimum price movement % to qualify as a tradeable signal. Replaces legacy AlpacaAccount.minPercentageChange. */
|
|
67061
|
+
minPercentageChange: numberType().min(0).default(0.5),
|
|
67062
|
+
/** Minimum average daily volume to qualify a symbol for trading. Replaces legacy AlpacaAccount.volumeThreshold. */
|
|
67063
|
+
volumeThreshold: numberType().min(0).default(50000),
|
|
67050
67064
|
});
|
|
67051
67065
|
const SignalConsumptionPrefsSchema = SignalConsumptionPrefsObjectSchema.default({});
|
|
67052
67066
|
|
|
@@ -67281,6 +67295,8 @@ const AuditNotificationPrefsObjectSchema = objectType({
|
|
|
67281
67295
|
incidentAlertEndpoint: stringType().default(''),
|
|
67282
67296
|
requirePostActionExplanation: booleanType().default(true),
|
|
67283
67297
|
retainDecisionArtifactsDays: numberType().min(0).default(90),
|
|
67298
|
+
/** Trade confirmation email preference. Synced to Alpaca API. */
|
|
67299
|
+
tradeConfirmEmail: enumType(['all', 'none']).default('all'),
|
|
67284
67300
|
});
|
|
67285
67301
|
const AuditNotificationPrefsSchema = AuditNotificationPrefsObjectSchema.default({});
|
|
67286
67302
|
|