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

TP/SL #471

Open
c40003141 opened this issue Dec 21, 2023 · 0 comments
Open

TP/SL #471

c40003141 opened this issue Dec 21, 2023 · 0 comments
Assignees

Comments

@c40003141
Copy link
Contributor

c40003141 commented Dec 21, 2023

1) Improve how we display "multiple", "partial" in position table:

  • the price should be shown if there is 1 TP (SL) order with an order size equal to the current position size
  • "multiple" should be shown if there are multiple TP (SL) orders that in sum have a combined order size that is equal to the current position size
  • "partial" should be shown if there are one or many TP (SL) orders that in sum have a combined order size that is below the current position size.
  • "exceeded" should be shown if there is one or many TP (SL) orders that in sum have a combined order size that is above the current position size

--> those values need to be updated on every change in position size and open orders.

2) warning message

If the user has an existing open position with existing SL/TP orders, and the user submits a new order, the review order popup should show a sentence "Verify your existing TP/SL orders - you are modifying an existing position that has TP/SL orders"


Problems we see right now: if we have multiple SL (TP) orders for a given position we display "multiple", if I close one SL order manually, it still shows "multiple" but should show "partial"

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

2 participants