Package com.opengamma.bbg.loader

Examples of com.opengamma.bbg.loader.BloombergBulkSecurityLoader


   * @param refDataProvider  the reference data provider, not null
   * @param exchangeDataProvider  the data provider, not null
   */
  public BloombergSecurityProvider(ReferenceDataProvider refDataProvider, ExchangeDataProvider exchangeDataProvider) {
    super(BLOOMBERG_DATA_SOURCE_NAME);
    _bloombergBulkSecurityLoader = new BloombergBulkSecurityLoader(refDataProvider, exchangeDataProvider);
  }
View Full Code Here


    }
    return externalIds;
  }

  private void loadSecuritylData(final boolean write, final Set<ExternalId> externalIds) {
    BloombergBulkSecurityLoader bulkSecurityLoader = new BloombergBulkSecurityLoader(getToolContext().getBloombergReferenceDataProvider(), DefaultExchangeDataProvider.getInstance());
    SecurityMaster secMaster = getToolContext().getSecurityMaster();
    Set<ExternalIdBundle> externalIdBundles = new HashSet<>();
    for (ExternalId externalId : externalIds) {
      externalIdBundles.add(externalId.toBundle());
    }
    Map<ExternalIdBundle, ManageableSecurity> loadedSecurities = bulkSecurityLoader.loadSecurity(externalIdBundles);
    for (Map.Entry<ExternalIdBundle, ManageableSecurity> entry : loadedSecurities.entrySet()) {
      SecurityMasterUtils.addOrUpdateSecurity(secMaster, entry.getValue());
      if (isVerbose()) {
        System.out.println("Loading security " + entry.getKey().getExternalId(ExternalSchemes.BLOOMBERG_TICKER));
      }
View Full Code Here

   */
  public BloombergSecuritySource(ReferenceDataProvider refDataProvider, ExchangeDataProvider exchangeDataProvider) {
    ArgumentChecker.notNull(refDataProvider, "Reference Data Provider");
    ArgumentChecker.notNull(exchangeDataProvider, "Exchange Data Provider");
    _refDataProvider = refDataProvider;
    _bloombergBulkSecurityLoader = new BloombergBulkSecurityLoader(refDataProvider, exchangeDataProvider);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.bbg.loader.BloombergBulkSecurityLoader

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.