Docs › Getting started
Quickstart
Your first call in five minutes.
1. Get your key
Create a free account, confirm your email, and copy your key from your account page.
2. Call the API
Send the key in the X-API-Key header. Signals are published each trading day after the US close.
curl "https://swingtraderscorner.com/v1/signals/latest?index=DJIA" \
-H "X-API-Key: $STC_KEY"
3. Read the signal
Each signal has a type, an entry (buyAt or sellAt) and a stop (stopAt). The Signals guide explains every field. New to the method? Start with The four signals.
Free keys see signals a few trading days late, and no history. Upgrade from your account page.
In a spreadsheet
Google Sheets can call the API from Apps Script. Keep your key in Extensions › Apps Script › Project settings › Script properties as STC_KEY, never in a cell:
function STC_SIGNALS(index) {
const res = UrlFetchApp.fetch(
"https://swingtraderscorner.com/v1/signals/latest?index=" + index,
{ headers: { "X-API-Key": PropertiesService.getScriptProperties().getProperty("STC_KEY") } });
return JSON.parse(res).data.map(s => [s.tidm, s.signalType, s.buyAt || s.sellAt, s.stopAt]);
}
Then type =STC_SIGNALS("DJIA") in a cell.