Skip to main content

Module fill

Module fill 

Source

Structs§

BidAskFillModel
Fills at the current best ask (buys) or best bid (sells), crossing the spread as a taker does.
FillContext
Everything a FillModel may price from.
LastPriceFillModel
Fills at the last traded price, falling back to the price a taker would have to cross to.
MidpointFillModel
Fills at the midpoint of best bid and best ask, falling back to last_price.

Enums§

MarketOrderTiming
When a simulated venue fills a market order, as MockExecutionConfig::market_order_timing selects. Defaults to OnArrival.
NextBarPrice
Which price of the next bar fills a market order held for it. See MarketOrderTiming::NextBar.
SimFillConfig
Selects one of the built-in fill models from a serialisable configuration, as MockExecutionConfig::fill_model does. Defaults to LastPriceFillModel.
StaleMarketPolicy
What a simulated venue does with an order when the instrument’s market is stale, as MockExecutionConfig::stale_market selects. Defaults to Off.

Traits§

FillModel
Prices a fill the venue has already decided will happen.