你可以試試GOOGLE SPREADSHEET 的自動取價功能例如: =GOOGLEFINANCE(0823) , 都很方便的啊
已用了googlefinance來抓price etc.但怎樣下載history呢?
後記:原來googlefinance可抓history, e.g. B1=googlefinance(concatenate("HKG:",left(sheet1!A28,4)),"all",today()-5*365,today(),"DAILY")A2==DATEVALUE(SUBSTITUTE(LEFT(B2,IF(MID(B2,9,1)=" ",9,10)),"/","-"))Datevalue Date Open High Low Close Volume41505 2013/8/19 下午 4:00:00 23.1 23.15 22.95 23 850920741506 2013/8/20 下午 4:00:00 23 23.05 22.45 22.45 3927743241507 2013/8/21 下午 4:00:00 22.5 22.5 22.15 22.4 25118674
Very good !!
你可以試試GOOGLE SPREADSHEET 的自動取價功能
回覆刪除例如: =GOOGLEFINANCE(0823) , 都很方便的啊
已用了googlefinance來抓price etc.但怎樣下載history呢?
刪除後記:原來googlefinance可抓history, e.g. B1=googlefinance(concatenate("HKG:",left(sheet1!A28,4)),"all",today()-5*365,today(),"DAILY")
刪除A2==DATEVALUE(SUBSTITUTE(LEFT(B2,IF(MID(B2,9,1)=" ",9,10)),"/","-"))
Datevalue Date Open High Low Close Volume
41505 2013/8/19 下午 4:00:00 23.1 23.15 22.95 23 8509207
41506 2013/8/20 下午 4:00:00 23 23.05 22.45 22.45 39277432
41507 2013/8/21 下午 4:00:00 22.5 22.5 22.15 22.4 25118674
Very good !!
刪除