Skip to content

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

Open
@havingfunq

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

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