Package com.quantcomponents.algo

Examples of com.quantcomponents.algo.ExecutionCreationException


  public TradingAgentExecutionHandle createExecution(TradingAgentBindingHandle bindingHandle, ExecutionType type) throws ExecutionCreationException {
    TradingAgentBinding binding = retrieveBinding(bindingHandle);
    ITradingAgentExecution execution;
    ITradingAgent tradingAgent = binding.getConfiguration().newTradingAgent();
    if (!isExecutionTypeAvailable(type)) {
      throw new ExecutionCreationException(type.name() + " execution service not available");
    }
    if (type == ExecutionType.LIVE){
      execution = new TradingAgentExecution(tradingAgent, liveExecutionService);
    } else {
      execution = new SimulatedTradingAgentExecution(tradingAgent, simulatedExecutionServiceFactory.createSimulatedExecutionService());
View Full Code Here

TOP

Related Classes of com.quantcomponents.algo.ExecutionCreationException

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.