Skip to main content

Mostly day quotes of cn/hk/us/fund/future markets, side with quote list fetch

Project description

rquote

get_price方法提供 A股/港股/美股/ETF基金/期货 日线(及其他周期)历史数据获取

使用新浪/腾讯的id形式,如sh000001表示上证指数,sz000001表示深市000001股票平安银行sh510050表示上证50指数ETF,hk00700表示港股腾讯。
期货代码需加fu前缀,如fuAP2110,美股需加对应交易所后缀,如usBABA.NusC.NusAAPL.OQ
BTC/USD放在fu下面,i.e.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

Notes:
使用GenImage需要补充依赖

kaleido>=1.0.0rc0
plolty>=5.0.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rquote-0.2.5.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rquote-0.2.5-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file rquote-0.2.5.tar.gz.

File metadata

  • Download URL: rquote-0.2.5.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for rquote-0.2.5.tar.gz
Algorithm Hash digest
SHA256 b259f9c06195a9d788a46323fbf9ca2c046351103823b84b72facf8d48794d52
MD5 14189e36b4c23f8a45113b6a8c518ba8
BLAKE2b-256 aa43540d5da233205177f554363e94b685953e6bf6782cc68d3601a2fc90f603

See more details on using hashes here.

File details

Details for the file rquote-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: rquote-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for rquote-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 66191263cd8d3323d2eea0bedaaa1d8499be78f773320ff064275309c75cb09a
MD5 174c78829540d25cb17ef2d0c9070031
BLAKE2b-256 59db8d9eff93a0d127aaaeec41c075dcf0e150de658a6028c8aca733540dc30b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page