@adaptic/utils 0.0.967 → 0.0.968

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.
@@ -1 +1 @@
1
- {"version":3,"file":"default-trading-policy.d.ts","sourceRoot":"","sources":["../../../../src/trading-policy/defaults/default-trading-policy.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,EAAE,sBAkDjC,CAAC"}
1
+ {"version":3,"file":"default-trading-policy.d.ts","sourceRoot":"","sources":["../../../../src/trading-policy/defaults/default-trading-policy.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,EAAE,sBAoDjC,CAAC"}
@@ -28,6 +28,10 @@ export declare const EffectiveTradingPolicySchema: z.ZodObject<{
28
28
  maxSectorConcentrationPct: z.ZodNumber;
29
29
  maxOpenPositions: z.ZodNumber;
30
30
  maxOpenOrders: z.ZodNumber;
31
+ /** Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct. */
32
+ perTradeEquityAllocationPct: z.ZodNumber;
33
+ /** Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct. */
34
+ perTradeCryptoAllocationPct: z.ZodNumber;
31
35
  macroOverlayEnabled: z.ZodBoolean;
32
36
  sectorOverlayEnabled: z.ZodBoolean;
33
37
  volatilityOverlayEnabled: z.ZodBoolean;
@@ -1023,6 +1027,7 @@ export declare const EffectiveTradingPolicySchema: z.ZodObject<{
1023
1027
  }>>;
1024
1028
  }, "strip", z.ZodTypeAny, {
1025
1029
  maxLeverage: number;
1030
+ perTradeCryptoAllocationPct: number;
1026
1031
  autonomyMode: AutonomyMode;
1027
1032
  realtimeTradingEnabled: boolean;
1028
1033
  paperTradingOnly: boolean;
@@ -1333,6 +1338,7 @@ export declare const EffectiveTradingPolicySchema: z.ZodObject<{
1333
1338
  retainDecisionArtifactsDays: number;
1334
1339
  tradeConfirmEmail: "all" | "none";
1335
1340
  };
1341
+ perTradeEquityAllocationPct: number;
1336
1342
  macroOverlayEnabled: boolean;
1337
1343
  sectorOverlayEnabled: boolean;
1338
1344
  volatilityOverlayEnabled: boolean;
@@ -1345,6 +1351,7 @@ export declare const EffectiveTradingPolicySchema: z.ZodObject<{
1345
1351
  dataQualitySentinelEnabled: boolean;
1346
1352
  }, {
1347
1353
  maxLeverage: number;
1354
+ perTradeCryptoAllocationPct: number;
1348
1355
  autonomyMode: AutonomyMode;
1349
1356
  realtimeTradingEnabled: boolean;
1350
1357
  paperTradingOnly: boolean;
@@ -1372,6 +1379,7 @@ export declare const EffectiveTradingPolicySchema: z.ZodObject<{
1372
1379
  normalModelId: string | null;
1373
1380
  advancedModelProvider: LlmProvider | null;
1374
1381
  advancedModelId: string | null;
1382
+ perTradeEquityAllocationPct: number;
1375
1383
  macroOverlayEnabled: boolean;
1376
1384
  sectorOverlayEnabled: boolean;
1377
1385
  volatilityOverlayEnabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"effective-policy.schema.d.ts","sourceRoot":"","sources":["../../../../src/trading-policy/schemas/effective-policy.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAYrD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BvK,CAAC;AAEH,8EAA8E;AAC9E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptic/utils",
3
- "version": "0.0.967",
3
+ "version": "0.0.968",
4
4
  "author": "Adaptic.ai",
5
5
  "description": "Utility functions used in Adaptic app and Lambda functions",
6
6
  "always-build-npm": true,