Skip to content

火币网行情API最简包装,包装成get_price,返回dataframe格式返回

Notifications You must be signed in to change notification settings

bluewindd/huobi_hq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

huobi_intf

提供火币网数据的接口的python封装,封装成pandas的dataframe格式

code='btc.usdt'
print(code,'最新价格',get_last_price(code))
df=get_price(code,count=5,frequency='4h');      #1d:1天  4h:4小时   60m: 60分钟    15m:15分钟
print(df)



btc.usdt 最新价格 53609.16

                      open	    close   	high       	low	          vol	
2021-04-22 00:00:00	56153.34	55479.34	56332.98	55141.91	1.727785e+08	
2021-04-22 04:00:00	55479.33	53794.76	55479.34	53635.09	2.322080e+08
2021-04-22 08:00:00	53794.81	53506.68	54641.56	52577.19	5.136929e+08
2021-04-22 12:00:00	53506.68	54141.42	54850.00	53456.72	2.157972e+08
2021-04-22 16:00:00	54144.03	53609.17	54260.05	53609.16	4.257941e+07

About

火币网行情API最简包装,包装成get_price,返回dataframe格式返回

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages