frontend-monorepo icon indicating copy to clipboard operation
frontend-monorepo copied to clipboard

Creating a market order that will trigger price auction will fail but not tell you why

Open daunatv opened this issue 11 months ago • 0 comments

Story

When submitting a market order that will put market into auction, the order fails (not red) due to Error— OrderError: non-persistent order trades out of price bounds, but for the users this means very little.

Acceptance Criteria

  • [ ] Receive information on why my market order failed, Error— OrderError: non-persistent order trades out of price bounds, does not tell the user much
  • [ ] Toast should display "Order stopped because IOC / FOK orders that would trigger an auction are rejected. Resubmit as a persitent limit order if you wish to proceed"
  • [ ] Toast should be orange

Tasks

  • [ ] UX (if needed)
  • [ ] Design (if needed)
  • [ ] Team and stakeholder review
  • [ ] Specs reviewed and created or adjusted
  • [ ] Implementation
  • [ ] Testing (unit and/or e2e)
  • [ ] Code review
  • [ ] QA review

Screenshots

https://github.com/vegaprotocol/frontend-monorepo/assets/100769129/04f1e598-7175-47f4-9c70-26e3150b8b61

Additional details / background info

daunatv avatar Mar 08 '24 18:03 daunatv