Skip to content

Commit

Permalink
refactor: remove unnecessary l2/l3 config in the builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaz001 committed Sep 22, 2024
1 parent 3093dc1 commit e8f634b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions py-hftbacktest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ pub struct BacktestAsset {
fee_model: FeeModel,
latency_offset: i64,
parallel_load: bool,
l3: bool,
}

unsafe impl Send for BacktestAsset {}
Expand Down Expand Up @@ -138,7 +137,6 @@ impl BacktestAsset {
},
latency_offset: 0,
parallel_load: true,
l3: false,
}
}

Expand Down Expand Up @@ -445,18 +443,6 @@ impl BacktestAsset {
};
slf
}

/// Sets this asset to Level2.
pub fn l2(mut slf: PyRefMut<Self>) -> PyRefMut<Self> {
slf.l3 = false;
slf
}

/// Sets this asset to Level3.
pub fn l3(mut slf: PyRefMut<Self>) -> PyRefMut<Self> {
slf.l3 = true;
slf
}
}

#[pymodule]
Expand Down

0 comments on commit e8f634b

Please sign in to comment.