Skip to content
StatAlphaDocumentation

TREND API

Response and request schema references are described in API schemas.

Trend Consensus

Name In Required Type / constraints Description
symbol query Yes {"type": "string"} Ticker, e.g. AAPL, QQQ, BTCUSD
time_window query No {"anyOf": [{"type": "string"}, {"type": "null"}], "default": "6M"}
start_date query No {"anyOf": [{"type": "string"}, {"type": "null"}]}
end_date query No {"anyOf": [{"type": "string"}, {"type": "null"}]}
{
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Trend Consensus Stats Trend Consensus Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}

Trend Documentation

{
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Trend Documentation Stats Trend Documentation Get"
}
}
}
}
}

Reversal Backtest

Name In Required Type / constraints Description
symbol query Yes {"type": "string"}
time_window query No {"anyOf": [{"type": "string"}, {"type": "null"}], "default": "12M"}
start_date query No {"anyOf": [{"type": "string"}, {"type": "null"}]}
end_date query No {"anyOf": [{"type": "string"}, {"type": "null"}]}
horizon_days query No {"type": "integer", "maximum": 10, "minimum": 1, "default": 3} Lookahead window in trading days
threshold_pct query No {"type": "number", "maximum": 10.0, "minimum": 0.2, "default": 1.0} Required counter-move in %
{
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Reversal Backtest Stats Trend Reversal Backtest Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}

Trend State

Name In Required Type / constraints Description
symbol query Yes {"type": "string"} Ticker, e.g. AAPL, QQQ, BTCUSD
time_window query No {"anyOf": [{"type": "string"}, {"type": "null"}], "default": "6M"} e.g. 3M, 6M, 12M
start_date query No {"anyOf": [{"type": "string"}, {"type": "null"}]} YYYY-MM-DD
end_date query No {"anyOf": [{"type": "string"}, {"type": "null"}]} YYYY-MM-DD
{
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Trend State Stats Trend State Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}