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

local exchange_time is used for orderbook subscription #37

Open
jordy25519 opened this issue Jul 17, 2023 · 0 comments · May be fixed by #38
Open

local exchange_time is used for orderbook subscription #37

jordy25519 opened this issue Jul 17, 2023 · 0 comments · May be fixed by #38

Comments

@jordy25519
Copy link

jordy25519 commented Jul 17, 2023

hi, thanks for the crate!

it seems like the exchange_time field of MarketEvent is not set to the exchange given timestamp when using Binance L2 orderbook subscriptions.

Self(vec![Ok(MarketEvent {
exchange_time: book.last_update_time,
received_time: Utc::now(),

book.last_update_time is set here to Utc::now()

match updater.update(book, update) {
Ok(Some(book)) => {
MarketIter::<OrderBook>::from((Exchange::ID, instrument.clone(), book)).0
}

I'm interested in the exchange given timestamp to check latency between my service and the exchange feed

@jordy25519 jordy25519 linked a pull request Jul 17, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant