TREND API
Response and request schema references are described in API schemas.
GET /stats/trend/consensus
Section titled “GET /stats/trend/consensus”Trend Consensus
Parameters
Section titled “Parameters”| 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"}]} |
Responses
Section titled “Responses”{ "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" } } } }}GET /stats/trend/documentation
Section titled “GET /stats/trend/documentation”Trend Documentation
Responses
Section titled “Responses”{ "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": true, "type": "object", "title": "Response Trend Documentation Stats Trend Documentation Get" } } } }}GET /stats/trend/reversal/backtest
Section titled “GET /stats/trend/reversal/backtest”Reversal Backtest
Parameters
Section titled “Parameters”| 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 % |
Responses
Section titled “Responses”{ "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" } } } }}GET /stats/trend/state
Section titled “GET /stats/trend/state”Trend State
Parameters
Section titled “Parameters”| 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 |
Responses
Section titled “Responses”{ "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" } } } }}