{
 "openapi": "3.1.0",
 "info": {
  "title": "Elliott Wave Atlas data",
  "version": "1.1.0",
  "description": "Daily Elliott Wave counts for 100 markets, free, no key. Static JSON refreshed once a day after the close. Each market has one called count, the price that invalidates it, and target and invalidation levels from monthly to 15-minute. Also an MCP server at https://elliottwaveatlas.com/mcp and an A2A agent at https://elliottwaveatlas.com/a2a. Attribution with a link required; educational only, not investment advice."
 },
 "servers": [
  {
   "url": "https://elliottwaveatlas.com"
  }
 ],
 "paths": {
  "/data/index.json": {
   "get": {
    "operationId": "listMarkets",
    "summary": "Every market: called count, answer sentence and invalidation",
    "responses": {
     "200": {
      "description": "markets",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "updated": {
           "type": "string",
           "format": "date"
          },
          "groups": {
           "type": "array",
           "items": {
            "type": "string"
           }
          },
          "markets": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/MarketSummary"
           }
          },
          "disclaimer": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/data/markets/{slug}.json": {
   "get": {
    "operationId": "getMarket",
    "summary": "One market: called count, invalidation, levels per timeframe, recent history",
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "Lowercase symbol from listMarkets, e.g. spx, nvda, btc-usd, gold, nifty"
     }
    ],
    "responses": {
     "200": {
      "description": "market",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Market"
        }
       }
      }
     },
     "404": {
      "description": "unknown slug"
     }
    }
   }
  },
  "/data/changes.json": {
   "get": {
    "operationId": "listChanges",
    "summary": "Calls changed or invalidated, newest first",
    "responses": {
     "200": {
      "description": "changes",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "updated": {
           "type": "string"
          },
          "changes": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Change"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/markets/{slug}.md": {
   "get": {
    "operationId": "getMarketMarkdown",
    "summary": "One market as Markdown",
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "markdown",
      "content": {
       "text/markdown": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "MarketSummary": {
    "type": "object",
    "properties": {
     "symbol": {
      "type": "string"
     },
     "slug": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "group": {
      "type": "string"
     },
     "asof": {
      "type": "string",
      "format": "date",
      "description": "The close the count was made at"
     },
     "price": {
      "type": [
       "number",
       "null"
      ]
     },
     "headline": {
      "type": "string",
      "description": "The called count in one line"
     },
     "answer": {
      "type": "string",
      "description": "One-sentence answer: count, invalidation, daily target"
     },
     "invalidation": {
      "type": [
       "number",
       "null"
      ],
      "description": "Price at which the called count is wrong"
     },
     "status": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "held",
       "changed",
       "invalidated",
       "new",
       null
      ]
     }
    }
   },
   "Level": {
    "type": "object",
    "properties": {
     "timeframe": {
      "type": "string",
      "enum": [
       "Monthly",
       "Weekly",
       "Daily",
       "Hourly",
       "15-minute"
      ]
     },
     "degree": {
      "type": [
       "string",
       "null"
      ]
     },
     "direction": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "up",
       "down",
       null
      ]
     },
     "wave": {
      "type": "string",
      "description": "The wave in progress on this timeframe"
     },
     "target": {
      "type": "object",
      "properties": {
       "low": {
        "type": [
         "number",
         "null"
        ]
       },
       "high": {
        "type": [
         "number",
         "null"
        ]
       }
      },
      "description": "Target zone for the wave in progress"
     },
     "invalidation": {
      "type": [
       "number",
       "null"
      ],
      "description": "Price at which this timeframe's count is wrong"
     }
    }
   },
   "Market": {
    "allOf": [
     {
      "$ref": "#/components/schemas/MarketSummary"
     },
     {
      "type": "object",
      "properties": {
       "main": {
        "type": "object",
        "description": "The called count",
        "properties": {
         "summary": {
          "type": "string"
         },
         "structure": {
          "type": "string"
         },
         "next": {
          "type": "string",
          "description": "What comes next"
         },
         "invalid_if": {
          "type": [
           "object",
           "null"
          ],
          "properties": {
           "price": {
            "type": "number"
           },
           "direction": {
            "type": [
             "string",
             "null"
            ],
            "enum": [
             "above",
             "below",
             null
            ]
           }
          }
         }
        }
       },
       "levels": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/Level"
        }
       },
       "history": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "date": {
           "type": "string"
          },
          "price": {
           "type": [
            "number",
            "null"
           ]
          },
          "status": {
           "type": [
            "string",
            "null"
           ]
          },
          "headline": {
           "type": "string"
          }
         }
        }
       },
       "markdown": {
        "type": "string",
        "format": "uri"
       },
       "disclaimer": {
        "type": "string"
       }
      }
     }
    ]
   },
   "Change": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string",
      "format": "date"
     },
     "symbol": {
      "type": "string"
     },
     "slug": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "status": {
      "type": "string",
      "enum": [
       "changed",
       "invalidated"
      ]
     },
     "headline": {
      "type": "string"
     },
     "price": {
      "type": [
       "number",
       "null"
      ]
     }
    }
   }
  }
 }
}