补充策略规格解析能力
This commit is contained in:
@@ -1675,6 +1675,7 @@ impl OmniMicroCapStrategy {
|
||||
.max(1)
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn projected_buy_quantity(&self, cash: f64, sizing_price: f64, execution_price: f64) -> u32 {
|
||||
if cash <= 0.0 || sizing_price <= 0.0 || execution_price <= 0.0 {
|
||||
return 0;
|
||||
@@ -1856,6 +1857,7 @@ impl OmniMicroCapStrategy {
|
||||
Some(fill.quantity)
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn projected_market_fillable_quantity(
|
||||
&self,
|
||||
ctx: &StrategyContext<'_>,
|
||||
|
||||
Reference in New Issue
Block a user