Skip to content

FillModel derived extensions do not "walk the order book" when using bars data #3031

@idobz

Description

@idobz

Bug Report

Confirmation

Before opening a bug report, please confirm:

  • [v] I’ve re-read the relevant sections of the documentation.
  • [v] I’ve searched existing issues and discussions to avoid duplicates.
  • [v] I’ve reviewed or skimmed the source code (or examples) to confirm the behavior is not by design.
  • [v] I’ve tested this issue using a recent development wheel (dev develop or a nightly) and can still reproduce it.

Expected Behavior

The expected behavior when using, for example, the OneTickSlippage FillModel, is for market orders to be fulfilled (putting aside the question of price).

Actual Behavior

The actual behavior is that market orders are not fulfilled when the order book - as defined by the fill model - does not contain 'best_bid`/'best_sell' price BookOrder has 0 quantity

Steps to Reproduce the Problem

Untar attached tar file. It contains a python file (with strategy and main), and a small catalog.
Run the python code using an environment that has NT installed (note the version used)

When run with FILL_MODEL = "Standard" (the default setting in row 26) the orders get filled
When run with FILL_MODEL = "OneTickSlippage" (row 27) the orders are not filled.

Code Snippets or Logs

Specifications

  • OS platform: Ubuntu
  • Python version: 3.12.7
  • nautilus_trader version: 1.221.0a20250921

fillmodel.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions