I understand that the xbrl
extension has an xml format that could be parsed
XBRL wiki
If you have a url
from where to download you could use the one you can use
WebClient.DownloadFile Method
You get the file and process it using Linq to Xml
Of course parsing the nodes will depend on the structure of the document.
Once you get the data you can register a db to then consume media web services you call using $.ajax
of jquery
Calling ASP.Net WebMethod using jQuery AJAX
with this you can consume the parsed data from javascript
> > > I've seen that this api from yahoo returns a value..in this case Apple, google and Microsoft. but I do not know how it works to recover all the values
As I can analyze the link. this returns an extension file csv
so the values are separated by coma
To download it use the same as before commenting the WebClient.DownloadFile()
or WebClient.DownloadString()
and to process the data you would use the CsvHelper
To obtain the Stock Market data you can obtain them in many ways you can obtain them by means of cvs
for example:
http://finance.yahoo.com/d/quotes.csv?s=GE+PTR+MSFT&f=snd1l1yr
or
http://finance.yahoo.com/d/quotes.csv?s=AAPL+GOOG+MSFT&f=snd1l1yr
Here is an image with some claves
TAGS
(1letra or 1letra and 1 number, the rest is the action to request)
Image taken from google image
Example:
http://download.finance.yahoo.com/d/[NOMBREFICHERO]?s=[TICKERSYMBOL]&f=[TAGS]&e=.csv
http://finance.yahoo.com/d/[NOMBREFICHERO]?s=[TICKERSYMBOL]&f=[TAGS]&e=.csv
[FILE NAME] - Name of the file to save ("quotes.csv")
[TICKERSYMBOL] - Ticker symbol of the company (for multiple Ticker separated by commas)
[TAGS] - The stock information you request ("sl1d1t1c1ohgv" for example)
Here you can see the Market, in your comments you say the IBEX35:
link ^ IBEX
You can see the ticker symbol
for each company:
About ABE.MC
http://finance.yahoo.com/d/quotes.csv?s=ABE&f=snd1l1yr&e=.csv
About ABE.MC
and others add the ticker separated by , for example or by + :
http://finance.yahoo.com/d/quotes.csv?s=ABE,AMS&f=snd1l1yr&e=.csv
You can also use Yahoo Query Language , among others you can use the API:
Api Finazas Yahoo
You can also look something like:
link
link