{
  "openapi": "3.1.0",
  "info": {
    "title": "Doormat Capital signals API",
    "version": "1.0.0",
    "description": "Paid market-data endpoints settled in USDC on Base (x402). Pay by sending USDC to the address in the 402 challenge, then retry with header X-PAYMENT-TX: <tx hash>. See each route's 402 response for the current amount.",
    "x-guidance": "Paid, no free tier: GET /funding (market snapshot) and GET /wallet-scan?address=0x... (5-chain token balances) -- pay the USDC amount in the 402 challenge to the given address on Base, then retry with header X-PAYMENT-TX: <tx hash>.",
    "contact": {
      "email": "fleur.doormatcapital@gmail.com"
    }
  },
  "servers": [
    {
      "url": "https://signals.sebastiaan-ba3.workers.dev"
    }
  ],
  "paths": {
    "/funding": {
      "get": {
        "operationId": "getFunding",
        "summary": "Lighter perpetuals funding-rate and volume snapshot",
        "description": "Doormat Capital Lighter perp snapshot: top markets by 24h volume, funding rate per market, cross-exchange funding spread vs Lighter.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Funding snapshot, once paid."
          },
          "402": {
            "description": "Payment required.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "402 Payment Required (x402 v2). See the PAYMENT-REQUIRED response header (base64 JSON) for the machine-readable challenge; this body carries the same information plus human-readable how_to_pay steps."
                }
              }
            }
          }
        },
        "x-402": {
          "accepts": [
            {
              "scheme": "exact",
              "network": "eip155:8453",
              "amount": "10000",
              "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "payTo": "0x202B73254C28fA012BD11ff50425D94534b95594",
              "maxTimeoutSeconds": 60,
              "extra": {
                "name": "USD Coin",
                "version": "2"
              }
            }
          ]
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/wallet-scan": {
      "get": {
        "operationId": "getWalletScan",
        "summary": "Multi-chain wallet balance scan (5 chains)",
        "description": "Give any EVM address: returns every token balance found on Base, Ethereum, Arbitrum, zkSync Era and Polygon in one call (also flags obviously scam-named tokens it finds along the way). Not a transaction simulator or approval scanner -- see /wallet-scan's 402 body for exact scope.",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{40}$"
            },
            "description": "EVM address to scan (0x-prefixed, 40 hex chars)."
          }
        ],
        "responses": {
          "200": {
            "description": "Wallet scan result, once paid."
          },
          "402": {
            "description": "Payment required.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "402 Payment Required (x402 v2). See the PAYMENT-REQUIRED response header (base64 JSON) for the machine-readable challenge; this body carries the same information plus human-readable how_to_pay steps."
                }
              }
            }
          }
        },
        "x-402": {
          "accepts": [
            {
              "scheme": "exact",
              "network": "eip155:8453",
              "amount": "50000",
              "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "payTo": "0x202B73254C28fA012BD11ff50425D94534b95594",
              "maxTimeoutSeconds": 60,
              "extra": {
                "name": "USD Coin",
                "version": "2"
              }
            }
          ]
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    }
  }
}