Format related strategy and test files
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user