Skip to content

Support cash-only deleverage equity fallback#168

Merged
Pigbibi merged 1 commit into
mainfrom
feat/platform-cash-only-execution
Jun 27, 2026
Merged

Support cash-only deleverage equity fallback#168
Pigbibi merged 1 commit into
mainfrom
feat/platform-cash-only-execution

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extend cash-only equity helpers for negative net equity with open positions.
  • Enable sell-only deleverage mode instead of blocking execution.

Test plan

  • PYTHONPATH=src python3 -m unittest tests.test_cash_only_equity -q

Made with Cursor

Use gross position value as effective equity for target translation during cash-only deleverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi Pigbibi merged commit 7817259 into main Jun 27, 2026
1 check passed
@Pigbibi Pigbibi deleted the feat/platform-cash-only-execution branch June 27, 2026 16:06
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