Stock Indexes - How to Query
Last Post 04-26-2013 09:21 AM by Chad Nash. 3 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages Not Resolved
Jeremy FarranceUser is Offline
going with the flow
going with the flow
Posts:31
Avatar

--
04-25-2013 03:47 PM
    How would I get the indexes to display, for example: 

    Dow Jones 
    14,724.26 
    Up 125.06 

    NASDAQ 
    3,254,77 
    Up 38.28 

    S&P 500 
    1,569.15 
    Up 16.79 

    Also, is there an easy way to get the footer to output a time-stamp, something simple like, "As of 04/25/13 at 12:35 PM ET"
    Jeremy FarranceUser is Offline
    going with the flow
    going with the flow
    Posts:31
    Avatar

    --
    04-25-2013 04:11 PM
    I stumbled on to part of the answer. It looks like you are using Yahoo's service. So I figured out how to display NASDAQ and S&P 500 using "^IXIC" and "^GSPC" respectively. However, when I follow the same logic for the Dow Jones Index and Dow Jones Composite ("^DJI" and "^DJA") I get an error for the former and no data for the latter:

    
    Apple Inc.
    408.38
    +2.918
    
    Exception occurred - Please check web service URL within settings.
    
    ^DJA
    0.00
    N/A
    
    NASDAQ Composite
    3289.99
    +20.34
    
    S&P 500
    1585.16
    +6.37
     
    Jeremy FarranceUser is Offline
    going with the flow
    going with the flow
    Posts:31
    Avatar

    --
    04-25-2013 04:14 PM
    Okay, then I also just noticed in the page source, inserted just above the DOCTYPE at the very start of the HTML output:

       at DataSprings.DNN.Modules.StockTicker.StockTicker.rptSymbols_ItemDataBound(Object sender, RepeaterItemEventArgs e)Index was outside the bounds of the array.<!DOCTYPE html>
    <html  lang="en-US">
    <head id="Head"><title>
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    04-26-2013 09:21 AM
    Hi Jeremy,

    This error just basically means that it is not able to find that specific stock symbol and so it will throw that error out on the top of the page. From our research Yahoo has changed this a few times where you cannot access that stock symbol (I have no idea why but if you Google Yahoo and Dow Jones stock symbol you will find many threads related to it.)


    Thanks,

    Chad


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi