获取实时市场/股票报价在C#/ Java的 [英] Getting real-time market/stock quotes in C#/Java

查看:625
本文介绍了获取实时市场/股票报价在C#/ Java的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做出类似的行为对股市大的过滤器的计划。要做到这一点,我需要实时(或延迟)从市场报价。我开始要求从雅虎网页,accordingand解析HTML的股票,并解析HTML获取股票报价。我想知道如何做到这一点请求和解析HTML。有一些办法可以要求只股票报价及其信息?我知道有些应用程序做到这一点,我很好奇他们是如何做到这一点,因为请求网页,解析他们是非常耗时的。

I would like to make an program that acts like a big filter for stocks. To do so, I need to have real-time (or delayed) quotes from the market. I started getting stock quotes by requesting pages from yahoo, accordingand parsing the html to the ticker, and parsing the html. I was wondering how to do this requesting and parsing html. Is there some way I can request only the stock quotes and its info? I know some applications do this, and I am very curious how they do it, because requesting web pages and parsing them is very time-consuming.

谢谢,
戴夫

推荐答案

解析网页的输出是一个笨蛋的游戏。它总是在不断变化,除非你愿意大量投资于一些非常有弹性分析器你会花你的生活与它摆弄。使用Web服务,谷歌提供一张 http://googleblog.blogspot.com/ 2007/01 /实时引号换free.html

Parsing the output of the webpage is a chump's game. It is always changing and unless you're willing to heavily invest in some sort of very resilient parser you're going to spend your life twiddling with it. Use a web service, google offers one http://googleblog.blogspot.com/2007/01/real-time-quotes-for-free.html

这篇关于获取实时市场/股票报价在C#/ Java的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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