获取股票行情API 接口

2021-01-07 21:30

阅读:680

标签:常用   timestamp   list   evel   seq   ror   ide   ext   股票行情   

1. 常规的行情网站

#新浪财经
http://hq.sinajs.cn/list=sh601003,sh601001
var hq_str_sh601003="柳钢股份,5.170,5.180,5.140,5.180,5.080,5.140,5.150,11017629,56533311.000,23500,5.140,28600,5.130,37500,5.120,67000,5.110,139600,5.100,130200,5.150,187600,5.160,124500,5.170,113920,5.180,106200,5.190,2021-01-05,15:00:05,00,";
var hq_str_sh601001="晋控煤业,6.280,6.340,6.100,6.340,5.900,6.100,6.110,48093877,291370070.000,951300,6.100,93700,6.090,38100,6.080,22600,6.070,27100,6.060,148200,6.110,235700,6.120,86800,6.130,77400,6.140,83300,6.150,2021-01-05,15:00:00,00,";

# 腾讯财经
http://qt.gtimg.cn/q=sh601003,sh601001
v_sh601003="1~柳钢股份~601003~5.14~5.18~5.17~110176~55740~54437~5.14~235~5.13~286~5.12~375~5.11~670~5.10~1396~5.15~1302~5.16~1876~5.17~1245~5.18~1139~5.19~1062~~20210105154040~-0.04~-0.77~5.18~5.08~5.14/110176/56533311~110176~5653~0.43~6.28~~5.18~5.08~1.93~131.73~131.73~1.15~5.70~4.66~1.17~-3662~5.13~8.00~5.61~~~0.93~5653.3311~0.0000~0~ ~GP-A~-0.96~~8.75~18.38~7.63"; v_sh601001="1~晋控煤业~601001~6.10~6.34~6.28~480939~220673~260266~6.10~9513~6.09~937~6.08~381~6.07~226~6.06~271~6.11~1482~6.12~2357~6.13~868~6.14~774~6.15~833~~20210105154056~-0.24~-3.79~6.34~5.90~6.10/480939/291370070~480939~29137~2.87~10.38~~6.34~5.90~6.94~102.10~102.10~1.38~6.97~5.71~0.76~5014~6.06~10.04~11.38~~~1.30~29137.0070~0.0000~0~ ~GP-A~-3.17~~0.00~13.28~4.97";

#雪球
https://stock.xueqiu.com/v5/stock/realtime/quotec.json?symbol=SH601003,SH601001
{"data":[{"symbol":"SH601003","current":5.14,"percent":-0.77,"chg":-0.04,"timestamp":1609830000000,"volume":11017629,"amount":5.653331135E7,"market_capital":1.3172757048E10,"float_market_capital":1.3172757048E10,"turnover_rate":0.43,"amplitude":1.93,"open":5.17,"last_close":5.18,"high":5.18,"low":5.08,"avg_price":5.13116854361315,"trade_volume":null,"side":null,"is_trade":false,"level":2,"trade_session":null,"trade_type":null,"current_year_percent":-0.96,"trade_unique_id":null,"type":11,"bid_appl_seq_num":null,"offer_appl_seq_num":null,"volume_ext":null,"traded_amount_ext":null},{"symbol":"SH601001","current":6.1,"percent":-3.79,"chg":-0.24,"timestamp":1609830000000,"volume":48093877,"amount":2.9137007022E8,"market_capital":1.020957E10,"float_market_capital":1.020957E10,"turnover_rate":2.87,"amplitude":6.94,"open":6.28,"last_close":6.34,"high":6.34,"low":5.9,"avg_price":6.058361030448846,"trade_volume":null,"side":null,"is_trade":false,"level":2,"trade_session":null,"trade_type":null,"current_year_percent":-3.17,"trade_unique_id":null,"type":11,"bid_appl_seq_num":null,"offer_appl_seq_num":null,"volume_ext":null,"traded_amount_ext":null}],"error_code":0,"error_description":null}

相比较而言,新浪的数据也足够

2. 常用接口框架

TUshare, STOKBAO

3. 量化系统

同花顺,米宽

获取股票行情API 接口

标签:常用   timestamp   list   evel   seq   ror   ide   ext   股票行情   

原文地址:https://www.cnblogs.com/nerocm/p/14237409.html


评论


亲,登录后才可以留言!