TickAtlas

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.

EURUSD H1 — Stochastic(5,3,3)
Overbought 80 Oversold 20 50 %K cross in OS zone OB 22.1 %K %D
%K = 22.14 Oversold zone Updated 2s ago

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 live broker data, so your strategy gets the crossover signal without any raw candle processing.

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"

Why Use TickAtlas?

Pre-Calculated, Sub-100ms

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 all symbols active on connected broker terminals.

Plug into any stack

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

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

Pay-As-You-Go
$2.50 free credit on signup

Best for trying the API or low-frequency workflows.

Most Popular
Starter
$29/mo · 10K req/day

Best for solo developers and small bots.

Pro
$79/mo · 100K req/day

Best for production apps and teams.

See full pricing →

Credits, Not Minutes

WebSocket streaming is billed per price push, not per connection minute. Each time the server sends you a quote, it deducts credits from your daily quota:

  • Starter: 5 credits per price push. Subscribe to 5 symbols updating every 60s = ~7,200 credits/day.
  • Pro: 4 credits per push. 20 symbols = ~57,600 credits/day. Lower per-push cost rewards higher volume.
  • Enterprise: 3 credits per push. Unlimited symbols. Lowest cost per data point.

Daily quotas reset at midnight UTC. If your quota runs out, the server stops pushing data but keeps the connection open. You resume receiving quotes when your quota resets or you upgrade.

Code Examples

Python — websocket-client

import json, websocket

def on_open(ws):
    ws.send(json.dumps({"action": "auth", "key": "YOUR_API_KEY"}))

def on_message(ws, raw):
    msg = json.loads(raw)
    if msg["type"] == "authenticated":
        ws.send(json.dumps({"action": "subscribe",
                            "symbols": ["EURUSD", "XAUUSD"]}))
    elif msg["type"] == "quote":
        q = msg["data"]
        print(q["symbol"], "bid", q["bid"], "ask", q["ask"])

ws = websocket.WebSocketApp(
    "wss://tickatlas.com/ws/v1/quotes",
    on_open=on_open, on_message=on_message,
)
ws.run_forever()

JavaScript — Browser / Node.js

const ws = new WebSocket("wss://tickatlas.com/ws/v1/quotes");

ws.onopen = () => {
  ws.send(JSON.stringify({ action: "auth", key: "YOUR_API_KEY" }));
};

ws.onmessage = (event) => {
  const msg = JSON.parse(event.data);
  if (msg.type === "authenticated") {
    ws.send(JSON.stringify({
      action: "subscribe",
      symbols: ["EURUSD", "XAUUSD"],
    }));
  } else if (msg.type === "quote") {
    const q = msg.data;
    console.log(q.symbol, "bid=" + q.bid, "ask=" + q.ask);
  }
};

WebSocket Access by Plan

Plan Price WebSocket Max Symbols Credits / Push Connections
Pay-As-You-Go $0 + $0.001/call REST only
Starter $29/mo ✓ Included 10 5 1
Pro $79/mo ✓ Included 50 4 3
Enterprise $349/mo ✓ Included unlimited 3 unlimited

Free / Pay-As-You-Go accounts can use the REST /v1/quotes endpoint for polling. WebSocket requires Starter or higher.

Get Started with WebSocket Streaming

WebSocket access is included with all subscription plans. Choose the one that fits your symbol count and volume.

Best for Getting Started
Starter
$29 /month

WebSocket streaming for up to 5 symbols. 5 credits per push. Perfect for monitoring a focused watchlist.

Get Started
Pro
$79 /month

Up to 20 symbols at 4 credits per push. Better economics for multi-pair strategies and dashboards.

Get Started
Enterprise
$349 /month

Unlimited symbols, 3 credits per push, dedicated support. Built for production trading systems.

Get Started

Frequently Asked Questions

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 in 5 Minutes

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

Every new account gets $2.50 in free PAYG credits. No card required.