Integrate THv2 data into your applications
All requests require an X-THV2-Key header.
Generate a key below and include it with every request.
curl -H "X-THV2-Key: YOUR_KEY" \
https://trading-hub.kylifehub.com/api/screener?tickers=AAPL
| ID | Created | Last Used | Tier | Limit/Day | |
|---|---|---|---|---|---|
| Loading... | |||||
tickers AAPL,MSFT,NVDA // comma-separated, max 50
{
"ok": true,
"data": {
"results": [
{ "sym": "AAPL", "score": 74, "tier": "Buy", "asOf": "2026-06-05" },
{ "sym": "MSFT", "score": 68, "tier": "Hold", "asOf": "2026-06-05" }
]
}
}
curl -H "X-THV2-Key: YOUR_KEY" \
"https://trading-hub.kylifehub.com/api/screener?tickers=AAPL,MSFT"
const res = await fetch('/api/screener?tickers=AAPL,MSFT', {
headers: { 'X-THV2-Key': YOUR_KEY }
});
const { data } = await res.json();
{
"ok": true,
"data": {
"signals": [
{ "sym": "NVDA", "score": 88, "tier": "Strong Buy", "edge": "momentum+iv" }
],
"asOf": "2026-06-05"
}
}
curl -H "X-THV2-Key: YOUR_KEY" \
https://trading-hub.kylifehub.com/api/daily-edge
tickers SPY,QQQ // comma-separated
{
"ok": true,
"data": {
"scores": {
"SPY": { "score": 61, "tier": "Hold" },
"QQQ": { "score": 70, "tier": "Buy" }
}
}
}
curl -H "X-THV2-Key: YOUR_KEY" \
"https://trading-hub.kylifehub.com/api/score-batch?tickers=SPY,QQQ"
sym AAPL // ticker symbol period 1M // 1D | 1W | 1M | 3M | 6M | 1Y
{
"ok": true,
"data": {
"sym": "AAPL",
"candles": [
{ "t": "2026-05-01", "o": 171.2, "h": 174.5, "l": 170.0, "c": 173.1, "v": 52000000 }
]
}
}
curl -H "X-THV2-Key: YOUR_KEY" \
"https://trading-hub.kylifehub.com/api/chart-data?sym=AAPL&period=1M"
{
"ok": true,
"alerts": [{ "id": 1, "ticker": "AAPL", "condition_type": "score-above", "threshold": 75 }],
"triggered": [{ "alertId": 1, "ticker": "AAPL", "message": "Score above 75" }]
}
{
"ticker": "NVDA",
"condition": { "type": "score-above", "threshold": 80 }
}
curl -X DELETE -H "X-THV2-Key: YOUR_KEY" \
https://trading-hub.kylifehub.com/api/alerts/1
{
"ok": true,
"groups": [
{ "id": 1, "name": "Breakout Watch", "conditions": [...], "logic": "AND" }
]
}
{
"name": "Breakout Watch",
"logic": "AND",
"conditions": [
{ "type": "score-above", "threshold": 75 },
{ "type": "iv-rank-above", "threshold": 50 }
]
}
{
"ok": true,
"positions": [
{ "id": 1, "sym": "AAPL", "qty": 10, "entry": 172.5, "side": "long" }
]
}
{
"sym": "AAPL",
"side": "buy",
"qty": 10,
"type": "market"
}
{
"ok": true,
"data": {
"webhooks": [
{ "id": 1, "url": "https://hooks.slack.com/...", "type": "slack", "name": "My Slack" }
]
}
}
{
"url": "https://hooks.slack.com/services/...",
"type": "slack",
"name": "My Slack"
}
curl -X DELETE -H "X-THV2-Key: YOUR_KEY" \
https://trading-hub.kylifehub.com/api/webhooks/1
{
"ok": true,
"data": {
"tier": "pro",
"status": "active",
"expiresAt": "2026-07-05T00:00:00Z"
}
}
{
"ok": true,
"data": {
"prefs": {
"default_tickers": ["SPY", "QQQ", "AAPL"],
"chart_indicators": ["SMA20", "SMA50"],
"theme": "dark",
"density": "comfortable",
"currency": "USD",
"timezone": "America/New_York"
}
}
}
{
"theme": "ultra-dark",
"density": "compact"
}