Agent Skills
› krakenfx/kraken-cli
› recipe-daily-pnl-report
recipe-daily-pnl-report
GitHub基于Kraken CLI生成每日盈亏报告,汇总交易、费用及投资组合变动。
Trigger Scenarios
需要查看每日交易盈亏总结
查询投资组合当日价值变化
Install
npx skills add krakenfx/kraken-cli --skill recipe-daily-pnl-report -g -y
SKILL.md
Frontmatter
{
"name": "recipe-daily-pnl-report",
"version": "1.0.0",
"metadata": {
"openclaw": {
"domain": "portfolio",
"category": "recipe"
},
"requires": {
"bins": [
"kraken"
],
"skills": [
"kraken-portfolio-intel"
]
}
},
"description": "Generate a daily profit and loss summary from trades and balances."
}
Daily P&L Report
PREREQUISITE: Load the following skill to execute this recipe:
kraken-portfolio-intel
Generate a daily summary of trading activity, fees, and portfolio change.
Steps
- Compute today's midnight timestamp:
TS=$(date -j -f '%Y-%m-%d' "$(date +%Y-%m-%d)" +%s 2>/dev/null || date -d 'today 00:00' +%s) - Get current balances:
kraken balance -o json 2>/dev/null - Get current prices:
kraken ticker BTCUSD ETHUSD SOLUSD -o json 2>/dev/null - Calculate total portfolio value in USD
- Get today's trades:
kraken trades-history --consolidate-taker -o json 2>/dev/null - Get today's ledger entries:
kraken ledgers --start $TS -o json 2>/dev/null - Calculate realized P&L from closed trades
- Calculate fees paid today (sum of fee fields from trades)
- Check futures positions if applicable:
kraken futures positions -o json 2>/dev/null - Check futures funding accrued:
kraken futures accounts -o json 2>/dev/null - Present summary: total value, daily change, realized P&L, fees, open positions
If you hit a mismatch between what you are trying to do and the CLI's interface or responses — including a mismatch between this skill and the installed CLI version's contract — feel free to submit feedback with kraken feedback.
Version History
- aa56e59 Current 2026-08-20 04:46
- aa32814 2026-07-25 10:29


