Docs › API reference › Reference
Instruments covered
GEThttps://swingtraderscorner.com/v1/instruments
Instruments we generate signals for and the indices each belongs to. Search matches ticker or name.
Parameters
| Name | Description |
|---|---|
| indexoptional · string | Limit to members of one index: DJIA, NASDAQ100 or SP500. It must be in your plan. |
| searchoptional · string | Part of a ticker or company name, e.g. apple. |
Example request
curl "https://swingtraderscorner.com/v1/instruments" -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": [
{
"tidm": "AAPL",
"name": "Apple Inc",
"exchange": "XNAS",
"indices": [
"NASDAQ100",
"SP500"
],
"currentTrend": "up",
"active": true
},
{
"tidm": "CAT",
"name": "Caterpillar Inc",
"exchange": "XNYS",
"indices": [
"DJIA",
"SP500"
],
"currentTrend": "up",
"active": true
},
{
"tidm": "INTC",
"name": "Intel Corporation",
"exchange": "XNAS",
"indices": [
"NASDAQ100",
"SP500"
],
"currentTrend": "down",
"active": true
},
{
"tidm": "KO",
"name": "Coca-Cola Company",
"exchange": "XNYS",
"indices": [
"DJIA",
"SP500"
],
"currentTrend": "up",
"active": true
},
{
"tidm": "MSFT",
"name": "Microsoft Corporation",
"exchange": "XNAS",
"indices": [
"NASDAQ100",
"SP500",
"DJIA"
],
"currentTrend": "down",
"active": true
},
{
"tidm": "NVDA",
"name": "NVIDIA Corporation",
"exchange": "XNAS",
"indices": [
"NASDAQ100",
"SP500"
],
"currentTrend": "up",
"active": true
}
],
"meta": {
"count": 6
}
}
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.