由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Looking for code example to get stock data
相关主题
C, how is a string cast into a int?异步通讯代码的简化
send soap request message to Oracle Soap Webservice in class asp or asp.net谁熟dotnet 的webservice?
万能的买买提,请教一个jenkins的问题google maps API other than Javascript?
没完的“unresolved external symbol” in c++ compilingvisual stdio 2005 question
GO似乎是目前最难反编译的代码了What is automatic space allocation in C++?
Three C/C++ Programming QuestionsAny possibility to make this expression faster?
请教一个design的问题[合集] 这是个数学问题吧? 想不出来
问个问题Java里如何把一个webservice的返回读到一个String里?
相关话题的讨论汇总
话题: data话题: looking话题: example话题: code话题: get
进入Programming版参与讨论
1 (共1页)
q********e
发帖数: 161
1
Hi friends,
I am looking for code example to get market data into my application? Anyone
know any free/cheap webservice/api available? Or if you have any code
snippets to grap the data directly from web?
Many Thanks !
quick
w***g
发帖数: 5958
2
#!/bin/bash
#
# I use this to get stock data from Yahoo.
# opentick is a good choice if you want more than this.
#
if [ -z "$1" ]
then
printf "Fetch historical data from yahoo.com.\n"
printf "Usage:\n\t%s [output]\n\n" $0
exit
fi
wget --quiet -O $2 "http://ichart.finance.yahoo.com/table.csv?s=$1&g=d"
n=`head -1 $2 | grep "Date,Open,High,Low,Close,Volume,Adj Close" | wc -l`
if [ $n -ne 1 ]
then
rm $2
printf "Error fetching the symbol \"$1\".\n"

【在 q********e 的大作中提到】
: Hi friends,
: I am looking for code example to get market data into my application? Anyone
: know any free/cheap webservice/api available? Or if you have any code
: snippets to grap the data directly from web?
: Many Thanks !
: quick

1 (共1页)
进入Programming版参与讨论
相关主题
Java里如何把一个webservice的返回读到一个String里?GO似乎是目前最难反编译的代码了
how to get reference.vb file? (转载)Three C/C++ Programming Questions
问个问题请教一个design的问题
请教这段Code到底是哪错了?问个问题
C, how is a string cast into a int?异步通讯代码的简化
send soap request message to Oracle Soap Webservice in class asp or asp.net谁熟dotnet 的webservice?
万能的买买提,请教一个jenkins的问题google maps API other than Javascript?
没完的“unresolved external symbol” in c++ compilingvisual stdio 2005 question
相关话题的讨论汇总
话题: data话题: looking话题: example话题: code话题: get