Skip to content

quest backend receiving book with less depth that specified and crash #1042

@mirageAlchemy

Description

@mirageAlchemy

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  • Provide small code sample that reproduces the issue
  • Provide any tracebacks, if applicable
    it seems the reproduction depends on the live market condition, and not easily reproducible. The traceback is in the function of BookQuest.__call__ where the message is assembled, it reports either the book.book.bids or book.book.asks has no index 8 or 9(I set depth to 10). After I changed the self.depth to len(book.book.bids) and len(book.book.asks), it does not report exception no more.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Operating System:

  • macOS, linux, etc

Cryptofeed Version

  • please list the version you are using, and how it was installed (from source, pypi, etc).
    2.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions