src/main/java/com/billybyte/dse/debundles/RunGreeks.java
static final void example3_getPortfolioGreeks(String portfolioPath){
		List<DerivativeSensitivityTypeInterface> senses = getSenses();
		DerivativeSetEngine dse = DerivativeSetEngineBuilder.dseForStocksUsingYahoo();
		Map<String, Integer> portfolioMap = getPortfolio(portfolioPath);
		if(portfolioMap == null || portfolioMap.size()<=0){
			Utils.prtObErrMess(RunGreeks.class, "Portfolio Map is null or can't be found");
			return;
		}
		for(DerivativeSensitivityTypeInterface sense : senses){
			Map<String, DerivativeReturn[]> dseResults = 
					dse.getSensitivity(sense, portfolioMap.keySet());
			for(String shortName : portfolioMap.keySet()){
				DerivativeReturn[] drArr =dseResults.get(shortName);
				DerivativeReturn dr = null;
				if(drArr!=null){
					dr = dseResults.get(shortName)[0];
				}
				printDr(shortName, dr, sense);
			}
		}
		
	}
/**
	 * Get a collection of basic greeks from a csv portfolio
	 * @param portfolioPath
	 */
Get a collection of basic greeks from a csv portfolio
@param portfolioPath
Get a collection of basic greeks from a csv portfolio @param portfolioPath
static final void example3_getPortfolioGreeks(String portfolioPath){
		List<DerivativeSensitivityTypeInterface> senses = getSenses();
		DerivativeSetEngine dse = DerivativeSetEngineBuilder.dseForStocksUsingYahoo();
		Map<String, Integer> portfolioMap = getPortfolio(portfolioPath);
		if(portfolioMap == null || portfolioMap.size()<=0){
			Utils.prtObErrMess(RunGreeks.class, "Portfolio Map is null or can't be found");
			return;
		}
		for(DerivativeSensitivityTypeInterface sense : senses){
			Map<String, DerivativeReturn[]> dseResults = 
					dse.getSensitivity(sense, portfolioMap.keySet());
			for(String shortName : portfolioMap.keySet()){
				DerivativeReturn[] drArr =dseResults.get(shortName);
				DerivativeReturn dr = null;
				if(drArr!=null){
					dr = dseResults.get(shortName)[0];
				}
				printDr(shortName, dr, sense);
			}
		}
	}
static final void example3_getPortfolioGreeks ( String portfolioPath ) { List < DerivativeSensitivityTypeInterface > senses = getSenses ( ) ; DerivativeSetEngine dse = DerivativeSetEngineBuilder . dseForStocksUsingYahoo ( ) ; Map < String , Integer > portfolioMap = getPortfolio ( portfolioPath ) ; if ( portfolioMap == null || portfolioMap . size ( ) <= 0 ) { Utils . prtObErrMess ( RunGreeks . class , "Portfolio Map is null or can't be found" ) ; return ; } for ( DerivativeSensitivityTypeInterface sense : senses ) { Map < String , DerivativeReturn [ ] > dseResults = dse . getSensitivity ( sense , portfolioMap . keySet ( ) ) ; for ( String shortName : portfolioMap . keySet ( ) ) { DerivativeReturn [ ] drArr = dseResults . get ( shortName ) ; DerivativeReturn dr = null ; if ( drArr != null ) { dr = dseResults . get ( shortName ) [ 0 ] ; } printDr ( shortName , dr , sense ) ; } } }
Get a collection of basic greeks from a csv portfolio
 @param portfolioPath
Get a collection of basic greeks from a csv portfolio @param portfolioPath