/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.timeseries.exchange;
/**
* Allows an exchange to be accessed.
*/
public interface ExchangeDataProvider {
/**
* Gets an exchange by ISO MIC code.
*
* @param micCode the MIC code, not null
* @return the exchange, null if not found
*/
Exchange getExchange(final String micCode);
/**
* Gets an exchange from a description.
*
* Ideally lookups should be via MIC, but we don't always have access to that.
*
* @param description the description (case insensitive)
* @return the exchange, null if not found
*/
Exchange getExchangeFromDescription(final String description);
}