JSON Quote API - Version 2.1
To request data from our servers, you insert a <script> tag into your web page. The 'src' parameter for this script tag controls which symbols are retrieved.
For example, to request a stock quote for Cisco Systems, you would insert the following:
And to request a quote for Microsoft:
Multiple symbols can be requested by adding a '+' character between them:
Understanding the Response
Once data has been requested, it is loaded into a variable named 'quote', which is an Associative Array.
For example, to access the record for Microsoft you would use the following: quote['MSFT']
However, since each record is only a collection of fields, you would also need to specify which field to access, such as the Last Trade Price: quote['MSFT']['Last']
A number of fields are present, and more are being added as they become available.
|ExchangeName||Name of Exchange|
|ExchangeShortName||Abbreviated Name of Exchange|
|TradeTime||Last Trade Time (milliseconds since Jan 1st 1970)|
|Last||Last Sale Price|
|High||Day's High Price|
|Low||Day's Low Price|
|PrevClose||Previous Day's Close Price|
|ChangePercent||Price Change in Percent|
|ShortName||Abbreviated Company Name|