소스 정보
- 저장소
- krakenfx/kraken-cli
- 최근 소스 활동
- 2026년 8월 6일 08:02
- 감지된 SKILL.md 언어
- 영어
- 스타
- 698
- 포크
- 98
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/krakenfx/kraken-cli --skill kraken-dca-strategy명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Capture the spot-futures price spread with delta-neutral basis trades.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | kraken-dca-strategy |
| version | 1.0.0 |
| description | Dollar cost averaging with scheduled buys and performance tracking. |
| metadata | {"openclaw":{"category":"finance"},"requires":{"bins":["kraken"]}} |
Use this skill for:
Dollar cost averaging buys a fixed dollar amount of an asset at regular intervals regardless of price. This reduces timing risk and smooths entry cost over volatile periods.
Always validate the strategy in paper mode before going live.
The paper buy command takes base-asset volume, not dollar amount. Calculate volume first:
kraken workspace create sandbox --capital 10000 --mode paper --currency USD -o json 2>/dev/null
export KRAKEN_WORKSPACE=sandbox
# Calculate BTC volume for a $100 buy at current price
PRICE=$(kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].last_price')
VOLUME=$(echo "scale=8; 100 / $PRICE" | bc)
# Simulate weekly buys
kraken paper buy BTCUSD $VOLUME -o json 2>/dev/null
kraken workspace status -o json 2>/dev/null
# Repeat buy, check status each iteration
kraken paper buy BTCUSD $VOLUME -o json 2>/dev/null
kraken workspace status -o json 2>/dev/null
kraken paper history -o json 2>/dev/null
Each interval, the agent executes one market buy for the fixed amount:
kraken ticker BTCUSD -o json 2>/dev/null
PRICE=$(kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].last_price')
VOLUME=$(echo "scale=8; 100 / $PRICE" | bc)
kraken order buy BTCUSD $VOLUME --type market --validate -o json 2>/dev/null
kraken order buy BTCUSD $VOLUME --type market -o json 2>/dev/null
After each buy, query trade history to compute running average:
kraken trades-history --consolidate-taker -o json 2>/dev/null
The agent should maintain a running total:
Instead of market buys, place limit orders slightly below the current price for better fills:
PRICE=$(kraken ticker BTCUSD -o json 2>/dev/null | jq -r '.[].bid_price')
LIMIT=$(echo "scale=2; $PRICE * 0.998" | bc)
VOLUME=$(echo "scale=8; 100 / $LIMIT" | bc)
kraken order buy BTCUSD $VOLUME --type limit --price $LIMIT -o json 2>/dev/null
Check fill status at the next interval. Cancel unfilled orders before placing new ones:
kraken open-orders -o json 2>/dev/null
kraken order cancel <UNFILLED_TXID> -o json 2>/dev/null
Split a fixed budget across multiple assets (e.g., 60% BTC, 30% ETH, 10% SOL):
# $100 total: $60 BTC, $30 ETH, $10 SOL
# Calculate volumes for each, then place orders sequentially
The CLI does not include a built-in scheduler. Agents should use external scheduling (cron, task scheduler, or the agent's own loop timer) to trigger DCA buys at the chosen interval (daily, weekly, bi-weekly, monthly).
kraken feedback.