🏦 Mercury Banking
Mercury banking API integration for OpenClaw agents. Manage accounts, transactions, cash flow, and get AI-powered financial insights.
Requirements
| Variable | Required | Description |
|---|
| INLINECODE0 | ✅ | Mercury API token (get one) |
| INLINECODE1 |
Optional | For AI categorization and summaries |
Quick Start
CODEBLOCK0
Commands
accounts
Lists all Mercury accounts with current balances, account type, and status.
transactions <account_id>
Fetch transactions with optional filters:
- -
--start YYYY-MM-DD / --end YYYY-MM-DD — date range - INLINECODE6 — filter by counterparty or description
- INLINECODE7 — max results (default 50)
- INLINECODE8 — filter by status
cashflow <account_id>
Analyze cash flow over a period:
- -
--days N — lookback period (default 30) - Shows total inflows, outflows, net, daily average, burn rate
categorize <account_id>
AI-powered transaction categorization (requires
OPENROUTER_API_KEY):
- -
--days N — lookback period (default 30) - Groups transactions into categories (payroll, SaaS, revenue, etc.)
- Outputs category totals and percentages
summary <account_id>
Generate financial summary:
- -
--period weekly|monthly — summary period - Includes top expenses, revenue sources, cash position, trends
Mercury API Notes
- - Base URL: INLINECODE16
- Auth: Bearer token in Authorization header
- Rate limits: Be mindful of API limits; the script handles pagination automatically
- Sandbox: Mercury provides a sandbox environment for testing
Credits
Built by
M. Abidi |
agxntsix.ai
YouTube |
GitHub
Part of the
AgxntSix Skill Suite for OpenClaw agents.
📅 Need help setting up OpenClaw for your business? Book a free consultation
🏦 Mercury 银行集成
为 OpenClaw 代理提供 Mercury 银行 API 集成。管理账户、交易、现金流,并获取 AI 驱动的财务洞察。
前提条件
| 变量 | 必需 | 描述 |
|---|
| MERCURYAPIKEY | ✅ | Mercury API 令牌(获取方式) |
| OPENROUTERAPI_KEY |
可选 | 用于 AI 分类和摘要 |
快速开始
bash
列出所有账户及余额
python3 {baseDir}/scripts/mercury_api.py accounts
近期交易
python3 {baseDir}/scripts/mercury
api.py transactions id>
带日期筛选的交易
python3 {baseDir}/scripts/mercuryapi.py transactions id> --start 2026-01-01 --end 2026-01-31
搜索交易
python3 {baseDir}/scripts/mercuryapi.py transactions id> --search Stripe
现金流分析
python3 {baseDir}/scripts/mercuryapi.py cashflow id> --days 30
AI 分类交易
python3 {baseDir}/scripts/mercuryapi.py categorize id> --days 30
财务摘要
python3 {baseDir}/scripts/mercuryapi.py summary id> --period weekly
命令
accounts
列出所有 Mercury 账户,包含当前余额、账户类型和状态。
transactions
获取交易记录,支持可选筛选条件:
- - --start YYYY-MM-DD / --end YYYY-MM-DD — 日期范围
- --search term — 按交易对手或描述筛选
- --limit N — 最大结果数(默认 50)
- --status pending|sent|cancelled|failed — 按状态筛选
cashflow
分析一段时间内的现金流:
- - --days N — 回溯周期(默认 30)
- 显示总流入、总流出、净额、日均值、消耗率
categorize
AI 驱动的交易分类(需要 OPENROUTERAPIKEY):
- - --days N — 回溯周期(默认 30)
- 将交易分组到类别中(薪资、SaaS、收入等)
- 输出各类别总额及占比
summary
生成财务摘要:
- - --period weekly|monthly — 摘要周期
- 包含主要支出、收入来源、现金状况、趋势
Mercury API 说明
- - 基础 URL: https://api.mercury.com/api/v1
- 认证: Authorization 标头中的 Bearer 令牌
- 速率限制: 请注意 API 限制;脚本会自动处理分页
- 沙箱: Mercury 提供沙箱环境用于测试
致谢
由 M. Abidi 构建 | agxntsix.ai
YouTube | GitHub
属于 OpenClaw 代理的 AgxntSix 技能套件 的一部分。
📅 需要为您的企业设置 OpenClaw 的帮助? 预约免费咨询