{"id":21767859,"url":"https://github.com/mouday/stock-open-api","last_synced_at":"2025-07-19T11:07:19.345Z","repository":{"id":181808546,"uuid":"667305367","full_name":"mouday/stock-open-api","owner":"mouday","description":"股票数据接口","archived":false,"fork":false,"pushed_at":"2024-04-11T06:56:31.000Z","size":3029,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-11T07:49:27.982Z","etag":null,"topics":["api","stock"],"latest_commit_sha":null,"homepage":"https://mouday.github.io/stock-open-api/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mouday.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-07-17T07:55:44.000Z","updated_at":"2024-04-15T04:39:32.232Z","dependencies_parsed_at":null,"dependency_job_id":"cf736deb-cc41-46db-adba-1b747ff9e24c","html_url":"https://github.com/mouday/stock-open-api","commit_stats":null,"previous_names":["mouday/stock-open-api"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouday%2Fstock-open-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouday%2Fstock-open-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouday%2Fstock-open-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouday%2Fstock-open-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mouday","download_url":"https://codeload.github.com/mouday/stock-open-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248735636,"owners_count":21153439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","stock"],"created_at":"2024-11-26T13:31:12.941Z","updated_at":"2025-04-13T15:34:23.444Z","avatar_url":"https://github.com/mouday.png","language":"Python","funding_links":[],"categories":["信息搜集"],"sub_categories":[],"readme":"# Stock Open Api\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/stock-open-api)](https://pypi.org/project/stock-open-api)\n[![PyPI](https://img.shields.io/pypi/v/stock-open-api.svg)](https://pypi.org/project/stock-open-api)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/stock-open-api?label=pypi%20downloads)](https://pypi.org/project/stock-open-api)\n[![Documentation Status](https://readthedocs.org/projects/stock-open-api/badge/?version=latest)](https://stock-open-api.readthedocs.io/zh_CN/latest/?badge=latest)\n\n股票数据接口\n\n数据来自网上公开数据，仅做学习交流使用，不可用于商业用途\n\n- github: [https://github.com/mouday/stock-open-api](https://github.com/mouday/stock-open-api)\n- pypi: [https://pypi.org/project/stock-open-api/](https://pypi.org/project/stock-open-api/)\n- 项目文档：[https://stock-open-api.readthedocs.io/zh_CN/latest/](https://stock-open-api.readthedocs.io/zh_CN/latest/stock_open_api.html#module-stock_open_api)\n- 项目主页：[https://mouday.github.io/stock-open-api/](https://mouday.github.io/stock-open-api/)\n\n## 安装\n\n```bash\npip install stock-open-api\n\n# 或者\npip3 install -U stock-open-api -i https://pypi.org/simple\n```\n\n## 使用示例\n\n- 约定：所有接口数据都放在`api` 子包下\n- 命名规则：`api/数据源/数据源子分类.方法名`\n- 返回数据：字典的键以页面上显示的名称为准\n\n如下获取`上海证券交易所`为数据源的的股票公司概况\n\n```python\n# -*- coding: utf-8 -*-\n\nfrom stock_open_api.api.sse import sh_stock\n\nif __name__ == '__main__':\n    print(sh_stock.get_company_info('688001'))\n```\n\n返回数据\n\n```json\n{\n  \"公司代码\": \"688001\",\n  \"上市日-A\": \"\",\n  \"代码-A\": \"688001\",\n  \"简称-A\": \"华兴源创\",\n  \"代码-B\": \"-\",\n  \"上市日-B\": \"\",\n  \"可转债简称\": \"华兴转债\",\n  \"可转债代码\": \"\",\n  \"可转债转股简称\": \"华兴转债\",\n  \"可转债转股代码\": \"118003\",\n  \"公司简称-中\": \"华兴源创\",\n  \"公司简称-英\": \"HYC\",\n  \"公司全称-中\": \"苏州华兴源创科技股份有限公司\",\n  \"公司全称-英\": \"Suzhou HYC Technology CO., LTD\",\n  \"扩位证券简称\": \"苏州华兴源创科技\",\n  \"上市时是否盈利\": \"1\",\n  \"是否具有表决权差异安排\": \"0\",\n  \"注册地址\": \"苏州工业园区青丘巷8号\",\n  \"通讯地址\": \"苏州工业园区青丘巷8号\",\n  \"邮编\": \"215000\",\n  \"法定代表人\": \"陈文源\",\n  \"董事会秘书姓名\": \"\",\n  \"E-mail\": \"dongmiban@hyc.cn\",\n  \"联系电话\": \"\",\n  \"网址\": \"http://www.hyc.cn\",\n  \"CSRC行业\": \"高端装备\",\n  \"SSE行业\": \"工业\",\n  \"所属省/直辖市\": \"江苏\",\n  \"状态-A\": \"上市\",\n  \"状态-B\": \"-\",\n  \"是否上证180样本股\": \"-\",\n  \"是否境外上市\": \"-\",\n  \"境外上市地\": \"-\"\n}\n```\n\n## 已实现整合数据\n\n数据源：上海证券交易所 [www.sse.com.cn](http://www.sse.com.cn/)\n\n| 数据 | 方法名 |\n| - | - | \n| [公司概况](http://www.sse.com.cn/assortment/stock/list/info/company/index.shtml?COMPANY_CODE=688001) | api/sse/sh_stock.get_company_info |\n\n数据源：东方财富 [www.eastmoney.com](https://www.eastmoney.com/)\n\n| 数据 | 方法名 |\n| - | - | \n| [港股-列表](http://www.sse.com.cn/assortment/stock/list/info/company/index.shtml?COMPANY_CODE=688001) | api/eastmoney/hk_stock.get_list |\n| [港股-公司资料](http://emweb.securities.eastmoney.com/PC_HKF10/pages/home/index.html?code=00491\u0026type=web\u0026color=w#/CompanyProfile) | api/eastmoney/hk_stock.get_org_profile |\n| [港股-证券资料](http://emweb.securities.eastmoney.com/PC_HKF10/pages/home/index.html?code=00491\u0026type=web\u0026color=w#/CompanyProfile) | api/eastmoney/hk_stock.get_security_info |\n| [中国概念股-列表](http://quote.eastmoney.com/center/gridlist.html#us_chinese) | api/eastmoney/us_chinese_stock.get_list |\n| [中国概念股-公司资料](http://emweb.eastmoney.com/PC_USF10/pages/index.html?code=PWM\u0026type=web\u0026color=w#/gsgk/gszl) | api/eastmoney/us_chinese_stock.get_org_profile |\n| [中国概念股-证券资料](http://emweb.eastmoney.com/PC_USF10/pages/index.html?code=PWM\u0026type=web\u0026color=w#/gsgk/zqzl) | api/eastmoney/us_chinese_stock.get_security_info |\n| [科创板-列表](http://quote.eastmoney.com/center/gridlist.html#kcb_board) | api/eastmoney/kcb_stock.get_list |\n| [科创板-基本资料+发行相关](http://emweb.securities.eastmoney.com/PC_HSF10/CompanySurvey/Index?type=web\u0026code=sh603801) | api/eastmoney/kcb_stock.get_company_info |\n| [新三板-列表](http://quote.eastmoney.com/center/gridlist.html#neeq_stocks) | api/eastmoney/neeq_stock.get_list |\n| [新三板-公司资料+证券资料](http://xinsanban.eastmoney.com/F10/CompanyInfo/Introduction/839499.html) | api/eastmoney/neeq_stock.get_company_info |\n| [A股-基本资料+发行相关](http://emweb.securities.eastmoney.com/PC_HSF10/CompanySurvey/Index?type=web\u0026code=sh603801) | api/eastmoney/company.get_company_info |\n| [深圳A股-基本资料+发行相关](http://emweb.securities.eastmoney.com/PC_HSF10/CompanySurvey/Index?type=web\u0026code=sh603801) | api/eastmoney/sz_stock.get_company_info |\n| [上证A股-基本资料+发行相关](http://emweb.securities.eastmoney.com/PC_HSF10/CompanySurvey/Index?type=web\u0026code=sh603801) | api/eastmoney/sh_stock.get_company_info |\n\n数据源：犀牛之星 [https://www.ipo3.com/](https://www.ipo3.com/)\n\n| 数据 | 方法名 |\n| - | - | \n| [股票详情](https://www.ipo3.com/company-show/stock_code-430510.html) | api/ipo3/neeq_stock.get_company_info |\n| [利润表](https://www.ipo3.com/company-show/stock_code-430510-tab-finance-date_type-001.html#content) | api/ipo3/neeq_stock.get_income_statement_list |\n| [资产负债表](https://www.ipo3.com/company-show/stock_code-430510-tab-finance-date_type-001-type-debt.html#content) | api/ipo3/neeq_stock.get_balance_sheet_list |\n| [现金流量表](https://www.ipo3.com/company-show/stock_code-430510-tab-finance-date_type-001-type-cash.html#content) | api/ipo3/neeq_stock.get_cash_flows_statement_list |\n| [财务分析表](https://www.ipo3.com/company-show/stock_code-430510-tab-finance-date_type-001-type-analysis.html#content) | api/ipo3/neeq_stock.get_financial_analysis_list |\n| [募资明细](https://www.ipo3.com/company-show/stock-830936-tab-fund.html#content) | api/ipo3/neeq_stock.get_stock_fund_list |\n| [交易明细](https://www.ipo3.com/company-show/stock-430577-tab-trade.html#content) | api/ipo3/neeq_stock.get_stock_trade_list |\n| [最新公告-大事提醒](https://www.ipo3.com/company-show/stock-430577-tab-notice.html#notice1) | api/ipo3/neeq_stock.get_stock_event_list |\n| [最新公告-最新公告](https://www.ipo3.com/company-show/stock-430577-tab-notice.html#notice2) | api/ipo3/neeq_stock.get_stock_notice_list |\n| [定增计划](https://www.ipo3.com/company-show/stock-430577-tab-survey.html#content) | api/ipo3/neeq_stock.get_stock_survey |\n| [持股成本-投资者持股成本](https://www.ipo3.com/company-show/stock-430283-tab-funded.html#content) | api/ipo3/neeq_stock.get_stock_funded_list |\n| [持股成本-做市商持股成本](https://www.ipo3.com/company-show/stock-832586-tab-broker.html#content) | api/ipo3/neeq_stock.get_stock_broker_list |\n| [质押信息-质押企业详情](https://www.ipo3.com/company-show/tab-pledge-stock_code-839826.html) | api/ipo3/neeq_stock.get_stock_pledge_data |\n| [质押信息-质押贷款记录](https://www.ipo3.com/company-show/tab-pledge-stock_code-839826.html) | api/ipo3/neeq_stock.get_stock_pledge_loan_records |\n| [研报](https://www.ipo3.com/company-show/stock-834082-tab-report.html#content) | api/ipo3/neeq_stock.get_stock_report_list |\n\n数据源：雪球 [https://xueqiu.com/](https://xueqiu.com/)\n\n| 数据 | 方法名 |\n| - | - | \n| [股票行情](https://xueqiu.com/S/SH600900) | api.xueqiu.xueqiu_market.get_stock_market |\n\n\n## 升级记录 \n \n[CHANGELOG.md](https://github.com/mouday/stock-open-api/blob/master/CHANGELOG.md)\n\n## 其他相关库\n\n- AKShare 开源财经数据接口库 \n    - github: [https://github.com/akfamily/akshare](https://github.com/akfamily/akshare)\n    - doc: [https://akshare.akfamily.xyz/](https://akshare.akfamily.xyz/)\n\n- Tushare 免费提供各类数据 , 助力行业和量化研究。 \n    - github: [https://github.com/waditu/tushare](https://github.com/waditu/tushare)\n    - doc: [http://tushare.org/index.html](http://tushare.org/index.html)\n    - pro doc: [https://tushare.pro/](https://tushare.pro/)\n\n- OpenAPI 量化接口\n    - doc: [https://openapi.futunn.com/futu-api-doc/](https://openapi.futunn.com/futu-api-doc/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmouday%2Fstock-open-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmouday%2Fstock-open-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmouday%2Fstock-open-api/lists"}