Spaces:
Configuration error
Configuration error
Niranjan-Murugarasu024
feat: TradeSense AI Chairman Edition production release ready for Hugging Face Spaces
0125724 Download openapi/tradesense-openapi.json from BlueMen/tradesenseAi: direct link, hf CLI and curl.
- Browser
- Download file 52.2 kB
-
https://huggingface.co/spaces/BlueMen/tradesenseAi/resolve/main/openapi/tradesense-openapi.json
- Command line
-
hf download hf://spaces/BlueMen/tradesenseAi/openapi/tradesense-openapi.json
-
curl -L -o tradesense-openapi.json https://huggingface.co/spaces/BlueMen/tradesenseAi/resolve/main/openapi/tradesense-openapi.json
52.2 kB
{
"openapi": "3.1.0",
"info": {
"title": "TradeSense AI \u2014 Institutional Quantitative Platform",
"description": "Enterprise SaaS Control Plane, Multi-Tenant Auditable Evidence Layer & Governance Engine",
"version": "1.7.0-ENTERPRISE"
},
"paths": {
"/startup": {
"get": {
"summary": "Get Startup",
"description": "Cloud Run startup probe to verify initialization before traffic routing.",
"operationId": "get_startup_startup_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Startup Startup Get"
}
}
}
}
}
}
},
"/health": {
"get": {
"summary": "Get Liveness",
"description": "Liveness probe (Cloud Run / Kubernetes).",
"operationId": "get_liveness_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Liveness Health Get"
}
}
}
}
}
}
},
"/ready": {
"get": {
"summary": "Get Readiness",
"description": "Readiness probe (Cloud Run / Kubernetes).",
"operationId": "get_readiness_ready_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Readiness Ready Get"
}
}
}
}
}
}
},
"/metrics": {
"get": {
"summary": "Get Prometheus Metrics",
"description": "Prometheus-compatible plaintext metrics exporter.",
"operationId": "get_prometheus_metrics_metrics_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/v1/health": {
"get": {
"summary": "Api V1 Health",
"description": "Backward-compatible API v1 health check.",
"operationId": "api_v1_health_api_v1_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Api V1 Health Api V1 Health Get"
}
}
}
}
}
}
},
"/api/v1/version": {
"get": {
"summary": "Get Version",
"operationId": "get_version_api_v1_version_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Version Api V1 Version Get"
}
}
}
}
}
}
},
"/api/v1/auth/login": {
"post": {
"summary": "User Login",
"description": "Authenticates user with account lockout and PBKDF2 password verification.",
"operationId": "user_login_api_v1_auth_login_post",
"parameters": [
{
"name": "username",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "Username",
"title": "Username"
},
"description": "Username"
},
{
"name": "password",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "Plaintext password",
"title": "Password"
},
"description": "Plaintext password"
},
{
"name": "tenant_id",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Organization Tenant ID",
"default": "default_tenant",
"title": "Tenant Id"
},
"description": "Organization Tenant ID"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response User Login Api V1 Auth Login Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/auth/logout": {
"post": {
"summary": "User Logout",
"description": "Revokes active JWT token immediately.",
"operationId": "user_logout_api_v1_auth_logout_post",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "Authorization",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response User Logout Api V1 Auth Logout Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/auth/token": {
"post": {
"summary": "Generate Auth Token",
"operationId": "generate_auth_token_api_v1_auth_token_post",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "username",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "User username",
"title": "Username"
},
"description": "User username"
},
{
"name": "tenant_id",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Target Organization Tenant ID",
"default": "default_tenant",
"title": "Tenant Id"
},
"description": "Target Organization Tenant ID"
},
{
"name": "role",
"in": "query",
"required": false,
"schema": {
"$ref": "#/components/schemas/UserRole",
"description": "Requested Role",
"default": "RESEARCHER"
},
"description": "Requested Role"
},
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Generate Auth Token Api V1 Auth Token Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/organizations": {
"post": {
"summary": "Create Organization",
"operationId": "create_organization_api_v1_organizations_post",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "name",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "Organization Name",
"title": "Name"
},
"description": "Organization Name"
},
{
"name": "tier",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Tier: ENTERPRISE, INSTITUTIONAL, STANDARD",
"default": "ENTERPRISE",
"title": "Tier"
},
"description": "Tier: ENTERPRISE, INSTITUTIONAL, STANDARD"
},
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"201": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Create Organization Api V1 Organizations Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"get": {
"summary": "List Organizations",
"operationId": "list_organizations_api_v1_organizations_get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response List Organizations Api V1 Organizations Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/tenants/usage": {
"get": {
"summary": "Get Tenant Usage",
"description": "Returns billing-ready compute & storage usage for the caller's tenant.",
"operationId": "get_tenant_usage_api_v1_tenants_usage_get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Tenant Usage Api V1 Tenants Usage Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/": {
"get": {
"summary": "Serve Terminal",
"operationId": "serve_terminal__get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/api/v1/research/runs": {
"post": {
"summary": "Submit Research Run",
"operationId": "submit_research_run_api_v1_research_runs_post",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "experiment_id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "Unique Experiment ID",
"title": "Experiment Id"
},
"description": "Unique Experiment ID"
},
{
"name": "strategy_id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "Strategy identifier",
"title": "Strategy Id"
},
"description": "Strategy identifier"
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"title": "Idempotency-Key"
}
},
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConfigurationSnapshot"
}
}
}
},
"responses": {
"202": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Submit Research Run Api V1 Research Runs Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"get": {
"summary": "List Research Runs",
"operationId": "list_research_runs_api_v1_research_runs_get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "experiment_id",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Experiment Id"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"default": 50,
"title": "Limit"
}
},
{
"name": "offset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0,
"default": 0,
"title": "Offset"
}
},
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response List Research Runs Api V1 Research Runs Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/research/runs/{run_id}": {
"get": {
"summary": "Get Research Run",
"operationId": "get_research_run_api_v1_research_runs__run_id__get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "run_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Run Id"
}
},
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Research Run Api V1 Research Runs Run Id Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/research/runs/{run_id}/evidence_package": {
"get": {
"summary": "Get Research Run Evidence Package",
"description": "Generates and exports a sealed, cryptographically signed Institutional Evidence Package.",
"operationId": "get_research_run_evidence_package_api_v1_research_runs__run_id__evidence_package_get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "run_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Run Id"
}
},
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Research Run Evidence Package Api V1 Research Runs Run Id Evidence Package Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/research/runs/{run_id}/reproduce": {
"post": {
"summary": "Reproduce Research Run",
"operationId": "reproduce_research_run_api_v1_research_runs__run_id__reproduce_post",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "run_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Run Id"
}
},
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Reproduce Research Run Api V1 Research Runs Run Id Reproduce Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/governance/decisions": {
"get": {
"summary": "List Governance Decisions",
"operationId": "list_governance_decisions_api_v1_governance_decisions_get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"default": 50,
"title": "Limit"
}
},
{
"name": "offset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0,
"default": 0,
"title": "Offset"
}
},
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response List Governance Decisions Api V1 Governance Decisions Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/governance/decisions/{decision_id}/reviews": {
"post": {
"summary": "Submit Peer Review",
"operationId": "submit_peer_review_api_v1_governance_decisions__decision_id__reviews_post",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "decision_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Decision Id"
}
},
{
"name": "verdict",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "Verdict: APPROVE, REJECT, REQUEST_CHANGES",
"title": "Verdict"
},
"description": "Verdict: APPROVE, REJECT, REQUEST_CHANGES"
},
{
"name": "comments",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "Review comments",
"title": "Comments"
},
"description": "Review comments"
},
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"201": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Submit Peer Review Api V1 Governance Decisions Decision Id Reviews Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/governance/family_1_archive": {
"get": {
"summary": "Get Family 1 Archive",
"operationId": "get_family_1_archive_api_v1_governance_family_1_archive_get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Family 1 Archive Api V1 Governance Family 1 Archive Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/audit/events": {
"get": {
"summary": "List Audit Events",
"operationId": "list_audit_events_api_v1_audit_events_get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "actor_id",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Actor Id"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"default": 50,
"title": "Limit"
}
},
{
"name": "offset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0,
"default": 0,
"title": "Offset"
}
},
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response List Audit Events Api V1 Audit Events Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/audit/verify": {
"get": {
"summary": "Verify Audit Ledger",
"operationId": "verify_audit_ledger_api_v1_audit_verify_get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Verify Audit Ledger Api V1 Audit Verify Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/observability/metrics": {
"get": {
"summary": "Get Observability Metrics",
"operationId": "get_observability_metrics_api_v1_observability_metrics_get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Authorization"
}
},
{
"name": "X-Tenant-ID",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "default_tenant",
"title": "X-Tenant-Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Observability Metrics Api V1 Observability Metrics Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/data/health": {
"get": {
"summary": "Get Data Feed Health",
"operationId": "get_data_feed_health_api_v1_data_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Data Feed Health Api V1 Data Health Get"
}
}
}
}
}
}
},
"/api/v1/data/diagnostics": {
"get": {
"summary": "Get Provider Diagnostics",
"operationId": "get_provider_diagnostics_api_v1_data_diagnostics_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Provider Diagnostics Api V1 Data Diagnostics Get"
}
}
}
}
}
}
},
"/api/v1/journal": {
"get": {
"summary": "Get Prediction Journal",
"operationId": "get_prediction_journal_api_v1_journal_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Prediction Journal Api V1 Journal Get"
}
}
}
}
}
}
},
"/api/v1/research/{ticker}": {
"get": {
"summary": "Get Stock Research",
"operationId": "get_stock_research_api_v1_research__ticker__get",
"parameters": [
{
"name": "ticker",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Ticker"
}
},
{
"name": "horizon_sessions",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"description": "Horizon in trading sessions (e.g. 5, 21, 63)",
"default": 21,
"title": "Horizon Sessions"
},
"description": "Horizon in trading sessions (e.g. 5, 21, 63)"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Stock Research Api V1 Research Ticker Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/screener": {
"get": {
"summary": "Get Market Screener",
"operationId": "get_market_screener_api_v1_screener_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Market Screener Api V1 Screener Get"
}
}
}
}
}
}
},
"/api/v1/calendar/sessions": {
"get": {
"summary": "Get Session Info",
"operationId": "get_session_info_api_v1_calendar_sessions_get",
"parameters": [
{
"name": "target_date",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Target Date"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Session Info Api V1 Calendar Sessions Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ConfigurationSnapshot": {
"properties": {
"config_id": {
"type": "string",
"title": "Config Id"
},
"lookback_days": {
"type": "integer",
"title": "Lookback Days",
"default": 1260
},
"holding_period_sessions": {
"type": "integer",
"title": "Holding Period Sessions",
"default": 5
},
"rebalance_frequency_sessions": {
"type": "integer",
"title": "Rebalance Frequency Sessions",
"default": 1
},
"universe_name": {
"type": "string",
"title": "Universe Name",
"default": "US_LIQUID_45"
},
"universe_tickers": {
"items": {
"type": "string"
},
"type": "array",
"title": "Universe Tickers"
},
"sector_map": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Sector Map"
},
"slippage_bps": {
"type": "number",
"title": "Slippage Bps",
"default": 5.0
},
"commission_per_share": {
"type": "number",
"title": "Commission Per Share",
"default": 0.005
},
"staggered_tranches": {
"type": "integer",
"title": "Staggered Tranches",
"default": 5
},
"purged_folds": {
"type": "integer",
"title": "Purged Folds",
"default": 8
},
"embargo_buffer_sessions": {
"type": "integer",
"title": "Embargo Buffer Sessions",
"default": 5
},
"bootstrap_iterations": {
"type": "integer",
"title": "Bootstrap Iterations",
"default": 1000
},
"random_seed": {
"type": "integer",
"title": "Random Seed",
"default": 42
},
"hac_lags": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Hac Lags"
},
"execution_delay_sessions": {
"type": "integer",
"title": "Execution Delay Sessions",
"default": 1
},
"custom_parameters": {
"additionalProperties": true,
"type": "object",
"title": "Custom Parameters"
}
},
"type": "object",
"required": [
"config_id",
"universe_tickers",
"sector_map"
],
"title": "ConfigurationSnapshot",
"description": "Immutable, typed snapshot of all parameters used for a research execution."
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"UserRole": {
"type": "string",
"enum": [
"VIEWER",
"RESEARCHER",
"SENIOR_RESEARCHER",
"OPERATOR",
"AUDITOR",
"ADMIN"
],
"title": "UserRole",
"description": "Enterprise Role-Based Access Control roles."
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
},
"input": {
"title": "Input"
},
"ctx": {
"type": "object",
"title": "Context"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
}
},
"securitySchemes": {
"APIKeyHeader": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key"
}
}
}
}
{
"openapi": "3.1.0",
"info": {
"title": "TradeSense AI \u2014 Institutional Quantitative Platform",
"description": "Enterprise SaaS Control Plane, Multi-Tenant Auditable Evidence Layer & Governance Engine",
"version": "1.7.0-ENTERPRISE"
},
"paths": {
"/startup": {
"get": {
"summary": "Get Startup",
"description": "Cloud Run startup probe to verify initialization before traffic routing.",
"operationId": "get_startup_startup_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Startup Startup Get"
}
}
}
}
}
}
},
"/health": {
"get": {
"summary": "Get Liveness",
"description": "Liveness probe (Cloud Run / Kubernetes).",
"operationId": "get_liveness_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Liveness Health Get"
}
}
}
}
}
}
},
"/ready": {
"get": {
"summary": "Get Readiness",
"description": "Readiness probe (Cloud Run / Kubernetes).",
"operationId": "get_readiness_ready_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Readiness Ready Get"
}
}
}
}
}
}
},
"/metrics": {
"get": {
"summary": "Get Prometheus Metrics",
"description": "Prometheus-compatible plaintext metrics exporter.",
"operationId": "get_prometheus_metrics_metrics_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/api/v1/health": {
"get": {
"summary": "Api V1 Health",
"description": "Backward-compatible API v1 health check.",
"operationId": "api_v1_health_api_v1_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,