Skip to content

feat(data): support multi-status filtering on combo positions - #272

Open
kartojal wants to merge 1 commit into
mainfrom
feature/dev-442-combo-multi-status-filtering-in-py-sdk
Open

feat(data): support multi-status filtering on combo positions#272
kartojal wants to merge 1 commit into
mainfrom
feature/dev-442-combo-multi-status-filtering-in-py-sdk

Conversation

@kartojal

@kartojal kartojal commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

DEV-442/DEV-429: Supports multi-status combo position filters in Python.

Tests: lint/format, typecheck, build, unit PASS; public live PASS.


Note

Low Risk
Backward-compatible API extension (single status unchanged) with input validation and test coverage; no auth or trading-path changes.

Overview
list_combo_positions now accepts status as a single ComboPositionStatus or a non-empty sequence of statuses (lists/tuples). Multiple values are sent to the data API as a comma-separated query param and treated as OR filters in caller order.

Validation lives in _normalize_combo_status_filter: each entry must be a valid enum, empty sequences are rejected, and a single comma-joined string (e.g. "RESOLVED_WIN,RESOLVED_LOSS") is not accepted—callers must pass a sequence. Sync/async public and secure clients share the widened type and updated docstrings.

Unit tests cover request shaping and edge cases; integration tests exercise single- and multi-status filters against live data.

Reviewed by Cursor Bugbot for commit 8a6112f. Bugbot is set up for automated code reviews on this repo. Configure here.

@kartojal
kartojal marked this pull request as ready for review August 14, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant