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

L2_BOOK and crypto.com #953

Open
voidloop opened this issue Feb 23, 2023 · 1 comment
Open

L2_BOOK and crypto.com #953

voidloop opened this issue Feb 23, 2023 · 1 comment
Labels

Comments

@voidloop
Copy link

Describe the bug
L2_BOOK on crypto.com is not functioning properly. Access to the dictionary returns inconsistent data.

To Reproduce

from cryptofeed import FeedHandler
from cryptofeed.defines import CRYPTODOTCOM, L2_BOOK

f = FeedHandler()


async def callback(book, t):
    print(book.book.ask.index(0), list(book.book.ask.__data)[0])


f.add_feed(CRYPTODOTCOM, max_depth=5, symbols=['DOT-USDT'], channels=[L2_BOOK], callbacks={L2_BOOK: callback})

f.run()

Operating System:

# uname -a
Linux xxx 6.1.11-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb  9 19:20:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Cryptofeed Version

# pip list | grep cryptofeed
cryptofeed                     2.3.1

Thank you

@voidloop voidloop added the bug label Feb 23, 2023
@voidloop
Copy link
Author

Sorry, the output of the program is

('10.0000', '23.52') 7.0835
('10.0000', '23.52') 7.0835
('10.0000', '23.52') 7.0835
('10.0000', '23.52') 7.0835
('10.0000', '23.52') 7.0835
('10.0000', '23.52') 7.0835
('10.0000', '23.52') 7.0835
('10.0000', '23.52') 7.0835
('10.0000', '23.52') 7.0835
('10.0000', '23.52') 7.0835
('10.0000', '23.52') 7.0829

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant