Package com.celexus.conniption.foreman

Examples of com.celexus.conniption.foreman.TradeKingForeman


    return true;
  }

  public void update() throws UtilityException
  {
    TradeKingForeman foreman = new TradeKingForeman();
    XMLHandler handler = new XMLHandler();
    try
    {
      response = foreman.makeAPICall(MarketBuilder.getClock(ResponseFormat.XML));
    }
    catch (ForemanException e)
    {
      throw new UtilityException("Make API Call", e);
    }
View Full Code Here


    return response;
  }

  public void update() throws UtilityException
  {
    TradeKingForeman foreman = new TradeKingForeman();
    XMLHandler handler = new XMLHandler();
    try
    {
      response = foreman.makeAPICall(OrdersBuilder.postOrder(account.getId(), b.build().toString(), ResponseFormat.XML));
    }
    catch (ForemanException e)
    {
      throw new UtilityException("Make API Call", e);
    }
View Full Code Here

    this.response = response;
  }

  public void update() throws ModelException
  {
    TradeKingForeman foreman = new TradeKingForeman();
    if (fields != null)
    {
      try
      {
        response = foreman.makeAPICall(MarketBuilder.getQuotes(ResponseFormat.XML, new String[] { symbol.getSymbol() }, fields));
      }
      catch (ForemanException e)
      {
        throw new ModelException("Make API Call", e);
      }
    }
    else
    {
      try
      {
        response = foreman.makeAPICall(MarketBuilder.getQuotes(ResponseFormat.XML, symbol.getSymbol()));
      }
      catch (ForemanException e)
      {
        throw new ModelException("Make API Call", e);
      }
View Full Code Here

    return false;
  }

  public void update() throws ModelException
  {
    TradeKingForeman foreman = new TradeKingForeman();
    XMLHandler handler = new XMLHandler();
    try
    {
      response = foreman.makeAPICall(OrdersBuilder.preview(a.getId(), b.build().toString(), ResponseFormat.XML));
    }
    catch (ForemanException | UtilityException e)
    {
      throw new ModelException("Make API Call", e);
    }
View Full Code Here

    return true;
  }

  public void update() throws ModelException
  {
    TradeKingForeman foreman = new TradeKingForeman();
    if (id == null)
    {
      try
      {
        response = foreman.makeAPICall(AccountsBuilder.getAccounts(ResponseFormat.XML));
      }
      catch (ForemanException e)
      {
        throw new ModelException("Make API Call", e);
      }
    }
    else
    {
      try
      {
        response = foreman.makeAPICall(AccountsBuilder.getAccount(id, ResponseFormat.XML));
      }
      catch (ForemanException e)
      {
        throw new ModelException("Make API Call", e);
      }
View Full Code Here

TOP

Related Classes of com.celexus.conniption.foreman.TradeKingForeman

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.