Skip to content

Enhance LatencyModel to handle message ingress dynamic data latency #2612

@stastnypremysl

Description

@stastnypremysl

Bug Report

In the given folder, there is a strategy, their output and the catalog.

Expected Behavior

Ticks are delayed according to base_latency_nanos. (ts_event - ts_init = base_latency_nanos)

Actual Behavior

Tick are not delayed. (ts_event - ts_init = 0)

Steps to Reproduce the Problem

  1. Download the data
  2. Extract the zip file and change extracted catalog path in strategy.py to the catalog
  3. ./strategy.py >strategy.out 2>&1
  4. less strategy.out

Specifications

  • OS platform: Gentoo Linux (native build, amd64)
  • Python version: Python 3.12.9 (native build)
  • nautilus_trader version: 1.218.0 (revision c35d944; make build-wheel-debug)

Additional notes

  • The simulation is running on aggregated trade ticks from Binance data collection
  • The instrument information was downloaded using the NT Binance client

Further proposal

I propose to add separated latency config for ticks, as they might be received slower than orders are submitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestimprovementImprovement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions