移动平均收敛发散指标 (MACD)

该接口用于获取交易对的移动平均收敛发散指标 (MACD)。

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

缓存/ 更新频率:实时更新

该接口以下API等级可用: API 等级

API 等级爱好版创业版标准版专业版企业版
可用性

响应数据

{
  "code": "0",
  "data": [
    {
      "time": 1678665600000,
      "macd_value": -837.307
    },
    {
      "time": 1678752000000,
      "macd_value": -575.43
    },
    ....
  ]
}
Query Params
string
required
Defaults to Binance

交易所名称(例如:Binance、OKX)。支持的交易所可通过 support-exchange-pair 接口获取。

string
required
Defaults to BTCUSDT

交易对(例如:BTCUSDT)。支持的交易对可通过 support-exchange-pair 接口获取。

string
required
Defaults to 1d

数据时间间隔。支持的取值包括:1m、3m、5m、15m、30m、1h、4h、6h、8h、12h、1d、1w。

int32
Defaults to 10

每次请求返回的数据条数。默认值为 1000,最大值为 1000。

int64

起始时间戳(毫秒)(例如:1641522717000)。

int64

结束时间戳(毫秒)(例如:1641522717000)。

string

价格类型 —— 指定计算中使用的价格类型。支持的取值:open、high、low、close。默认值:close。

integer

用于指标计算的快速周期窗口大小(例如:MACD 的快速周期为 12)。

integer

用于指标计算的慢速周期窗口大小(例如:MACD 的慢速周期为 26)。

integer

用于平滑快慢线差值的信号线窗口大小(例如:MACD 的信号线周期为 9)。

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json