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