stripe-projects
stripe projects
lof-arbitrage
LOF 套利智能筛选服务 — 自动扫描全市场 LOF 基金溢价套利机会。该 skill 用于构建或集成 LOF(上市开放式基金)套利筛选系统,涵盖数据采集(东方财富、新浪财经、天天基金)、成本模型计算、风险评级(A/B/C/D)和格式化报告生成。适用于需要开发基金套利工具、量化筛选服务或金融数据聚合功能的场景。
Full skill instructions
LOF 套利智能筛选服务是一个完整的基金套利机会扫描系统。核心理念是:不是简单列出溢价率,而是智能判断"值不值得做"。
系统执行以下完整流程:
services/lof-arbitrage.js # 核心服务(独立运行,无外部依赖)
handlers/command-handler.js # 指令调度(集成到聊天机器人时使用)
config.js # 指令正则匹配配置
const LofArbitrageService = require('./services/lof-arbitrage');
const service = new LofArbitrageService(configOverrides);
const result = await service.getArbitrageReport();
// result = { text: string, opportunities: Array, summary: object }
LofArbitrageService 类为纯计算服务,不依赖数据库、消息队列或其他基础设施。只需 Node.js 18+(内置 fetch)即可运行。
node services/lof-arbitrage.js
直接实例化 LofArbitrageService 并调用 getArbitrageReport()。适用于:
调用链路:
用户发送 "LOF套利" / "lof" / "基金套利" / "套利"
→ config.js: COMMANDS.LOF_ARBITRAGE 正则匹配
→ command-handler.js: handleLofArbitrage(userId)
→ 发送 "⏳ 正在扫描..." 提示
→ new LofArbitrageService().getArbitrageReport()
→ 发送格式化报告
集成时参考 references/integration-guide.md 获取完整指令注册方式。
通过构造函数传入配置覆盖默认值:
const service = new LofArbitrageService({
MIN_PREMIUM_RATE: 5, // 提高溢价率门槛
ACCOUNT_COUNT: 3, // 改为一拖三
PREMIUM_DECAY_BASE_DOMESTIC: 2.5, // 更保守的基础溢价衰减
DEFAULT_INVEST_AMOUNT: 10000, // 无限购品种投入金额
});
完整参数列表见 references/config-params.md。
https://fund.eastmoney.com/data/FundGuideapi.aspx?dt=0&ft=lof&...var rankData = {"datas":[...], "allPages":"N"}https://fund.eastmoney.com/https://hq.sinajs.cn/list=sz161724,sz160416,...sh,其他为 szhttps://finance.sina.com.cn/https://fundgz.1234567.com.cn/js/{code}.js?rt={timestamp}jsonpgz({"dwjz":"1.023","gsz":"1.035",...})dwjz = 单位净值(上一交易日),gsz = 估算净值(盘中)https://fundf10.eastmoney.com/jjfl_{code}.html⚠️ 请求间隔设为 200ms 以避免限流。所有请求需携带 User-Agent 和 Referer header。
LOF 套利本质是"高频低单次收益"的薅羊毛模式。高溢价品种几乎都限购(100~1000元),实际单次收益通常在几元到几十元。
净收益率 = 溢价率 - 总成本
总成本 = 申购费 + 卖出佣金 + 冲击成本(动态) + 溢价衰减(动态)
溢价越高 → 套利者越多 → T+2/T+3卖出踩踏越严重 → 衰减越大:
溢价衰减 = 基础衰减 + 高溢价额外衰减 + 低流动性惩罚
基础衰减:国内 T+2 = 2.0%,QDII T+3 = 3.0%
高溢价额外衰减:max(0, 溢价率 - 3%) × 0.4
低流动性惩罚:日成交额 < 300万 → +0.5%
冲击成本 = 基础 0.3% + (日成交额 < 300万 ? +0.3% : 0)
| 场景 | 溢价率 | 限购 | 总成本 | 净收益率 | 单户收益 | 六户收益 |
|---|---|---|---|---|---|---|
| 限购100元QDII | 6.88% | 100元 | ~5.9% | ~1.0% | ~1元 | ~6元 |
| 限购1000元国内 | 6.4% | 1000元 | ~3.8% | ~2.6% | ~26元 | ~156元 |
| 无限购国内 | 5.0% | 无 | ~3.2% | ~1.8% | ~88元 | ~528元 |
| 华宝油气极端 | 10% | 500元 | ~8.2% | ~1.8% | ~9元 | ~54元 |
溢价率低于总成本的品种直接标记为 D 级过滤。
LOF 套利评级基于"值不值得每天操作":
| 评级 | 条件 | 展示 |
|---|---|---|
| 🟢 A 级 | 六账户≥80元 或 单账户≥15元,国内基金,成交额≥500万,风险不高 | 详细信息 + 建议操作 |
| 🟡 B 级 | 六账户≥20元 或 单账户≥3元,但有不利因素 | 详细信息 + 风险提示 |
| 🔴 C 级 | 有利润但收益太低,性价比差 | 摘要一行 |
| ⛔ D 级 | 暂停申购/净收益为负/风险极高 | 不展示,仅统计数量 |
风险得分 ≥60 为高风险,30~59 为中风险,<30 为低风险。
生成的文本报告结构:
📊 LOF套利智能筛选报告
━━━━━━━━━━━━━━━━━━━━━━━━
⏰ {时间}
📋 扫描 {总数} 只LOF,溢价候选 {候选数} 只
🟢 推荐操作 ({N}只)
────────────────────
1. {基金名} ({代码})
溢价率: X% | 净值: X.XXX | 场内价: X.XXX
限额: {限额} | 投入: {金额}/户 | 申购费: X%
成本: 申购X%+佣金X%+冲击X%+衰减X% = X%
⏱ 到账: T+{N} ({类型}) | 净收益率: X%
💰 单账户预期: ≈{N}元
💰 6账户预期: ≈{N}元
📊 日成交额: {N}万 | 流动性: {评价}
⚠️ 风险: {等级}
📋 {建议}
🟡 谨慎考虑 ({N}只) ...
🔴 不建议 ({N}只) ...(仅摘要)
⛔ 已过滤 {N} 只
━━━━━━━━━━━━━━━━━━━━━━━━
💡 成本模型说明(实战校准版)...
⚠️ 风险提示 ...
在 LofArbitrageService 类中添加新的 fetch* 方法,然后在 getArbitrageReport() 的流程中插入调用。
重写 formatReport() 和 _formatFundDetail() 方法。可输出 Markdown、HTML 或 JSON。
仅需调用 getArbitrageReport() 获取 result.text,然后通过目标平台的 API 发送即可。LofArbitrageService 不绑定任何消息平台。
通过基金名称关键词匹配:QDII、原油、黄金、纳斯达克、标普、恒生、港股、全球、海外、中概 等。如需更精确的判断,可从基金详情接口获取基金类型字段。
stripe projects
Harvest every `ponytail:` comment in the codebase into a debt ledger, so the deliberate shortcuts and deferrals ponytail leaves behind get tracked instead of rotting into "later means never". One-shot report, changes nothing.
okx dex market
okx agentic wallet
gmgn portfolio
okx dapp discovery
okx agent payments protocol
Stripe payment processing with checkout sessions, subscriptions, webhooks, and customer management.
Build comprehensive 3-5 year financial models with revenue projections, cost structures, cash flow analysis, and scenario planning for early-stage startups. Use this skill when creating financial projections, calculating burn rate or runway, modeling fundraising scenarios, or preparing investor-r...
Stock and cryptocurrency analysis with portfolio management and multi-dimensional scoring.
Real-time crypto derivatives positioning, whale tracking, liquidations, and institutional ETF flows across 37 specialized tools.
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Stay Ahead with Finalle.ai: The Ultimate Financial News and Tools Platform
AI-powered Pine Script code generator for TradingView
Research stocks at the speed of thought.
Empower your investment strategies with AI signals, option flow data, and advanced chart patterns.
Danelfin review covering its AI stock and ETF scores, rankings, portfolio tools, current pricing, strengths, risks, and alternatives for investors.
A software for comprehensive market sentiment analysis.
'Stock Correlations' App by Freshly.ai: Reveal Stock Patterns and Trends