import type { AuxSeriesData, Bar, BacktestContextOptions, BacktestEvent, EquityPoint, FundingRate, MaValues, OiProvider, ParamValue, PendingOrder, Position, Strategy, TimeframeData, Trade } from "../types"; import { StrategyRuntimeContext } from "../runtime/strategy-runtime-context"; export interface MockTradingEnvOptions { initialBalance?: number; commission?: BacktestContextOptions["commission"]; fundingRateList?: FundingRate[]; params?: Record; rawConfig?: Record; auxSeriesData?: AuxSeriesData; timeframeDataList?: TimeframeData[]; /** Live read-through OI source; when set, the runtime neither accumulates nor reads its own OI series. */ oiProvider?: OiProvider; /** Label of the timeframe being fed ("30", "240", …). The backtest player always knows it; a live host * should pass it too, so a strategy asking for series BY resolution (e.g. getVolume24h("30")) is served * the same way it is in the player. */ resolution?: string; } export interface FeedBarInput { bar: Bar; maValues: MaValues; } export declare class MockTradingEnv { private readonly runtime; private readonly strategy; private initialized; constructor(strategy: Strategy, options?: MockTradingEnvOptions); feedBar(bar: Bar, maValues: MaValues): void; feedBars(barList: FeedBarInput[]): void; end(): void; sendCommand(command: Record): void; getRuntime(): StrategyRuntimeContext; getTradeList(): Trade[]; getEquityList(): EquityPoint[]; getEventList(): BacktestEvent[]; getBalance(): number; getOpenPositionList(): Position[]; getPendingOrderList(): PendingOrder[]; } //# sourceMappingURL=mock-trading-env.d.ts.map