class YahooLookup implements LookupProvider {

	@Override
	public LookupDetails getDetails(String code) throws IOException {
		List<LookupInfo> result = search(code);

		LookupInfo cl = result.stream().filter(li -> li.getCode().equals(code)).findFirst().orElse(null);

		String name = cl.getName();
		String source = parseSource(code);
		String currency = parseTarget(code);

		if (currency == null) {
			currency = rt.getForObject(format(urlLatest, code), YahooModel.class).getQuoteResponse().getResult().get(0).getCurrency().toUpperCase();
		}

		return new LookupDetails(code, name, source, currency, cl.getExchange(), getProviderCode());
	}

}