@adaptic/utils 0.0.924 → 0.0.925

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.mjs CHANGED
@@ -66978,10 +66978,10 @@ const OrderTypeEnum = enumType(['market', 'limit', 'stop', 'stop_limit', 'traili
66978
66978
  const ExecutionPrefsObjectSchema = objectType({
66979
66979
  allowedOrderTypes: arrayType(OrderTypeEnum).default(['market', 'limit', 'stop', 'trailing_stop']),
66980
66980
  preferredOrderType: OrderTypeEnum.default('limit'),
66981
- preferredOrderTypeByAssetClass: recordType(stringType(), stringType()).default({}),
66981
+ preferredOrderTypeByAssetClass: recordType(stringType(), stringType()).default({ crypto: 'market' }),
66982
66982
  defaultTimeInForce: enumType(['day', 'gtc', 'ioc', 'fok']).default('day'),
66983
66983
  executionBias: enumType(['passive', 'neutral', 'aggressive']).default('neutral'),
66984
- maxSlippageTolerancePct: numberType().min(0).max(100).default(0.5),
66984
+ maxSlippageTolerancePct: numberType().min(0).max(100).default(1.0),
66985
66985
  priceCollarEnabled: booleanType().default(true),
66986
66986
  priceCollarPct: numberType().min(0).default(2),
66987
66987
  repriceEnabled: booleanType().default(false),
@@ -67014,7 +67014,7 @@ const PositionManagementPrefsObjectSchema = objectType({
67014
67014
  defaultStopLossPct: numberType().min(0).max(100).default(4),
67015
67015
  atrStopMultiplier: numberType().min(0).default(2),
67016
67016
  defaultTakeProfitMethod: enumType(['fixed_percent', 'atr_based', 'risk_reward_ratio', 'none']).default('risk_reward_ratio'),
67017
- defaultTakeProfitPct: numberType().min(0).max(100).default(8),
67017
+ defaultTakeProfitPct: numberType().min(0).max(100).default(3),
67018
67018
  defaultRiskRewardRatio: numberType().min(0).default(2),
67019
67019
  breakEvenStopEnabled: booleanType().default(true),
67020
67020
  breakEvenTriggerPct: numberType().min(0).max(100).default(2),
@@ -67035,8 +67035,9 @@ const PositionManagementPrefsObjectSchema = objectType({
67035
67035
  stopWideningAllowed: booleanType().default(false),
67036
67036
  trailingStopTighteningEnabled: booleanType().default(true),
67037
67037
  trailingStopTighteningRules: arrayType(TrailingStopTighteningRuleSchema).default([
67038
- { profitThresholdPct: 2, newTrailPct: 1 },
67039
- { profitThresholdPct: 5, newTrailPct: 0.5 },
67038
+ { profitThresholdPct: 3, newTrailPct: 2.0 },
67039
+ { profitThresholdPct: 6, newTrailPct: 1.5 },
67040
+ { profitThresholdPct: 10, newTrailPct: 1.0 },
67040
67041
  ]),
67041
67042
  portfolioStopOverridesPositionStops: booleanType().default(false),
67042
67043
  doNotReenterAfterStopOutMinutes: numberType().min(0).default(30),
@@ -67317,12 +67318,12 @@ const EffectiveTradingPolicySchema = objectType({
67317
67318
  */
67318
67319
  const DEFAULT_TRADING_POLICY = EffectiveTradingPolicySchema.parse({
67319
67320
  autonomyMode: AutonomyMode.ADVISORY_ONLY,
67320
- realtimeTradingEnabled: false,
67321
+ realtimeTradingEnabled: true,
67321
67322
  paperTradingOnly: false,
67322
67323
  killSwitchEnabled: false,
67323
67324
  equitiesEnabled: true,
67324
67325
  etfsEnabled: true,
67325
- cryptoEnabled: false,
67326
+ cryptoEnabled: true,
67326
67327
  optionsEnabled: false,
67327
67328
  futuresEnabled: false,
67328
67329
  forexEnabled: false,