Skip to content

feat(client): support reduce-only Perps orders#142

Merged
cesarenaldi merged 1 commit into
feat/perps-supportfrom
feat/perps-reduce-only-orders
Jul 7, 2026
Merged

feat(client): support reduce-only Perps orders#142
cesarenaldi merged 1 commit into
feat/perps-supportfrom
feat/perps-reduce-only-orders

Conversation

@cesarenaldi

@cesarenaldi cesarenaldi commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add reduce_only to normal Perps order request and session placement APIs
  • serialize reduce-only orders as ro: true
  • expose reduce_only on parsed Perps orders from the ro response field
  • add focused serialization, session, model, and typing coverage

Verification

  • uv run pytest tests/unit/test_perps_trading_commands.py tests/unit/test_perps_session.py tests/unit/test_perps_events.py
  • uv run ruff check
  • uv run ruff format --check
  • uv run pyright

@cesarenaldi cesarenaldi force-pushed the feat/perps-reduce-only-orders branch from 86c6ff3 to 65ed83e Compare July 7, 2026 08:11

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 65ed83e. Configure here.

Comment thread src/polymarket/models/perps/orders.py
@cesarenaldi cesarenaldi merged commit 82d28e1 into feat/perps-support Jul 7, 2026
5 checks passed
@cesarenaldi cesarenaldi deleted the feat/perps-reduce-only-orders branch July 7, 2026 13:38
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