Skip to main content

stockcodes

用于提取中国沪、深两市上市所有股票代码

installation 安装

pip install stockcodes

Usage 使用

import stockcodes as sc
codes = sc.getCodeList()

Returns 返回值

代码 简称 所属板块
0 600000 浦发银行 沪市主板
...
4241 300999 金龙鱼 创业板

所属板块包括:沪市主板,深市主板,中小板,科创板,创业板

Metadata

Release files for stockcodes 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for stockcodes 0.0.4
File Interpreter ABI Platform
stockcodes-0.0.4-py3-none-any.whl Python 3 none any Details

Release files / stockcodes-0.0.4-py3-none-any.whl

Download URL stockcodes-0.0.4-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c6fda85a338b84865893f857bd8eb8146fd557996999f267894afaf8501a658
BLAKE2b-256 checksum
How to use checksums
9efd3c34ea0186d88d270ae48c7fb2784ba54c5d665d14613fb9973528785c7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.7

Security for stockcodes 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page