Skip to main content

Overview

This guide walks you through:
  1. Creating a Carbon Copy account
  2. Generating an API key
  3. Making your first request
  4. Iterating from there

Step 1 — Create an account

Head to carboncopy.news and sign in with your Privy wallet or email. Once authenticated, connect your Polymarket wallet under Settings → Wallet.

Step 2 — Generate an API key

Navigate to Settings → API Keys in the Dashboard, then click New Key. Configure the scopes you need — for a read-only monitoring bot, portfolio:read and traders:read are sufficient. For a bot that can follow/unfollow traders, also add traders:write.
The key secret (cc_<64 hex chars>) is shown exactly once at creation time. Copy it to your password manager or secrets store immediately.
You can also create keys via the API itself (requires a Privy JWT):
curl -X POST https://carboncopy.news/api/v1/keys \
  -H "Authorization: Bearer <your-privy-jwt>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "monitoring-bot",
    "scopes": {
      "portfolio": "read",
      "traders": "read"
    }
  }'

Step 3 — Make your first request

Verify the API is reachable (no auth required):
curl https://carboncopy.news/api/v1/health
{
  "status": "ok",
  "version": "1.0.0",
  "timestamp": 1741600000000
}
Now fetch your portfolio summary using your new key:
export CC_API_KEY="cc_your_key_here"

curl https://carboncopy.news/api/v1/portfolio \
  -H "Authorization: Bearer $CC_API_KEY"
{
  "totalValue": 5420.75,
  "activePositions": 12,
  "totalPnL": 420.50,
  "totalPnLPercent": 8.41,
  "winRate": 62.5,
  "totalTrades": 48,
  "traders": [...]
}

Step 4 — Follow a trader

To start copying a wallet, your key needs traders:write scope:
curl -X POST https://carboncopy.news/api/v1/traders \
  -H "Authorization: Bearer $CC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "walletAddress": "0xAbCd1234...",
    "copyPercentage": 25,
    "maxCopyAmount": 500
  }'
This will copy 25% of every trade by 0xAbCd1234..., up to a maximum of $500 USDC per trade.

Step 5 — Monitor your positions

Poll open positions to track what’s currently deployed:
curl "https://carboncopy.news/api/v1/portfolio/positions?limit=20" \
  -H "Authorization: Bearer $CC_API_KEY"
See Pagination for iterating beyond the first page.

Next steps