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

BSIP-70 margin call mechanics needs to be adjusted wrt market fees #254

Open
pmconrad opened this issue Dec 12, 2019 · 0 comments
Open

BSIP-70 margin call mechanics needs to be adjusted wrt market fees #254

pmconrad opened this issue Dec 12, 2019 · 0 comments

Comments

@pmconrad
Copy link
Contributor

While discussing manual loan closure with @MichelSantos we noticed that the currently specified margin call process does not consider market fees. I. e. the margin call will try to buy back the missing debt, but even if it is filled, after paying market fees the remaining proceeds might not suffice to cover the gap.

This is particularly nasty because the market fee rate can change while the order is sitting on the book. It might be necessary to create/cancel the margin call order in each new block.

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

No branches or pull requests

1 participant