Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latency modeling for sandbox/real-time #1677

Open
cjdsellers opened this issue May 29, 2024 · 2 comments
Open

Latency modeling for sandbox/real-time #1677

cjdsellers opened this issue May 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@cjdsellers
Copy link
Member

cjdsellers commented May 29, 2024

Feature Request

A use_message_queue config option was added to SimulatedExchange as a temporary work around for processing trading commands in real-time cbfc703 to accommodate the "sandbox mode" #1674.

This means that currently when trading commands are submitted to the sandbox execution client (and onto its internal simulated exchange) there is practically no latency in either direction. The commands will be processed and events generated at local platform latency (microseconds) which is relatively unrealistic for most venue and setups.

A future feature could leverage the LatencyModel to extend to real-time, potentially by using a timer to "delay" command processing and events being generated - to achieve to desired latency model spec.

@OdinLin
Copy link

OdinLin commented Jun 7, 2024

@TheLegendAli
Copy link

TheLegendAli commented Sep 17, 2024

yup we need something like that, for my backtest I'm implementing a few latencies:

  • latency that I receive the data

  • latency for nautilus to do its magic

  • latency for exchange to receive order from nautilus

I'm manual using "timer" to add delay. But would be nice if we can automate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

3 participants