S&P 500 OHLC API: Daily GSPC Candles as JSON
An S&P 500 OHLC API returns open, high, low, and close for one session. On Indices-API that is GET https://indices-api.com/api/open-high-low-close/{YYYY-MM-DD} with symbols=GSPC and access_key.
PRO is $49.99/mo with a 7-day trial. The USD-prefixed invert (USDGSPC) is latest-only — it is not on this envelope. Docs: indices-api.com/documentation.
Request: GSPC candles
curl "https://indices-api.com/api/open-high-low-close/2024-10-09?access_key=YOUR_API_KEY&base=USD&symbols=GSPC"
Response: official OHLC fixture is NYA (2024-10-09)
Docs publish NYA on that date — same object keys for GSPC. Do not treat these rates as S&P 500 prints.
{
"success": true,
"timestamp": 1767195729,
"date": "2024-10-09",
"base": "USD",
"symbol": "NYA",
"rates": {
"open": 5.1453483735297e-5,
"high": 5.1472711484643e-5,
"low": 5.115851003909e-5,
"close": 5.115851003909e-5
}
}
Invert each field (1 / rates.close) for a USD index level. Latest sibling dated 2024-10-10 prints USDGSPC 5772.49.
Go live
1. Register — 7-day trial.
2. Copy access_key.
3. GET OHLC with symbols=GSPC.
4. Invert open/high/low/close. Read USDGSPC on latest.