@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.
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/trading-policy/defaults/default-trading-policy.d.ts.map +1 -1
- package/dist/types/trading-policy/schemas/effective-policy.schema.d.ts +8 -0
- package/dist/types/trading-policy/schemas/effective-policy.schema.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -67895,6 +67895,10 @@ const EffectiveTradingPolicySchema = objectType({
|
|
|
67895
67895
|
maxSectorConcentrationPct: numberType(),
|
|
67896
67896
|
maxOpenPositions: numberType(),
|
|
67897
67897
|
maxOpenOrders: numberType(),
|
|
67898
|
+
/** Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct. */
|
|
67899
|
+
perTradeEquityAllocationPct: numberType(),
|
|
67900
|
+
/** Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct. */
|
|
67901
|
+
perTradeCryptoAllocationPct: numberType(),
|
|
67898
67902
|
macroOverlayEnabled: booleanType(),
|
|
67899
67903
|
sectorOverlayEnabled: booleanType(),
|
|
67900
67904
|
volatilityOverlayEnabled: booleanType(),
|
|
@@ -67959,6 +67963,8 @@ const DEFAULT_TRADING_POLICY = EffectiveTradingPolicySchema.parse({
|
|
|
67959
67963
|
maxSectorConcentrationPct: 30,
|
|
67960
67964
|
maxOpenPositions: 20,
|
|
67961
67965
|
maxOpenOrders: 50,
|
|
67966
|
+
perTradeEquityAllocationPct: 5,
|
|
67967
|
+
perTradeCryptoAllocationPct: 5,
|
|
67962
67968
|
macroOverlayEnabled: false,
|
|
67963
67969
|
sectorOverlayEnabled: false,
|
|
67964
67970
|
volatilityOverlayEnabled: false,
|