-
Notifications
You must be signed in to change notification settings - Fork 126
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
YIP-0006-margin-zones #124
Comments
Thank you for the questions!
Margin zones limits are configurable on both ends. This is alike other parameters as a challenge duration or margin limits. Margin distribution consists of 2 parts: your margin and the counterparty's one. The margin distribution channel is opened with is called deposited margin distrubition and the corresponding margin parts are called your deposited margin the counterparty's deposited margin. Your margin zones limits apply to your deposited margin and margin zones thresholds are calculated. E.g. if your margin zones limits are Thus, the rule of thumb is: if your margin is not in a green zone, then the whole margin distribution is in the same zone as your margin. Otherwise (your margin is in green zone), the margin distribution zone equals to your counterparty's one.
I agree. The YIP 0006 does not state that we should give the participants an ability to configure their own margin zones limits at the start.
See Answer 1.
The active trading indeed could not change the margin zone, however, as time passes, the price of assets in our portfolio may change significantly, which may cause a margin zone change. If the price continues to move not in your favour, your trades may become undercollateralized, which is critical and our protocol should not allow it. Therefore, users should be notified when the margin is in the yellow zone for them to prepare for the settlement, and that the margin is in the red zone and the Forced settlement has already started to change margin distribution zone to the green one, so they are able to continue trading.
You are correct, what is meant in the YIP 0006 is that in the yellow and red zones order creation is not allowed. I don't think it is neccessary for the red zone to cancel orders, as the Clearport will start Forced settlement in an instant. Nevertheless, @dpatsora mentioned, that a participant may not have assets on hand to settle a trade, therefore a more elaborate red zone reaction should be thought of.
That is correct and is specified in YIP 0008 - Settlement. |
1.1 So what you are saying is that the margin zone indicator is like a pressure meter that is mirroring the counterparty. If one is in Yellow, another one is in yellow too. |
In the correct non-custodial case, end-user can't auto-settle, a warning should be displayed to notify user he must settle. Also the YIP should cover the liquidation points in the wining side. Since both side apply haircut the middle is not the liquidation point. Rather there is a small overlap |
The text was updated successfully, but these errors were encountered: