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

Suggestion on Live Deployment - Data part #180

Open
lli839 opened this issue Feb 9, 2025 · 1 comment
Open

Suggestion on Live Deployment - Data part #180

lli839 opened this issue Feb 9, 2025 · 1 comment

Comments

@lli839
Copy link

lli839 commented Feb 9, 2025

Hi,

Assuming my backtesting strategy works fine (L3 data on ES futures), what's your suggestion on how to modify the code for live deployment?

Specially, in backtesting,

from hftbacktest.data.utils import databento

databento.convert(input_file, symbol, output_filename=f'data/{symbol}_{date}_l3.npz')

Inside the convert(), it takes each ev, then update tmp orderbook snapshot, then correct_local_timestamp(tmp, base_latency).

However, should I maintain such orderbook in live trading?

best,

@nkaz001
Copy link
Owner

nkaz001 commented Feb 11, 2025

hftbacktest doesn't yet support L3 data in live mode. If your strategy relies on the order book, you will need to build and maintain it yourself. But, if your strategy doesn't require order book data, using L1 BBO in live mode is sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants