MoonMaker API

Crypto API for AI Agents - Trading Signals & Market Data

Complete guide to integrating crypto trading signals API for AI agents. x402 protocol, USDC micropayments, real-time BTC/ETH/SOL signals for automated trading bots.

Crypto API for AI Agents - Trading Signals & Market Data

MoonMaker is the leading crypto intelligence API designed specifically for AI agents. Get real-time trading signals, market data, and risk analysis through simple HTTP requests with automatic USDC micropayments.

Why AI Agents Choose MoonMaker

No API Key Management

Traditional APIs require API keys, registration, and credential management. MoonMaker uses x402 protocol — agents pay per request with USDC on Base L2. No registration, no keys, no billing dashboards.

Built for Agent Consumption

  • Machine-readable docs: /llms.txt and /llms-full.txt
  • OpenAPI 3.0 spec: Complete schema for automatic client generation
  • Structured responses: Consistent JSON optimized for programmatic parsing
  • Agent discovery: /.well-known/agents.json for marketplace discovery

Pay-per-Use Economics

Stop paying for unused API quotas. MoonMaker's micropayment model means agents only pay when they need data:

  • $0.05 per trading signal
  • $0.02 per ETF flow update
  • $0.10 per market overview

Core Features for Trading Bots

Real-Time Trading Signals

Get actionable trading signals with confidence scores and precise entry/exit levels:

{
  "coin": "BTC",
  "signal": {
    "direction": "STRONG_LONG",
    "confidence": 72,
    "strength": 3
  },
  "levels": {
    "entry": 70500,
    "stop_loss": 69200,
    "take_profit_1": 72000,
    "take_profit_2": 73800,
    "take_profit_3": 76000
  },
  "votes": {
    "long": 16,
    "short": 6,
    "neutral": 3
  }
}

25-Indicator Ensemble Scoring

Unlike black-box APIs, MoonMaker shows you exactly how signals are generated:

  • Trend indicators: EMA, MACD, Parabolic SAR, Ichimoku
  • Momentum indicators: RSI, Stochastic, Williams %R, CCI
  • Volume indicators: OBV, A/D Line, VWAP, Chaikin MF
  • Sentiment indicators: Fear & Greed, funding rates, social metrics

Risk Management Integration

Advanced risk analysis for proper position sizing:

  • Stop-loss recommendations based on volatility
  • Position sizing using Kelly Criterion
  • Support/resistance levels for entry timing
  • Risk-reward ratios for trade validation

Supported Use Cases

Automated Trading Bots

# Simple trading bot integration
from x402.client import x402_fetch

def get_trading_signal(coin):
    response = x402_fetch(
        f"https://api.moonmaker.cc/signal/{coin}",
        wallet=bot_wallet
    )
    return response.json()

def execute_trade(signal):
    if signal["signal"]["direction"].startswith("LONG"):
        # Execute long position
        entry_price = signal["levels"]["entry"]
        stop_loss = signal["levels"]["stop_loss"]
        take_profit = signal["levels"]["take_profit_1"]
        
        place_order(
            side="buy",
            price=entry_price,
            stop_loss=stop_loss,
            take_profit=take_profit
        )

Portfolio Management Agents

Monitor market conditions and adjust allocations:

def update_portfolio_allocation():
    # Get market regime
    regime = x402_fetch(
        "https://api.moonmaker.cc/regime",
        wallet=portfolio_wallet
    ).json()
    
    # Get institutional flows
    institutions = x402_fetch(
        "https://api.moonmaker.cc/institutions", 
        wallet=portfolio_wallet
    ).json()
    
    if (regime["current_regime"] == "markup" and 
        institutions["recent_flows"]["trend"] == "accumulating"):
        # Increase crypto allocation
        rebalance_portfolio(crypto_weight=0.75)

Risk Management Systems

def calculate_position_size(coin, capital):
    risk_data = x402_fetch(
        f"https://api.moonmaker.cc/risk/{coin}",
        wallet=risk_wallet
    ).json()
    
    recommended_size = risk_data["position_sizing"]["recommended_position_size"]
    max_size = risk_data["position_sizing"]["max_position_size"] 
    
    return min(recommended_size * capital, max_size * capital)

Technical Integration Guide

Quick Start for AI Agents

  1. Set up Base L2 wallet with USDC balance
  2. Install x402 client for your language
  3. Start making requests — payment is automatic

Python Integration

pip install requests-x402
from x402.client import x402_fetch
import os

# Configure wallet
wallet_private_key = os.getenv("WALLET_PRIVATE_KEY")
wallet = {"private_key": wallet_private_key, "network": "base"}

# Get signal
response = x402_fetch(
    "https://api.moonmaker.cc/signal/BTC",
    wallet=wallet
)

signal = response.json()
print(f"Signal: {signal['signal']['direction']}")
print(f"Confidence: {signal['signal']['confidence']}")

JavaScript/TypeScript Integration

npm install x402-fetch
import { x402Fetch } from 'x402-fetch';

const wallet = {
  privateKey: process.env.WALLET_PRIVATE_KEY,
  network: 'base'
};

const response = await x402Fetch(
  'https://api.moonmaker.cc/signal/BTC',
  { wallet }
);

const signal = await response.json();

Performance & Reliability

Proven Track Record

  • 68% win rate on 24-hour signals
  • +15.2% alpha vs buy-and-hold
  • 1.8 profit factor (gains/losses ratio)
  • 99.8% uptime over 30 days

Built for Scale

  • Sub-second payment settlement on Base L2
  • Under 200ms average response time
  • No rate limits (pay-per-call naturally limits usage)
  • Automatic failover and redundancy

Market Data & Intelligence

Institutional Flow Tracking

Monitor corporate Bitcoin accumulation in real-time:

  • MicroStrategy, Tesla, Marathon and 10+ companies
  • SEC filing alerts for new purchases
  • Trend analysis of institutional adoption

ETF Flow Analysis

Track institutional demand through ETF flows:

  • Daily flows by fund (IBIT, FBTC, GBTC, etc.)
  • Net inflow/outflow trends
  • Total AUM tracking

Economic Event Calendar

Get ahead of market-moving events:

  • FOMC meetings, CPI releases, NFP
  • Historical price impact analysis
  • Importance scoring (1-3 scale)

Agent Discovery & Distribution

Virtuals Protocol Integration

Available on Virtuals ACP marketplace as Agent ID 3993:

  • 2,100+ AI agents can discover MoonMaker
  • Native agent-to-agent commerce
  • Built-in reputation system

OpenClaw Compatibility

Perfect for OpenClaw-based agents:

  • Direct web_fetch integration for free endpoints
  • x402 wallet integration for paid endpoints
  • Skill marketplace distribution

Comparison with Traditional APIs

FeatureMoonMakerTraditional Crypto APIs
SetupNo registrationAPI key required
Pricing$0.02-$0.10 per call$50-500/month
PaymentUSDC micropaymentsCredit card subscription
AI IntegrationNative supportManual integration
TransparencyFull indicator breakdownBlack box results
Rate LimitsPay-per-useHard quotas
PermissionlessAny walletApproved accounts only

Getting Started

1. Test Free Endpoints

curl https://api.moonmaker.cc/health
curl https://api.moonmaker.cc/stats

2. Check Documentation

3. Set Up Wallet

  • Get USDC on Base L2
  • Add small ETH balance for gas
  • Use with x402-compatible client

4. Join Community

Advanced Features

Custom Model Training

Use /context/{coin} to get raw indicator data for training your own models:

context = x402_fetch(
    "https://api.moonmaker.cc/context/BTC",
    wallet=wallet
).json()

indicators = context["indicators"]
# Feed into your ML model

Multi-Asset Strategies

Correlate signals across BTC, ETH, and SOL:

signals = {}
for coin in ["BTC", "ETH", "SOL"]:
    signals[coin] = get_trading_signal(coin)

# Implement cross-asset strategies

Market Regime Adaptation

Adjust strategies based on market conditions:

regime = get_market_regime()
if regime["current_regime"] == "fear_capitulation":
    # Use contrarian strategy
    signals = invert_signals(raw_signals)
elif regime["current_regime"] == "markup":
    # Use momentum strategy  
    signals = enhance_momentum(raw_signals)

MoonMaker is the only crypto API built from the ground up for AI agents. No registration barriers, no subscription lock-in, no API key management complexity. Just pure intelligence, paid for transparently, delivered instantly.

Start building smarter crypto agents today.

On this page