vega-frontend-monorepo/specs/7004-POSI-positions.md

2.9 KiB

View my Position(s)

  • Must be able to view my positions from the trading and portfolio page (7004-POSI-001)

  • Must be able to view the following columns (7004-POSI-002):

    • Market
      • Code
      • Settlement asset symbol
      • Product type
    • Size / Notional
      • Size
      • Notional
    • Entry / Mark
      • Entry
      • Mark
    • Margin
      • Allocated
      • Leverage
    • Liquidation
    • Realised PNL
    • Unrealised PNL
  • Must be able to sort each column by asc and dsc (7004-POSI-003)

    • If the cell shows two values the primary (top value) is used to sort (7004-POSI-014)
  • Must be able to scroll horizontally to see all columns if screen resolution isn't wide enough (7004-POSI-004)

  • Must be able to drag and drop column names to re order (7004-POSI-005)

  • Must be able to remove columns by dragging headers out of the table (7004-POSI-015)

  • Must be able to resize the width of the columns (7004-POSI-006)

  • Must The columns 'Open volume', 'realised PNL' and 'Unrealised PNL' must change color and have a + or - suffix depending on being positive/negative (7004-POSI-007)

  • Must be able to select the 3 dots to view asset details (7004-POSI-009)

  • Must be able to select the close button to close my position (7004-POSI-010)

  • Must be able to see warnings for a market with a tooltip explanation (7004-POSI-011)

  • Must retain previous column sizing on refresh (7004-POSI-012)

  • Must notional column has a tooltip on hover (7004-POSI-013)

  • Must be able to see worst case liquidation price (7004-POSI-016)

  • Must be able to see best and worst case liquidation price when hovering (7004-POSI-017)

  • Must be able to see if your realised PnL was affected by loss socialisation (7004-POSI-018)

  • Must be able to see what type of product the position was opened on (7004-POSI-019)

  • Must not see positions on markets which are closed (7004-POSI-020)

  • Must be able to show closed markets (7004-POSI-021)