Loading...
Loading...
Alpha scouting workflow using Messari x402. Scans mindshare gainers, trending topics, and news to surface emerging narratives and high-momentum assets. Total cost ~$1.25 USDC per run.
npx skill4agent add moonpay/skills messari-alpha-scoutmp token balance list --wallet main --chain base --jsonmp x402 request \
--method GET \
--url "https://api.messari.io/signal/v1/assets/mindshare-gainers-24h" \
--wallet main \
--chain basemp x402 request \
--method GET \
--url "https://api.messari.io/signal/v1/assets/mindshare-gainers-7d" \
--wallet main \
--chain basemp x402 request \
--method GET \
--url "https://api.messari.io/v1/current" \
--wallet main \
--chain basemp x402 request \
--method GET \
--url "https://api.messari.io/news/v1/news/feed?limit=20" \
--wallet main \
--chain basemp x402 request \
--method POST \
--url "https://api.messari.io/ai/v2/chat/completions" \
--body '{
"model": "messari",
"messages": [
{
"role": "system",
"content": "You are a crypto alpha analyst. Given mindshare gainers, trending topics, and news, identify: 1) The top 3 emerging narratives, 2) Assets best positioned to benefit from each narrative, 3) Conviction level (high/medium/low) and why, 4) Key risks to watch."
},
{
"role": "user",
"content": "24h mindshare gainers: {step1_output}. 7d gainers: {step2_output}. Trending topics: {step3_output}. News: {step4_headlines}"
}
]
}' \
--wallet main \
--chain base#!/bin/bash
# messari-alpha-scout.sh
# Runs a full alpha scan and saves results
WALLET="main"
CHAIN="base"
BASE="https://api.messari.io"
OUT="$HOME/.config/moonpay/research/alpha-$(date -u +%Y%m%d-%H%M%S)"
mkdir -p "$(dirname "$OUT")"
echo "=== [1/4] Mindshare Gainers 24h ==="
G24=$(mp x402 request --method GET \
--url "${BASE}/signal/v1/assets/mindshare-gainers-24h" \
--wallet "$WALLET" --chain "$CHAIN")
echo "$G24" > "${OUT}-gainers-24h.json"
echo "=== [2/4] Mindshare Gainers 7d ==="
G7D=$(mp x402 request --method GET \
--url "${BASE}/signal/v1/assets/mindshare-gainers-7d" \
--wallet "$WALLET" --chain "$CHAIN")
echo "$G7D" > "${OUT}-gainers-7d.json"
echo "=== [3/4] Trending Topics ==="
TOPICS=$(mp x402 request --method GET \
--url "${BASE}/v1/current" \
--wallet "$WALLET" --chain "$CHAIN")
echo "$TOPICS" > "${OUT}-topics.json"
echo "=== [4/4] News Feed ==="
NEWS=$(mp x402 request --method GET \
--url "${BASE}/news/v1/news/feed?limit=20" \
--wallet "$WALLET" --chain "$CHAIN")
echo "$NEWS" > "${OUT}-news.json"
echo ""
echo "Alpha scan saved to ${OUT}-*.json"
echo "Total cost: ~\$1.20 USDC"
echo ""
echo "Pass results to Messari AI for narrative synthesis (Step 5)"# Add to crontab
(crontab -l 2>/dev/null; echo '0 7 * * * ~/.config/moonpay/scripts/messari-alpha-scout.sh # messari:alpha') | crontab -## Alpha Brief — [Date]
**Cost:** ~$1.20 USDC | **Chain:** Base
### Emerging Narratives
**1. [Narrative Name]** — Conviction: HIGH/MEDIUM/LOW
Assets: [token1], [token2]
Signal: [why this narrative is heating up]
Risk: [key risk]
**2. [Narrative Name]** — Conviction: HIGH/MEDIUM/LOW
...
### Assets to Watch
| Asset | 24h Mindshare Δ | 7d Mindshare Δ | Catalyst |
|-------|----------------|----------------|---------|
| BTC | +12% | +8% | ETF inflows |
| ... | | | |
### Key News
- [headline 1]
- [headline 2]
- [headline 3]# Deep dive on a specific token
# → use messari-token-research skill
# Act on the research
mp token swap \
--wallet main \
--chain base \
--from-token usdc \
--from-amount <AMOUNT> \
--to-token <TOKEN>--chain base