10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
Fetch Chinese stock and futures market data via Tushare API. Supports stock quotes, futures data, company fundamentals, and macroeconomic indicators. Use when the user needs financial data from Chinese markets. Requires TUSHARE_TOKEN environment variable.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install alphafactor/tushare打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
获取中国 A 股市场和期货市场的实时及历史数据。
访问 https://tushare.pro/register 注册账号并获取 API Token。
# 添加到 ~/.zshrc
export TUSHARE_TOKEN="your-api-token-here"
然后执行:
source ~/.zshrc
pip3 install tushare pandas --user
python3 scripts/market.py stock_basic
python3 scripts/market.py daily --ts_code 000001.SZ --start_date 20240101 --end_date 20240131
python3 scripts/market.py realtime 000001
python3 scripts/market.py stock_basic
python3 scripts/market.py stock_basic --exchange SSE # 仅上交所
python3 scripts/market.py stock_basic --exchange SZSE # 仅深交所
# 获取单只股票近期数据
python3 scripts/market.py daily --ts_code 000001.SZ
# 指定日期范围
python3 scripts/market.py daily --ts_code 600519.SH --start_date 20240101 --end_date 20240131
# 获取指定交易日全市场数据
python3 scripts/market.py daily --trade_date 20240115
# 获取周线数据
python3 scripts/market.py weekly --ts_code 000001.SZ
# 指定日期范围
python3 scripts/market.py weekly --ts_code 600519.SH --start_date 20230101 --end_date 20240131
# 获取月线数据
python3 scripts/market.py monthly --ts_code 000001.SZ
# 指定日期范围
python3 scripts/market.py monthly --ts_code 600519.SH --start_date 20200101 --end_date 20240131
股票代码格式:
000001.SZ, 000002.SZ, 300001.SZ (创业板)600000.SH, 600519.SH, 688001.SH (科创板)python3 scripts/market.py realtime 000001
python3 scripts/market.py realtime 600519
# 获取指定股票资金流向
python3 scripts/market.py moneyflow --ts_code 000001.SZ
# 获取指定日期全市场资金流向
python3 scripts/market.py moneyflow --trade_date 2024...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# Tushare 金融数据接口 获取中国 A 股市场和期货市场的实时及历史数据。 ## 前提条件 ### 1. 注册 Tushare 账号 访问 https://tushare.pro/register 注册账号并获取 API Token。 ### 2. 配置 Token ```bash # 添加到 ~/.zshrc export TUSHARE_TOKEN="your-api-token-here" ``` 然后执行: ```bash source ~/.zshrc ``` ### 3. 安装依赖 ```bash pip3 install tushare pandas --user ``` ## 快速开始 ### 获取股票列表 ```bash python3 scripts/market.py stock_basic ``` ### 获取日线行情 ```bash python3 scripts/market.py daily --ts_code 000001.SZ --start_date 20240101 --end_date 20240131 ``` ### 获取实时行情 ```bash python3 scripts/market.py realtime 000001 ``` ## 股票数据 ### 股票基础信息 ```bash python3 scripts/market.py stock_basic python3 scripts/market.py stock_basic --exchange SSE # 仅上交所 python3 scripts/market.py stock_basic --exchange SZSE # 仅深交所 ``` ### 日线行情 ```bash # 获取单只股票近期数据 python3 scripts/market.py daily --ts_code 000001.SZ # 指定日期范围 python3 scripts/market.py daily --ts_code 600519.SH --start_date 20240101 --end_date 20240131 # 获取指定交易日全市场数据 python3 scripts/market.py daily --trade_date 20240115 ``` ### 周线行情 ```bash # 获取周线数据 python3 scripts/market.py weekly --ts_code 000001.SZ # 指定日期范围 python3 scripts/market.py weekly --ts_code 600519.SH --start_date 20230101 --end_date 20240131 ``` ### 月线行情 ```bash # 获取月线数据 python3 scripts/market.py monthly --ts_code 000001.SZ # 指定日期范围 python3 scripts/market.py monthly --ts_code 600519.SH --start_date 20200101 --end_date 20240131 ``` **股票代码格式**: - 深交所:`000001.SZ`, `000002.SZ`, `300001.SZ` (创业板) - 上交所:`600000.SH`, `600519.SH`, `688001.SH` (科创板) ### 实时行情 ```bash python3 scripts/market.py realtime 000001 python3 scripts/market.py realtime 600519 ``` ### 资金流向 ```bash # 获取指定股票资金流向 python3 scripts/market.py moneyflow --ts_code 000001.SZ # 获取指定日期全市场资金流向 python3 scripts/market.py moneyflow --trade_date 2024...
generate a bunch of images, then you curate the results to handpick the best ones
generate a bunch of images, then you curate the results to handpick the best ones
Productivity system based on Maya calendar with 13 natural tones for project management and personal development
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.