{
 "openapi": "3.1.0",
 "info": {
  "title": "PolyHelper Markets open data (api/v1)",
  "version": "1.0.0",
  "description": "Static, read-only files; no key. Updated with each daily run. The list is a selection of the main files; the full list is in release-manifest.json.",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 },
 "servers": [
  {
   "url": "https://trends.polyhelper.ai/api/v1"
  }
 ],
 "paths": {
  "/council-forecasts.csv": {
   "get": {
    "summary": "Forecasts: one row per model, market and horizon (main table)",
    "operationId": "council_forecasts_csv",
    "responses": {
     "200": {
      "description": "Forecasts: one row per model, market and horizon (main table)",
      "content": {
       "text/csv": {}
      }
     }
    }
   }
  },
  "/council-forecasts-index.json": {
   "get": {
    "summary": "Index of the forecast files",
    "operationId": "council_forecasts_index_json",
    "responses": {
     "200": {
      "description": "Index of the forecast files",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/council-book.jsonl": {
   "get": {
    "summary": "Sealed book: raw sealed answers, one JSON object per line (kinds: run, answer, ...)",
    "operationId": "council_book_jsonl",
    "responses": {
     "200": {
      "description": "Sealed book: raw sealed answers, one JSON object per line (kinds: run, answer, ...)",
      "content": {
       "application/x-ndjson": {}
      }
     }
    }
   }
  },
  "/book-schema.json": {
   "get": {
    "summary": "JSON Schema of the book lines",
    "operationId": "book_schema_json",
    "responses": {
     "200": {
      "description": "JSON Schema of the book lines",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/council-league.json": {
   "get": {
    "summary": "League table of the models",
    "operationId": "council_league_json",
    "responses": {
     "200": {
      "description": "League table of the models",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/council-calibration.json": {
   "get": {
    "summary": "Calibration of the forecasts",
    "operationId": "council_calibration_json",
    "responses": {
     "200": {
      "description": "Calibration of the forecasts",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/council-calibration.csv": {
   "get": {
    "summary": "Calibration of the forecasts (CSV)",
    "operationId": "council_calibration_csv",
    "responses": {
     "200": {
      "description": "Calibration of the forecasts (CSV)",
      "content": {
       "text/csv": {}
      }
     }
    }
   }
  },
  "/council-stats.json": {
   "get": {
    "summary": "Aggregate statistics of the council",
    "operationId": "council_stats_json",
    "responses": {
     "200": {
      "description": "Aggregate statistics of the council",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/crowd-contracts.csv": {
   "get": {
    "summary": "Prediction-market (crowd) contracts used as the crowd baseline",
    "operationId": "crowd_contracts_csv",
    "responses": {
     "200": {
      "description": "Prediction-market (crowd) contracts used as the crowd baseline",
      "content": {
       "text/csv": {}
      }
     }
    }
   }
  },
  "/crowd-contracts.json": {
   "get": {
    "summary": "Crowd contracts (JSON)",
    "operationId": "crowd_contracts_json",
    "responses": {
     "200": {
      "description": "Crowd contracts (JSON)",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/event-contract.schema.json": {
   "get": {
    "summary": "JSON Schema of an event contract",
    "operationId": "event_contract_schema_json",
    "responses": {
     "200": {
      "description": "JSON Schema of an event contract",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/prediction-ledger.json": {
   "get": {
    "summary": "Ledger of registered predictions and the OSF registration",
    "operationId": "prediction_ledger_json",
    "responses": {
     "200": {
      "description": "Ledger of registered predictions and the OSF registration",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/stamp-channel.json": {
   "get": {
    "summary": "Seal channel: Rekor endpoint and public key hash",
    "operationId": "stamp_channel_json",
    "responses": {
     "200": {
      "description": "Seal channel: Rekor endpoint and public key hash",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/release-manifest.json": {
   "get": {
    "summary": "sha256 and size of the released files, and the offline check command",
    "operationId": "release_manifest_json",
    "responses": {
     "200": {
      "description": "sha256 and size of the released files, and the offline check command",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/methodology-versions.json": {
   "get": {
    "summary": "Versions of the methodology",
    "operationId": "methodology_versions_json",
    "responses": {
     "200": {
      "description": "Versions of the methodology",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/claim-status.json": {
   "get": {
    "summary": "Status of each public claim",
    "operationId": "claim_status_json",
    "responses": {
     "200": {
      "description": "Status of each public claim",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/seat-versions.json": {
   "get": {
    "summary": "Model versions per seat",
    "operationId": "seat_versions_json",
    "responses": {
     "200": {
      "description": "Model versions per seat",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/croissant.json": {
   "get": {
    "summary": "Dataset card (Croissant)",
    "operationId": "croissant_json",
    "responses": {
     "200": {
      "description": "Dataset card (Croissant)",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/markets-digest.json": {
   "get": {
    "summary": "Digest of the markets page",
    "operationId": "markets_digest_json",
    "responses": {
     "200": {
      "description": "Digest of the markets page",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/council-day-card.json": {
   "get": {
    "summary": "Card of the day",
    "operationId": "council_day_card_json",
    "responses": {
     "200": {
      "description": "Card of the day",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/council-feed.json": {
   "get": {
    "summary": "Feed of the days (JSON)",
    "operationId": "council_feed_json",
    "responses": {
     "200": {
      "description": "Feed of the days (JSON)",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  }
 }
}
