test: exercise full odd-lot liquidation against the remaining quote quota
This commit is contained in:
@@ -11636,7 +11636,7 @@ mod tests {
|
|||||||
let later = clock + chrono::Duration::seconds(1);
|
let later = clock + chrono::Duration::seconds(1);
|
||||||
let second = broker.select_execution_fill_with_ledger(
|
let second = broker.select_execution_fill_with_ledger(
|
||||||
&snapshot.symbol,&snapshot,"es,OrderSide::Sell,MatchingType::MinuteLast,
|
&snapshot.symbol,&snapshot,"es,OrderSide::Sell,MatchingType::MinuteLast,
|
||||||
Some(later),Some(later),100,100,100,100,true,None,None,None,&ledger,None,
|
Some(later),Some(later),50,100,100,100,true,None,None,None,&ledger,None,
|
||||||
).unwrap().unwrap();
|
).unwrap().unwrap();
|
||||||
assert_eq!(second.quantity,50);
|
assert_eq!(second.quantity,50);
|
||||||
assert_eq!(second.legs[0].execution_timestamp,Some(later));
|
assert_eq!(second.legs[0].execution_timestamp,Some(later));
|
||||||
|
|||||||
Reference in New Issue
Block a user