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

Allow users to go short even if they have some long position and vice versa by changing hard block into overrideable warning #507

Open
alexisgauba opened this issue Jun 5, 2022 · 0 comments
Labels

Comments

@alexisgauba
Copy link
Contributor

Please describe the problem you're having.
Currently we only allow users to go short if they have closed out their full long and vice versa. However, many advanced users (especially ones that LP) can be long and short at the same time or have just amounts of either. Instead of hard blocking this scenario, we can have a warning that warns users they are going long while they still have a short or vice versa, which serves the purpose of preventing most people from taking that action, but doesn't frustrate or block advanced users who want access to that flow.

Screenshots
Turn this into a warning instead of a hard block. Same for if a user has a short position and is trying to go long. We can use the same format we use for high slippage where we outline the bottom button in red and say "trade anyway"

Screen Shot 2022-06-05 at 4 02 06 PM

Additional context
https://opyn.slack.com/archives/CKKRBUXNZ/p1654458636837849

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

No branches or pull requests

1 participant