/// <summary>
    /// Retrieves the stock quote from the Internet.
    /// </summary>
    /// <param name="symbol">Specify the symbol of the stock to retrieve.</param>
    /// <returns>The value of the stock quote.</returns>
    public static StockEngine Execute(string symbol)
    {
        StockEngine    engine  = new StockEngine(symbol, false);
        HttpWebRequest request = engine.CreateRequest();

        engine.ProcessResponse(request);
        return(engine);
    }
Beispiel #2
0
 /// <summary>
 /// Retrieves the stock quote from the Internet.
 /// </summary>
 /// <param name="symbol">Specify the symbol of the stock to retrieve.</param>
 /// <returns>The value of the stock quote.</returns>
 public static StockEngine Execute(string symbol)
 {
     StockEngine engine = new StockEngine(symbol, false);
     HttpWebRequest request = engine.CreateRequest();
     engine.ProcessResponse(request);
     return engine;
 }