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.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

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.7.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.7-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rquote-0.2.7.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.7.tar.gz
Algorithm Hash digest
SHA256 9e29ce4ff4c3164f7e7967b571c27312dd55d481e3dc874bf2bb0d64d51c23d0
MD5 53694ef513d1de20e502fac383b9a22b
BLAKE2b-256 5b8f4ff4696f8e497605303955b71e18e1ff264a3f7260c90ae37d65c2a7eb6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rquote-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c9ea320af22ca5471cdae6b59e45e0265fbb719c036295f32d1e7ff23223c0ee
MD5 49ece63462ed9f90bfdb74457717940b
BLAKE2b-256 f9f507ead3ef81ce1045244ef53363b68382e8face83dd585a948d78c7dd6d43

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