/v1/holdings
Line-item securities the Fed holds
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/fedsoma-api/v1/holdings" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fedsoma-api/v1/holdings", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fedsoma-api/v1/holdings");
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/fedsoma-api/v1/holdings",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"type": "treasury",
"count": 50,
"source": "Federal Reserve (NY Fed SOMA)",
"holdings": [
{
"cusip": "912828YS3",
"coupon": 1.75,
"issuer": null,
"maturity_date": "2029-11-15",
"par_value_usd": 54497640800,
"security_type": "NotesBonds",
"percent_outstanding": 0.6154274172826583,
"change_from_prior_week_usd": 0
},
{
"cusip": "912828YB0",
"coupon": 1.625,
"issuer": null,
"maturity_date": "2029-08-15",
"par_value_usd": 47136916700,
"security_type": "NotesBonds",
"percent_outstanding": 0.5089353658393064,
"change_from_prior_week_usd": 0
},
{
"cusip": "91282CCB5",
"coupon": 1.625,
"issuer": null,
"maturity_date": "2031-05-15",
"par_value_usd": 44211784200,
"security_type": "NotesBonds",
"percent_outstanding": 0.299380202152112,
"change_from_prior_week_usd": 0
},
{
"cusip": "91282CDY4",
"coupon": 1.875,
"issuer": null,
"maturity_date": "2032-02-15",
"par_value_usd": 36207764200,
"security_type": "NotesBonds",
"percent_outstanding": 0.257591543747261,
"change_from_prior_week_usd": 0
},
{
"cusip": "9128286T2",
"coupon": 2.375,
"issuer": null,
"maturity_date": "2029-05-15",
"par_value_usd": 35255086900,
"security_type": "NotesBonds",
"percent_outstanding": 0.4188405097869147,
"change_from_prior_week_usd": 0
},
{
"cusip": "91282CBL4",
"coupon": 1.125,
"issuer": null,
"maturity_date": "2031-02-15",
"par_value_usd": 34861617800,
"security_type": "NotesBonds",
"percent_outstanding": 0.2489002356172635,
"change_from_prior_week_usd": 0
},
{
"cusip": "91282CDJ7",
"coupon": 1.375,
"issuer": null,
"maturity_date": "2031-11-15",
"par_value_usd": 33650325000,
"security_type": "NotesBonds",
"percent_outstanding": 0.2327368730359078,
"change_from_prior_week_usd": 0
},
{
"cusip": "912810QU5",
"coupon": 3.125,
"issuer": null,
"maturity_date": "2042-02-15",
"par_value_usd": 33052998800,
…