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.4.tar.gz (11.8 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.4-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rquote-0.2.4.tar.gz
  • Upload date:
  • Size: 11.8 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.4.tar.gz
Algorithm Hash digest
SHA256 fffe94d3b7822fe39bf75d3d0a83c9f597d02049148e8526692717f4a3be0c5f
MD5 8d5386698924edfba0735aa7160a8b37
BLAKE2b-256 3b9bf80efacf6b88db160112b55814485bfdb5654c154e047e550a3507c19a14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rquote-0.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ed40ec64cbe22efa9e5759324c5f4b3221029e92d610c8800606b610d703c4c5
MD5 f7351ff46da6c9e86003d3436f093b13
BLAKE2b-256 52a8d9927a9e43a98fb3795aeefc623040f8d4b18dacb84375cb0a3deaee7208

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