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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rquote-0.2.6.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.6.tar.gz
Algorithm Hash digest
SHA256 4d1340de2bc5d06b5f5797d772d98514a3423fbbc36132edae4722e3f4af922a
MD5 d6b9012391eb393912335498bb927521
BLAKE2b-256 3534617cee5d535f2388fd3a242a3d3fe55f2a82a458c60f649348592e6bca0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rquote-0.2.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 335b2fdd2e68ab121154b1e07cf60fa6e0555f1e4cf5685b25d50f3a6983e37a
MD5 482f5ecc8db299a75a96bb9661072e70
BLAKE2b-256 c80071b3db6f6dcd3f6d3bb94dd0bcb5e55f1c2279ead4ab44087217dafb673c

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