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

Weird behavior in src/pricing/stream.py #18

Open
havingfunq opened this issue Oct 13, 2019 · 0 comments
Open

Weird behavior in src/pricing/stream.py #18

havingfunq opened this issue Oct 13, 2019 · 0 comments

Comments

@havingfunq
Copy link

havingfunq commented Oct 13, 2019

Zero heartbeats were showing when using the -s flag. I had to modify the code. It was a simple modification which I will share here.

line 69 of src/pricing/stream.py ...

`
for msg_type, msg in response.parts():

    if msg_type == "**pricing.PricingHeartbeat**" and args.show_heartbeats:
        print(heartbeat_to_string(msg))
    elif msg_type == "**pricing.ClientPrice**":
       print(price_to_string(msg))

`

Notice that pricing.PricingHeartbeat and pricing.ClientPrice were the only changes.

Thanks,

Vf

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

1 participant