Stochastic API — %K and %D Crossovers

Get both %K and %D lines as JSON. Detect bullish and bearish crossovers in overbought (>80) or oversold (<20) territory programmatically.

No credit card$2.50 PAYG credit on sign up
15+API endpoints
42Indicator series
M1–D17 timeframes
$2.50PAYG starting credit
Why TickAtlas

What is the Stochastic Oscillator API?

The Stochastic Oscillator compares the closing price to its price range over a given period, producing %K (fast line) and %D (3-period SMA of %K, slow line). Values above 80 indicate overbought; below 20, oversold. When %K crosses above %D inside an oversold zone, it's a classic long entry signal. TickAtlas pre-calculates both lines from our live data, so your strategy gets the crossover signal without any raw candle processing.

Pre-Calculated, Redis-Cached

Indicator values are computed server-side on every new candle. Your app queries the result — no TA library, no candle history needed.

7 Timeframes

M1, M5, M15, M30, H1, H4, D1 — the same endpoint serves scalpers and position traders alike.

Forex, Crypto, Commodities

EURUSD, GBPUSD, XAUUSD, BTCUSD, USDJPY — data available for every symbol in our data.

One Request. Instant Data.

REQUEST
curl -X GET \
  "https://tickatlas.com/v1/indicator?symbol=EURUSD&indicator=Stochastic_K&timeframe=H1" \
  -H "X-API-Key: YOUR_API_KEY"
200 OK
{
  "success": true,
  "data": {
    "symbol": "EURUSD",
    "timeframe": "H1",
    "indicator": "Stochastic_K",
    "value": 22.4,
    "bid": 1.08401,
    "ask": 1.08414,
    "updated_at": 1711548000,
    "server_time": "2024-03-27T14:00:00+00:00"
  }
}

%K and %D. Two Calls, One Signal.

cURL Request
curl -H "X-API-Key: YOUR_KEY" "https://tickatlas.com/v1/indicator?symbol=EURUSD&indicator=Stochastic_K&timeframe=H1"
Python Both lines, one pass
import requests

BASE = "https://tickatlas.com/v1/indicator"
HEAD = {"X-API-Key": "YOUR_KEY"}

def line(name):
    r = requests.get(
        BASE, headers=HEAD,
        params={"symbol": "EURUSD", "indicator": name, "timeframe": "H1"},
    )
    return r.json()["data"]["value"]

k = line("Stochastic_K")
d = line("Stochastic_D")

# %K relative to %D, and where both sit in the 0-100 range
print(f"%K {k} / %D {d} — {'K above D' if k > d else 'K below D'}")
200 OK Response
{
  "success": true,
  "data": {
    "symbol": "EURUSD",
    "timeframe": "H1",
    "indicator": "Stochastic_K",
    "value": 78.4,
    "bid": 1.08401,
    "ask": 1.08414,
    "updated_at": 1711548000,
    "server_time": "2024-03-27T14:00:00+00:00"
  }
}

Available Stochastic series

  • Stochastic_K — Stochastic %K (5,3,3), the fast line
  • Stochastic_D — Stochastic %D, the 3-period signal line

Both series are returned on the 0–100 scale:

0–20 — conventionally described as oversold

20–80 — mid-range

80–100 — conventionally described as overbought

One series per request, so a %K/%D pair is two calls. Both are pre-calculated server-side from our live candles.

Plug into any stack

  • ChatGPT Custom GPTs
  • Claude Tools
  • Python / pandas
  • Node.js
  • Discord bots
  • Slack webhooks
  • n8n
  • Zapier
  • Google Sheets
Pricing

Start on pay-as-you-go, upgrade when the traffic justifies it.

Every new account starts with $2.50 of pay-as-you-go credit and no card. Monthly plans add a flat monthly price, WebSocket streaming and support.

Pay as you go
$2.50 credit No card required to start
  • $2.50 of credit included
  • Every REST endpoint except raw ticks
  • No card required, no overage
  • 10 API keys
See plan details
Starter
$29 per month · 10,000 requests/day · 120/min
  • Every REST endpoint except raw ticks
  • WebSocket streaming, 5 symbols
  • Released calendar actuals
  • Email support
  • 3 API keys
See plan details
Frequently asked questions

What developers ask first.

Straight answers on limits, coverage and how the endpoint behaves in production.

What Stochastic parameters does the API use?

The fast Stochastic (5,3,3) — a 5-period %K, smoothed to 3 periods for the displayed %K, and a 3-period SMA for %D. This is a common short-term momentum setting, faster than the slow Stochastic (14,3,3).

What's the difference between Stochastic_K and Stochastic_D?

Stochastic_K is the fast line — it reacts quickly to price. Stochastic_D is the 3-period moving average of %K — smoother and slower. Crossovers in overbought/oversold zones are the classic entry signals.

Can I use Stochastic with RSI for confluence?

Yes — both are on the same API. A common setup: Stochastic %K below 20 AND RSI below 30 = double-confirmed oversold. Both signals fire from the same endpoint with a different indicator name parameter.

Does Stochastic work well on M1 timeframes?

It produces more false signals on M1 due to noise. H1 and H4 are where Stochastic oversold/overbought levels are most reliable. M5 can work for scalpers who use additional filters like ADX.

Start building

Start Building in 5 Minutes

Sign up, grab your API key, make your first request.

Every new account starts with $2.50 of pay-as-you-go credit. No card required.