美国新房开工数量
接口介绍
接口:us_hs
描述:美国新房开工数量数据
限量:单次最大300条,可根据代码或日期循环提取
积分:需要5000积分可以调取,具体请参阅积分获取办法
输入参数
| 名称 |
类型 |
必选 |
描述 |
| trade_date |
str |
N |
交易日期(YYYYMMDD) |
| start_date |
str |
N |
开始日期(YYYYMMDD) |
| end_date |
str |
N |
结束日期(YYYYMMDD) |
输出参数
| 名称 |
类型 |
默认显示 |
描述 |
| trade_date |
str |
Y |
日期 |
| category |
str |
Y |
数据分类 |
| unit |
str |
Y |
单位 |
| value |
float |
Y |
值 |
代码示例
# 导入sdk包
import tushare as ts
# 获取接口实例
pro = ts.pro_api()
# 拉取接口(us_hs)数据
# 获取指定时间区间的美国新房开工数量
df = pro.us_hs(start_date="20260101", end_date="20260901")
print(df)
数据结果
trade_date category unit value
0 20260901 Housing Starts Thousand units 1221.000000
1 20260801 Housing Starts Thousand units 1275.000000
2 20260701 Housing Starts Thousand units 1239.000000
3 20260601 Housing Starts Thousand units 1427.000000
4 20260501 Housing Starts Thousand units 1177.000000
5 20260401 Housing Starts Thousand units 1465.000000
6 20260301 Housing Starts Thousand units 1502.000000
7 20260201 Housing Starts Thousand units 1356.000000
8 20260101 Housing Starts Thousand units 1487.000000