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

Cross Free Collateral not updating correctly when canceling isolated margin limit orders #832

Open
ManticorePrivacy opened this issue Jul 19, 2024 · 1 comment

Comments

@ManticorePrivacy
Copy link

I've noticed an issue with how the Cross Free Collateral balance behaves when working with isolated margin limit orders.

Here's what I'm experiencing:

  • When I open limit orders in isolated margin mode, my Cross Free Collateral balance decreases by the amount used for each of the limit orders. This seems correct.

  • However, when I cancel one of these limit orders, my Cross Free Collateral balance doesn't change. I would expect it to increase, reflecting the released funds from the canceled order.

  • I've found that the only way to get my Cross Free Collateral balance to update correctly is to cancel ALL of my isolated margin limit orders. Only then does the balance return to what I believe is the correct amount.

I'm not sure if I'm misunderstanding something about how Cross Free Collateral should work, or if this is indeed a bug.

Steps to reproduce:

  1. Have some balance in your account
  2. Open several limit orders in isolated margin mode
  3. Watch your Cross Free Collateral decrease
  4. Cancel one of the limit orders
  5. Notice that your Cross Free Collateral doesn't change
  6. Cancel all remaining limit orders
  7. See that your Cross Free Collateral finally updates to the correct amount

Capture

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant