以下以GOOG为列, VB.NET为编程语言:
Dim URL As String = "http://finance.yahoo.com/d/quotes.csv?s=GOOG&f=sl1d1t1c1ohgv&e=.csv"
Using x As New WebClient
Dim Fields() As String = Encoding.ASCII.GetString(x.DownloadData(URL)).Replace("""", "").Split(",")
End Using
获取历史股价的程序(C#)见
http://forum.xitek.com/showthread.php?threadid=486789
获取当前股价的程序(VB.NET)
所有跟帖:
•
看了更伤心,5555555
-jinyi-
♀
(0 bytes)
()
01/22/2008 postreply
05:42:42
•
为何伤心?眼下正是做短发财的大好时机!
-墨斗鱼-
♀
(76 bytes)
()
01/22/2008 postreply
06:56:14
•
呵呵,何以见得了?如果股市都1般好,不管short/long不都更好,
-实用电脑-
♂
(95 bytes)
()
01/22/2008 postreply
07:55:06
•
关键是“只有只跌不涨的股票,而没有只涨不跌的股票”。
-墨斗鱼-
♀
(168 bytes)
()
01/22/2008 postreply
08:23:05
•
完了!股票被你一看就跌得没影了!
-π-
♂
(0 bytes)
()
01/22/2008 postreply
06:01:16