[go: nahoru, domu]

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

Why is 'E' event timestamp used instead of 'T' transaction time in Binance Futures depth update? Shouldn't it use 'T' transaction time? #54

Open
nkaz001 opened this issue Mar 13, 2024 · 4 comments

Comments

@nkaz001
Copy link
nkaz001 commented Mar 13, 2024

In the Binance Futures depth stream, the event timestamp is actually the send timestamp, and the transaction timestamp is the actual time at which matching happens. When examining the stream data, the transaction timestamp precedes the event timestamp. If we use the event timestamp, it results in lower latency and leads to inaccurate backtesting results.

Does historical data also use event timestamp?

@nkaz001
Copy link
Author
nkaz001 commented Mar 13, 2024

for instance,
1710340597530784 {"stream":"btcusdt@depth@0ms","data":{"e":"depthUpdate","E":1710340597717,"T":1710340597716,"s":"BTCUSDT","U":4171697482390,"u":4171697488761,"pu":4171697482344,"b":[["1000.00","172.609"] ...

@thaaddeus
Copy link
Member

historical data also uses event timestamp currently

@nkaz001
Copy link
Author
nkaz001 commented Mar 14, 2024

could you add transaction time in the historical data? or could you consider replacing event time with transaction time?

@thaaddeus
Copy link
Member

I will consider it, please vote on https://roadmap.tardis.dev/feature-requests

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