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

fix: Ignore orders that reduce position in equity check #760

Conversation

jaredvu
Copy link
Contributor

@jaredvu jaredvu commented Nov 25, 2024

This error would be triggered whenever postOrderFreeCollateral is larger than your current free collateral.

When you are reducing your position the orderEquity will be negative.

@jaredvu jaredvu changed the title Ignore orders that reduce position in equity check fix: Ignore orders that reduce position in equity check Nov 25, 2024
@jaredvu jaredvu merged commit 9e45b54 into main Nov 25, 2024
3 checks passed
@jaredvu jaredvu deleted the jared/bug2-7-cant-close-an-isolated-position-by-making-an-opposite-type branch November 25, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants