refactor: remove retired daily quota parameters from target diagnostics
This commit is contained in:
@@ -3521,8 +3521,6 @@ where
|
|||||||
data,
|
data,
|
||||||
&symbol,
|
&symbol,
|
||||||
current_qty,
|
current_qty,
|
||||||
minimum_order_quantity,
|
|
||||||
order_step_size,
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
diagnostics.push(format!(
|
diagnostics.push(format!(
|
||||||
@@ -3539,8 +3537,6 @@ where
|
|||||||
data,
|
data,
|
||||||
&symbol,
|
&symbol,
|
||||||
current_qty,
|
current_qty,
|
||||||
minimum_order_quantity,
|
|
||||||
order_step_size,
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
diagnostics.push(format!(
|
diagnostics.push(format!(
|
||||||
@@ -3951,8 +3947,6 @@ where
|
|||||||
data,
|
data,
|
||||||
symbol,
|
symbol,
|
||||||
current_qty,
|
current_qty,
|
||||||
minimum_order_quantity,
|
|
||||||
order_step_size,
|
|
||||||
) else {
|
) else {
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
@@ -4220,8 +4214,6 @@ where
|
|||||||
data: &DataSet,
|
data: &DataSet,
|
||||||
symbol: &str,
|
symbol: &str,
|
||||||
current_qty: u32,
|
current_qty: u32,
|
||||||
minimum_order_quantity: u32,
|
|
||||||
order_step_size: u32,
|
|
||||||
) -> Option<String> {
|
) -> Option<String> {
|
||||||
if let Some(reason) = self.runtime_auto_sell_denials.borrow().get(symbol) {
|
if let Some(reason) = self.runtime_auto_sell_denials.borrow().get(symbol) {
|
||||||
return Some(reason.clone());
|
return Some(reason.clone());
|
||||||
@@ -4272,8 +4264,6 @@ where
|
|||||||
data: &DataSet,
|
data: &DataSet,
|
||||||
symbol: &str,
|
symbol: &str,
|
||||||
current_qty: u32,
|
current_qty: u32,
|
||||||
minimum_order_quantity: u32,
|
|
||||||
order_step_size: u32,
|
|
||||||
) -> Option<String> {
|
) -> Option<String> {
|
||||||
let snapshot = data.require_market(date, symbol).ok()?;
|
let snapshot = data.require_market(date, symbol).ok()?;
|
||||||
let candidate = data.require_candidate(date, symbol).ok()?;
|
let candidate = data.require_candidate(date, symbol).ok()?;
|
||||||
|
|||||||
@@ -7086,7 +7086,7 @@ mod tests {
|
|||||||
assert!(result.fills.iter().any(|fill| fill.side == OrderSide::Sell && fill.date == fourth));
|
assert!(result.fills.iter().any(|fill| fill.side == OrderSide::Sell && fill.date == fourth));
|
||||||
assert_eq!(result.capacity_audit.audit_passed, Some(false));
|
assert_eq!(result.capacity_audit.audit_passed, Some(false));
|
||||||
assert_eq!(result.capacity_audit.failed_symbol_sessions, 1);
|
assert_eq!(result.capacity_audit.failed_symbol_sessions, 1);
|
||||||
assert!(result.process_events.iter().any(|event| event.kind == ProcessEventKind::SessionCapacityAudit));
|
assert!(result.process_events.iter().any(|event| event.kind == crate::ProcessEventKind::SessionCapacityAudit));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user