Format related strategy and test files

This commit is contained in:
boris
2026-04-22 23:36:56 -07:00
parent ea2871a0f2
commit c4967c3711
4 changed files with 35 additions and 45 deletions

View File

@@ -22,17 +22,17 @@ impl Strategy for HookProbeStrategy {
"hook-probe"
}
fn before_trading(&mut self, ctx: &StrategyContext<'_>) -> Result<(), fidc_core::BacktestError> {
fn before_trading(
&mut self,
ctx: &StrategyContext<'_>,
) -> Result<(), fidc_core::BacktestError> {
self.log
.borrow_mut()
.push(format!("before:{}", ctx.execution_date));
Ok(())
}
fn open_auction(
&mut self,
ctx: &StrategyContext<'_>,
) -> Result<(), fidc_core::BacktestError> {
fn open_auction(&mut self, ctx: &StrategyContext<'_>) -> Result<(), fidc_core::BacktestError> {
self.log
.borrow_mut()
.push(format!("auction:{}", ctx.execution_date));