當前位置:首頁 » 科技股票 » 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-05-16 09:16:02 瀏覽:827
期貨日內怎麼炒股 發布:2025-05-16 09:14:36 瀏覽:68
受股權是什麼意思 發布:2025-05-16 08:50:30 瀏覽:634
數知科技股票今天最新情況 發布:2025-05-16 08:37:34 瀏覽:820
601628股票歷史行情 發布:2025-05-16 08:36:40 瀏覽:92
基金停牌分紅什麼意思 發布:2025-05-16 08:15:14 瀏覽:936
excel算股票歷史波動率 發布:2025-05-16 08:12:56 瀏覽:576
淘寶理財基金怎麼查詢 發布:2025-05-16 07:07:42 瀏覽:359
理財保險一般保多少年 發布:2025-05-16 07:00:46 瀏覽:709
外國股市為什麼以綠為漲 發布:2025-05-16 06:44:06 瀏覽:647