移除回测兼容语义残留
This commit is contained in:
@@ -981,7 +981,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cash_dividend_can_preserve_avg_cost_for_aiquant_compatibility() {
|
||||
fn cash_dividend_can_preserve_avg_cost_for_aiquant_rules() {
|
||||
let date = NaiveDate::from_ymd_opt(2025, 1, 2).unwrap();
|
||||
let mut position = Position::new("603102.SH");
|
||||
position.buy(date, 1000, 46.45);
|
||||
@@ -1033,7 +1033,7 @@ mod tests {
|
||||
ask1: 10.01,
|
||||
prev_close: 9.8,
|
||||
volume: 1000,
|
||||
tick_volume: 1000,
|
||||
minute_volume: 1000,
|
||||
bid1_volume: 1000,
|
||||
ask1_volume: 1000,
|
||||
trading_phase: None,
|
||||
@@ -1056,7 +1056,7 @@ mod tests {
|
||||
ask1: 10.51,
|
||||
prev_close: 10.0,
|
||||
volume: 1000,
|
||||
tick_volume: 1000,
|
||||
minute_volume: 1000,
|
||||
bid1_volume: 1000,
|
||||
ask1_volume: 1000,
|
||||
trading_phase: None,
|
||||
@@ -1144,7 +1144,7 @@ mod tests {
|
||||
ask1: 10.51,
|
||||
prev_close: 10.0,
|
||||
volume: 1000,
|
||||
tick_volume: 1000,
|
||||
minute_volume: 1000,
|
||||
bid1_volume: 1000,
|
||||
ask1_volume: 1000,
|
||||
trading_phase: None,
|
||||
@@ -1228,7 +1228,7 @@ mod tests {
|
||||
ask1: 10.31,
|
||||
prev_close: 10.0,
|
||||
volume: 1000,
|
||||
tick_volume: 1000,
|
||||
minute_volume: 1000,
|
||||
bid1_volume: 1000,
|
||||
ask1_volume: 1000,
|
||||
trading_phase: None,
|
||||
@@ -1297,7 +1297,7 @@ mod tests {
|
||||
ask1: 3.02,
|
||||
prev_close: 2.98,
|
||||
volume: 152_975,
|
||||
tick_volume: 152_975,
|
||||
minute_volume: 152_975,
|
||||
bid1_volume: 338,
|
||||
ask1_volume: 2476,
|
||||
trading_phase: None,
|
||||
@@ -1320,7 +1320,7 @@ mod tests {
|
||||
ask1: 3.07,
|
||||
prev_close: 3.06,
|
||||
volume: 160_000,
|
||||
tick_volume: 160_000,
|
||||
minute_volume: 160_000,
|
||||
bid1_volume: 1000,
|
||||
ask1_volume: 1000,
|
||||
trading_phase: None,
|
||||
|
||||
Reference in New Issue
Block a user