vega-frontend-monorepo/specs/6001-MARK-find_markets.md
Maciek ef26d03d36
chore(markets): distinguish between product types - add specs (#4564)
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2023-08-17 17:27:15 +01:00

8.3 KiB

Find markets

Closed Markets

  • Must see market's instrument code (6001-MARK-001)

  • Must see market's product type (6001-MARK-071)

  • Must see market's instrument name (sometimes labelled 'description') (6001-MARK-002)

  • Must see status (6001-MARK-003)

  • Must see the settlement date (6001-MARK-004)

    • Must use marketTimestamps.closed field if market is indeed closed (6001-MARK-005)
    • Must fallback to using the settlement-expiry-date:<date> if market is not fully settled but trading is terminated (6001-MARK-006)
    • Must indicate if the date shown is 'expected' (metadata value) or if it is the true closed datetime (marketTimestamps.closed) (6001-MARK-007)
    • Must show the date formatted for the user's locale (6001-MARK-008)
    • Must link to the trading termination oracle spec (6001-MARK-009)
    • Could show the settlement date as words relative to now (E.G. '2 days ago') (6001-MARK-010)
  • Must show the last best bid price (6001-MARK-011)

  • Must show the last best offer price (6001-MARK-012)

  • Must show the final mark price (6001-MARK-013)

  • Must show the settlement price (6001-MARK-014)

    • Must link to the settlement data oracle spec (6001-MARK-015)
    • Must retrieve settlement data from corresponding oracle spec (6001-MARK-016)
  • Must show the settlement asset (6001-MARK-018)

  • Must provide a way to copy the market ID (6001-MARK-020)

  • Must show when a closed market has a successor market (6001-MARK-068)

  • Must get to a successor market from a closed market i.e. there is a link (6001-MARK-069)

  • if there is no markets:

Market Selector

All Markets

Proposed markets