/v1/macd
MACD line, signal line and histogram
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/technicals-api/v1/macd" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/technicals-api/v1/macd", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/technicals-api/v1/macd");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/technicals-api/v1/macd",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"fast": 12,
"macd": 1.286794,
"slow": 26,
"trend": "bearish",
"signal": 1.752961,
"source": "TECHNICALS",
"histogram": -0.466167,
"indicator": "macd",
"macd_series": [
0,
0.130028,
0.354068,
0.634052,
0.934734,
1.222679,
1.469443,
1.651615,
1.752386,
1.760314,
1.672277,
1.492506,
1.231746,
0.905717,
0.536256,
0.14655,
-0.237026,
-0.589093,
-0.886135,
-1.107167,
-1.235814,
-1.262694,
-1.184007,
-1.002768,
-0.728091,
-0.374562,
0.037514,
0.484382,
0.939856,
1.377736,
1.772112,
2.09999,
2.342515,
2.485889,
2.522027,
2.450602,
2.276573,
2.012173,
1.675197,
1.286794
],
"signal_period": 9,
"histogram_series": [
0,
0.104023,
0.26245,
0.433947,
0.587703,
0.700519,
0.757826,
0.751998,
0.682216,
0.552115,
0.371262,
0.153193,
-0.086054,
-0.329666,
-0.559301,
-0.759206,
-0.914226,
-1.013034,
-1.048061,
-1.015275,
-0.915137,
-0.753613,
-0.539941,
-0.286962,
-0.009828,
0.274961,
0.549629,
0.797198,
1.002138,
1.152014,
1.237112,
1.251992,
1.195614,
1.07119,
0.885863,
0.65155,
0.382016,
0.094093,
-0.194306,
-0.466167
]
},
"meta": {
"timestamp": "2026-06-10T22:56:27.710Z",
"request_id": "ce7cfa51-a6c7-4417-a6af-1e40a6758a06"
},
"status": "ok",
"message": "MACD computed",
"success": true
}