moonpay-trading-automation
Set up automated trading strategies — DCA, limit orders, and stop losses — by composing mp CLI commands with OS scheduling (cron/launchd).
Skill by moonpay
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/moonpay-moonpay-trading-automation
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/moonpay-trading-automation
What's inside
- Skill name
moonpay-trading-automation- Description
- Set up automated trading strategies — DCA, limit orders, and stop losses — by composing mp CLI commands with OS scheduling (cron/launchd).
- License
- MIT
- Instructions
- 272 lines in SKILL.md · view on GitHub
Before installing
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Agent Skills spec issues
- body: contains an absolute path from the author's machine
Files (1)
- SKILL.md
SKILL.md (first lines)
# Trading automation
## Goal
Compose `mp` CLI commands with OS scheduling (cron/launchd) to run unattended trading strategies: dollar-cost averaging, limit orders, and stop losses. The agent generates shell scripts and schedules them — no new tools needed.
## Prerequisites
- Authenticated: `mp user retrieve`
- Funded wallet: `mp token balance list --wallet <name> --chain <chain>`
- `mp` binary on PATH: `which mp` (note the full path for scheduled scripts)
- `jq` installed: `which jq`
## Shell script pattern
Every strategy uses the same base pattern. Scripts live in `~/.config/moonpay/scripts/` and log to `~/.config/moonpay/logs/trading.log`.
```bash
#!/bin/bash
set -euo pipefail
MP="$(which mp)" # absolute path for cron/launchd
LOG="$HOME/.config/moonpay/logs/trading.log"
mkdir -p "$(dirname "$LOG")"
log() { echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] $*" >> "$LOG"; }
# --- Config (agent fills these in) ---
WALLET="main"
CHAIN="solana"
FROM_TOKEN="EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" # USDC
TO_TOKEN="So11111111111111111111111111111111111111111" # SOL
AMOUNT=5
# --- Execute ---
log "SWAP: $AMOUNT $FROM_TOKEN -> $TO_TOKEN on $CHAIN"
RESULT=$("$MP" --json token swap \
--wallet "$WALLET" --chain "$CHAIN" \
--from-token "$FROM_TOKEN" --from-amount "$AMOUNT" \
--to-token "$TO_TOKEN" 2>&1) || {
log "FAILED: $RESULT"
exit 1
}
log "OK: $RESULT"
```
Key points:
- `mp --json` outputs single-line JSON, ideal for `jq` parsing
- Use `$(which mp)` and store as `MP` — cron/launchd have minimal PATH
- Wallet names only in scripts — `mp` handles keychain decryption at runtime
- If the user gives token names/symbols, resolve to addresses first with `mp token search`
## DCA (Dollar-Cost Averaging)
"Buy $5 of SOL every day at 9am"
### Script: `~/.config/moonpay/scripts/dca-sol.sh`
Use the base pattern above with the user's token, amount, wallet, and chain.
### Schedule with cron (Linux)
```bash
# Buy $5 of SOL daily at 9am UTC — moonpay:dca-sol
0 9 * * * ~/.config/moonpay/scripts/dca-sol.sh
```
Add with: `(crontab -l 2>/dev/null; echo '0 9 * * * ~/.config/moonpay/scripts/dca-sol.sh # moonpay:dca-sol') | crontab -`
Common intervals:
- Every hour: `0 * * * *`
- Every 4 hours: `0 */4 * * *`
- Daily at 9am: `0 9 * * *`
- Weekly Monday 9am: `0 9 * * 1`
### Schedule with launchd (macOS)
Write a plist to `~/Library/LaunchAgents/com.moonpay.dca-sol.plist`:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.moonpay.dca-sol</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Users/USERNAME/.config/moonpay/scripts/dca-sol.sh</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>9</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<key>StandardErrorPath</key>
<string>/Users/USERNAME/.config/moonpay/logs/dca-sol.err</string>
</dict>
</plist>
```
Load with: `launchctl load ~/Library/LaunchAgents/com.moonpay.dca-sol.plist`
**Important:** Tilde (`~`) does NOT expand in plist files. Always use the full path (e.g., `/Users/USERNAME/...`). Get it with `echo $HOME`.
## Limit order
"Buy SOL when price drops below $80"
### Script: `~/.config/moonpay/scripts/limit-buy-sol.sh`
```bash
#!/bin/bash
set -euo pipefail
MP="$(which mp)"From moonpay/skills, MIT.
More from moonpay/skills
- 0.674score
moonpay-auth
moonpay
Set up the MoonPay CLI, authenticate, and manage local wallets.
SkillCFreshness: C★ 111Claude Code +9 - 0.599score
moonpay-wallet-statusline-refresh
moonpay
Manually refresh wallet balances shown in a compatible CLI status line.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
alchemy-api
alchemyplatform
Integrates Alchemy blockchain APIs using an API key.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
moonpay-feedback
moonpay
Submit feedback, bug reports, or feature requests for the MoonPay CLI.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
moonpay-wallet-statusline
moonpay
Show MoonPay wallet balances in a compatible CLI status line using a local cache and refresh script.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
alchemy-agentic-gateway
alchemyplatform
Use when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or Alchemy-specific features.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
allium-onchain-data
moonpay
Query blockchain data via Allium APIs.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
corbits-marketplace
moonpay
Paid API marketplace for AI agents via Corbits.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
dune-analytics
moonpay
Blockchain analytics via Dune REST API — execute DuneSQL queries against live on-chain data, discover decoded contract tables, and monitor credit usage.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
moonpay-missions
moonpay
A series of missions that walk through every MoonPay CLI capability.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
moonpay-scout
moonpay
Prediction market arbitrage & alpha scout.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
myriad-prediction-markets
moonpay
AI trading agent for Myriad prediction markets on BNB Chain.
SkillDFreshness: D★ 111Claude Code +9
Signals
- Stars
- 111
- Forks
- 30
- Open issues
- 3
- Last commit (this folder)
- Mar 24, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/moonpay/skills
- Website
- www.moonpay.com/agents
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from moonpay
- 0.674score
moonpay-auth
moonpay
Set up the MoonPay CLI, authenticate, and manage local wallets.
SkillCFreshness: C★ 111Claude Code +9 - 0.599score
moonpay-feedback
moonpay
Submit feedback, bug reports, or feature requests for the MoonPay CLI.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
allium-onchain-data
moonpay
Query blockchain data via Allium APIs.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
corbits-marketplace
moonpay
Paid API marketplace for AI agents via Corbits.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
dune-analytics
moonpay
Blockchain analytics via Dune REST API — execute DuneSQL queries against live on-chain data, discover decoded contract tables, and monitor credit usage.
SkillDFreshness: D★ 111Claude Code +9 - 0.599score
moonpay-missions
moonpay
A series of missions that walk through every MoonPay CLI capability.
SkillDFreshness: D★ 111Claude Code +9
Cite this page
moonpay-trading-automation skill. Agent Mart. https://agentmart.dev/skills/moonpay-moonpay-trading-automation (last updated 2026-10-24)