量化金融实验室
Mlfinlab
by bytesagain1
MlFinLab helps portfolio managers and traders who want to use the power of machine learning by quant-finance, python, algorithmic-trading, finance.
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/bytesagain1/quant-finance文档
Quant Finance
A finance toolkit for recording transactions, categorizing expenses, tracking budgets, forecasting trends, and managing tax notes. Build a complete financial journal from the command line with persistent local storage.
Quick Start
bash scripts/script.sh <command> [args...]
Commands
Transaction & Categorization
record <input>— Record a financial transaction or data point (without args: show recent records)categorize <input>— Categorize a transaction or expense (without args: show recent categorizations)tax-note <input>— Add a tax-related note or deduction record (without args: show recent tax notes)
Balances & Budgets
balance <input>— Log a balance snapshot or reconciliation (without args: show recent balances)budget-check <input>— Record a budget check or spending limit review (without args: show recent budget checks)summary <input>— Create a financial summary entry (without args: show recent summaries)
Analysis & Forecasting
trend <input>— Log a trend observation (without args: show recent trends)forecast <input>— Record a financial forecast or projection (without args: show recent forecasts)compare <input>— Log comparison data between periods or portfolios (without args: show recent comparisons)
Alerting & History
alert <input>— Log a financial alert or threshold warning (without args: show recent alerts)history <input>— Add a historical note or record (without args: show recent history entries)
Reporting & Export
export-report <input>— Record an export or report generation event (without args: show recent export reports)
Utilities
stats— Show summary statistics across all entry typesexport <fmt>— Export all data (formats:json,csv,txt)search <term>— Search across all log files for a keywordrecent— Show the 20 most recent activity log entriesstatus— Display health check: version, data dir, entry count, disk usagehelp— Show available commandsversion— Print version (v2.0.0)
Each command accepts free-text input. When called without arguments, it displays the most recent 20 entries for that category.
Data Storage
All data is stored as plain-text log files in:
~/.local/share/quant-finance/
├── record.log # Financial transactions
├── categorize.log # Categorization entries
├── tax-note.log # Tax-related notes
├── balance.log # Balance snapshots
├── budget-check.log # Budget reviews
├── summary.log # Financial summaries
├── trend.log # Trend observations
├── forecast.log # Financial forecasts
├── compare.log # Period/portfolio comparisons
├── alert.log # Financial alerts
├── history.log # Unified activity history
├── export-report.log # Export/report events
└── history.log # Unified activity history
Each entry is stored as YYYY-MM-DD HH:MM|<input> — one line per record. The history.log file tracks all commands chronologically.
Requirements
- Bash 4.0+ with
set -euo pipefail - Standard Unix utilities:
date,wc,du,tail,grep,sed,cat,basename - No external dependencies, no network access required
- Write access to
~/.local/share/quant-finance/
When to Use
- Tracking daily financial transactions — Use
recordandcategorizeto build a structured transaction journal for personal or business finances - Budget monitoring and spending control — Use
budget-checkandbalanceto log spending against limits and track account balances over time - Financial forecasting and trend analysis — Use
trendandforecastto document observations about revenue patterns, market movements, or portfolio performance - Tax preparation and deduction tracking — Use
tax-noteto maintain a running log of deductible expenses, income events, and tax-relevant transactions throughout the year - Portfolio comparison and reporting — Use
compareto contrast different time periods or investment strategies, thenexport csvto generate data for spreadsheets or external analysis tools
Examples
# Record a transaction
quant-finance record "AAPL buy 100 shares @ $185.50, total $18,550"
# Categorize an expense
quant-finance categorize "AWS hosting: $450/month → infrastructure"
# Log a budget check
quant-finance budget-check "Q1 marketing: $12,000 of $15,000 budget used (80%)"
# Track a trend
quant-finance trend "Revenue up 15% MoM, driven by enterprise segment"
# Add a tax note
quant-finance tax-note "Home office deduction: 200 sq ft, $1,500 annual"
# View summary statistics
quant-finance stats
# Export all data as JSON
quant-finance export json
# Search for entries about a specific stock
quant-finance search "AAPL"
Configuration
Set QUANT_FINANCE_DIR environment variable to override the default data directory. Default: ~/.local/share/quant-finance/
Output
All commands output to stdout. Redirect to a file with quant-finance <command> > output.txt. Export formats (json, csv, txt) write to the data directory and report the output path and file size.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
相关 Skills
面试体系设计
by alirezarezvani
按岗位、级别和团队设计面试流程,生成能力矩阵、题库与评分标准,分析面试官偏差并校准招聘门槛,适合搭建或优化企业招聘体系。
✎ 团队招人没章法时,用它快速搭建岗位化面试流程、题库与评分标准,还能兼顾校准面试偏差,招聘更稳更准。
期权交易
by binance-skills-hub
Binance Derivatives-trading-options request using the Binance API. Authentication requires API key and secret key. Supports testnet and mainnet.
A股交易助手
by alvisdunlop
A股股票智能交易助手,专服务中国大陆股票市场。当用户询问A股股票行情、个股分析、大盘情绪、热点板块、交易策略、价格预警、涨跌幅、成交量、技术面或基本面分析时触发。只处理沪深A股(代码�?/00/30/68开头),自动忽略港股和美股。所有数据实时从东方财富、新浪财经、同花顺、雪球抓取。Use when: user asks about Chinese A-share stocks, 股票行情, 个股分析, 大盘分析, 板块热点, 买卖�? 止盈止损, 仓位建议, or any A-share trading-related query.
相关 MCP 服务
by boosted-chat
Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs.
by jjlabsio
检索韩国市场公司的披露文件与财务报表,并获取股票概况等关键信息。
✎ 想研究韩股公司时,它能一站式拉取披露、财报和股票概况,省去跨站查资料的麻烦,对跨境投研尤其省时。
by jjlabsio
Search company disclosures and financial statements from the Korean market. Retrieve stock profiles, market classifications, and historical trading data across major exchanges. Accelerate equity research with accurate, date-specific insights for Korean securities.
✎ 做韩国股研时,用它能一站查公司披露、财报和历史行情,按日期精确追溯关键信息,比手动翻交易所高效太多。