Metadata-Version: 2.4
Name: rquote
Version: 0.2.7
Summary: Mostly day quotes of cn/hk/us/fund/future markets, side with quote list fetch
Home-page: https://github.com/kids/rquote
Author: Roizhao
Author-email: roizhao@gmail.com
Requires-Python: >=3.6.1
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.20.0
Requires-Dist: pandas>=1.0.0
Requires-Dist: setuptools>=59.6.0
Requires-Dist: twine>=3.8.0
Dynamic: author
Dynamic: author-email
Dynamic: home-page
Dynamic: requires-python

# rquote

`get_price`方法提供 A股/港股/美股/ETF基金/期货 日线历史数据获取 

使用新浪/腾讯的id形式，如`sh000001`表示上证指数，`sz000001`表示深市000001股票`平安银行`，`sh510050`表示上证50指数ETF，`hk00700`表示港股腾讯。  
期货代码需加`fu`前缀，如`fuAP2110`，美股需加对应交易所后缀，如`usBABA.N`，`usC.N`，`usAAPL.OQ`等  
BTC/USD也放在fu下面，i.d.`fuBTC`  

e.g.
```
from rquote import get_price
sid, nm, df = get_price('sh000001')
df.head() # 数据为pandas dataframe
```
>                open    close     high      low          vol  
> date  
> 2024-02-06  2680.48  2789.49  2802.93  2669.67  502849313.0  
> 2024-02-07  2791.51  2829.70  2829.70  2770.53  547117439.0  
> 2024-02-08  2832.49  2865.90  2867.47  2827.90  531108893.0  
> 2024-02-19  2886.59  2910.54  2910.54  2867.71  458967704.0  
> 2024-02-20  2902.88  2922.73  2927.31  2887.47  350138735.0  

