访问共同基金报价 [英] Accessing Mutual fund quotes

查看:231
本文介绍了访问共同基金报价的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找,而在如何检索在C#中的金融行情,在这种情况下,加拿大共同基金。

I have been looking for a while at how to retrieve financial quotes in c#, in this case, Canadian mutual funds.

这似乎也有此信息,雅虎和谷歌两个主要来源!也似乎有2 preferred方法,API和HTML报废。我的preference将是一个API方法,但我愿意接受任何建议。

It seems there are 2 main sources of information for this, Yahoo and Google! Also there seems to be 2 preferred methods, API and HTML scrapping. My preference would be for an API method, but I am open to any suggestion.

我已经找到了雅虎API是非常不错的使用,但是尽管它适用于像股票一样MSFT失败取回共同基金,如RBCCANADIANI.TO的数据。出于某种原因,这个符号只适用于网站本身。

I have found the Yahoo api to be very nice to use, however although it works for stocks like "MSFT" it fails to retrieve the data for mutual funds like "RBCCANADIANI.TO". For some reason this symbol only works on the web site itself.

谷歌的API似乎需要有一个投资组合设置,为了登录检索报价,我会preFER避免登录有可能的话用一个完全地打开API。

Google's API seems to requires to have a portfolio set up and login in order to retrieve quotes, I would prefer to avoid logins and use a completly opened api if possible.

HTML刮推出了一个全新的一套复杂的,要求用户在HTML页面上找到这里的价格和这样的。需要注意的是谷歌的HTML(http://www.google.com/finance?q=MUTF_CA:RBF556)返回正确的页面,但一看HTML源代码显示,价格是不是一个容易识别标签(ID未设定!)。

HTML scraping introduce a totally new set of complications, asking the user to locate on an html page where the price is and such. Note that Google's html (http://www.google.com/finance?q=MUTF_CA:RBF556) returns the right page, but a look at the html source shows that the price is not in an easily identifiable tag (id not set!).

有没有人尝试过​​类似的事情,我感觉我在这里失去了一些东西:)

Has anybody tried similar things, I have the feeling I am missing something here :)

非常感谢

推荐答案

如果您正在寻找定价数据,我建议喜欢的 IQFeed 。我已经把他们当作一段时间了客户端和他们有共同基金的数据(虽然我不使用它)。如果你不想为它付出你可能会凑吧。

If you are looking for pricing data I would suggest a service like IQFeed. I have used them as a client for some time and they do have mutual fund data (although I don't use it). If you don't want to pay for it you will probably have to scrape it.

这篇关于访问共同基金报价的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆