Skip to content

Instantly share code, notes, and snippets.

View febintt's full-sized avatar

Febin T T febintt

  • Algotree
  • Kochin
View GitHub Profile
@febintt
febintt / CustomMarketValueFunction.java
Created December 24, 2013 06:20
Market value function.
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.algotree.function;
import java.util.Collections;
import java.util.Set;
@febintt
febintt / CustomMarketValueWeightFunction.java
Last active January 1, 2016 07:09
market value weight.
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.algotree.function;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
@febintt
febintt / EquityViewDefinitionPopulator.java
Created December 13, 2013 13:38
Created a new View containing the new value
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.algotree.function;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@febintt
febintt / MyFunctions.java
Created December 13, 2013 13:36
Adding the function to the function repo
/**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.algotree.function;
import java.util.List;
import com.opengamma.engine.function.config.AbstractFunctionConfigurationBean;
@febintt
febintt / MarketValueFromHistoricalValueFunction
Created December 13, 2013 13:34
Market value of a portfolio from Historical CLOSE value.
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.algotree.function;
import java.util.Collections;
import java.util.Set;
@febintt
febintt / ClientApp.java
Created December 13, 2013 07:35
Client App
package com.algotree.my_project;
import java.net.URI;
import java.net.URISyntaxException;
import org.threeten.bp.Instant;
import com.opengamma.component.factory.RemoteComponentFactory;
import com.opengamma.engine.marketdata.spec.MarketData;
import com.opengamma.engine.view.ViewComputationResultModel;
@febintt
febintt / MyFunctions.java
Created December 13, 2013 07:29
functions save
/**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.algotree.function;
import java.util.List;
import com.opengamma.engine.function.config.AbstractFunctionConfigurationBean;
@febintt
febintt / ExampleFunctionConfigurationPopulator
Created December 13, 2013 07:25
Function Configuration Populator
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.examples.simulated.loader;
import java.util.Collections;
import com.google.common.collect.ImmutableList;
@febintt
febintt / EqurityViewDefinitionPopulator
Created December 11, 2013 13:08
a new view definition is populated to view config.
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.algotree.function;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@febintt
febintt / ExampleFunctionConfigurationPopulator
Created December 11, 2013 13:04
added a line in ExampleFunctionConfigurationPopulator
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.examples.simulated.loader;
import java.util.Collections;
import com.google.common.collect.ImmutableList;