@tradejs/types 2.0.15 → 2.0.16
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.d.mts +17 -89
- package/dist/index.d.ts +17 -89
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -872,6 +872,7 @@ type RuntimeTradeTelemetryQuality = 'full' | 'partial' | 'price_only' | 'none';
|
|
|
872
872
|
interface RuntimeTradeRecord {
|
|
873
873
|
orderId: string;
|
|
874
874
|
signalId?: string;
|
|
875
|
+
runtimeLineage?: RuntimeLineage;
|
|
875
876
|
strategy: string;
|
|
876
877
|
universe?: MarketUniverse;
|
|
877
878
|
assetClass?: AssetClass;
|
|
@@ -1994,132 +1995,48 @@ type BaseGateFeatureRiskLevel = 'low' | 'medium' | 'high' | 'unknown';
|
|
|
1994
1995
|
type BaseGateFeatureApproveBias = 'support' | 'neutral' | 'reject';
|
|
1995
1996
|
type BaseGateFeaturePrimaryIssue = 'none' | 'mtf_conflict' | 'weak_structure' | 'weak_participation' | 'bad_execution' | 'market_context_against' | 'extreme_volatility' | 'crowded_derivatives';
|
|
1996
1997
|
interface BaseContextGateFeatures {
|
|
1997
|
-
direction: Direction | null;
|
|
1998
1998
|
setup?: {
|
|
1999
|
-
riskRatio: number | null;
|
|
2000
1999
|
rewardToVolatility: number | null;
|
|
2001
2000
|
stopDistanceAtr: number | null;
|
|
2002
2001
|
tpDistanceAtr: number | null;
|
|
2003
2002
|
entryLocation: BaseGateFeatureEntryLocation;
|
|
2004
2003
|
};
|
|
2005
|
-
scores?: Record<BaseGateFeatureScoreKey, number | null>;
|
|
2006
|
-
confirmations?: {
|
|
2007
|
-
count: number;
|
|
2008
|
-
items: BaseGateFeatureConfirmation[];
|
|
2009
|
-
};
|
|
2004
|
+
scores?: Pick<Record<BaseGateFeatureScoreKey, number | null>, 'structure' | 'participation' | 'execution' | 'totalContext'>;
|
|
2010
2005
|
conflicts?: {
|
|
2011
2006
|
count: number;
|
|
2012
|
-
items: BaseGateFeatureConflict[];
|
|
2013
2007
|
};
|
|
2014
2008
|
risk?: {
|
|
2015
|
-
regimeRisk: BaseGateFeatureRiskLevel;
|
|
2016
2009
|
liquidityRisk: BaseGateFeatureRiskLevel;
|
|
2017
|
-
volatilityRisk: BaseGateFeatureRiskLevel;
|
|
2018
|
-
crowdingRisk: BaseGateFeatureRiskLevel;
|
|
2019
|
-
chaseRisk: BaseGateFeatureRiskLevel;
|
|
2020
2010
|
};
|
|
2021
2011
|
decisionHints?: {
|
|
2022
2012
|
approveBias: BaseGateFeatureApproveBias;
|
|
2023
|
-
maxReasonableQuality: 1 | 2 | 3 | 4 | 5;
|
|
2024
|
-
needsExtraConfirmation: boolean;
|
|
2025
2013
|
primaryIssue: BaseGateFeaturePrimaryIssue;
|
|
2026
2014
|
};
|
|
2027
2015
|
mtf?: {
|
|
2028
|
-
alignmentForDirection: 'aligned' | 'against' | 'mixed' | 'neutral' | 'unknown';
|
|
2029
2016
|
higherTimeframeConflict: boolean | null;
|
|
2030
|
-
h1TrendBias: 'bull' | 'bear' | 'neutral' | 'unknown';
|
|
2031
|
-
h4TrendBias: 'bull' | 'bear' | 'neutral' | 'unknown';
|
|
2032
|
-
d1TrendBias: 'bull' | 'bear' | 'neutral' | 'unknown';
|
|
2033
|
-
h1RangePosition: number | null;
|
|
2034
|
-
h4VolatilityState: 'compressed' | 'normal' | 'expanded' | 'unknown';
|
|
2035
2017
|
};
|
|
2036
|
-
volatility
|
|
2018
|
+
volatility?: {
|
|
2037
2019
|
state: 'compressed' | 'normal' | 'expanded' | 'unknown';
|
|
2038
|
-
atrPctZScore: number | null;
|
|
2039
2020
|
atrPctRankBucket: 'low' | 'normal' | 'high' | 'extreme' | 'unknown';
|
|
2040
2021
|
bbWidthRankBucket: 'low' | 'normal' | 'high' | 'extreme' | 'unknown';
|
|
2041
|
-
extremeVolatilityRisk: boolean;
|
|
2042
|
-
compressionBreakoutSupport: boolean;
|
|
2043
|
-
};
|
|
2044
|
-
structure: {
|
|
2045
|
-
breakoutState: BaseStructureContext['localRange']['breakoutState'];
|
|
2046
|
-
rangePositionBucket: 'low' | 'middle' | 'high' | 'unknown';
|
|
2047
|
-
breakoutWithDirection: boolean | null;
|
|
2048
|
-
failedBreakoutForDirection: boolean | null;
|
|
2049
|
-
liquiditySweepForDirection: boolean | null;
|
|
2050
|
-
nearPointOfControl: boolean | null;
|
|
2051
2022
|
};
|
|
2052
|
-
participation
|
|
2053
|
-
volumeRel20: number | null;
|
|
2054
|
-
volumeBucket: 'thin' | 'normal' | 'elevated' | 'spike' | 'unknown';
|
|
2055
|
-
deltaBias: 'bull' | 'bear' | 'neutral' | 'unknown';
|
|
2056
|
-
deltaAligned: boolean | null;
|
|
2057
|
-
tradeFlowBuyPressurePct: number | null;
|
|
2058
|
-
tradeFlowAligned: boolean | null;
|
|
2059
|
-
hyperliquidWhaleBuySharePct: number | null;
|
|
2060
|
-
hyperliquidWhaleNetNotionalUsd: number | null;
|
|
2061
|
-
hyperliquidWhaleUniqueCount: number | null;
|
|
2062
|
-
hyperliquidWhaleCoveredCount: number | null;
|
|
2063
|
-
hyperliquidWhaleExpectedCount: number | null;
|
|
2064
|
-
hyperliquidWhaleCoveragePct: number | null;
|
|
2065
|
-
hyperliquidWhaleCoverageSufficient: boolean | null;
|
|
2066
|
-
hyperliquidWhaleNotionalUsd: number | null;
|
|
2067
|
-
hyperliquidWhaleSufficientActivity: boolean | null;
|
|
2068
|
-
hyperliquidWhaleFlowAligned: boolean | null;
|
|
2069
|
-
hyperliquidWhaleFlowStale: boolean | null;
|
|
2070
|
-
referenceTradeFlowBuyPressurePct: number | null;
|
|
2071
|
-
referenceTradeFlowAligned: boolean | null;
|
|
2023
|
+
participation?: {
|
|
2072
2024
|
volumeStructureAligned: boolean | null;
|
|
2073
2025
|
};
|
|
2074
|
-
relative
|
|
2075
|
-
benchmarkTrendAlignment: BaseRelativeContext['benchmark']['trendAlignment'];
|
|
2076
|
-
benchmarkAligned: boolean | null;
|
|
2026
|
+
relative?: {
|
|
2077
2027
|
benchmarkConflict: boolean;
|
|
2078
|
-
relativeStrength1h: number | null;
|
|
2079
|
-
relativeStrengthBucket: 'strong_against' | 'mild_against' | 'neutral' | 'mild_with' | 'strong_with' | 'unknown';
|
|
2080
2028
|
marketBreadthReturn: number | null;
|
|
2081
|
-
marketBreadthAligned: boolean | null;
|
|
2082
2029
|
marketBreadthStale: boolean | null;
|
|
2083
|
-
cmcAltLiquidityRegime: 'alt_friendly' | 'btc_favored' | 'risk_off' | 'neutral' | 'unknown';
|
|
2084
|
-
cmcAltLiquidityAligned: boolean | null;
|
|
2085
|
-
cmcAltLiquidityStale: boolean | null;
|
|
2086
|
-
cmcEthBtcReferenceRegime: 'btc_led' | 'eth_led' | 'balanced' | 'thin' | 'unknown';
|
|
2087
|
-
cmcEthBtcAligned: boolean | null;
|
|
2088
|
-
cmcEthBtcStale: boolean | null;
|
|
2089
|
-
cmcExchangeLiquidityRegime: CmcExchangeLiquidityRegime;
|
|
2090
2030
|
cmcExchangeLiquidityAligned: boolean | null;
|
|
2091
2031
|
cmcExchangeLiquidityStale: boolean | null;
|
|
2092
2032
|
cmcExchangeLiquidityVolumeChange24hPct: number | null;
|
|
2093
2033
|
cmcFearGreedValue: number | null;
|
|
2094
2034
|
cmcFearGreedValueChange24h: number | null;
|
|
2095
|
-
cmcFearGreedRegime: CmcFearGreedRegime;
|
|
2096
|
-
cmcFearGreedAligned: boolean | null;
|
|
2097
2035
|
cmcFearGreedStale: boolean | null;
|
|
2098
|
-
cmcIndexRegime: NonNullable<BaseRelativeContext['cmcIndexes']>['indexRegime'];
|
|
2099
|
-
cmcIndexAligned: boolean | null;
|
|
2100
|
-
cmcIndexStale: boolean | null;
|
|
2101
2036
|
cmc20ToCmc100RatioChange24hPct: number | null;
|
|
2102
|
-
targetVsBtcRatioReturn24h: number | null;
|
|
2103
|
-
targetVsBtcAlpha24h: number | null;
|
|
2104
|
-
targetVsBtcBeta20: number | null;
|
|
2105
|
-
targetVsBtcCorrelation20: number | null;
|
|
2106
|
-
targetVsBtcRatioTrend: 'up' | 'down' | 'flat' | 'unknown';
|
|
2107
|
-
targetVsBtcAligned: boolean | null;
|
|
2108
|
-
targetVsEthRatioReturn24h: number | null;
|
|
2109
|
-
targetVsEthAlpha24h: number | null;
|
|
2110
|
-
targetVsEthBeta20: number | null;
|
|
2111
|
-
targetVsEthCorrelation20: number | null;
|
|
2112
|
-
targetVsEthRatioTrend: 'up' | 'down' | 'flat' | 'unknown';
|
|
2113
|
-
targetVsEthAligned: boolean | null;
|
|
2114
2037
|
btcAltRegime: 'btc_lead' | 'alt_lead' | 'risk_off' | 'risk_on' | 'mixed' | 'neutral' | 'unknown';
|
|
2115
|
-
btcAltRegimeAligned: boolean | null;
|
|
2116
2038
|
btcAltRegimeStale: boolean | null;
|
|
2117
2039
|
btcVsAltReturn24h: number | null;
|
|
2118
|
-
btcTurnoverShare24h: number | null;
|
|
2119
|
-
};
|
|
2120
|
-
execution: {
|
|
2121
|
-
venueSpreadZScore: number | null;
|
|
2122
|
-
venueSpreadSeverity: 'normal' | 'elevated' | 'wide' | 'unknown';
|
|
2123
2040
|
};
|
|
2124
2041
|
}
|
|
2125
2042
|
interface BaseStrategyContextSnapshot {
|
|
@@ -2279,6 +2196,7 @@ interface StrategyIndicatorsState<TNext = unknown, TSnapshot = Record<string, an
|
|
|
2279
2196
|
}) => TSnapshot;
|
|
2280
2197
|
latestSnapshot?: () => TNext;
|
|
2281
2198
|
latestNumber: <K extends Extract<keyof NonNullable<TSnapshot>, string>>(key: K) => number | undefined;
|
|
2199
|
+
latestNumbers: <K extends Extract<keyof NonNullable<TSnapshot>, string>>(key: K, count: number) => number[];
|
|
2282
2200
|
}
|
|
2283
2201
|
interface StrategyRuntimeMlOptions {
|
|
2284
2202
|
enabled?: boolean;
|
|
@@ -2413,6 +2331,11 @@ interface StrategyAiAdapter {
|
|
|
2413
2331
|
payload: AiPayload;
|
|
2414
2332
|
analysis: Partial<SignalAnalysis>;
|
|
2415
2333
|
}) => Partial<SignalAnalysis>;
|
|
2334
|
+
postProcessLocalAnalysis?: (params: {
|
|
2335
|
+
signal: Signal;
|
|
2336
|
+
payload: AiPayload;
|
|
2337
|
+
analysis: Partial<SignalAnalysis>;
|
|
2338
|
+
}) => Partial<SignalAnalysis>;
|
|
2416
2339
|
buildSystemPromptAddon?: (params: {
|
|
2417
2340
|
signal: Signal;
|
|
2418
2341
|
}) => string;
|
|
@@ -2573,8 +2496,13 @@ interface StrategyHookAfterPlaceOrderContext {
|
|
|
2573
2496
|
ai?: StrategyHookAiContext;
|
|
2574
2497
|
order: StrategyHookOrderContext;
|
|
2575
2498
|
}
|
|
2499
|
+
type StrategyMarketContextSource = 'binance' | 'coinmarketcap' | 'derivatives' | 'hyperliquidWhales';
|
|
2576
2500
|
interface StrategyManifest {
|
|
2577
2501
|
name: string;
|
|
2502
|
+
contextRequirements?: {
|
|
2503
|
+
/** Market context that must be available before strategy core evaluation. */
|
|
2504
|
+
core?: readonly StrategyMarketContextSource[];
|
|
2505
|
+
};
|
|
2578
2506
|
policyProfiles?: readonly StrategyPolicyProfile[];
|
|
2579
2507
|
defaultPolicyProfileId?: string;
|
|
2580
2508
|
entryRuntimeDefaults?: {
|
|
@@ -2699,4 +2627,4 @@ interface StrategyChartsSnapshotResponse {
|
|
|
2699
2627
|
strategies: StrategyChartSnapshot[];
|
|
2700
2628
|
}
|
|
2701
2629
|
|
|
2702
|
-
export { type AIChatHistory, type AIChatMessage, type AggTrade, type AggTradesRequest, type AiDatasetRow, type AiPayload, type AiPromptPair, type AssetClass, BACKTEST_WARNING_CODES, type BacktestDetectorOptimizedStrategy, type BacktestPriceMode, type BacktestRunConfig, type BacktestWarningCode, type BacktestWarningCounts, type BaseContextGateFeatures, type BaseGateFeatureApproveBias, type BaseGateFeatureConfirmation, type BaseGateFeatureConflict, type BaseGateFeatureEntryLocation, type BaseGateFeaturePrimaryIssue, type BaseGateFeatureRiskLevel, type BaseGateFeatureScoreKey, type BaseHyperliquidWhaleFlowContext, type BaseIndicatorsHistorySnapshot, type BaseMarketBreadthContext, type BaseMarketBreadthsContext, type BaseMarketTradeFlowContext, type BaseMultiTimeframeContext, type BaseParticipationContext, type BasePsychologicalLevelAssetContext, type BasePsychologicalLevelWindowContext, type BaseRawIndicatorSnapshot, type BaseRegimeContext, type BaseRelativeContext, type BaseStrategyContextSnapshot, type BaseStructureContext, type Bot, type BotConfig, type BotResults, type BotStatus, type BuildStrategySignalDraft, type BuildStrategySignalParams, type Candle, type ChartColor, type ClosedPnlRecord, type CmcExchangeLiquidityRegime, type CmcFearGreedClassification, type CmcFearGreedRegime, type CompletedTest, type Connector, type ConnectorCapabilities, type ConnectorConfig, type ConnectorCreator, type ConnectorPluginDefinition, type ConnectorRegistryEntry, type CreateStrategyCore, type CreateStrategyCoreParams, DEFAULT_MARKET_UNIVERSE, type DerivativesContext, type DerivativesContextRiskFlag, type DerivativesInterval, type DerivativesIntervalContext, type DerivativesPressure, type DerivativesPriceOiDivergenceType, type DerivativesRow, type DerivativesSymbolContext, type DerivativesTargetDerivedContext, type Direction, type EOMPoint, type ExchangeEntryRecord, type ExecutionCostModel, type ExecutionCostQuality, type ExecutionCostSource, type Figure, type Filters, type FundingRateHistoryRequest, type FundingRatePoint, type GetAggTrades, type GetClosedPnlParams, type GetFundingRateHistory, type GetOrderBookDepth, type GetTickers, type GetTopOfBookTicker, type GetTradingFeeRate, HYPERLIQUID_WHALE_DATA_MODEL_VERSION, type HyperliquidPositionAction, type HyperliquidWhaleCoverageRow, type HyperliquidWhaleFlowRow, type HyperliquidWhaleTradeEventRow, type Indicator, type IndicatorPluginComputeParams, type IndicatorPluginDefinition, type IndicatorPluginEntry, type IndicatorPluginFigureRenderer, type IndicatorPluginRenderer, type IndicatorSnapshot, type Indicators, type IndicatorsHistorySnapshot, type InstrumentDescriptor, type InstrumentKind, type InstrumentQuery, type InstrumentStatus, type Interval, type Item, type Items, type Kline, type KlineChartData, type KlineChartItem, type KlineRequest, type ListInstruments, type MarketBreadthRow, type MarketCmcExchangeLiquidityContextRow, type MarketCmcFearGreedContextRow, type MarketCmcIndexConstituent, type MarketCmcIndexContextRow, type MarketCmcIndexSlug, type MarketDataCapability, type MarketFeatureInterval, type MarketGlobalContextRow, type MarketGlobalContextSource, type MarketKlineEvent, type MarketReferenceAssetContextRow, type MarketTradeFlowRow, type MarketUniverse, type MetricThreshold, type Metrics, type MinimalStat, type MlCandleIndicatorsSnapshot, type MonthlyEquityStats, type OnChangeCompare, type OnChangeFilters, type Order, type OrderBookDepth, type OrderBookDepthRequest, type OrderLog, type OrderLogData, type OrderPositionIntent, type OrderType, type Position, type PositionLog, type PositionLogData, type PositionPnlSnapshot, type Provider, type RuntimeAiAnalysisSnapshot, type RuntimeDeployment, type RuntimeDeploymentHeartbeat, type RuntimeDeploymentStrategy, type RuntimeLineage, type RuntimeSignalEvaluationRecord, type RuntimeSignalEvaluationStatus, type RuntimeStrategyCloseNotification, type RuntimeStrategyConfigSnapshot, type RuntimeTradeExitType, type RuntimeTradeFillSource, type RuntimeTradeRecord, type RuntimeTradeStatus, type RuntimeTradeTelemetryQuality, type Signal, type SignalAnalysis, type SignalOrderStatus, type SimpleOrderLogData, type Sl, type SpreadRow, type Strategy, type StrategyAPI, type StrategyAPIEntryParams, type StrategyAPIExitParams, type StrategyAPIProtectParams, type StrategyAdditionalIndicatorsMap, type StrategyAiAdapter, type StrategyAiMode, type StrategyChartDetail, type StrategyChartMetric, type StrategyChartMetricTone, type StrategyChartOrder, type StrategyChartSnapshot, type StrategyChartsSnapshotResponse, type StrategyClosePlan, type StrategyConfig, type StrategyConfigGrid, type StrategyCoreRunner, type StrategyCreator, type StrategyCreatorParams, type StrategyDecision, type StrategyDecisionPriceContext, type StrategyDirectionalTpSlParams, type StrategyDirectionalTpSlResult, type StrategyEntryBaseParams, type StrategyEntryModelFigures, type StrategyEntryOrderPlan, type StrategyEntryRuntimeBaseParams, type StrategyEntryRuntimeBuilderParams, type StrategyEntryRuntimeOptions, type StrategyEntrySignalContext, type StrategyEntrySignalDecisionBuilderParams, type StrategyEntryTakeProfitsParams, type StrategyFigureAnnotation, type StrategyFigureLine, type StrategyFigurePoint, type StrategyFigurePoints, type StrategyFigureZone, type StrategyHookAfterAiContext, type StrategyHookAfterDecisionContext, type StrategyHookAfterPlaceOrderContext, type StrategyHookAiContext, type StrategyHookAiSkippedReason, type StrategyHookBarContext, type StrategyHookBeforeCloseContext, type StrategyHookBeforeEntryGateContext, type StrategyHookBeforePlaceOrderContext, type StrategyHookCtx, type StrategyHookEnrichContext, type StrategyHookEntryContext, type StrategyHookErrorContext, type StrategyHookErrorPayload, type StrategyHookGateResult, type StrategyHookInitContext, type StrategyHookMarketContext, type StrategyHookMlContext, type StrategyHookMlSkippedReason, type StrategyHookOrderContext, type StrategyHookPolicyContext, type StrategyHookSkipContext, type StrategyHookStage, type StrategyIndicatorsContext, type StrategyIndicatorsMap, type StrategyIndicatorsState, type StrategyLastTradeController, type StrategyLastTradeControllerParams, type StrategyManifest, type StrategyMlAdapter, type StrategyPluginDefinition, type StrategyPolicyProfile, type StrategyProtectPlan, type StrategyRegistryEntry, type StrategyResultConfig, type StrategyResultEntry, type StrategyResults, type StrategyRuntimeAiOptions, type StrategyRuntimeMlOptions, type StrategySharedReplayStateGetter, type StrategySignalMetaParams, type StrategySignalPriceParams, type StrategyStateController, type StrategyStateControllerOptions, type Test, type TestClosedSignalResult, type TestCompare, type TestCompareList, type TestConnector, type TestConnectorContext, type TestConnectorCreator, type TestResult, type TestStat, type TestSuite, type TestThresholds, type TestThresholdsKey, type TestTradeExitReason, type TestTradeResult, type TestWorkerResult, type TestingBox, type TestingBoxResult, type TestingOptions, type ThresholdLevel, type Ticker, type TickerQuery, type TopOfBookTicker, type Tp, type TradingAccountRef, type TradingFeeRate, type Trend, type TrendLine, type TrendLineMode, type TrendLineOptions, type UIFilters, isMarketUniverse, resolveConnectorUniverse };
|
|
2630
|
+
export { type AIChatHistory, type AIChatMessage, type AggTrade, type AggTradesRequest, type AiDatasetRow, type AiPayload, type AiPromptPair, type AssetClass, BACKTEST_WARNING_CODES, type BacktestDetectorOptimizedStrategy, type BacktestPriceMode, type BacktestRunConfig, type BacktestWarningCode, type BacktestWarningCounts, type BaseContextGateFeatures, type BaseGateFeatureApproveBias, type BaseGateFeatureConfirmation, type BaseGateFeatureConflict, type BaseGateFeatureEntryLocation, type BaseGateFeaturePrimaryIssue, type BaseGateFeatureRiskLevel, type BaseGateFeatureScoreKey, type BaseHyperliquidWhaleFlowContext, type BaseIndicatorsHistorySnapshot, type BaseMarketBreadthContext, type BaseMarketBreadthsContext, type BaseMarketTradeFlowContext, type BaseMultiTimeframeContext, type BaseParticipationContext, type BasePsychologicalLevelAssetContext, type BasePsychologicalLevelWindowContext, type BaseRawIndicatorSnapshot, type BaseRegimeContext, type BaseRelativeContext, type BaseStrategyContextSnapshot, type BaseStructureContext, type Bot, type BotConfig, type BotResults, type BotStatus, type BuildStrategySignalDraft, type BuildStrategySignalParams, type Candle, type ChartColor, type ClosedPnlRecord, type CmcExchangeLiquidityRegime, type CmcFearGreedClassification, type CmcFearGreedRegime, type CompletedTest, type Connector, type ConnectorCapabilities, type ConnectorConfig, type ConnectorCreator, type ConnectorPluginDefinition, type ConnectorRegistryEntry, type CreateStrategyCore, type CreateStrategyCoreParams, DEFAULT_MARKET_UNIVERSE, type DerivativesContext, type DerivativesContextRiskFlag, type DerivativesInterval, type DerivativesIntervalContext, type DerivativesPressure, type DerivativesPriceOiDivergenceType, type DerivativesRow, type DerivativesSymbolContext, type DerivativesTargetDerivedContext, type Direction, type EOMPoint, type ExchangeEntryRecord, type ExecutionCostModel, type ExecutionCostQuality, type ExecutionCostSource, type Figure, type Filters, type FundingRateHistoryRequest, type FundingRatePoint, type GetAggTrades, type GetClosedPnlParams, type GetFundingRateHistory, type GetOrderBookDepth, type GetTickers, type GetTopOfBookTicker, type GetTradingFeeRate, HYPERLIQUID_WHALE_DATA_MODEL_VERSION, type HyperliquidPositionAction, type HyperliquidWhaleCoverageRow, type HyperliquidWhaleFlowRow, type HyperliquidWhaleTradeEventRow, type Indicator, type IndicatorPluginComputeParams, type IndicatorPluginDefinition, type IndicatorPluginEntry, type IndicatorPluginFigureRenderer, type IndicatorPluginRenderer, type IndicatorSnapshot, type Indicators, type IndicatorsHistorySnapshot, type InstrumentDescriptor, type InstrumentKind, type InstrumentQuery, type InstrumentStatus, type Interval, type Item, type Items, type Kline, type KlineChartData, type KlineChartItem, type KlineRequest, type ListInstruments, type MarketBreadthRow, type MarketCmcExchangeLiquidityContextRow, type MarketCmcFearGreedContextRow, type MarketCmcIndexConstituent, type MarketCmcIndexContextRow, type MarketCmcIndexSlug, type MarketDataCapability, type MarketFeatureInterval, type MarketGlobalContextRow, type MarketGlobalContextSource, type MarketKlineEvent, type MarketReferenceAssetContextRow, type MarketTradeFlowRow, type MarketUniverse, type MetricThreshold, type Metrics, type MinimalStat, type MlCandleIndicatorsSnapshot, type MonthlyEquityStats, type OnChangeCompare, type OnChangeFilters, type Order, type OrderBookDepth, type OrderBookDepthRequest, type OrderLog, type OrderLogData, type OrderPositionIntent, type OrderType, type Position, type PositionLog, type PositionLogData, type PositionPnlSnapshot, type Provider, type RuntimeAiAnalysisSnapshot, type RuntimeDeployment, type RuntimeDeploymentHeartbeat, type RuntimeDeploymentStrategy, type RuntimeLineage, type RuntimeSignalEvaluationRecord, type RuntimeSignalEvaluationStatus, type RuntimeStrategyCloseNotification, type RuntimeStrategyConfigSnapshot, type RuntimeTradeExitType, type RuntimeTradeFillSource, type RuntimeTradeRecord, type RuntimeTradeStatus, type RuntimeTradeTelemetryQuality, type Signal, type SignalAnalysis, type SignalOrderStatus, type SimpleOrderLogData, type Sl, type SpreadRow, type Strategy, type StrategyAPI, type StrategyAPIEntryParams, type StrategyAPIExitParams, type StrategyAPIProtectParams, type StrategyAdditionalIndicatorsMap, type StrategyAiAdapter, type StrategyAiMode, type StrategyChartDetail, type StrategyChartMetric, type StrategyChartMetricTone, type StrategyChartOrder, type StrategyChartSnapshot, type StrategyChartsSnapshotResponse, type StrategyClosePlan, type StrategyConfig, type StrategyConfigGrid, type StrategyCoreRunner, type StrategyCreator, type StrategyCreatorParams, type StrategyDecision, type StrategyDecisionPriceContext, type StrategyDirectionalTpSlParams, type StrategyDirectionalTpSlResult, type StrategyEntryBaseParams, type StrategyEntryModelFigures, type StrategyEntryOrderPlan, type StrategyEntryRuntimeBaseParams, type StrategyEntryRuntimeBuilderParams, type StrategyEntryRuntimeOptions, type StrategyEntrySignalContext, type StrategyEntrySignalDecisionBuilderParams, type StrategyEntryTakeProfitsParams, type StrategyFigureAnnotation, type StrategyFigureLine, type StrategyFigurePoint, type StrategyFigurePoints, type StrategyFigureZone, type StrategyHookAfterAiContext, type StrategyHookAfterDecisionContext, type StrategyHookAfterPlaceOrderContext, type StrategyHookAiContext, type StrategyHookAiSkippedReason, type StrategyHookBarContext, type StrategyHookBeforeCloseContext, type StrategyHookBeforeEntryGateContext, type StrategyHookBeforePlaceOrderContext, type StrategyHookCtx, type StrategyHookEnrichContext, type StrategyHookEntryContext, type StrategyHookErrorContext, type StrategyHookErrorPayload, type StrategyHookGateResult, type StrategyHookInitContext, type StrategyHookMarketContext, type StrategyHookMlContext, type StrategyHookMlSkippedReason, type StrategyHookOrderContext, type StrategyHookPolicyContext, type StrategyHookSkipContext, type StrategyHookStage, type StrategyIndicatorsContext, type StrategyIndicatorsMap, type StrategyIndicatorsState, type StrategyLastTradeController, type StrategyLastTradeControllerParams, type StrategyManifest, type StrategyMarketContextSource, type StrategyMlAdapter, type StrategyPluginDefinition, type StrategyPolicyProfile, type StrategyProtectPlan, type StrategyRegistryEntry, type StrategyResultConfig, type StrategyResultEntry, type StrategyResults, type StrategyRuntimeAiOptions, type StrategyRuntimeMlOptions, type StrategySharedReplayStateGetter, type StrategySignalMetaParams, type StrategySignalPriceParams, type StrategyStateController, type StrategyStateControllerOptions, type Test, type TestClosedSignalResult, type TestCompare, type TestCompareList, type TestConnector, type TestConnectorContext, type TestConnectorCreator, type TestResult, type TestStat, type TestSuite, type TestThresholds, type TestThresholdsKey, type TestTradeExitReason, type TestTradeResult, type TestWorkerResult, type TestingBox, type TestingBoxResult, type TestingOptions, type ThresholdLevel, type Ticker, type TickerQuery, type TopOfBookTicker, type Tp, type TradingAccountRef, type TradingFeeRate, type Trend, type TrendLine, type TrendLineMode, type TrendLineOptions, type UIFilters, isMarketUniverse, resolveConnectorUniverse };
|
package/dist/index.d.ts
CHANGED
|
@@ -872,6 +872,7 @@ type RuntimeTradeTelemetryQuality = 'full' | 'partial' | 'price_only' | 'none';
|
|
|
872
872
|
interface RuntimeTradeRecord {
|
|
873
873
|
orderId: string;
|
|
874
874
|
signalId?: string;
|
|
875
|
+
runtimeLineage?: RuntimeLineage;
|
|
875
876
|
strategy: string;
|
|
876
877
|
universe?: MarketUniverse;
|
|
877
878
|
assetClass?: AssetClass;
|
|
@@ -1994,132 +1995,48 @@ type BaseGateFeatureRiskLevel = 'low' | 'medium' | 'high' | 'unknown';
|
|
|
1994
1995
|
type BaseGateFeatureApproveBias = 'support' | 'neutral' | 'reject';
|
|
1995
1996
|
type BaseGateFeaturePrimaryIssue = 'none' | 'mtf_conflict' | 'weak_structure' | 'weak_participation' | 'bad_execution' | 'market_context_against' | 'extreme_volatility' | 'crowded_derivatives';
|
|
1996
1997
|
interface BaseContextGateFeatures {
|
|
1997
|
-
direction: Direction | null;
|
|
1998
1998
|
setup?: {
|
|
1999
|
-
riskRatio: number | null;
|
|
2000
1999
|
rewardToVolatility: number | null;
|
|
2001
2000
|
stopDistanceAtr: number | null;
|
|
2002
2001
|
tpDistanceAtr: number | null;
|
|
2003
2002
|
entryLocation: BaseGateFeatureEntryLocation;
|
|
2004
2003
|
};
|
|
2005
|
-
scores?: Record<BaseGateFeatureScoreKey, number | null>;
|
|
2006
|
-
confirmations?: {
|
|
2007
|
-
count: number;
|
|
2008
|
-
items: BaseGateFeatureConfirmation[];
|
|
2009
|
-
};
|
|
2004
|
+
scores?: Pick<Record<BaseGateFeatureScoreKey, number | null>, 'structure' | 'participation' | 'execution' | 'totalContext'>;
|
|
2010
2005
|
conflicts?: {
|
|
2011
2006
|
count: number;
|
|
2012
|
-
items: BaseGateFeatureConflict[];
|
|
2013
2007
|
};
|
|
2014
2008
|
risk?: {
|
|
2015
|
-
regimeRisk: BaseGateFeatureRiskLevel;
|
|
2016
2009
|
liquidityRisk: BaseGateFeatureRiskLevel;
|
|
2017
|
-
volatilityRisk: BaseGateFeatureRiskLevel;
|
|
2018
|
-
crowdingRisk: BaseGateFeatureRiskLevel;
|
|
2019
|
-
chaseRisk: BaseGateFeatureRiskLevel;
|
|
2020
2010
|
};
|
|
2021
2011
|
decisionHints?: {
|
|
2022
2012
|
approveBias: BaseGateFeatureApproveBias;
|
|
2023
|
-
maxReasonableQuality: 1 | 2 | 3 | 4 | 5;
|
|
2024
|
-
needsExtraConfirmation: boolean;
|
|
2025
2013
|
primaryIssue: BaseGateFeaturePrimaryIssue;
|
|
2026
2014
|
};
|
|
2027
2015
|
mtf?: {
|
|
2028
|
-
alignmentForDirection: 'aligned' | 'against' | 'mixed' | 'neutral' | 'unknown';
|
|
2029
2016
|
higherTimeframeConflict: boolean | null;
|
|
2030
|
-
h1TrendBias: 'bull' | 'bear' | 'neutral' | 'unknown';
|
|
2031
|
-
h4TrendBias: 'bull' | 'bear' | 'neutral' | 'unknown';
|
|
2032
|
-
d1TrendBias: 'bull' | 'bear' | 'neutral' | 'unknown';
|
|
2033
|
-
h1RangePosition: number | null;
|
|
2034
|
-
h4VolatilityState: 'compressed' | 'normal' | 'expanded' | 'unknown';
|
|
2035
2017
|
};
|
|
2036
|
-
volatility
|
|
2018
|
+
volatility?: {
|
|
2037
2019
|
state: 'compressed' | 'normal' | 'expanded' | 'unknown';
|
|
2038
|
-
atrPctZScore: number | null;
|
|
2039
2020
|
atrPctRankBucket: 'low' | 'normal' | 'high' | 'extreme' | 'unknown';
|
|
2040
2021
|
bbWidthRankBucket: 'low' | 'normal' | 'high' | 'extreme' | 'unknown';
|
|
2041
|
-
extremeVolatilityRisk: boolean;
|
|
2042
|
-
compressionBreakoutSupport: boolean;
|
|
2043
|
-
};
|
|
2044
|
-
structure: {
|
|
2045
|
-
breakoutState: BaseStructureContext['localRange']['breakoutState'];
|
|
2046
|
-
rangePositionBucket: 'low' | 'middle' | 'high' | 'unknown';
|
|
2047
|
-
breakoutWithDirection: boolean | null;
|
|
2048
|
-
failedBreakoutForDirection: boolean | null;
|
|
2049
|
-
liquiditySweepForDirection: boolean | null;
|
|
2050
|
-
nearPointOfControl: boolean | null;
|
|
2051
2022
|
};
|
|
2052
|
-
participation
|
|
2053
|
-
volumeRel20: number | null;
|
|
2054
|
-
volumeBucket: 'thin' | 'normal' | 'elevated' | 'spike' | 'unknown';
|
|
2055
|
-
deltaBias: 'bull' | 'bear' | 'neutral' | 'unknown';
|
|
2056
|
-
deltaAligned: boolean | null;
|
|
2057
|
-
tradeFlowBuyPressurePct: number | null;
|
|
2058
|
-
tradeFlowAligned: boolean | null;
|
|
2059
|
-
hyperliquidWhaleBuySharePct: number | null;
|
|
2060
|
-
hyperliquidWhaleNetNotionalUsd: number | null;
|
|
2061
|
-
hyperliquidWhaleUniqueCount: number | null;
|
|
2062
|
-
hyperliquidWhaleCoveredCount: number | null;
|
|
2063
|
-
hyperliquidWhaleExpectedCount: number | null;
|
|
2064
|
-
hyperliquidWhaleCoveragePct: number | null;
|
|
2065
|
-
hyperliquidWhaleCoverageSufficient: boolean | null;
|
|
2066
|
-
hyperliquidWhaleNotionalUsd: number | null;
|
|
2067
|
-
hyperliquidWhaleSufficientActivity: boolean | null;
|
|
2068
|
-
hyperliquidWhaleFlowAligned: boolean | null;
|
|
2069
|
-
hyperliquidWhaleFlowStale: boolean | null;
|
|
2070
|
-
referenceTradeFlowBuyPressurePct: number | null;
|
|
2071
|
-
referenceTradeFlowAligned: boolean | null;
|
|
2023
|
+
participation?: {
|
|
2072
2024
|
volumeStructureAligned: boolean | null;
|
|
2073
2025
|
};
|
|
2074
|
-
relative
|
|
2075
|
-
benchmarkTrendAlignment: BaseRelativeContext['benchmark']['trendAlignment'];
|
|
2076
|
-
benchmarkAligned: boolean | null;
|
|
2026
|
+
relative?: {
|
|
2077
2027
|
benchmarkConflict: boolean;
|
|
2078
|
-
relativeStrength1h: number | null;
|
|
2079
|
-
relativeStrengthBucket: 'strong_against' | 'mild_against' | 'neutral' | 'mild_with' | 'strong_with' | 'unknown';
|
|
2080
2028
|
marketBreadthReturn: number | null;
|
|
2081
|
-
marketBreadthAligned: boolean | null;
|
|
2082
2029
|
marketBreadthStale: boolean | null;
|
|
2083
|
-
cmcAltLiquidityRegime: 'alt_friendly' | 'btc_favored' | 'risk_off' | 'neutral' | 'unknown';
|
|
2084
|
-
cmcAltLiquidityAligned: boolean | null;
|
|
2085
|
-
cmcAltLiquidityStale: boolean | null;
|
|
2086
|
-
cmcEthBtcReferenceRegime: 'btc_led' | 'eth_led' | 'balanced' | 'thin' | 'unknown';
|
|
2087
|
-
cmcEthBtcAligned: boolean | null;
|
|
2088
|
-
cmcEthBtcStale: boolean | null;
|
|
2089
|
-
cmcExchangeLiquidityRegime: CmcExchangeLiquidityRegime;
|
|
2090
2030
|
cmcExchangeLiquidityAligned: boolean | null;
|
|
2091
2031
|
cmcExchangeLiquidityStale: boolean | null;
|
|
2092
2032
|
cmcExchangeLiquidityVolumeChange24hPct: number | null;
|
|
2093
2033
|
cmcFearGreedValue: number | null;
|
|
2094
2034
|
cmcFearGreedValueChange24h: number | null;
|
|
2095
|
-
cmcFearGreedRegime: CmcFearGreedRegime;
|
|
2096
|
-
cmcFearGreedAligned: boolean | null;
|
|
2097
2035
|
cmcFearGreedStale: boolean | null;
|
|
2098
|
-
cmcIndexRegime: NonNullable<BaseRelativeContext['cmcIndexes']>['indexRegime'];
|
|
2099
|
-
cmcIndexAligned: boolean | null;
|
|
2100
|
-
cmcIndexStale: boolean | null;
|
|
2101
2036
|
cmc20ToCmc100RatioChange24hPct: number | null;
|
|
2102
|
-
targetVsBtcRatioReturn24h: number | null;
|
|
2103
|
-
targetVsBtcAlpha24h: number | null;
|
|
2104
|
-
targetVsBtcBeta20: number | null;
|
|
2105
|
-
targetVsBtcCorrelation20: number | null;
|
|
2106
|
-
targetVsBtcRatioTrend: 'up' | 'down' | 'flat' | 'unknown';
|
|
2107
|
-
targetVsBtcAligned: boolean | null;
|
|
2108
|
-
targetVsEthRatioReturn24h: number | null;
|
|
2109
|
-
targetVsEthAlpha24h: number | null;
|
|
2110
|
-
targetVsEthBeta20: number | null;
|
|
2111
|
-
targetVsEthCorrelation20: number | null;
|
|
2112
|
-
targetVsEthRatioTrend: 'up' | 'down' | 'flat' | 'unknown';
|
|
2113
|
-
targetVsEthAligned: boolean | null;
|
|
2114
2037
|
btcAltRegime: 'btc_lead' | 'alt_lead' | 'risk_off' | 'risk_on' | 'mixed' | 'neutral' | 'unknown';
|
|
2115
|
-
btcAltRegimeAligned: boolean | null;
|
|
2116
2038
|
btcAltRegimeStale: boolean | null;
|
|
2117
2039
|
btcVsAltReturn24h: number | null;
|
|
2118
|
-
btcTurnoverShare24h: number | null;
|
|
2119
|
-
};
|
|
2120
|
-
execution: {
|
|
2121
|
-
venueSpreadZScore: number | null;
|
|
2122
|
-
venueSpreadSeverity: 'normal' | 'elevated' | 'wide' | 'unknown';
|
|
2123
2040
|
};
|
|
2124
2041
|
}
|
|
2125
2042
|
interface BaseStrategyContextSnapshot {
|
|
@@ -2279,6 +2196,7 @@ interface StrategyIndicatorsState<TNext = unknown, TSnapshot = Record<string, an
|
|
|
2279
2196
|
}) => TSnapshot;
|
|
2280
2197
|
latestSnapshot?: () => TNext;
|
|
2281
2198
|
latestNumber: <K extends Extract<keyof NonNullable<TSnapshot>, string>>(key: K) => number | undefined;
|
|
2199
|
+
latestNumbers: <K extends Extract<keyof NonNullable<TSnapshot>, string>>(key: K, count: number) => number[];
|
|
2282
2200
|
}
|
|
2283
2201
|
interface StrategyRuntimeMlOptions {
|
|
2284
2202
|
enabled?: boolean;
|
|
@@ -2413,6 +2331,11 @@ interface StrategyAiAdapter {
|
|
|
2413
2331
|
payload: AiPayload;
|
|
2414
2332
|
analysis: Partial<SignalAnalysis>;
|
|
2415
2333
|
}) => Partial<SignalAnalysis>;
|
|
2334
|
+
postProcessLocalAnalysis?: (params: {
|
|
2335
|
+
signal: Signal;
|
|
2336
|
+
payload: AiPayload;
|
|
2337
|
+
analysis: Partial<SignalAnalysis>;
|
|
2338
|
+
}) => Partial<SignalAnalysis>;
|
|
2416
2339
|
buildSystemPromptAddon?: (params: {
|
|
2417
2340
|
signal: Signal;
|
|
2418
2341
|
}) => string;
|
|
@@ -2573,8 +2496,13 @@ interface StrategyHookAfterPlaceOrderContext {
|
|
|
2573
2496
|
ai?: StrategyHookAiContext;
|
|
2574
2497
|
order: StrategyHookOrderContext;
|
|
2575
2498
|
}
|
|
2499
|
+
type StrategyMarketContextSource = 'binance' | 'coinmarketcap' | 'derivatives' | 'hyperliquidWhales';
|
|
2576
2500
|
interface StrategyManifest {
|
|
2577
2501
|
name: string;
|
|
2502
|
+
contextRequirements?: {
|
|
2503
|
+
/** Market context that must be available before strategy core evaluation. */
|
|
2504
|
+
core?: readonly StrategyMarketContextSource[];
|
|
2505
|
+
};
|
|
2578
2506
|
policyProfiles?: readonly StrategyPolicyProfile[];
|
|
2579
2507
|
defaultPolicyProfileId?: string;
|
|
2580
2508
|
entryRuntimeDefaults?: {
|
|
@@ -2699,4 +2627,4 @@ interface StrategyChartsSnapshotResponse {
|
|
|
2699
2627
|
strategies: StrategyChartSnapshot[];
|
|
2700
2628
|
}
|
|
2701
2629
|
|
|
2702
|
-
export { type AIChatHistory, type AIChatMessage, type AggTrade, type AggTradesRequest, type AiDatasetRow, type AiPayload, type AiPromptPair, type AssetClass, BACKTEST_WARNING_CODES, type BacktestDetectorOptimizedStrategy, type BacktestPriceMode, type BacktestRunConfig, type BacktestWarningCode, type BacktestWarningCounts, type BaseContextGateFeatures, type BaseGateFeatureApproveBias, type BaseGateFeatureConfirmation, type BaseGateFeatureConflict, type BaseGateFeatureEntryLocation, type BaseGateFeaturePrimaryIssue, type BaseGateFeatureRiskLevel, type BaseGateFeatureScoreKey, type BaseHyperliquidWhaleFlowContext, type BaseIndicatorsHistorySnapshot, type BaseMarketBreadthContext, type BaseMarketBreadthsContext, type BaseMarketTradeFlowContext, type BaseMultiTimeframeContext, type BaseParticipationContext, type BasePsychologicalLevelAssetContext, type BasePsychologicalLevelWindowContext, type BaseRawIndicatorSnapshot, type BaseRegimeContext, type BaseRelativeContext, type BaseStrategyContextSnapshot, type BaseStructureContext, type Bot, type BotConfig, type BotResults, type BotStatus, type BuildStrategySignalDraft, type BuildStrategySignalParams, type Candle, type ChartColor, type ClosedPnlRecord, type CmcExchangeLiquidityRegime, type CmcFearGreedClassification, type CmcFearGreedRegime, type CompletedTest, type Connector, type ConnectorCapabilities, type ConnectorConfig, type ConnectorCreator, type ConnectorPluginDefinition, type ConnectorRegistryEntry, type CreateStrategyCore, type CreateStrategyCoreParams, DEFAULT_MARKET_UNIVERSE, type DerivativesContext, type DerivativesContextRiskFlag, type DerivativesInterval, type DerivativesIntervalContext, type DerivativesPressure, type DerivativesPriceOiDivergenceType, type DerivativesRow, type DerivativesSymbolContext, type DerivativesTargetDerivedContext, type Direction, type EOMPoint, type ExchangeEntryRecord, type ExecutionCostModel, type ExecutionCostQuality, type ExecutionCostSource, type Figure, type Filters, type FundingRateHistoryRequest, type FundingRatePoint, type GetAggTrades, type GetClosedPnlParams, type GetFundingRateHistory, type GetOrderBookDepth, type GetTickers, type GetTopOfBookTicker, type GetTradingFeeRate, HYPERLIQUID_WHALE_DATA_MODEL_VERSION, type HyperliquidPositionAction, type HyperliquidWhaleCoverageRow, type HyperliquidWhaleFlowRow, type HyperliquidWhaleTradeEventRow, type Indicator, type IndicatorPluginComputeParams, type IndicatorPluginDefinition, type IndicatorPluginEntry, type IndicatorPluginFigureRenderer, type IndicatorPluginRenderer, type IndicatorSnapshot, type Indicators, type IndicatorsHistorySnapshot, type InstrumentDescriptor, type InstrumentKind, type InstrumentQuery, type InstrumentStatus, type Interval, type Item, type Items, type Kline, type KlineChartData, type KlineChartItem, type KlineRequest, type ListInstruments, type MarketBreadthRow, type MarketCmcExchangeLiquidityContextRow, type MarketCmcFearGreedContextRow, type MarketCmcIndexConstituent, type MarketCmcIndexContextRow, type MarketCmcIndexSlug, type MarketDataCapability, type MarketFeatureInterval, type MarketGlobalContextRow, type MarketGlobalContextSource, type MarketKlineEvent, type MarketReferenceAssetContextRow, type MarketTradeFlowRow, type MarketUniverse, type MetricThreshold, type Metrics, type MinimalStat, type MlCandleIndicatorsSnapshot, type MonthlyEquityStats, type OnChangeCompare, type OnChangeFilters, type Order, type OrderBookDepth, type OrderBookDepthRequest, type OrderLog, type OrderLogData, type OrderPositionIntent, type OrderType, type Position, type PositionLog, type PositionLogData, type PositionPnlSnapshot, type Provider, type RuntimeAiAnalysisSnapshot, type RuntimeDeployment, type RuntimeDeploymentHeartbeat, type RuntimeDeploymentStrategy, type RuntimeLineage, type RuntimeSignalEvaluationRecord, type RuntimeSignalEvaluationStatus, type RuntimeStrategyCloseNotification, type RuntimeStrategyConfigSnapshot, type RuntimeTradeExitType, type RuntimeTradeFillSource, type RuntimeTradeRecord, type RuntimeTradeStatus, type RuntimeTradeTelemetryQuality, type Signal, type SignalAnalysis, type SignalOrderStatus, type SimpleOrderLogData, type Sl, type SpreadRow, type Strategy, type StrategyAPI, type StrategyAPIEntryParams, type StrategyAPIExitParams, type StrategyAPIProtectParams, type StrategyAdditionalIndicatorsMap, type StrategyAiAdapter, type StrategyAiMode, type StrategyChartDetail, type StrategyChartMetric, type StrategyChartMetricTone, type StrategyChartOrder, type StrategyChartSnapshot, type StrategyChartsSnapshotResponse, type StrategyClosePlan, type StrategyConfig, type StrategyConfigGrid, type StrategyCoreRunner, type StrategyCreator, type StrategyCreatorParams, type StrategyDecision, type StrategyDecisionPriceContext, type StrategyDirectionalTpSlParams, type StrategyDirectionalTpSlResult, type StrategyEntryBaseParams, type StrategyEntryModelFigures, type StrategyEntryOrderPlan, type StrategyEntryRuntimeBaseParams, type StrategyEntryRuntimeBuilderParams, type StrategyEntryRuntimeOptions, type StrategyEntrySignalContext, type StrategyEntrySignalDecisionBuilderParams, type StrategyEntryTakeProfitsParams, type StrategyFigureAnnotation, type StrategyFigureLine, type StrategyFigurePoint, type StrategyFigurePoints, type StrategyFigureZone, type StrategyHookAfterAiContext, type StrategyHookAfterDecisionContext, type StrategyHookAfterPlaceOrderContext, type StrategyHookAiContext, type StrategyHookAiSkippedReason, type StrategyHookBarContext, type StrategyHookBeforeCloseContext, type StrategyHookBeforeEntryGateContext, type StrategyHookBeforePlaceOrderContext, type StrategyHookCtx, type StrategyHookEnrichContext, type StrategyHookEntryContext, type StrategyHookErrorContext, type StrategyHookErrorPayload, type StrategyHookGateResult, type StrategyHookInitContext, type StrategyHookMarketContext, type StrategyHookMlContext, type StrategyHookMlSkippedReason, type StrategyHookOrderContext, type StrategyHookPolicyContext, type StrategyHookSkipContext, type StrategyHookStage, type StrategyIndicatorsContext, type StrategyIndicatorsMap, type StrategyIndicatorsState, type StrategyLastTradeController, type StrategyLastTradeControllerParams, type StrategyManifest, type StrategyMlAdapter, type StrategyPluginDefinition, type StrategyPolicyProfile, type StrategyProtectPlan, type StrategyRegistryEntry, type StrategyResultConfig, type StrategyResultEntry, type StrategyResults, type StrategyRuntimeAiOptions, type StrategyRuntimeMlOptions, type StrategySharedReplayStateGetter, type StrategySignalMetaParams, type StrategySignalPriceParams, type StrategyStateController, type StrategyStateControllerOptions, type Test, type TestClosedSignalResult, type TestCompare, type TestCompareList, type TestConnector, type TestConnectorContext, type TestConnectorCreator, type TestResult, type TestStat, type TestSuite, type TestThresholds, type TestThresholdsKey, type TestTradeExitReason, type TestTradeResult, type TestWorkerResult, type TestingBox, type TestingBoxResult, type TestingOptions, type ThresholdLevel, type Ticker, type TickerQuery, type TopOfBookTicker, type Tp, type TradingAccountRef, type TradingFeeRate, type Trend, type TrendLine, type TrendLineMode, type TrendLineOptions, type UIFilters, isMarketUniverse, resolveConnectorUniverse };
|
|
2630
|
+
export { type AIChatHistory, type AIChatMessage, type AggTrade, type AggTradesRequest, type AiDatasetRow, type AiPayload, type AiPromptPair, type AssetClass, BACKTEST_WARNING_CODES, type BacktestDetectorOptimizedStrategy, type BacktestPriceMode, type BacktestRunConfig, type BacktestWarningCode, type BacktestWarningCounts, type BaseContextGateFeatures, type BaseGateFeatureApproveBias, type BaseGateFeatureConfirmation, type BaseGateFeatureConflict, type BaseGateFeatureEntryLocation, type BaseGateFeaturePrimaryIssue, type BaseGateFeatureRiskLevel, type BaseGateFeatureScoreKey, type BaseHyperliquidWhaleFlowContext, type BaseIndicatorsHistorySnapshot, type BaseMarketBreadthContext, type BaseMarketBreadthsContext, type BaseMarketTradeFlowContext, type BaseMultiTimeframeContext, type BaseParticipationContext, type BasePsychologicalLevelAssetContext, type BasePsychologicalLevelWindowContext, type BaseRawIndicatorSnapshot, type BaseRegimeContext, type BaseRelativeContext, type BaseStrategyContextSnapshot, type BaseStructureContext, type Bot, type BotConfig, type BotResults, type BotStatus, type BuildStrategySignalDraft, type BuildStrategySignalParams, type Candle, type ChartColor, type ClosedPnlRecord, type CmcExchangeLiquidityRegime, type CmcFearGreedClassification, type CmcFearGreedRegime, type CompletedTest, type Connector, type ConnectorCapabilities, type ConnectorConfig, type ConnectorCreator, type ConnectorPluginDefinition, type ConnectorRegistryEntry, type CreateStrategyCore, type CreateStrategyCoreParams, DEFAULT_MARKET_UNIVERSE, type DerivativesContext, type DerivativesContextRiskFlag, type DerivativesInterval, type DerivativesIntervalContext, type DerivativesPressure, type DerivativesPriceOiDivergenceType, type DerivativesRow, type DerivativesSymbolContext, type DerivativesTargetDerivedContext, type Direction, type EOMPoint, type ExchangeEntryRecord, type ExecutionCostModel, type ExecutionCostQuality, type ExecutionCostSource, type Figure, type Filters, type FundingRateHistoryRequest, type FundingRatePoint, type GetAggTrades, type GetClosedPnlParams, type GetFundingRateHistory, type GetOrderBookDepth, type GetTickers, type GetTopOfBookTicker, type GetTradingFeeRate, HYPERLIQUID_WHALE_DATA_MODEL_VERSION, type HyperliquidPositionAction, type HyperliquidWhaleCoverageRow, type HyperliquidWhaleFlowRow, type HyperliquidWhaleTradeEventRow, type Indicator, type IndicatorPluginComputeParams, type IndicatorPluginDefinition, type IndicatorPluginEntry, type IndicatorPluginFigureRenderer, type IndicatorPluginRenderer, type IndicatorSnapshot, type Indicators, type IndicatorsHistorySnapshot, type InstrumentDescriptor, type InstrumentKind, type InstrumentQuery, type InstrumentStatus, type Interval, type Item, type Items, type Kline, type KlineChartData, type KlineChartItem, type KlineRequest, type ListInstruments, type MarketBreadthRow, type MarketCmcExchangeLiquidityContextRow, type MarketCmcFearGreedContextRow, type MarketCmcIndexConstituent, type MarketCmcIndexContextRow, type MarketCmcIndexSlug, type MarketDataCapability, type MarketFeatureInterval, type MarketGlobalContextRow, type MarketGlobalContextSource, type MarketKlineEvent, type MarketReferenceAssetContextRow, type MarketTradeFlowRow, type MarketUniverse, type MetricThreshold, type Metrics, type MinimalStat, type MlCandleIndicatorsSnapshot, type MonthlyEquityStats, type OnChangeCompare, type OnChangeFilters, type Order, type OrderBookDepth, type OrderBookDepthRequest, type OrderLog, type OrderLogData, type OrderPositionIntent, type OrderType, type Position, type PositionLog, type PositionLogData, type PositionPnlSnapshot, type Provider, type RuntimeAiAnalysisSnapshot, type RuntimeDeployment, type RuntimeDeploymentHeartbeat, type RuntimeDeploymentStrategy, type RuntimeLineage, type RuntimeSignalEvaluationRecord, type RuntimeSignalEvaluationStatus, type RuntimeStrategyCloseNotification, type RuntimeStrategyConfigSnapshot, type RuntimeTradeExitType, type RuntimeTradeFillSource, type RuntimeTradeRecord, type RuntimeTradeStatus, type RuntimeTradeTelemetryQuality, type Signal, type SignalAnalysis, type SignalOrderStatus, type SimpleOrderLogData, type Sl, type SpreadRow, type Strategy, type StrategyAPI, type StrategyAPIEntryParams, type StrategyAPIExitParams, type StrategyAPIProtectParams, type StrategyAdditionalIndicatorsMap, type StrategyAiAdapter, type StrategyAiMode, type StrategyChartDetail, type StrategyChartMetric, type StrategyChartMetricTone, type StrategyChartOrder, type StrategyChartSnapshot, type StrategyChartsSnapshotResponse, type StrategyClosePlan, type StrategyConfig, type StrategyConfigGrid, type StrategyCoreRunner, type StrategyCreator, type StrategyCreatorParams, type StrategyDecision, type StrategyDecisionPriceContext, type StrategyDirectionalTpSlParams, type StrategyDirectionalTpSlResult, type StrategyEntryBaseParams, type StrategyEntryModelFigures, type StrategyEntryOrderPlan, type StrategyEntryRuntimeBaseParams, type StrategyEntryRuntimeBuilderParams, type StrategyEntryRuntimeOptions, type StrategyEntrySignalContext, type StrategyEntrySignalDecisionBuilderParams, type StrategyEntryTakeProfitsParams, type StrategyFigureAnnotation, type StrategyFigureLine, type StrategyFigurePoint, type StrategyFigurePoints, type StrategyFigureZone, type StrategyHookAfterAiContext, type StrategyHookAfterDecisionContext, type StrategyHookAfterPlaceOrderContext, type StrategyHookAiContext, type StrategyHookAiSkippedReason, type StrategyHookBarContext, type StrategyHookBeforeCloseContext, type StrategyHookBeforeEntryGateContext, type StrategyHookBeforePlaceOrderContext, type StrategyHookCtx, type StrategyHookEnrichContext, type StrategyHookEntryContext, type StrategyHookErrorContext, type StrategyHookErrorPayload, type StrategyHookGateResult, type StrategyHookInitContext, type StrategyHookMarketContext, type StrategyHookMlContext, type StrategyHookMlSkippedReason, type StrategyHookOrderContext, type StrategyHookPolicyContext, type StrategyHookSkipContext, type StrategyHookStage, type StrategyIndicatorsContext, type StrategyIndicatorsMap, type StrategyIndicatorsState, type StrategyLastTradeController, type StrategyLastTradeControllerParams, type StrategyManifest, type StrategyMarketContextSource, type StrategyMlAdapter, type StrategyPluginDefinition, type StrategyPolicyProfile, type StrategyProtectPlan, type StrategyRegistryEntry, type StrategyResultConfig, type StrategyResultEntry, type StrategyResults, type StrategyRuntimeAiOptions, type StrategyRuntimeMlOptions, type StrategySharedReplayStateGetter, type StrategySignalMetaParams, type StrategySignalPriceParams, type StrategyStateController, type StrategyStateControllerOptions, type Test, type TestClosedSignalResult, type TestCompare, type TestCompareList, type TestConnector, type TestConnectorContext, type TestConnectorCreator, type TestResult, type TestStat, type TestSuite, type TestThresholds, type TestThresholdsKey, type TestTradeExitReason, type TestTradeResult, type TestWorkerResult, type TestingBox, type TestingBoxResult, type TestingOptions, type ThresholdLevel, type Ticker, type TickerQuery, type TopOfBookTicker, type Tp, type TradingAccountRef, type TradingFeeRate, type Trend, type TrendLine, type TrendLineMode, type TrendLineOptions, type UIFilters, isMarketUniverse, resolveConnectorUniverse };
|