-
Notifications
You must be signed in to change notification settings - Fork 397
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
Need example using DiffOrderBookSnapshot #137
Comments
Which exchange are you targeting? If the exchange provides incremental L2 market depth, it should be used. If not, could you provide sample data or a link to the page where I can download the sample data? This will allow me to make an example and run tests. |
here is a sample. |
The following snippet may help you. Please ensure the conversion result is correct. Additionally, the data appears to be aggregated, as the change in turnover and trade quantity do not align. Furthermore, no trade side is provided, and there seems to be an issue with the timestamps. If you are using this data, the backtesting results could significantly deviate from live trading. You should carefully verify the backtesting result.
|
thanks a lot for ur snippet. It helps me a lot!! Q1. what should be the data stream be? or just: or: Q2: |
Q1) You need to specify the final quantity, but the exchange provides the full tick-by-tick data, it should be Q2) The last three fields are unused in Level-2 data. Please see https://hftbacktest.readthedocs.io/en/latest/data.html#format |
i check the simulation result, and find the rebuild snapshot didnt match the correspond snapshot. |
|
hi @nkaz001 ,
i am new to this framwork, and plan to move my backtest to this framework.
best,
justin
The text was updated successfully, but these errors were encountered: