當前位置:首頁 » 科技股票 » python新浪股票介面歷史數據

python新浪股票介面歷史數據

發布時間: 2024-10-18 09:11:07

① 如何用python在掘金量化抓取數據

TuShare財經數據介面 – 可以直接抓取新浪財經、鳳凰財經的網站數據,包括行情、基本面、經濟數據等等。
完全免費,簡潔易用,API設計得非常友好,提取的數據格式是Pandas的DataFrame。同時可以獲取非高頻實時數據(取決於網站更新速度,同事經驗大約是15秒),一個極好的非高頻股票策略數據解決方案。

② 用新浪的股票介面怎麼獲取股票實時行情

建議還是使用成熟的聯系軟體,穩定的通道,避免不必要的損失

③ 請問怎樣用Java獲取股票行情歷史數據新浪、搜狐、百度財經都可以......

publicclassStockConnection{
publicstaticvoidmain(String[]args){
URLur=null;
try{
//搜狐股票行情歷史介面
// ur=newURL("http://q.stock.sohu.com/hisHq?code=cn_300228&start=20130930&end=20131231&stat=1&order=D&period=d&callback=historySearchHandler&rt=jsonp");
//新浪股票行情歷史介面
ur=newURL("http://biz.finance.sina.com.cn/stock/flash_hq/kline_data.php?&rand=random(10000)&symbol=sh600000&end_date=20150809&begin_date=20000101&type=plain");
HttpURLConnectionuc=(HttpURLConnection)ur.openConnection();
BufferedReaderreader=newBufferedReader(newInputStreamReader(ur.openStream(),"GBK"));
Stringline;
while((line=reader.readLine())!=null){
System.out.println(line);
}
}catch(Exceptione){
//TODOAuto-generatedcatchblock
e.printStackTrace();
}
}
}

熱點內容
退市的股票有什麼用 發布:2025-03-13 01:00:42 瀏覽:443
光伏基金怎麼挑選 發布:2025-03-13 00:57:45 瀏覽:795
高銀金融2012年市值多少 發布:2025-03-13 00:39:30 瀏覽:860
做期貨左邊和右邊是什麼意思 發布:2025-03-13 00:33:55 瀏覽:170
國內期貨保證金不夠會怎麼辦 發布:2025-03-13 00:33:07 瀏覽:21
美股什麼市值標的值得投資 發布:2025-03-13 00:22:00 瀏覽:909
盈方微股票歷史最高價 發布:2025-03-13 00:19:37 瀏覽:858
金融市場部和私募哪個好 發布:2025-03-13 00:18:53 瀏覽:204
股權轉換新股東怎麼處理 發布:2025-03-13 00:13:35 瀏覽:317
安謀科技涉及到的股票 發布:2025-03-12 23:44:56 瀏覽:312