/v1/coins/market-chart
Price/mcap/volume chart
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/crypto-api/v1/coins/market-chart" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/crypto-api/v1/coins/market-chart", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/crypto-api/v1/coins/market-chart");
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/crypto-api/v1/coins/market-chart",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"id": "bitcoin",
"days": "7",
"prices": [
[
1779476433943,
76442.19264835134
],
[
1779480054825,
75784.62429980212
],
[
1779483614646,
75890.90629208337
],
[
1779487242236,
75909.30496418383
],
[
1779490874868,
75650.83264919114
],
[
1779494427144,
75482.52379955728
],
[
1779498055005,
75308.69543704066
],
[
1779501631482,
75391.63727313517
],
[
1779505228357,
75482.60880877408
],
[
1779508823630,
75547.72106173361
],
[
1779512430210,
75432.26111879738
],
[
1779516043618,
75390.38033389076
],
[
1779519666509,
75315.48120471499
],
[
1779523215397,
74501.44624467158
],
[
1779526817082,
74594.266948548
],
[
1779530431604,
74595.75522893954
],
[
1779534064516,
74634.15234894428
],
[
1779537673459,
74726.6276043982
],
[
1779541218087,
74647.68184277452
],
[
1779544827217,
75144.79632662662
],
[
1779548443687,
75490.81697182571
],
[
1779552063297,
75429.42744981844
],
[
1779555660478,
75385.51459468192
],
[
1779559238964,
75410.8931050197
],
[
1779562837223,
75763.66499380357
],
[
1779566450914,
75859.36223277515
],
[
1779570048516,
77083.62700362576
],
[
1779573655137,
76684.10937027646
],
[
1779577232231,
76485.46079733527
],
[
1779580833731,
76672.79289056802
],
[
1779584415565,
76741.90375698816
],
…