src/main/java/com/billybyte/dse/debundles/RunGreeks.java
static final void example4_DseFromSpring(){
		DerivativeSensitivityTypeInterface sense = new OptPriceDerSen();
		Set<String> shortNameSet = getShortNameSet();
		DerivativeSetEngine dse = DerivativeSetEngineBuilder.dseForStocksUsingYahooAndSpringDefault();
		Map<String, DerivativeReturn[]> dseResults = 
				dse.getSensitivity(sense, shortNameSet);
		for(String shortName : dseResults.keySet()){
			DerivativeReturn dr = dseResults.get(shortName)[0];
			printDr(shortName, dr, sense);
				
		}
	}
/**
	 * Use Spring dependency injection xml files to create DerivativeSetEngine.
	 *   In most cases, this will be the preferred way to create dse's.
	 */
Use Spring dependency injection xml files to create DerivativeSetEngine.
In most cases, this will be the preferred way to create dse's.
Use Spring dependency injection xml files to create DerivativeSetEngine . In most cases this will be the preferred way to create dse ' s .
static final void example4_DseFromSpring(){
		DerivativeSensitivityTypeInterface sense = new OptPriceDerSen();
		Set<String> shortNameSet = getShortNameSet();
		DerivativeSetEngine dse = DerivativeSetEngineBuilder.dseForStocksUsingYahooAndSpringDefault();
		Map<String, DerivativeReturn[]> dseResults = 
				dse.getSensitivity(sense, shortNameSet);
		for(String shortName : dseResults.keySet()){
			DerivativeReturn dr = dseResults.get(shortName)[0];
			printDr(shortName, dr, sense);
		}
	}
static final void example4_DseFromSpring ( ) { DerivativeSensitivityTypeInterface sense = new OptPriceDerSen ( ) ; Set < String > shortNameSet = getShortNameSet ( ) ; DerivativeSetEngine dse = DerivativeSetEngineBuilder . dseForStocksUsingYahooAndSpringDefault ( ) ; Map < String , DerivativeReturn [ ] > dseResults = dse . getSensitivity ( sense , shortNameSet ) ; for ( String shortName : dseResults . keySet ( ) ) { DerivativeReturn dr = dseResults . get ( shortName ) [ 0 ] ; printDr ( shortName , dr , sense ) ; } }
Use Spring dependency injection xml files to create DerivativeSetEngine.
Use Spring dependency injection xml files to create DerivativeSetEngine .