Skip to content

Order history pagination does not work #1

@hogpilot

Description

@hogpilot

order_history_paging_issue.py

Description

Order history pagination does not work. When using last_client_order_id parameter, the API returns the same first page repeatedly instead of advancing to subsequent pages.

Impact

  • Cannot retrieve complete order history beyond first 100 orders
  • Forces inefficient workarounds (querying 1-day ranges)
  • Affects all users with >100 historical orders

Reproduction

See attached script (runs in <1 minute with test credentials)

Environment

  • SDK Version: 1.0.9
  • API: us-openapi-alb.uat.webullbroker.com (test environment)
  • Endpoint: /openapi/trade/order/history (v3)

Root Cause

This is likely an API backend issue, and not an SDK bug. The API server appears to ignore the last_client_order_id parameter.

Workaround

Query in 1-day date ranges instead of using pagination (inefficient - requires 45+ API calls for 45 days vs 2-3 with working pagination)

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