一个基于长桥证券接口(LongPort OpenAPI)的抓取工具,按配置批量抓取指定股票在指定日期的历史 K 线并写入 PostgreSQL。支持多只股票、多日期、去重插入、进度显示。
功能特性
批量抓取指定标的的历史 K 线(分钟级)
多日期批处理,自动去重(ON CONFLICT DO NOTHING)
自动根据标的生成数据表(如 AAPL.US → aapl)
This is a Model Context Protocol (MCP) server that provides stock analysis tools for Claude Desktop. The server integrates existing stock analysis features, including chip distribution analysis, pattern analysis, trend reversal detection, and market scanning capabilities.
Stock data query: Yahoo Finance
Company fundamental data query: Requires FMP API_KEY (https://site.financialmodelingprep.com/)
Features
Fully compatible with Claude Desktop's MCP interface
Provides various stock analysis tools:
get-stock-analysis: Analyze specific stocks
company-fundamental: Query company fundamental data
start-bull-bear-scan: Scan the market for bullish and bearish signals (asynchronous task)
start-strong-signal-scan: Scan the market for strong momentum stocks (asynchronous task)
start-hot-stock-scan: Scan the market for top trending stocks (asynchronous task)
get-task-status: Query the status and results of asynchronous tasks
market-performance: Today's market performance, query stocks with biggest gains/losses and highest volume
Support for long-running asynchronous analysis tasks
Integration of comprehensive stock analysis functions
Generation of detailed trading plan reports
证券宝www.baostock.com是一个免费、开源的证券数据平台(无需注册)。
提供大量准确、完整的证券历史行情数据、上市公司财务数据等。
通过python API获取证券数据信息,满足量化交易投资者、数量金融爱好者、计量经济从业者数据需求。
返回的数据格式:
pandas DataFrame类型,以便于用pandas/NumPy/Matplotlib进行数据分析和可视化。
同时支持通过BaoStock的数据存储功能,将数据全部保存到本地后进行分析。
支持语言:目前版本BaoStock.com目前只支持Python3.5及以上(暂不支持python 2.x)。
持续更新:BaoStock.com还在不断的完善和优化,后续将逐步增加港股、期货、外汇和基金等方面的金融数据,为成为一个免费金融数据平台努力。
分享优化:请通过微信、网站博客或者知乎文章等方式分享给大家,使它能在大家的使用过程中逐步得到改进与提升,以便于更好地为大家提供免费服务。
平台麦克:证券宝BaoStock.com从发布到现在,已经帮助很多用户在数据方面减轻了工作量,同时也得到很多用户的反馈。它将一如既往的以免费、开源的形式分享出来,希望给有需要的朋友带来一些帮助。
联系方式:服务QQ群:873161321(发布维护、量化投资讨论);EMail:baostock@163.com。