Skip to content

Get Orders endpoint doesn't work with >500 orders #182

@rkmcdonnell

Description

@rkmcdonnell

The GET //data/orders endpoint was giving me a long hanging period (~60 seconds), then finally returning an "invalid API key" error. I noticed that this was only occurring when I had >500 active orders. As soon as I went below 500, the issue disappears. As far as I can tell, there is no ability to manually handle pagination - the OpenOrderParams does not take "limit" or "offset" as a parameter like some of the other endpoints. It looks like pagination is handled internally from looking at the code, but something isn't working properly. Obviously I can iterate over each market and retrieve orders individually, but this is lot slower than one batch request with no market filtering. Any ideas/tips how to fix this? Anyone else able to reproduce? I'm using py_clob_client==0.28.0. Thanks!

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