{
  "openapi": "3.1.0",
  "info": {
    "title": "BOURSE",
    "version": "1.0.0",
    "description": "Market data for AI agents on Robinhood Chain: official stock tokens, the gap to Wall Street, SEC filings and earnings. 100 free answers a day; $0.001 per answer in USDG after that."
  },
  "servers": [
    {
      "url": "https://bourse.mainapp.xyz"
    }
  ],
  "paths": {
    "/v1/market": {
      "get": {
        "summary": "Wall Street session and next open",
        "parameters": [
          {
            "name": "x-api-key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Paid answers."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "wallStreet": "closed",
                  "session": "pre-market",
                  "nyDate": "2026-11-24",
                  "nextOpen": "2026-11-24T14:30:00.000Z",
                  "stockTokens": "open 24/7 on Robinhood Chain"
                }
              }
            }
          },
          "402": {
            "description": "Out of answers: payment terms",
            "content": {
              "application/json": {
                "example": {
                  "error": "Free limit reached (100 answers today). Pay per answer in USDG to keep going.",
                  "x402Version": 1,
                  "accepts": [
                    {
                      "scheme": "deposit",
                      "network": "robinhood-chain",
                      "chainId": 4663,
                      "asset": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
                      "assetSymbol": "USDG",
                      "payTo": "0x…",
                      "pricePerAnswer": "0.001",
                      "answersPerUsdg": 1000,
                      "howTo": "Sign \"BOURSE API key for <your wallet>\" with your wallet, POST it to /v1/keys for your key, send USDG from that wallet to payTo, then send your key as the x-api-key header."
                    }
                  ],
                  "free": "100 answers a day per IP, no key needed"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stocks": {
      "get": {
        "summary": "Every official Robinhood stock token",
        "parameters": [
          {
            "name": "x-api-key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Paid answers."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "market": {
                    "wallStreet": "closed",
                    "session": "pre-market",
                    "nyDate": "2026-11-24",
                    "nextOpen": "2026-11-24T14:30:00.000Z",
                    "stockTokens": "open 24/7 on Robinhood Chain"
                  },
                  "count": 212,
                  "thinUnderUsd": 10000,
                  "stocks": [
                    {
                      "symbol": "AAOI",
                      "name": "Applied Optoelectronics, Inc.",
                      "token": "0x521cf887e6531c6f667b5bc4d896e5d9bfe8eb2e",
                      "official": true,
                      "chainPrice": 38.4763,
                      "chainPricePerShare": 38.4763,
                      "sharesPerToken": 1,
                      "wallStreetPrice": 38.7,
                      "lastClose": 38.7,
                      "extendedHoursPrice": 36.312,
                      "gapPct": -0.58,
                      "gapVs": "last Wall Street close",
                      "gapVsExtendedPct": 5.96,
                      "volume24h": 38,
                      "thin": true,
                      "paused": false,
                      "oraclePaused": false,
                      "exchange": "NasdaqGM",
                      "terms": "https://robinhood.com/stocktoken/rhj",
                      "explorer": "https://robinhoodchain.blockscout.com/token/0x521cf887e6531c6f667b5bc4d896e5d9bfe8eb2e"
                    }
                  ],
                  "…": "211 more"
                }
              }
            }
          },
          "402": {
            "description": "Out of answers: payment terms",
            "content": {
              "application/json": {
                "example": {
                  "error": "Free limit reached (100 answers today). Pay per answer in USDG to keep going.",
                  "x402Version": 1,
                  "accepts": [
                    {
                      "scheme": "deposit",
                      "network": "robinhood-chain",
                      "chainId": 4663,
                      "asset": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
                      "assetSymbol": "USDG",
                      "payTo": "0x…",
                      "pricePerAnswer": "0.001",
                      "answersPerUsdg": 1000,
                      "howTo": "Sign \"BOURSE API key for <your wallet>\" with your wallet, POST it to /v1/keys for your key, send USDG from that wallet to payTo, then send your key as the x-api-key header."
                    }
                  ],
                  "free": "100 answers a day per IP, no key needed"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stocks/{symbol}": {
      "get": {
        "summary": "One stock token",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "NVDA"
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Paid answers."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "symbol": "NVDA",
                  "name": "NVIDIA Corporation",
                  "token": "0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec",
                  "official": true,
                  "chainPrice": 155.284,
                  "chainPricePerShare": 155.1637,
                  "sharesPerToken": 1.000775,
                  "wallStreetPrice": 165.05,
                  "lastClose": 165.05,
                  "extendedHoursPrice": 155.111,
                  "gapPct": -5.99,
                  "gapVs": "last Wall Street close",
                  "gapVsExtendedPct": 0.03,
                  "volume24h": 68011363,
                  "thin": false,
                  "paused": false,
                  "oraclePaused": false,
                  "exchange": "NasdaqGS",
                  "terms": "https://robinhood.com/stocktoken/rhj",
                  "explorer": "https://robinhoodchain.blockscout.com/token/0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec"
                }
              }
            }
          },
          "402": {
            "description": "Out of answers: payment terms",
            "content": {
              "application/json": {
                "example": {
                  "error": "Free limit reached (100 answers today). Pay per answer in USDG to keep going.",
                  "x402Version": 1,
                  "accepts": [
                    {
                      "scheme": "deposit",
                      "network": "robinhood-chain",
                      "chainId": 4663,
                      "asset": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
                      "assetSymbol": "USDG",
                      "payTo": "0x…",
                      "pricePerAnswer": "0.001",
                      "answersPerUsdg": 1000,
                      "howTo": "Sign \"BOURSE API key for <your wallet>\" with your wallet, POST it to /v1/keys for your key, send USDG from that wallet to payTo, then send your key as the x-api-key header."
                    }
                  ],
                  "free": "100 answers a day per IP, no key needed"
                }
              }
            }
          },
          "404": {
            "description": "No official token for this ticker"
          }
        }
      }
    },
    "/v1/gaps": {
      "get": {
        "summary": "Ranked by the gap to Wall Street",
        "parameters": [
          {
            "name": "x-api-key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Paid answers."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "market": {
                    "wallStreet": "closed",
                    "session": "pre-market",
                    "nyDate": "2026-11-24",
                    "nextOpen": "2026-11-24T14:30:00.000Z",
                    "stockTokens": "open 24/7 on Robinhood Chain"
                  },
                  "onlyTokensTradingOver": 10000,
                  "gaps": [
                    {
                      "symbol": "MU",
                      "name": "Micron Technology, Inc.",
                      "chainPricePerShare": 657.4762,
                      "wallStreetPrice": 707.7,
                      "lastClose": 707.7,
                      "extendedHoursPrice": 657.7,
                      "gapPct": -7.1,
                      "gapVs": "last Wall Street close",
                      "gapVsExtendedPct": -0.03,
                      "volume24h": 3679785
                    },
                    {
                      "symbol": "INTC",
                      "name": "Intel Corporation",
                      "chainPricePerShare": 55.8464,
                      "wallStreetPrice": 59.66,
                      "lastClose": 59.66,
                      "extendedHoursPrice": 55.75,
                      "gapPct": -6.39,
                      "gapVs": "last Wall Street close",
                      "gapVsExtendedPct": 0.17,
                      "volume24h": 1066474
                    },
                    {
                      "symbol": "CRWV",
                      "name": "CoreWeave, Inc.",
                      "chainPricePerShare": 45.2904,
                      "wallStreetPrice": 48.33,
                      "lastClose": 48.33,
                      "extendedHoursPrice": 45.36,
                      "gapPct": -6.29,
                      "gapVs": "last Wall Street close",
                      "gapVsExtendedPct": -0.15,
                      "volume24h": 122690
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Out of answers: payment terms",
            "content": {
              "application/json": {
                "example": {
                  "error": "Free limit reached (100 answers today). Pay per answer in USDG to keep going.",
                  "x402Version": 1,
                  "accepts": [
                    {
                      "scheme": "deposit",
                      "network": "robinhood-chain",
                      "chainId": 4663,
                      "asset": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
                      "assetSymbol": "USDG",
                      "payTo": "0x…",
                      "pricePerAnswer": "0.001",
                      "answersPerUsdg": 1000,
                      "howTo": "Sign \"BOURSE API key for <your wallet>\" with your wallet, POST it to /v1/keys for your key, send USDG from that wallet to payTo, then send your key as the x-api-key header."
                    }
                  ],
                  "free": "100 answers a day per IP, no key needed"
                }
              }
            }
          }
        }
      }
    },
    "/v1/filings/{symbol}": {
      "get": {
        "summary": "SEC EDGAR filings",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "NVDA"
          },
          {
            "name": "forms",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "example": "8-K,10-Q"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Paid answers."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "symbol": "NVDA",
                  "company": "NVIDIA CORP",
                  "cik": "0001045810",
                  "filings": [
                    {
                      "form": "8-K",
                      "filed": "2026-11-23",
                      "accepted": "2026-11-23T13:57:54.000Z",
                      "reportDate": "2026-11-22",
                      "items": [
                        "5.02",
                        "9.01"
                      ],
                      "description": "8-K",
                      "url": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000090/nvda-20261122.htm"
                    },
                    {
                      "form": "8-K",
                      "filed": "2026-11-17",
                      "accepted": "2026-11-17T21:20:51.000Z",
                      "reportDate": "2026-11-17",
                      "items": [
                        "2.02",
                        "9.01"
                      ],
                      "description": "8-K",
                      "url": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000088/nvda-20261117.htm"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Out of answers: payment terms",
            "content": {
              "application/json": {
                "example": {
                  "error": "Free limit reached (100 answers today). Pay per answer in USDG to keep going.",
                  "x402Version": 1,
                  "accepts": [
                    {
                      "scheme": "deposit",
                      "network": "robinhood-chain",
                      "chainId": 4663,
                      "asset": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
                      "assetSymbol": "USDG",
                      "payTo": "0x…",
                      "pricePerAnswer": "0.001",
                      "answersPerUsdg": 1000,
                      "howTo": "Sign \"BOURSE API key for <your wallet>\" with your wallet, POST it to /v1/keys for your key, send USDG from that wallet to payTo, then send your key as the x-api-key header."
                    }
                  ],
                  "free": "100 answers a day per IP, no key needed"
                }
              }
            }
          }
        }
      }
    },
    "/v1/earnings/{symbol}": {
      "get": {
        "summary": "Earnings releases (8-K item 2.02) and periodic reports",
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "NVDA"
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Paid answers."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "symbol": "NVDA",
                  "company": "NVIDIA CORP",
                  "lastEarningsRelease": {
                    "form": "8-K",
                    "filed": "2026-11-17",
                    "accepted": "2026-11-17T21:20:51.000Z",
                    "reportDate": "2026-11-17",
                    "items": [
                      "2.02",
                      "9.01"
                    ],
                    "description": "8-K",
                    "url": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000088/nvda-20261117.htm"
                  },
                  "earningsReleases": [
                    {
                      "form": "8-K",
                      "filed": "2026-11-17",
                      "accepted": "2026-11-17T21:20:51.000Z",
                      "reportDate": "2026-11-17",
                      "items": [
                        "2.02",
                        "9.01"
                      ],
                      "description": "8-K",
                      "url": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000088/nvda-20261117.htm"
                    }
                  ],
                  "periodicReports": [
                    {
                      "form": "10-Q",
                      "filed": "2026-08-26",
                      "accepted": "2026-08-26T20:36:00.000Z",
                      "reportDate": "2026-07-26",
                      "items": [],
                      "description": "10-Q",
                      "url": "https://www.sec.gov/Archives/edgar/data/1045810/000104581026000075/nvda-20260726.htm"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Out of answers: payment terms",
            "content": {
              "application/json": {
                "example": {
                  "error": "Free limit reached (100 answers today). Pay per answer in USDG to keep going.",
                  "x402Version": 1,
                  "accepts": [
                    {
                      "scheme": "deposit",
                      "network": "robinhood-chain",
                      "chainId": 4663,
                      "asset": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
                      "assetSymbol": "USDG",
                      "payTo": "0x…",
                      "pricePerAnswer": "0.001",
                      "answersPerUsdg": 1000,
                      "howTo": "Sign \"BOURSE API key for <your wallet>\" with your wallet, POST it to /v1/keys for your key, send USDG from that wallet to payTo, then send your key as the x-api-key header."
                    }
                  ],
                  "free": "100 answers a day per IP, no key needed"
                }
              }
            }
          }
        }
      }
    },
    "/v1/check/{address}": {
      "get": {
        "summary": "Is this an official Robinhood stock token?",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{40}$"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Paid answers."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "address": "0xd060f448de7bccb6e54b0cb8d5bc871c8d339eec",
                  "symbol": "NVDA",
                  "official": false,
                  "verdict": "NOT an official Robinhood stock token",
                  "listed": false,
                  "realToken": "0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec"
                }
              }
            }
          },
          "402": {
            "description": "Out of answers: payment terms",
            "content": {
              "application/json": {
                "example": {
                  "error": "Free limit reached (100 answers today). Pay per answer in USDG to keep going.",
                  "x402Version": 1,
                  "accepts": [
                    {
                      "scheme": "deposit",
                      "network": "robinhood-chain",
                      "chainId": 4663,
                      "asset": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
                      "assetSymbol": "USDG",
                      "payTo": "0x…",
                      "pricePerAnswer": "0.001",
                      "answersPerUsdg": 1000,
                      "howTo": "Sign \"BOURSE API key for <your wallet>\" with your wallet, POST it to /v1/keys for your key, send USDG from that wallet to payTo, then send your key as the x-api-key header."
                    }
                  ],
                  "free": "100 answers a day per IP, no key needed"
                }
              }
            }
          }
        }
      }
    },
    "/v1/keys": {
      "post": {
        "summary": "Get an API key by signing with your wallet",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "wallet",
                  "signature"
                ],
                "properties": {
                  "wallet": {
                    "type": "string"
                  },
                  "signature": {
                    "type": "string",
                    "description": "personal_sign of \"BOURSE API key for <wallet lowercase>\""
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Your key"
          },
          "401": {
            "description": "Signature does not match"
          }
        }
      }
    },
    "/v1/balance": {
      "get": {
        "summary": "Answers left on your key",
        "parameters": [
          {
            "name": "x-api-key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Optional. Paid answers."
          }
        ],
        "responses": {
          "200": {
            "description": "Balance"
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "summary": "MCP server (JSON-RPC 2.0, streamable HTTP)",
        "responses": {
          "200": {
            "description": "JSON-RPC response"
          }
        }
      }
    }
  }
}