All Known Subinterfaces:
MarketCancel, MarketWithOdds, MarketWithProbabilities, MarketWithRollbackSettlement, MarketWithSettlement
All Known Implementing Classes:
MarketWithProbabilitiesImpl

public interface Market
The basic Market interface
  • Method Details

    • getId

      int getId()
      Returns:
      the id of the market
    • getSpecifiers

      Map<String,String> getSpecifiers()
      Returns the Map of specifiers for this market (can be empty)
      Returns:
      the specifiers for this market (can be empty)
    • getName

      String getName()
      Returns:
      the name of the market (specifier placeholders are replaced with actual values)
    • getName

      String getName(Locale locale)
      Parameters:
      locale - the Locale in which the name should be returned
      Returns:
      - the name of the market translated in the specified Locale (specifier placeholders are replaced with actual values)
    • getMarketDefinition

      MarketDefinition getMarketDefinition()
      Returns:
      the associated market definition
    • getAdditionalMarketInfo

      Map<String,String> getAdditionalMarketInfo()
      Returns additional market information(extended market specifiers) - can be empty
      Returns:
      additional market information(extended market specifiers)
    • getNames

      default Map<Locale,String> getNames(List<Locale> locales)
      Parameters:
      locales - the list of Locale in which the name should be returned
      Returns:
      - the names of the market translated in the specified Locale (specifier placeholders are replaced with actual values)