Skip to content

Orderbook crosses in book stream #38

@GeorgSchneider

Description

@GeorgSchneider

Not an issue, but a question regarding the data quality from Bitfinex: I've noticed that sometimes the raw orderbook stream will send bids that cross the best ask at that point, and vice versa. I'm wondering if you had observed the same issues and how you go about remediating them. For now I'm just removing all crossed quotes from the book when the situation occurs, but it feels like I might not have an accurate representation of the real book.

I've checked that there was indeed no level removal (book.Count == 0) at the crossed price beforehand, so my raw data confirms the issue is happening. So I'm wondering if I might have missed some updates, ie. dropped messages. Would you suggest to always use the server sequence number? In some code comment you write that it should not be required due to TCP transport guarantees. I've also seen the checksum option but it seems heavy-handed and would increase traffic quite a bit.

Thanks for your insights, and really appreciate the high-quality library you're providing!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions