Tushare库之Hibor利率

接口:hibor
描述:Hibor利率
限量:单次最大4000行数据,总量不限制,可通过设置开始和结束日期分段获取
积分:用户积累120积分可以调取,具体请参阅积分获取办法


 

HIBOR (Hongkong InterBank Offered Rate),是香港银行同行业拆借利率。指香港货币市场上,银行与银行之间的一年期以下的短期资金借贷利率,从伦敦同业拆借利率(LIBOR)变化出来的。

 

输入参数

名称 类型 必选 描述
date str N 日期 (日期输入格式:YYYYMMDD,下同)
start_date str N 开始日期
end_date str N 结束日期

 

输出参数

名称 类型 默认显示 描述
date str Y 日期
on float Y 隔夜
1w float Y 1周
2w float Y 2周
1m float Y 1个月
2m float Y 2个月
3m float Y 3个月
6m float Y 6个月
12m float Y 12个月

 

接口调用


pro = ts.pro_api()

df = pro.hibor(start_date='20190101', end_date='20191130')

执行结果:

Out[23]:
         date       on       1w       2w       1m       2m       3m       6m      12m
0    20190801  1.20272  1.54679  1.61643  1.84482  2.21357  2.26286  2.30607  2.31018
1    20190731  1.74679  1.80000  1.82000  1.92786  2.23036  2.27814  2.30821  2.30890
2    20190730  1.61107  1.88679  1.88750  1.97929  2.24500  2.28753  2.30911  2.31402
3    20190729  1.40000  1.87964  1.85500  1.95750  2.24071  2.28786  2.31625  2.31750
4    20190726  1.20357  1.80464  1.80964  1.95786  2.23786  2.26571  2.30679  2.31179
5    20190725  1.15643  1.88929  1.89375  1.99143  2.24679  2.26643  2.30714  2.30982
6    20190724  1.08571  1.84857  1.99286  2.06393  2.25250  2.26875  2.31143  2.31304
7    20190723  1.10454  1.82429  1.96786  2.04571  2.24250  2.25839  2.30998  2.31254
8    20190722  1.33000  1.79679  1.92929  2.01321  2.23321  2.25679  2.30964  2.31107
9    20190719  1.27893  1.48393  1.65964  1.90750  2.19500  2.22642  2.30679  2.30999
10   20190718  1.09536  1.45286  1.59786  1.87214  2.16000  2.22125  2.31179  2.31250
11   20190717  0.89628  1.22893  1.39964  1.81607  2.13250  2.21071  2.31107  2.31071
12   20190716  0.78500  1.22857  1.42876  1.84071  2.13429  2.20535  2.30577  2.30643
13   20190715  0.79929  1.26857  1.49036  1.90929  2.14893  2.21018  2.32229  2.33120
14   20190712  1.17214  1.58750  1.73786  2.18393  2.33000  2.35536  2.36196  2.36250
15   20190711  1.62857  2.23179  2.27946  2.37893  2.44000  2.44737  2.42179  2.41357
16   20190710  1.66714  2.52000  2.49536  2.47000  2.49214  2.49429  2.42393  2.42464
17   20190709  1.98357  3.05464  2.86441  2.66107  2.59804  2.59500  2.43071  2.42857
18   20190708  2.22960  3.17750  3.07750  2.68500  2.60214  2.60357  2.42421  2.42714
19   20190705  3.05143  3.49357  3.45515  2.97964  2.66714  2.65643  2.42375  2.42534
20   20190704  3.14250  3.64571  3.52857  2.99429  2.65357  2.61871  2.42696  2.42500
21   20190702  2.04643  2.22732  2.33357  2.48679  2.43718  2.44036  2.40714  2.40821
22   20190628  2.97357  2.76393  2.50000  2.53107  2.45893  2.45648  2.40400  2.40661
23   20190627  2.56137  3.02000  2.66214  2.54929  2.47393  2.46643  2.41214  2.40839
24   20190626  2.64500  3.03143  2.68429  2.53500  2.45304  2.44571  2.39929  2.40464
25   20190625  2.51714  2.99750  2.68714  2.53286  2.44643  2.44767  2.39714  2.40714
26   20190624  2.42571  2.91857  2.64857  2.49786  2.41321  2.40661  2.38929  2.40643
27   20190621  2.26214  2.41500  2.62321  2.48179  2.41286  2.40842  2.37893  2.40196
28   20190620  1.88464  2.13679  2.56964  2.47214  2.41179  2.40732  2.37893  2.40232
29   20190619  1.63268  1.88036  2.52643  2.43357  2.39250  2.39214  2.36143  2.38750
..        ...      ...      ...      ...      ...      ...      ...      ...      ...
109  20190219  0.56857  0.75107  0.87643  0.99929  1.33000  1.66536  2.04714  2.39250
110  20190218  0.79679  0.79536  0.88500  1.01643  1.33214  1.70929  2.10416  2.43750
111  20190215  0.57393  0.73429  0.86893  1.02464  1.33393  1.71679  2.11143  2.43875
112  20190214  0.59107  0.79393  0.88821  1.04429  1.35143  1.71679  2.11071  2.43804
113  20190213  0.65018  0.86964  0.91464  1.06831  1.34946  1.71679  2.11214  2.43500
114  20190212  0.81929  0.88768  0.94036  1.01053  1.32768  1.71393  2.10967  2.43518
115  20190211  0.73786  0.83143  0.86000  0.99857  1.32843  1.70393  2.11286  2.44000
116  20190201  0.68214  0.86321  0.88179  1.01107  1.33679  1.71893  2.12286  2.44571
117  20190131  1.38872  0.92250  0.91143  1.03571  1.34214  1.72071  2.12554  2.44349
118  20190130  0.60393  0.95929  0.89393  1.02214  1.34256  1.72584  2.12679  2.44500
119  20190129  0.30464  0.60250  0.72214  1.03036  1.35000  1.72571  2.13214  2.44536
120  20190128  0.30071  0.52286  0.73286  1.07714  1.37000  1.74161  2.14500  2.45164
121  20190125  0.29750  0.52036  0.76036  1.11750  1.40357  1.75786  2.16214  2.46929
122  20190124  0.27464  0.50607  0.81714  1.18500  1.45697  1.77643  2.18429  2.47893
123  20190123  0.30589  0.55000  0.84786  1.27036  1.51821  1.81834  2.21571  2.49214
124  20190122  0.33679  0.61071  0.85464  1.30750  1.53011  1.82679  2.22929  2.51353
125  20190121  0.39643  0.60857  0.80802  1.30500  1.53250  1.82643  2.23214  2.51663
126  20190118  0.28964  0.57893  0.74821  1.29975  1.53068  1.82679  2.22357  2.51173
127  20190117  0.30250  0.62895  0.76429  1.30286  1.53357  1.83105  2.22429  2.51643
128  20190116  0.33143  0.62000  0.75571  1.29857  1.53464  1.82578  2.22071  2.51464
129  20190115  0.28518  0.57071  0.71464  1.29929  1.53780  1.83000  2.22714  2.51261
130  20190114  0.24429  0.53607  0.72143  1.30033  1.53607  1.81643  2.23929  2.52232
131  20190111  0.20946  0.53946  0.78286  1.34857  1.56036  1.82679  2.25839  2.52786
132  20190110  0.23661  0.69607  0.91357  1.41893  1.62036  1.86429  2.30143  2.55679
133  20190109  0.24536  0.76714  0.97464  1.45622  1.65286  1.90000  2.31500  2.57393
134  20190108  0.50172  1.11500  1.28143  1.61071  1.78386  1.99214  2.34929  2.61536
135  20190107  0.90429  1.34250  1.50000  1.69143  1.84214  2.02747  2.35339  2.62482
136  20190104  1.81355  1.74714  1.75643  1.82571  1.94084  2.08964  2.36725  2.64216
137  20190103  1.60429  1.61214  1.66643  1.81338  1.94786  2.10536  2.35661  2.63893
138  20190102  1.40000  1.56643  1.63214  1.82071  1.98893  2.14607  2.38214  2.65500

[139 rows x 9 columns]

 Tushare网站注册,麻烦用 推荐 https://tushare.pro/register?reg=241422 链接。

喜欢折腾代码的加群(群号:822286811)一起交流学习【python、VBA、Shell、Linux、dos、爬虫、拆机、装系统技术交流群】,点击链接加入群聊【计算机技术交流】:https://jq.qq.com/?_wv=1027&k=5V7RB2c 

你可能感兴趣的:(语言-解决问题,Study--ing,tushare,金融,金融基础知识以及分析)