{
  "openapi": "3.1.0",
  "info": {
    "title": "Equito API",
    "version": "0.2.0",
    "description": "Stock token data for AI agents on Robinhood Chain (chain 4663): every token, live prices, the DEX premium over the real stock, pool depth, candles, wallet portfolios, corporate actions, Uniswap quotes and unsigned trades. 50 free calls a day per IP, then $0.02 a call in USDG over x402. Equito never holds keys, signs or sends a transaction."
  },
  "servers": [
    {
      "url": "https://equito.pages.dev"
    }
  ],
  "paths": {
    "/v1/assets": {
      "get": {
        "operationId": "list_assets",
        "summary": "Every stock token on Robinhood Chain: symbol, name, contract, multiplier, status, trading capabilities.",
        "parameters": [
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/assets/{symbol}": {
      "get": {
        "operationId": "get_asset",
        "summary": "One stock token's registry entry.",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Stock token ticker, e.g. NVDA",
            "schema": {
              "type": "string"
            },
            "example": "NVDA"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/prices/{symbol}": {
      "get": {
        "operationId": "get_price",
        "summary": "Robinhood's token bid/ask (already times the multiplier), the real stock's bid/ask, daily high/low/volume and trading halt flag.",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Stock token ticker, e.g. NVDA",
            "schema": {
              "type": "string"
            },
            "example": "NVDA"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stats/{symbol}": {
      "get": {
        "operationId": "get_stats",
        "summary": "Live: Uniswap v3 price vs Robinhood's price (premiumPct), every USDG pool's depth, supply and market cap. Falls back to the last collector run (live: false) when the chain cannot be read.",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Stock token ticker, e.g. NVDA",
            "schema": {
              "type": "string"
            },
            "example": "NVDA"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stats": {
      "get": {
        "operationId": "list_stats",
        "summary": "Every token from the last collector run (about hourly): price, DEX price, premium, liquidity.",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "liquidity (default), premium or symbol",
            "schema": {
              "type": "string",
              "enum": [
                "liquidity",
                "premium",
                "symbol"
              ]
            },
            "example": "liquidity"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/history/{symbol}": {
      "get": {
        "operationId": "get_history",
        "summary": "Candles of Robinhood's token price with the DEX close and pool depth per bucket, from the collector's points.",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Stock token ticker, e.g. NVDA",
            "schema": {
              "type": "string"
            },
            "example": "NVDA"
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "description": "1h (default), 4h or 1d",
            "schema": {
              "type": "string",
              "enum": [
                "1h",
                "4h",
                "1d"
              ]
            },
            "example": "1h"
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "1 to 90, default 7",
            "schema": {
              "type": "string"
            },
            "example": "7"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quote": {
      "get": {
        "operationId": "get_quote",
        "summary": "A real Uniswap v3 quote through QuoterV2 on the best USDG pool: amount out, effective price, price impact, gap to Robinhood's price.",
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": true,
            "description": "Stock token ticker",
            "schema": {
              "type": "string"
            },
            "example": "NVDA"
          },
          {
            "name": "side",
            "in": "query",
            "required": true,
            "description": "buy (spend USDG) or sell (spend tokens)",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            },
            "example": "buy"
          },
          {
            "name": "amount",
            "in": "query",
            "required": true,
            "description": "USDG to spend when buying, tokens to sell when selling",
            "schema": {
              "type": "string"
            },
            "example": "100"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/trade/build": {
      "post": {
        "operationId": "build_trade",
        "summary": "Unsigned approve + swap for SwapRouter02 with a slippage floor and a 10 minute deadline. Send them yourself, in order, from the wallet that holds the input. Equito never signs or sends.",
        "parameters": [
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "symbol",
                  "side",
                  "amount",
                  "recipient"
                ],
                "properties": {
                  "symbol": {
                    "type": "string",
                    "description": "Stock token ticker"
                  },
                  "side": {
                    "type": "string",
                    "enum": [
                      "buy",
                      "sell"
                    ]
                  },
                  "amount": {
                    "type": "string",
                    "description": "USDG to spend (buy) or tokens to sell (sell)"
                  },
                  "recipient": {
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$",
                    "description": "Wallet that receives the output"
                  },
                  "slippageBps": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "description": "Default 50 (0.5%)"
                  }
                }
              }
            }
          }
        },
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "40000",
          "priceUsd": 0.04,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portfolio/{address}": {
      "get": {
        "operationId": "get_portfolio",
        "summary": "Every stock token a wallet holds, valued at Robinhood's live price, plus its USDG.",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "Wallet address, 0x + 40 hex",
            "schema": {
              "type": "string"
            },
            "example": "0x759Cf0e19d45c1dCA28977703b69Fd93a3f6a136"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/corporate-actions": {
      "get": {
        "operationId": "corporate_actions",
        "summary": "Dividends, splits and other events that change a token's multiplier, from Robinhood.",
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": false,
            "description": "Only this ticker",
            "schema": {
              "type": "string"
            },
            "example": "NVDA"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/research/{symbol}": {
      "get": {
        "operationId": "get_research",
        "summary": "The company behind a stock token, from SEC EDGAR: name, industry, shares outstanding, latest annual and quarterly revenue, net income, EPS, assets, liabilities, cash, operating cash flow, and recent filings with links.",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "Stock token ticker, e.g. NVDA",
            "schema": {
              "type": "string"
            },
            "example": "NVDA"
          },
          {
            "name": "filings",
            "in": "query",
            "required": false,
            "description": "How many recent filings, 1 to 40, default 10",
            "schema": {
              "type": "string"
            },
            "example": "10"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/markets": {
      "get": {
        "operationId": "list_launches",
        "summary": "Newest Pons launches on Robinhood Chain (token, ticker, pool, creator, time), each with how many launches in the window reuse its ticker. From the collector, about hourly.",
        "parameters": [
          {
            "name": "hours",
            "in": "query",
            "required": false,
            "description": "1 to 168, default 24",
            "schema": {
              "type": "string"
            },
            "example": "24"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "1 to 200, default 50",
            "schema": {
              "type": "string"
            },
            "example": "50"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/alerts": {
      "post": {
        "operationId": "create_alert",
        "summary": "A 7-day webhook alert: when a token's metric crosses your value, Equito POSTs a signed JSON message (equito-signature: t=..,v1=HMAC-SHA256). Checked about hourly. Returns the id and the webhook secret once.",
        "parameters": [
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "symbol",
                  "metric",
                  "op",
                  "value",
                  "webhookUrl"
                ],
                "properties": {
                  "symbol": {
                    "type": "string",
                    "description": "Stock token ticker"
                  },
                  "metric": {
                    "type": "string",
                    "enum": [
                      "token_price",
                      "dex_price",
                      "premium_pct",
                      "liquidity_usd"
                    ]
                  },
                  "op": {
                    "type": "string",
                    "enum": [
                      "above",
                      "below"
                    ]
                  },
                  "value": {
                    "type": "number",
                    "description": "Percent for premium_pct, USD otherwise"
                  },
                  "webhookUrl": {
                    "type": "string",
                    "description": "Public https URL that receives the alert"
                  }
                }
              }
            }
          }
        },
        "x-payment": {
          "protocol": "x402",
          "version": 2,
          "scheme": "exact",
          "network": "eip155:4663",
          "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
          "amount": "20000",
          "priceUsd": 0.02,
          "freeCallsPerDay": 50
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/alerts/{id}": {
      "get": {
        "operationId": "get_alert",
        "summary": "An alert's state: met or not, last value, times fired, last webhook status. Free.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "al_ + 32 hex, from create_alert",
            "schema": {
              "type": "string"
            },
            "example": "al_00000000000000000000000000000000"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete_alert",
        "summary": "Stop an alert. Free.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "al_ + 32 hex",
            "schema": {
              "type": "string"
            },
            "example": "al_00000000000000000000000000000000"
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "base64 x402 v2 payment payload (after the free calls)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-holder",
            "in": "header",
            "required": false,
            "description": "Your address, for the holder price once $EQUITO is live",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required (x402 v2). Same JSON base64 in the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown symbol or no pool",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "An upstream (Robinhood or the chain) could not be read; nothing charged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/pricing": {
      "get": {
        "operationId": "get_pricing",
        "summary": "Price, free calls, asset, network, payTo, facilitator, holder price. Free.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}