Skip to content

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

Description

@havingfunq

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions