fosun-sdk-setup

Solid

Install, verify, and configure the Fosun Wealth OpenAPI SDK in a dedicated workspace virtual environment tracked via `MEMORY.md`, and guide end-to-end onboarding through `fosun.env`, automatic credential state handling, and QR-based open-url delivery. Use when setting up or repairing `fsopenapi`, fixing missing SDK/import/authentication issues, initializing or refreshing API keys, Ticket, device ID, or client keys, generating the onboarding QR/link, or when other `fosun-*` skills need a ready-to-use Fosun client/session for HK, US, `sh`, or `sz` markets.

API & Backend 3,964 stars 1088 forks Updated 2 months ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Fosun OpenAPI SDK 初始化 --- ## 语言风格(非常重要) 通俗易懂,客户人群都是小白用户,必须使用大白话的形式进行内容输出,内容必须简洁,语言亲切,不要出现大量代码输出。 再次强调**不能出现大量代码和变量名称!!** ## 1. 安装 SDK 按以下步骤顺序执行。 ### 环境约束(必须遵守) - **严格以专用虚拟环境执行**:Fosun SDK 必须安装在独立的 Python 虚拟环境中, **禁止安装 Fosun OpenAPI SDK 到系统 Python 或其他非专属环境** - **虚拟环境路径从记忆获取**:每次执行前,读取 `MEMORY.md`,查找 `Fosun SDK` 记录的虚拟环境路径 `$FOSUN_VENV` - **统一使用 `$FOSUN_VENV/bin/python` 和 `$FOSUN_VENV/bin/pip` 完成程序执行与安装** - **虚拟环境不存在,自动创建虚拟环境,创建后将完整路径写入 `MEMORY.md` > 创建命令示例:`python3 -m venv {workspace_root}/.venv-fosun` **Step 1 — 确认虚拟环境并检查 SDK** 检查 SDK 是否已安装: ```bash $FOSUN_VENV/bin/python -c "import fsopenapi; print(fsopenapi.__file__)" ``` - 成功打印路径 → SDK 已安装,跳到 Step 4 验证。 - 报 `ModuleNotFoundError` → 检查 `MEMORY.md` 中是否记录了 SDK 源码路径: - 记忆中��路径但目录已不存在 → **删除记忆中对应记录**,继续 Step 2。 - 记忆中有路径且目录存在 → 执行 `$FOSUN_VENV/bin/pip install <路径>`,跳到 Step 4。 - 无记录 → 继续 Step 2。 **Step 2 — 定位或下载 SDK,并安装到虚拟环境** 优先从 GitHub 下载,若失败则使用备用地址: ```bash mkdir -p /tmp/fosun-sdk curl -L --fail -o /tmp/fosun-sdk/openapi-sdk.zip \ https://github.com/fosunwealth/openapi-python-sdk/archive/refs/tags/v1.1.0.zip \ || curl -L --fail -o /tmp/fosun-sdk/openapi-sdk.zip \ https://openapi-docs.fosunxcz.com/download/openapi-python-sdk-1.1.0.zip unzip -o /tmp/fosun-sdk/openapi-sdk.zip -d /tmp/fosun-sdk $FOSUN_VENV/bin/pip install /tmp/fosun-sdk/openapi-python-sdk-main/ ``` 必须将包安装到 `$FOSUN_VENV` 对应 Python 的 `site-packages` 目录中。 **Step 3 — 安装二维码生成依赖** 在 `$FO...

Details

Author
openclaw
Repository
openclaw/skills
Created
5 months ago
Last Updated
2 months ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

schwab-marketdata-ops

Use when the user wants to call Schwab Market Data Production via the schwab-marketdata-mcp server, troubleshoot OAuth or 7-day refresh-token expiry, recover from 401/429/5xx errors, or look up the exact input/output schema for any of the 13 market-data tools (quotes×2, price_history, option_chain×2, market_hours×2, movers, search_instruments, get_instrument_by_cusip, health_check, get_server_info, get_streaming_snapshot). Use this skill instead of schwab-marketdata-workflows when the request is about a single MCP tool call or troubleshooting (not a multi-step playbook). Triggers on "Schwab quote", "Schwab price history", "Schwab option chain", "Schwab token expired", "reauthorize Schwab", "Schwab API 报错". 对于以上场景使用本 skill;面向用户的所有回答必须使用简体中文。

2 Updated 1 weeks ago
kevinkda
AI & Automation Listed

dingtalk-skill-creator

创建新的钉钉技能(dingtalk skill)。当用户提到"创建新技能"、"新建技能"、"开发钉钉技能"、"新增钉钉功能"、"添加钉钉接口支持"、"我需要一个钉钉 xxx 技能"、"钉钉待办"、"钉钉签到"、"钉钉考勤"、"钉钉审批"、"钉钉日程"等希望将某个钉钉 API 领域封装成可复用 skill 时,必须使用此技能。此技能包含完整的技能创建流程:SDK 探索 → SDK Python 测试 → 纯 HTTP Python 测试(两步全通过)→ SKILL.md 编写。测试未全部通过不得创建 skill。

77 Updated 2 weeks ago
breath57
AI & Automation Solid

cliproxy-deploy

在 Linux VPS 上部署 CLIProxyAPI(router-for-me/CLIProxyAPI)并暴露 OpenAI 兼容 API。覆盖 Go 环境、源码拉取、最小配置、OAuth 登录(远端 / 本地同步两种路径)、UFW 放行、密钥轮换、健康校验、环境变量落盘。当用户说“部署 cliproxy / 把 codex/claude/gemini 账号暴露成 API / router-for-me 上线 VPS”时触发。

72 Updated 2 weeks ago
majiayu000