{
  "openapi": "3.1.0",
  "info": {
    "title": "Lord of TA",
    "version": "1.0.0",
    "description": "Public read API for Lord of TA. Daily-bar technical levels (pivots, volume profile, anchored VWAP, Bollinger, setup counts) and empirical hit rates of classic TA rules for the US tickers this site covers. Descriptive market levels from daily bars. Not a forecast and not trade advice. Published daily levels are the top 100 US common stocks by trailing 20-session average dollar volume, chosen from 230 liquid-equity candidates. Scan universes together list 81 names. GET /api/rank and GET /api/signals need at least 100 daily bars. /t/{symbol}.json still returns the stored study when that rank history is short. POST /mcp: At most 10 symbols per request. 60 requests per IP per minute. 10 uncached Yahoo fetches per IP per minute; a cached symbol does not spend that budget. GET /api/screener with an explicit ticker list and no named universe is rejected above 10 symbols. A named universe is scored up to 500 rows. The JSON GET routes in this document do not apply a separate per-IP request window. Not trade advice."
  },
  "servers": [
    {
      "url": "https://lordofta.com"
    }
  ],
  "paths": {
    "/levels.json": {
      "get": {
        "operationId": "get_levels",
        "summary": "Newest stored daily technical levels",
        "description": "Top-100 prior-session OHLC, classic floor pivots, and SMA 20/50/200 for liquid equities. Index products such as SPY are not in this list. The example is illustrative: one published-row shape, not a stored session and not today's volume rank. 404 JSON {error} when no snapshot is stored.",
        "responses": {
          "200": {
            "description": "Newest stored daily technical levels",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LevelsSnapshot"
                },
                "example": {
                  "schema": "lota.levels.v1",
                  "session_date": "2026-09-24",
                  "applies_to": "2026-09-25",
                  "timezone": "America/New_York",
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "disclaimer": "Descriptive market levels from daily bars. Not a forecast and not trade advice.",
                  "symbols_published": 1,
                  "symbols": [
                    {
                      "symbol": "NVDA",
                      "session_date": "2026-09-24",
                      "prior_session": {
                        "date": "2026-09-24",
                        "open": 100.5,
                        "high": 102.0,
                        "low": 99.0,
                        "close": 100.0,
                        "volume": 1000000.0,
                        "dollar_volume": 100000000.0
                      },
                      "avg_share_volume_20": 1000000.0,
                      "avg_dollar_volume_20": 100000000.0,
                      "volume_window_bars": 20,
                      "sma": {
                        "20": 100.0,
                        "50": 100.0,
                        "200": 100.0
                      },
                      "pivots": {
                        "p": 100.3333,
                        "r1": 101.6667,
                        "r2": 103.3333,
                        "r3": 104.6667,
                        "s1": 98.6667,
                        "s2": 97.3333,
                        "s3": 95.6667
                      },
                      "rank": 1
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/levels/{date}.json": {
      "get": {
        "operationId": "get_levels_by_date",
        "summary": "Stored daily technical levels for one session",
        "description": "Same payload as /levels.json for one YYYY-MM-DD cash session that is stored. The example is illustrative and uses the same published-row shape. 404 JSON {error} when that day is missing.",
        "responses": {
          "200": {
            "description": "Stored daily technical levels for one session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LevelsSnapshot"
                },
                "example": {
                  "schema": "lota.levels.v1",
                  "session_date": "2026-09-24",
                  "applies_to": "2026-09-25",
                  "timezone": "America/New_York",
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "disclaimer": "Descriptive market levels from daily bars. Not a forecast and not trade advice.",
                  "symbols_published": 1,
                  "symbols": [
                    {
                      "symbol": "NVDA",
                      "session_date": "2026-09-24",
                      "prior_session": {
                        "date": "2026-09-24",
                        "open": 100.5,
                        "high": 102.0,
                        "low": 99.0,
                        "close": 100.0,
                        "volume": 1000000.0,
                        "dollar_volume": 100000000.0
                      },
                      "avg_share_volume_20": 1000000.0,
                      "avg_dollar_volume_20": 100000000.0,
                      "volume_window_bars": 20,
                      "sma": {
                        "20": 100.0,
                        "50": 100.0,
                        "200": 100.0
                      },
                      "pivots": {
                        "p": 100.3333,
                        "r1": 101.6667,
                        "r2": 103.3333,
                        "r3": 104.6667,
                        "s1": 98.6667,
                        "s2": 97.3333,
                        "s3": 95.6667
                      },
                      "rank": 1
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "date",
            "in": "path",
            "required": true,
            "description": "US cash session, YYYY-MM-DD",
            "schema": {
              "type": "string",
              "example": "2026-09-24",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "example": "2026-09-24"
          }
        ]
      }
    },
    "/t/{symbol}.json": {
      "get": {
        "operationId": "get_symbol_study",
        "summary": "One symbol's study and hit rates",
        "description": "Schema lota.symbol-study.v1. Volume profile, setup counts, anchored VWAP, Bollinger state, and hit_rates when they can be scored. A stored study is still returned when rank history is under 100 daily bars; hit_rates is then null. The 100-bar floor is /api/rank and /api/signals. 404 JSON {error} when the symbol is unknown or has no study.",
        "responses": {
          "200": {
            "description": "One symbol's study and hit rates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SymbolStudy"
                },
                "example": {
                  "schema": "lota.symbol-study.v1",
                  "symbol": "SPY",
                  "session_date": "2026-09-24",
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "disclaimer": "Reference levels from daily bars. Not a forecast and not trade advice.",
                  "volume_profile": {
                    "20": {
                      "poc": 100.5,
                      "vah": 101.5,
                      "val": 99.5,
                      "hvn": [],
                      "lvn": []
                    },
                    "60": {
                      "poc": 100.0,
                      "vah": 102.0,
                      "val": 98.0,
                      "hvn": [],
                      "lvn": []
                    }
                  },
                  "sequential": {
                    "summary": "No completed 9-bar setup on this session."
                  },
                  "vwap": {
                    "close": 101.0,
                    "typical": 100.6667,
                    "anchors": {}
                  },
                  "bollinger": {
                    "middle": 100.0,
                    "upper": 102.0,
                    "lower": 98.0,
                    "percent_b": 0.75,
                    "bandwidth": 0.04,
                    "squeeze": false
                  },
                  "hit_rates": {
                    "period": "2y",
                    "summary": "Historical hit rates on daily bars. Not a forecast and not trade advice.",
                    "rules": [
                      {
                        "rule": "RSI(14) cross 30",
                        "signal": "buy",
                        "count": 25,
                        "win_1mo": 64.0,
                        "n_5d": 40,
                        "n_3mo": 7,
                        "anecdote": false,
                        "anecdote_5d": false,
                        "anecdote_1mo": false,
                        "anecdote_3mo": true
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "symbol",
            "in": "path",
            "required": true,
            "description": "US ticker, for example SPY",
            "schema": {
              "type": "string",
              "example": "spy",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9.\\-]{0,11}$"
            },
            "example": "spy"
          }
        ]
      }
    },
    "/vp.json": {
      "get": {
        "operationId": "get_volume_profile",
        "summary": "Newest stored volume profile",
        "description": "20- and 60-session volume at price for the levels rebuild. 404 JSON {error} when no studies file is stored.",
        "responses": {
          "200": {
            "description": "Newest stored volume profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VolumeProfile"
                },
                "example": {
                  "schema": "lota.volume-profile.v1",
                  "session_date": "2026-09-24",
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "disclaimer": "Reference levels from daily bars. Not a forecast and not trade advice.",
                  "symbols_published": 1,
                  "symbols": [
                    {
                      "symbol": "SPY",
                      "session_date": "2026-09-24",
                      "windows": {
                        "20": {
                          "poc": 100.5,
                          "vah": 101.5,
                          "val": 99.5
                        },
                        "60": {
                          "poc": 100.0,
                          "vah": 102.0,
                          "val": 98.0
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/demark.json": {
      "get": {
        "operationId": "get_demark",
        "summary": "Newest stored setup and countdown counts",
        "description": "Independent 9-bar setup and 13-bar countdown description. Not a DeMark product. 404 JSON {error} when no studies file is stored.",
        "responses": {
          "200": {
            "description": "Newest stored setup and countdown counts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SequentialCounts"
                },
                "example": {
                  "schema": "lota.sequential.v1",
                  "session_date": "2026-09-24",
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "disclaimer": "Reference levels from daily bars. Not a forecast and not trade advice.",
                  "symbols_published": 1,
                  "symbols": [
                    {
                      "symbol": "SPY",
                      "session_date": "2026-09-24",
                      "summary": "No completed 9-bar setup on this session.",
                      "completed_setup_on_session": false,
                      "completed_countdown_on_session": false
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/vwap.json": {
      "get": {
        "operationId": "get_anchored_vwap",
        "summary": "Newest stored anchored VWAP",
        "description": "YTD, QTD, swing, and 20-session anchored VWAP. 404 JSON {error} when the studies file has no VWAP method.",
        "responses": {
          "200": {
            "description": "Newest stored anchored VWAP",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnchoredVwap"
                },
                "example": {
                  "schema": "lota.anchored-vwap.v1",
                  "session_date": "2026-09-24",
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "disclaimer": "Reference levels from daily bars. Not a forecast and not trade advice.",
                  "symbols_published": 1,
                  "symbols": [
                    {
                      "symbol": "SPY",
                      "session_date": "2026-09-24",
                      "close": 101.0,
                      "typical": 100.6667,
                      "anchors": {}
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/bollinger.json": {
      "get": {
        "operationId": "get_bollinger",
        "summary": "Newest stored Bollinger state",
        "description": "20-session close average and \u00b12 population standard deviations. 404 JSON {error} when the studies file has no Bollinger method.",
        "responses": {
          "200": {
            "description": "Newest stored Bollinger state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BollingerState"
                },
                "example": {
                  "schema": "lota.bollinger.v1",
                  "session_date": "2026-09-24",
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "disclaimer": "Descriptive state from completed daily bars. Not a buy or sell signal, not a forecast, and not trade advice.",
                  "symbols_published": 1,
                  "symbols": [
                    {
                      "symbol": "SPY",
                      "close": 101.0,
                      "middle": 100.0,
                      "upper": 102.0,
                      "lower": 98.0,
                      "percent_b": 0.75,
                      "bandwidth": 0.04,
                      "squeeze": false
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/share.json": {
      "get": {
        "operationId": "get_share",
        "summary": "One stored SPY share line",
        "description": "One stored SPY number and a tagged link. share.json always names SPY. The first stored source wins: 20-session POC, else 60-session POC (studies file, source /vp.json), else classic R1 when that symbol is in the levels snapshot, else YTD anchored VWAP (source /vwap.json). SPY is an index ETF and is not in the published top 100, so the R1 branch does not find it. The example is illustrative and uses the 20-session POC source. ok is false when nothing is stored. This route is 200 in both cases.",
        "responses": {
          "200": {
            "description": "One stored SPY share line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareLine"
                },
                "example": {
                  "ok": true,
                  "symbol": "SPY",
                  "session_date": "2026-09-24",
                  "metric": "poc",
                  "label": "20-session POC",
                  "value": 100.5,
                  "line": "SPY 20-session POC 100.50 (session 2026-09-24). https://lordofta.com/t/spy?utm_source=x&utm_medium=social&utm_campaign=daily",
                  "empty": null,
                  "url": "https://lordofta.com/t/spy?utm_source=x&utm_medium=social&utm_campaign=daily",
                  "source": "/vp.json"
                }
              }
            }
          }
        }
      }
    },
    "/api/meta": {
      "get": {
        "operationId": "get_meta",
        "summary": "Indicator, universe, and rule catalog",
        "description": "Indicators, scan universes, horizons, and the rank-rule catalog. The example keeps one indicator, one universe, and one rule. rule_count on the live payload is the full catalog length. live_symbols is the Hyperliquid list, or empty when that lookup fails.",
        "responses": {
          "200": {
            "description": "Indicator, universe, and rule catalog",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetaCatalog"
                },
                "example": {
                  "indicators": [
                    {
                      "key": "sma",
                      "name": "SMA",
                      "category": "trend",
                      "overlay": true,
                      "params": {}
                    }
                  ],
                  "universes": [
                    {
                      "key": "mega",
                      "count": 30,
                      "description": "Top 30 US mega-caps"
                    }
                  ],
                  "horizons": [
                    "5d",
                    "1mo",
                    "3mo"
                  ],
                  "rules": [
                    {
                      "slug": "rsi-14-cross-30",
                      "name": "RSI(14) cross 30",
                      "side": "buy",
                      "family": "RSI",
                      "what": "Fires when the 14-period RSI crosses above 30 \u2014 leaving the oversold zone."
                    }
                  ],
                  "rule_count": 1,
                  "live_symbols": []
                }
              }
            }
          }
        }
      }
    },
    "/api/rank": {
      "get": {
        "operationId": "get_rank",
        "summary": "Hit rates for one symbol",
        "description": "Per-rule 5-day, 1-month, and 3-month hit rates on daily bars. This route needs at least 100 daily bars. 404 JSON {detail} when history is shorter than that. /t/{symbol}.json does not use this floor for a stored study.",
        "responses": {
          "200": {
            "description": "Hit rates for one symbol",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RankStudy"
                },
                "example": {
                  "symbol": "SPY",
                  "period": "2y",
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "bars": 500,
                  "first_date": "2024-09-24",
                  "last_date": "2026-09-24",
                  "signal_count": 300,
                  "headline": {
                    "rule": "RSI(14) cross 30"
                  },
                  "leaderboard": [
                    {
                      "rule": "RSI(14) cross 30",
                      "signal": "buy",
                      "count": 25,
                      "win_1mo": 64.0,
                      "walk_forward": true
                    }
                  ],
                  "latest_signal": {
                    "rule": "RSI(14) cross 30",
                    "side": "buy",
                    "date": "2026-09-24",
                    "bars_ago": 0
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": true,
            "description": "US ticker",
            "schema": {
              "type": "string",
              "example": "SPY"
            },
            "example": "SPY"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "History window. One of 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, max.",
            "schema": {
              "type": "string",
              "example": "2y"
            },
            "example": "2y"
          }
        ]
      }
    },
    "/api/screener": {
      "get": {
        "operationId": "get_screener",
        "summary": "Momentum scan of a universe or a ticker list",
        "description": "Named universes are not subject to the per-request symbol cap. An explicit tickers list with no universe is. limit keeps that many momentum rows, up to 500. Omit limit to return the scored list.",
        "responses": {
          "200": {
            "description": "Momentum scan of a universe or a ticker list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Screener"
                },
                "example": {
                  "universe": "mega",
                  "count": 1,
                  "total": 1,
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "rows": [
                    {
                      "ticker": "NVDA",
                      "close": 100.0,
                      "momentum_score": 12.5,
                      "momentum_signal": "Neutral",
                      "setup": "Neutral Up",
                      "price_basis": "split_adjusted_not_dividend_adjusted"
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "universe",
            "in": "query",
            "required": false,
            "description": "Named universe such as mega, mag7, or all.",
            "schema": {
              "type": "string",
              "example": "mega"
            },
            "example": "mega"
          },
          {
            "name": "tickers",
            "in": "query",
            "required": false,
            "description": "Space- or comma-separated symbols, used when universe is omitted.",
            "schema": {
              "type": "string",
              "example": "SPY,QQQ"
            },
            "example": "SPY,QQQ"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "History window. Default 1y.",
            "schema": {
              "type": "string",
              "example": "1y"
            },
            "example": "1y"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Max ranked rows. Omit for the whole scored list. Honored up to 500.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "example": 5
            },
            "example": 5
          }
        ]
      }
    },
    "/api/firing": {
      "get": {
        "operationId": "get_firing",
        "summary": "Rules that fired in the last 5 daily bars",
        "description": "Same scan as /firing. Default universe is mega. Each event includes that rule's historical 1-month hit rate on that symbol.",
        "responses": {
          "200": {
            "description": "Rules that fired in the last 5 daily bars",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FiringScan"
                },
                "example": {
                  "universe": "mega",
                  "period": "2y",
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "recent_window": 5,
                  "symbols_scanned": 30,
                  "session_date": "2026-09-24",
                  "events": [
                    {
                      "ticker": "NVDA",
                      "rule": "RSI(14) cross 30",
                      "side": "buy",
                      "date": "2026-09-24",
                      "bars_ago": 1,
                      "count": 25,
                      "win_1mo": 64.0,
                      "base_up_1mo": 55.0,
                      "edge_1mo": 9.0
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "universe",
            "in": "query",
            "required": false,
            "description": "Named scan universe. Default mega.",
            "schema": {
              "type": "string",
              "example": "mega"
            },
            "example": "mega"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "History window. Default 2y.",
            "schema": {
              "type": "string",
              "example": "2y"
            },
            "example": "2y"
          }
        ]
      }
    },
    "/api/signals": {
      "get": {
        "operationId": "get_signals",
        "summary": "One rule's events on one symbol",
        "description": "Non-overlapping trades for one catalog rule. This route needs at least 100 daily bars, the same floor as /api/rank. 404 JSON {detail} when history is shorter than that or the rule did not fire.",
        "responses": {
          "200": {
            "description": "One rule's events on one symbol",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalEvents"
                },
                "example": {
                  "symbol": "SPY",
                  "rule": "RSI(14) cross 30",
                  "horizon": "1mo",
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "events": [
                    {
                      "date": "2026-09-24",
                      "price": 101.0,
                      "side": "buy",
                      "fwd_1mo": 1.2
                    }
                  ],
                  "trades": [],
                  "stats": {
                    "trades": 0,
                    "win_rate": null,
                    "avg_ret": null
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": true,
            "description": "US ticker",
            "schema": {
              "type": "string",
              "example": "SPY"
            },
            "example": "SPY"
          },
          {
            "name": "rule",
            "in": "query",
            "required": true,
            "description": "Exact rule name from /api/meta.",
            "schema": {
              "type": "string",
              "example": "RSI(14) cross 30"
            },
            "example": "RSI(14) cross 30"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "History window. Default 2y.",
            "schema": {
              "type": "string",
              "example": "2y"
            },
            "example": "2y"
          },
          {
            "name": "horizon",
            "in": "query",
            "required": false,
            "description": "5d, 1mo, or 3mo. Default 1mo.",
            "schema": {
              "type": "string",
              "example": "1mo"
            },
            "example": "1mo"
          }
        ]
      }
    },
    "/api/chart": {
      "get": {
        "operationId": "get_chart",
        "summary": "Delayed OHLC and optional indicators",
        "description": "Delayed daily or intraday bars. delay_minutes is 15. price_basis is split-adjusted and not dividend-adjusted.",
        "responses": {
          "200": {
            "description": "Delayed OHLC and optional indicators",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Chart"
                },
                "example": {
                  "symbol": "SPY",
                  "period": "1y",
                  "interval": "1d",
                  "data_mode": "delayed",
                  "delay_minutes": 15,
                  "price_basis": "split_adjusted_not_dividend_adjusted",
                  "dates": [
                    "2026-09-24"
                  ],
                  "open": [
                    100.0
                  ],
                  "high": [
                    102.0
                  ],
                  "low": [
                    99.0
                  ],
                  "close": [
                    101.0
                  ],
                  "volume": [
                    1000000.0
                  ],
                  "indicators": {}
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": true,
            "description": "US ticker",
            "schema": {
              "type": "string",
              "example": "SPY"
            },
            "example": "SPY"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "History window. Default 1y.",
            "schema": {
              "type": "string",
              "example": "1y"
            },
            "example": "1y"
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "description": "1d, 1h, 15m, or 1wk. Default 1d.",
            "schema": {
              "type": "string",
              "example": "1d"
            },
            "example": "1d"
          },
          {
            "name": "indicators",
            "in": "query",
            "required": false,
            "description": "Comma-separated indicator keys, at most 24.",
            "schema": {
              "type": "string",
              "example": ""
            },
            "example": ""
          }
        ]
      }
    },
    "/api/real-returns": {
      "get": {
        "operationId": "get_real_returns",
        "summary": "Inflation-adjusted total return",
        "description": "Nominal total return, CPI-U real return, and excess over 3-month T-bills. Default symbol is GLD. 404 JSON {schema, error} for an unusable ticker. series=1 adds chart points.",
        "responses": {
          "200": {
            "description": "Inflation-adjusted total return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RealReturns"
                },
                "example": {
                  "schema": "lota.real-returns.v1",
                  "symbol": "GLD",
                  "price_basis": "dividend_adjusted_close",
                  "disclaimer": "Not a forecast and not trade advice.",
                  "summary": "Inflation-adjusted total return. Not a forecast and not trade advice.",
                  "windows": [
                    {
                      "key": "1y",
                      "covered": true,
                      "nominal_simple": 0.1,
                      "real_simple": 0.07,
                      "excess_simple": 0.05
                    }
                  ],
                  "html": "https://lordofta.com/real-returns?sym=GLD",
                  "json": "https://lordofta.com/api/real-returns?sym=GLD"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "sym",
            "in": "query",
            "required": false,
            "description": "Ticker. Default GLD.",
            "schema": {
              "type": "string",
              "example": "GLD"
            },
            "example": "GLD"
          },
          {
            "name": "start",
            "in": "query",
            "required": false,
            "description": "Optional range start, YYYY-MM-DD.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "description": "Optional range end, YYYY-MM-DD.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "1 to include chart points. Omit for windows only.",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "example": "0"
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "LevelsSnapshot": {
        "type": "object",
        "description": "Stored daily levels. schema is lota.levels.v1.",
        "additionalProperties": true,
        "properties": {
          "schema": {
            "type": "string",
            "description": "lota.levels.v1"
          },
          "session_date": {
            "type": "string"
          },
          "applies_to": {
            "type": "string",
            "description": "Next session these floor pivots are for."
          },
          "timezone": {
            "type": "string"
          },
          "price_basis": {
            "type": "string"
          },
          "disclaimer": {
            "type": "string"
          },
          "symbols_published": {
            "type": "integer"
          },
          "symbols": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      },
      "SymbolStudy": {
        "type": "object",
        "description": "One symbol. schema is lota.symbol-study.v1.",
        "additionalProperties": true,
        "properties": {
          "schema": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "session_date": {
            "type": "string"
          },
          "price_basis": {
            "type": "string"
          },
          "disclaimer": {
            "type": "string"
          },
          "volume_profile": {
            "type": "object",
            "additionalProperties": true
          },
          "sequential": {
            "type": "object",
            "additionalProperties": true
          },
          "vwap": {
            "type": "object",
            "additionalProperties": true
          },
          "bollinger": {
            "type": "object",
            "additionalProperties": true
          },
          "hit_rates": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "VolumeProfile": {
        "type": "object",
        "description": "lota.volume-profile.v1",
        "additionalProperties": true,
        "properties": {
          "schema": {
            "type": "string"
          },
          "symbols": {
            "type": "array"
          }
        }
      },
      "SequentialCounts": {
        "type": "object",
        "description": "lota.sequential.v1",
        "additionalProperties": true,
        "properties": {
          "schema": {
            "type": "string"
          },
          "symbols": {
            "type": "array"
          }
        }
      },
      "AnchoredVwap": {
        "type": "object",
        "description": "lota.anchored-vwap.v1",
        "additionalProperties": true,
        "properties": {
          "schema": {
            "type": "string"
          },
          "symbols": {
            "type": "array"
          }
        }
      },
      "BollingerState": {
        "type": "object",
        "description": "lota.bollinger.v1",
        "additionalProperties": true,
        "properties": {
          "schema": {
            "type": "string"
          },
          "symbols": {
            "type": "array"
          }
        }
      },
      "ShareLine": {
        "type": "object",
        "description": "One SPY line. ok is false and line is empty when nothing is stored.",
        "additionalProperties": true,
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "symbol": {
            "type": "string"
          },
          "metric": {
            "type": "string"
          },
          "line": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "MetaCatalog": {
        "type": "object",
        "description": "Catalog. The example is abbreviated; the live rules array is the full catalog.",
        "additionalProperties": true,
        "properties": {
          "universes": {
            "type": "array"
          },
          "horizons": {
            "type": "array"
          },
          "rules": {
            "type": "array"
          },
          "rule_count": {
            "type": "integer"
          },
          "live_symbols": {
            "type": "array"
          }
        }
      },
      "RankStudy": {
        "type": "object",
        "description": "Hit-rate leaderboard for one symbol.",
        "additionalProperties": true,
        "properties": {
          "symbol": {
            "type": "string"
          },
          "period": {
            "type": "string"
          },
          "bars": {
            "type": "integer"
          },
          "leaderboard": {
            "type": "array"
          }
        }
      },
      "Screener": {
        "type": "object",
        "description": "Momentum rows. count is this response. total is the list size before a limit.",
        "additionalProperties": true,
        "properties": {
          "universe": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          },
          "price_basis": {
            "type": "string"
          },
          "rows": {
            "type": "array"
          }
        }
      },
      "FiringScan": {
        "type": "object",
        "description": "Recent firings. recent_window is 5 daily bars.",
        "additionalProperties": true,
        "properties": {
          "universe": {
            "type": "string"
          },
          "period": {
            "type": "string"
          },
          "events": {
            "type": "array"
          }
        }
      },
      "SignalEvents": {
        "type": "object",
        "description": "One rule on one symbol.",
        "additionalProperties": true,
        "properties": {
          "symbol": {
            "type": "string"
          },
          "rule": {
            "type": "string"
          },
          "horizon": {
            "type": "string"
          },
          "events": {
            "type": "array"
          },
          "stats": {
            "type": "object"
          }
        }
      },
      "Chart": {
        "type": "object",
        "description": "Delayed OHLC. indicators is keyed by indicator id.",
        "additionalProperties": true,
        "properties": {
          "symbol": {
            "type": "string"
          },
          "period": {
            "type": "string"
          },
          "interval": {
            "type": "string"
          },
          "delay_minutes": {
            "type": "integer"
          },
          "price_basis": {
            "type": "string"
          },
          "dates": {
            "type": "array"
          },
          "close": {
            "type": "array"
          }
        }
      },
      "RealReturns": {
        "type": "object",
        "description": "Inflation-adjusted total return. schema is lota.real-returns.v1.",
        "additionalProperties": true,
        "properties": {
          "schema": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "price_basis": {
            "type": "string"
          },
          "disclaimer": {
            "type": "string"
          },
          "windows": {
            "type": "array"
          }
        }
      }
    }
  }
}
