抓取股票价格信息有多安全

发布于 2024-07-19 06:52:43 字数 600 浏览 5 评论 0原文

据我所知,目前还没有针对股票价格信息的开发者 API 服务具有以下规定:

  • 免费或每月费用较低(
  • 能够将使用该服务的代码发送给多方(例如 iPhone 应用程序)
  • 无每次交易/查找成本
  • 查找或交易数量没有限制

所以我发现我被迫考虑抓取。 似乎最容易“抓取”的是雅虎的 CSV 服务,该服务链接到 StackOverflow 上的其他地方:

例如: http://finance.yahoo.com/d/quotes.csv?s=msft&f=price

这实际上很容易解析。 但我想知道这是多么脆弱,显然如果雅虎删除了这项服务,或者改变了一些东西,或者严格限制了查找的数量,那么我构建的客户端可能会受到影响。

其他人将如何解决这个问题,或者这只是数据太有价值而无法以我的价格获得的情况? 我曾寻找过相当可靠、延迟 20 分钟的服务,但就是找不到一个看起来 6 个月后仍然存在的服务。

非常感谢任何建议。

As far as I can see, there are no developer-API services for stock-price information with the following stipulations:

  • Free or low-monthly cost (
  • Ability to ship code which uses the service to multiple parties (e.g. an iPhone app)
  • No per-transaction/lookup cost
  • No limit on number of lookups or transactions

So I find that I am forced to look at scraping. It seems that the easiest thing to 'scrape' is Yahoo's CSV service which was linked to elsewhere on StackOverflow:

E.g.: http://finance.yahoo.com/d/quotes.csv?s=msft&f=price

That's actually very easy to parse. But I wonder how fragile this is, clearly if Yahoo removes this service, or changes things, or limits the number of lookups severely, then the clients I build could be affected.

How would others approach this problem, or is it simply a case that the data is too valuable and that it's not available at my price? I have searched for a fairly reliable, 20-min delayed service, but simply can't find one that looks as though it will still be around in 6 months.

Any advice much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

心奴独伤 2024-07-26 06:52:43

您查看过 Google 的市场数据 API 吗?

2013 年 4 月更新 - 市场数据 API 不再可用

Did you look at Google's Market Data API?

Update April 2013 - Market Data API no longer available

风苍溪 2024-07-26 06:52:43

“这些数据太有价值了,而我的价格却买不到?”

正确的。

想一想。 利用这些信息可以创造财富(也可以失去财富)。 您正在与大型银行和股票经纪服务竞争。 这些公司(a)财力雄厚,可以购买、出售和保护此类信息;(b)有动力尽可能保持这些信息的私密性,以加强对股票交易的严格控制。

"the data is too valuable and that it's not available at my price?"

Correct.

Think about it. Fortunes are made (and lost) with this information. You're competing against giant banks and stock broker services. These are companies with (a) deep pockets to buy, sell and protect this kind of information and (b) incentive to keep this information as private as possible to reinforce their tight control over stock trading.

请爱~陌生人 2024-07-26 06:52:43

你需要小心。 除了对网站用户界面的正常依赖之外,我还收到了来自网站的警告。 他们制定了一项针对屏幕抓取的网站政策,我突然同意使用该网站,并且他们看到了我对该网站的定期点击。

You need to be careful. Besides the normal dependencies on the websites ui, I got a warning from a website for doing this. They had a web site policy against screen scraping that I suddenly agreed to by using the site and they saw my regular hits to the site.

|煩躁 2024-07-26 06:52:43

为此有很多低成本服务。 我喜欢 csidata.com。

但是(这是一个很大的但是)......如果您计划重新分发数据(将其发布到网站上,从 iPhone 应用程序访问它,除了在该应用程序上使用它之外几乎可以做任何事情)一台机器),你将支付大笔(比你想象的还要大)的钱。

交易所通过出售这些数据来赚钱。

如果您打算经营一家企业,请不要计划能够从雅虎或其他地方抓取并重新分发。 一旦他们发现你,你就会被关闭。

There are plenty of low-cost services for this. I like csidata.com.

BUT (and this is a big but)..... if you plan on redistributing the data (posting it on a website, accessing it from an iPhone app, pretty much anything except using it on that one machine), you are going to pay big (as in, bigger than you can imagine) bucks.

The exchanges make their money by selling this data.

If you plan on running a business, do not plan on being able to scrape yahoo or somewhere else and redistributing that. Once they discover you, you will be shut down.

戒ㄋ 2024-07-26 06:52:43

我推荐 IQFeed(付费)、esignal(付费)或 eoddate.com(免费选项)。
我的公司使用IDC,但我似乎找不到他们提供的子服务的任何信息。

虽然我的印象是你试图避免支付商业费用,但你需要小心,一分钱一分货。

I'd recommend IQFeed(pay), esignal(pay) or eoddate.com(free options).
My company uses IDC, but I can't seem to find any information on the sub services they offer.

Though I get the impression you are trying to avoid paying for a commercial feed, you need to be careful, you get what you pay for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文