- UID
- 2
- 积分
- 2874604
- 威望
- 1387331 布
- 龙e币
- 1487273 刀
- 在线时间
- 13155 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
接口使用- pro = ts.pro_api()
- df = pro.index_daily(ts_code='399300.SZ')
- #或者按日期取
- df = pro.index_daily(ts_code='399300.SZ', start_date='20180101', end_date='20181010')
复制代码 数据样例- ts_code trade_date close open high low \
- 0 399300.SZ 20180903 3321.8248 3320.6898 3325.6070 3291.7842
- 1 399300.SZ 20180831 3334.5036 3333.3801 3356.5757 3310.8726
- 2 399300.SZ 20180830 3351.0942 3385.8052 3402.5626 3349.4688
- 3 399300.SZ 20180829 3386.5736 3393.0527 3398.7139 3377.1231
- 4 399300.SZ 20180828 3400.1705 3408.1502 3416.5929 3388.8143
- 5 399300.SZ 20180827 3406.5735 3339.3894 3406.5735 3339.2646
- 6 399300.SZ 20180824 3325.3347 3308.4778 3353.0445 3291.8654
- 7 399300.SZ 20180823 3320.0257 3308.4589 3336.1123 3285.8141
- 8 399300.SZ 20180822 3307.9545 3328.9693 3328.9693 3299.3938
- 9 399300.SZ 20180821 3326.6489 3271.8402 3331.7077 3270.0302
- 10 399300.SZ 20180820 3267.2498 3238.2150 3267.2498 3209.0115
- 11 399300.SZ 20180817 3229.6198 3305.8954 3311.5729 3224.0999
- 12 399300.SZ 20180816 3276.7276 3251.8556 3315.2031 3231.5561
- 13 399300.SZ 20180815 3291.9760 3371.9590 3372.1369 3288.7088
- 14 399300.SZ 20180814 3372.9137 3386.4832 3391.7290 3356.6142
- 15 399300.SZ 20180813 3390.3441 3369.9812 3396.1883 3336.6956
- 16 399300.SZ 20180810 3405.0191 3398.4139 3424.0411 3380.5731
复制代码 |
|