Examples of ITradingAgent


Examples of com.quantcomponents.algo.ITradingAgent

 
  @Override
  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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.