Skip to main content
POST
/
v1
/
tools
/
stock_technicals
curl
curl -sS "https://api.stockcontext.com/v1/tools/stock_technicals" \
  -H "X-API-Key: $STOCKCONTEXT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"symbol":"AAPL","schema":2}'
import requests

url = "https://api.stockcontext.com/v1/tools/stock_technicals"

payload = {
"symbol": "AAPL",
"schema": 2
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({symbol: 'AAPL', schema: 2})
};

fetch('https://api.stockcontext.com/v1/tools/stock_technicals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stockcontext.com/v1/tools/stock_technicals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => 'AAPL',
'schema' => 2
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.stockcontext.com/v1/tools/stock_technicals"

payload := strings.NewReader("{\n \"symbol\": \"AAPL\",\n \"schema\": 2\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.stockcontext.com/v1/tools/stock_technicals")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"AAPL\",\n \"schema\": 2\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.stockcontext.com/v1/tools/stock_technicals")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"AAPL\",\n \"schema\": 2\n}"

response = http.request(request)
puts response.read_body
{
  "subject": {
    "entity": {
      "cik": "0000320193",
      "name": "Apple Inc."
    },
    "security": {
      "ticker": "AAPL",
      "trading_currency": "USD"
    }
  },
  "data": {
    "freshness": {
      "session": "2026-07-01",
      "sessions_behind": 1
    },
    "technicals": {
      "rsi_14": 50.9861,
      "adx_14": 24.3827,
      "atr_14_pct": 2.78
    },
    "benchmark": {
      "symbol": "SPY",
      "session": "2026-07-01",
      "beta_1y": 1.2,
      "beta_5y": 1.18
    }
  },
  "meta": {
    "schema_version": "2",
    "as_of": {
      "market": "2026-07-02"
    }
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Schema-2 request body for stock_technicals.

symbol
string
required
Required string length: 1 - 24
schema
enum<integer>
default:2

stock_technicals is schema-2 only.

Available options:
2
detail
enum<string>
default:core
Available options:
core,
full,
audit
indicators
enum<string>[]

Optional indicator columns appended as a history block.

Available options:
sma_50,
sma_200,
ema_12,
ema_26,
rsi_14,
macd_12_26_9,
bollinger_20_2,
atr_14_pct
range
enum<string>

Optional indicator-history range; requires indicators and defaults to 1y.

Available options:
1w,
1mo,
3mo,
6mo,
ytd,
1y,
5y,
max
bars
boolean
default:true

Indicator columns require true.

Response

Scalar technicals with typed per-window refusals and optional indicator history.

Schema-2 envelope. The OpenAPI schema is structural; captured examples are authoritative for full nested payload detail.

data
object
required

Tool payload or typed schema-2 refusal.

meta
object
required

Schema-2 metadata. Unknown optional fields are omitted, not emitted as null.

subject
object

Resolved entity and security when the tool has a single subject.