Align jq microcap execution with intraday snapshots
This commit is contained in:
@@ -138,8 +138,7 @@ impl Position {
|
||||
}
|
||||
|
||||
pub fn apply_split_ratio(&mut self, ratio: f64) -> i32 {
|
||||
if self.quantity == 0 || !ratio.is_finite() || ratio <= 0.0 || (ratio - 1.0).abs() < 1e-9
|
||||
{
|
||||
if self.quantity == 0 || !ratio.is_finite() || ratio <= 0.0 || (ratio - 1.0).abs() < 1e-9 {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user