kraken-multi-pair
GitHub用于同时监控多个交易对,支持批量快照、流式传输、价差与成交量筛选及期货监控,辅助构建观察列表和机会识别。
Trigger Scenarios
Install
npx skills add krakenfx/kraken-cli --skill kraken-multi-pair -g -y
SKILL.md
Frontmatter
{
"name": "kraken-multi-pair",
"version": "1.0.0",
"metadata": {
"openclaw": {
"category": "finance"
},
"requires": {
"bins": [
"kraken"
]
}
},
"description": "Monitor multiple trading pairs simultaneously for screening and comparison."
}
kraken-multi-pair
Use this skill for:
- screening multiple pairs at once (price, spread, volume)
- comparing relative performance across assets
- building watchlists for agent-driven monitoring
- identifying opportunity across a pair universe
Multi-Pair Ticker Snapshot
Pass multiple pairs to a single ticker call:
kraken ticker BTCUSD ETHUSD SOLUSD DOTUSD -o json 2>/dev/null
The response contains one object per pair. Extract and compare:
kraken ticker BTCUSD ETHUSD SOLUSD -o json 2>/dev/null | jq 'to_entries[] | {pair: .key, last: .value.last_price, volume: .value.volume_24h}'
Multi-Pair Streaming
Stream tickers for several pairs simultaneously:
kraken ws ticker BTC/USD ETH/USD SOL/USD -o json 2>/dev/null
Each NDJSON line includes a pair identifier. Route updates by pair in the agent loop:
kraken ws ticker BTC/USD ETH/USD SOL/USD -o json 2>/dev/null | while read -r line; do
PAIR=$(echo "$line" | jq -r '.data[0].symbol // empty')
LAST=$(echo "$line" | jq -r '.data[0].last // empty')
[ -n "$PAIR" ] && echo "$PAIR: $LAST"
done
Pair Discovery
List all tradable pairs:
kraken pairs -o json 2>/dev/null
Filter to USD-quoted pairs for a consistent base:
kraken pairs -o json 2>/dev/null | jq '[to_entries[] | select(.key | endswith("USD")) | .key]'
Spread Comparison
Compare bid-ask spreads across pairs to gauge liquidity:
kraken ticker BTCUSD ETHUSD SOLUSD -o json 2>/dev/null | jq 'to_entries[] | {pair: .key, spread: (.value.ask_price - .value.bid_price)}'
Volume Screening
Identify high-volume pairs from a watchlist:
kraken ticker BTCUSD ETHUSD SOLUSD ADAUSD DOTUSD -o json 2>/dev/null | jq 'to_entries | sort_by(-.value.volume_24h) | .[] | {pair: .key, vol_24h: .value.volume_24h}'
Futures Multi-Symbol
Monitor multiple futures contracts:
kraken futures tickers -o json 2>/dev/null
Stream multiple futures tickers:
kraken futures ws ticker PF_XBTUSD PF_ETHUSD -o json 2>/dev/null
Watchlist Pattern
Define a watchlist as a space-separated string and reuse across commands:
WATCHLIST="BTCUSD ETHUSD SOLUSD ADAUSD DOTUSD"
kraken ticker $WATCHLIST -o json 2>/dev/null
kraken ws ticker $WATCHLIST -o json 2>/dev/null
Context Efficiency
- Batch pairs into a single command instead of one call per pair.
- Use streaming for continuous monitoring; use REST snapshots for periodic checks.
- Limit watchlist size to reduce context window consumption when passing results to an agent.
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:44
v0.4.0更新:响应Schema标准化,新增kraken feedback命令,Futures WebSocket URL增加可信主机白名单限制,以及工具链升级。
- aa32814 2026-07-25 10:28


