Skip to content

PricingStream is not working  #215

@msh855

Description

@msh855

Hi,

This example from your documentation is not working:


>>> r = pricing.PricingStream(accountID=accountID, params=params)
>>> rv = api.request(r)
>>> maxrecs = 100
>>> for ticks in r:
>>>     print json.dumps(R, indent=4),","
>>>     if maxrecs == 0:
>>>         r.terminate("maxrecs records received")

I get this error: 'PricingStream' object is not iterable

Here what I am doing:

cross = 'USD_JPY'
r = pricing.PricingStream(accountID=account_id, params={"instruments": cross})
rv = api.request(r)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions