Docs › API reference › Reference
Indices covered
GEThttps://swingtraderscorner.com/v1/indices
Indices we cover, and whether each is included in your plan.
Parameters
None.
Example request
curl "https://swingtraderscorner.com/v1/indices" -H "X-API-Key: $STC_KEY"
Try it
An example response. Sign in to run it with your own key, or create a free account.
{
"data": [
{
"id": "DJIA",
"name": "Dow Jones Industrial Average",
"instrumentCount": 30,
"inYourPlan": true
},
{
"id": "NASDAQ100",
"name": "NASDAQ 100",
"instrumentCount": 101,
"inYourPlan": true
},
{
"id": "SP500",
"name": "S&P 500",
"instrumentCount": 503,
"inYourPlan": true
}
]
}
Responses
| Status | Meaning |
|---|---|
| 200 | OK |
| 401 | No API key, or one we don't recognise. |
| 403 | The key is revoked, or the request is outside your plan (an index, or history on Free). |
| 429 | Rate limit reached. Retry after the number of seconds in the Retry-After header. |
| 503 | Service Unavailable |
Generated from the API's OpenAPI description.