{
  "repo": "tidbcloud/streamlit-stockdata-analysis",
  "binary": "stocks",
  "binary_path": "stocks.py",
  "dependencies": {
    "HTTP GET /": {
      "infrastructure": {
        "mysql": {
          "conditions": [
            "When loading or persisting stock price history in TiDB"
          ],
          "operations": [
            {
              "operation": "SELECT / INSERT",
              "trigger": "Fetch aggregated dividend and volume data or save downloaded price history",
              "conditions": [
                "The user clicks Visualize or Save Data"
              ],
              "implementation": "fetch_data and save_data use pymysql through st.secrets['tidb']"
            }
          ]
        },
        "http": {
          "conditions": [
            "When querying market data from Yahoo Finance"
          ],
          "operations": [
            {
              "operation": "HTTP GET",
              "trigger": "Download historical ticker data",
              "conditions": [
                "The user clicks Get Data"
              ],
              "implementation": "get_ticker_data calls yfinance.Ticker(symbol).history"
            }
          ]
        }
      },
      "services": []
    }
  }
}
