Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: take max of two sides for isolated margin mode order margin estimate #10936

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

witgaw
Copy link
Contributor

@witgaw witgaw commented Mar 19, 2024

Bring estimate in line with actual behaviour in isolated margin mode (take max of order margins from each side, sort orders and net off the first n against position if position has an opposite sign).

Closes #10928

@witgaw witgaw marked this pull request as ready for review March 20, 2024 14:22
@witgaw witgaw requested a review from a team as a code owner March 20, 2024 14:22
@witgaw witgaw self-assigned this Mar 20, 2024
@EVODelavega EVODelavega merged commit ba8d414 into develop Mar 20, 2024
16 checks passed
@EVODelavega EVODelavega deleted the pos-est-bug branch March 20, 2024 16: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.

[Bug]: Wrong collateralIncreaseEstimate for limit orders in isolated margin mode
3 participants