net.finmath.timeseries.MarketData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib Show documentation
Show all versions of finmath-lib Show documentation
finmath lib is a Mathematical Finance Library in Java.
It provides algorithms and methodologies related to mathematical finance.
/*
* (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: [email protected].
*
* Created on 13.04.2014
*/
package net.finmath.timeseries;
import java.util.Calendar;
import java.util.Map;
/**
* A set of raw data associated with a given date.
*
* @author Christian Fries
*/
public class MarketData {
private Calendar date;
private Map valuesForSymbols;
public MarketData(Calendar date, Map valuesForSymbols) {
super();
this.date = date;
this.valuesForSymbols = valuesForSymbols;
}
public Calendar getDate() {
return date;
}
public double getValue(String symbol) {
return valuesForSymbols.get(symbol);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy