Package com.quantcomponents.marketdata

Examples of com.quantcomponents.marketdata.IStockDatabase


  @Override
  public synchronized TradingAgentBindingHandle createBinding(TradingAgentConfigurationHandle tradingAgentConfigurationHandle, Map<String, ServiceHandle<IStockDatabaseHost>> inputSeriesHandles, String name) {
    Map<String, IStockDatabase> inputStockDatabases = new HashMap<String, IStockDatabase>();
    for (Map.Entry<String, ServiceHandle<IStockDatabaseHost>> entry : inputSeriesHandles.entrySet()) {
      IStockDatabase stockDb = stockDatabaseHost.getStockDatabase(entry.getValue());
      inputStockDatabases.put(entry.getKey(), stockDb);
    }
    TradingAgentBindingHandle bindingHandle = tradingManager.createBinding(tradingAgentConfigurationHandle, inputStockDatabases, name);
    stockDbHandlesByBindingHandle.put(bindingHandle, inputSeriesHandles);
    return bindingHandle;
View Full Code Here

TOP

Related Classes of com.quantcomponents.marketdata.IStockDatabase

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.