跳到主要内容

技术指标 API 参考

技术指标 API 利用 pandas-ta 计算引擎来计算 18+ 种技术指标、返回 OHLCV 图表叠加数据、批量计算多股票代码指标,并根据技术条件筛选市场。


GET /technical/{ticker}

针对股票代码计算单个技术指标。

请求参数

参数名类型是否必需默认值说明描述
tickerstringFinancial ticker (e.g. AIR.PA)
indicatorstringIndicator code (sma, ema, rsi, macd, bbands, stoch, atr, obv, adx, vwap, etc.)
periodinteger14Main lookback period
resolutionstringdK 线周期 (d, w, m)

响应示例

{
"ticker": "AIR.PA",
"indicator": "rsi",
"period": 14,
"count": 50,
"values": [
{ "time": "2026-08-10T00:00:00Z", "value": 58.42 },
{ "time": "2026-08-11T00:00:00Z", "value": 61.15 }
]
}

GET /technical/{ticker}/multi

在单个 HTTP 请求中计算多个技术指标。

请求参数

参数名类型是否必需默认值说明描述
tickerstringTicker symbol
indicatorsstringComma-separated indicator list (e.g. rsi,sma,macd)
periodinteger14默认值 period applied to simple indicators

GET /technical/{ticker}/chart

获取与所选技术指标序列叠加的组合 OHLCV K 线,格式专为图表库(TradingView Lightweight Charts、Highcharts)定制。


POST /technical/batch

跨多个股票代码和指标进行批量计算。

请求体 (Request Body)

{
"tickers": ["AAPL", "MSFT", "GOOGL"],
"indicators": [
{ "name": "rsi", "period": 14 },
{ "name": "sma", "period": 50 }
]
}

GET /technical/list

获取支持的技术指标目录、默认参数及说明描述。


GET /technical/screen

根据技术条件筛选数据库中的资产(例如 RSI 低于超卖阈值 30)。

请求参数

参数名类型是否必需默认值说明描述
indicatorstringIndicator to evaluate (e.g. rsi)
conditionstringLogical operator (lt, gt, crosses_above, crosses_below)
target_valuenumberNumeric threshold (e.g. 30.0)