- UID
- 2
- 积分
- 2892427
- 威望
- 1396245 布
- 龙e币
- 1496182 刀
- 在线时间
- 13313 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-12-25
|
接口示例- pro = ts.pro_api()
- #获取单一股票行情
- df = pro.us_daily(ts_code='AAPL', start_date='20190101', end_date='20190904')
- #获取某一日所有股票
- df = pro.us_daily(trade_date='20190904')
复制代码 数据示例- ts_code trade_date close open high low pre_close pct_change vol amount vwap
- 0 AAPL 20190904 209.19 208.39 209.48 207.32 205.70 1.70 19216821 4008342529.970000 208.59
- 1 AAPL 20190903 205.70 206.43 206.98 204.22 208.74 -1.46 20059575 4120106317.760000 205.39
- 2 AAPL 20190830 208.74 210.16 210.45 207.20 209.01 -0.13 21162563 4410472824.780000 208.41
- 3 AAPL 20190829 209.01 208.50 209.32 206.66 205.53 1.69 21007653 4380322743.230000 208.51
- 4 AAPL 20190828 205.53 204.10 205.72 203.32 204.16 0.67 15957633 3269889907.950000 204.91
- .. ... ... ... ... ... ... ... ... ... ... ...
- 165 AAPL 20190108 150.75 149.56 151.82 148.52 147.93 1.91 41025313 6159076907.780000 150.13
- 166 AAPL 20190107 147.93 148.70 148.83 145.90 148.26 -0.22 54777766 8071925608.900000 147.36
- 167 AAPL 20190104 148.26 144.53 148.55 143.80 142.19 4.27 58607071 8605786116.450000 146.84
- 168 AAPL 20190103 142.19 143.98 145.72 142.00 157.92 -9.96 91312188 13108586866.810000 143.56
- 169 AAPL 20190102 157.92 154.89 158.85 154.23 157.74 0.11 37039739 5814198206.330000 156.97
复制代码 |
|