Package com.opengamma.financial.analytics.volatility.surface

Examples of com.opengamma.financial.analytics.volatility.surface.BloombergEquityOptionVolatilitySurfaceInstrumentProvider


    String dataField = message.getString(DATA_FIELD_NAME);
    //backward compatibility
    if (dataField == null) {
      dataField = message.getString("dataFieldName");
    }
    return new BloombergEquityOptionVolatilitySurfaceInstrumentProvider(prefix, postfix, dataField);
  }
View Full Code Here


                new BloombergSwaptionVolatilitySurfaceInstrumentProvider("US", "SV", true, false, " Curncy")))));
  }

  @Test
  public void testEOCycle() {
    final BloombergEquityOptionVolatilitySurfaceInstrumentProvider instrumentProvider = new BloombergEquityOptionVolatilitySurfaceInstrumentProvider("DJX", "Index", MarketDataRequirementNames.IMPLIED_VOLATILITY);
    final VolatilitySurfaceSpecification spec = new VolatilitySurfaceSpecification("DEFAULT", UniqueId.of(ExternalSchemes.BLOOMBERG_TICKER_WEAK.getName(), "DJX Index"),
        SurfaceAndCubeQuoteType.CALL_AND_PUT_STRIKE, instrumentProvider);
    AssertJUnit.assertEquals(spec, cycleObject(VolatilitySurfaceSpecification.class, spec));
    AssertJUnit.assertFalse(spec.equals(
        cycleObject(VolatilitySurfaceSpecification.class,
            new VolatilitySurfaceSpecification("DEFAULT", UniqueId.of(ExternalSchemes.BLOOMBERG_TICKER.getName(), "DJX Index"),
                SurfaceAndCubeQuoteType.CALL_AND_PUT_STRIKE,
                new BloombergEquityOptionVolatilitySurfaceInstrumentProvider("DJX", "Index", MarketDataRequirementNames.MID_IMPLIED_VOLATILITY)))));
  }
View Full Code Here

  private static final String EQUITY_OPTION_PREFIX = "DJX";
  private static final String POSTFIX = "Index";

  @Test
  public void testCycle() {
    final BloombergEquityOptionVolatilitySurfaceInstrumentProvider provider = new BloombergEquityOptionVolatilitySurfaceInstrumentProvider(EQUITY_OPTION_PREFIX, POSTFIX,
        DATA_FIELD_NAME);
    assertEquals(provider, cycleObject(BloombergEquityOptionVolatilitySurfaceInstrumentProvider.class, provider));
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.analytics.volatility.surface.BloombergEquityOptionVolatilitySurfaceInstrumentProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.