Your integration home. Credentials, live signal, 30-day history, and ready-to-paste code snippets for the most common integration patterns.
qk_live_••••••••••••••••••••
Pass as x-api-key header or
?api_key=... query parameter.
Rotate if you believe the key was exposed — rotating invalidates
the old key immediately and replaces it with a new one in this
browser. Webhook and any auto-execute config stay attached to your
account.
# Fetch current signal curl -H "x-api-key: YOUR_KEY" \ https://quarkresearch.cc/api/signals/current # Fetch 30-day signal history (JSON) curl -H "x-api-key: YOUR_KEY" \ "https://quarkresearch.cc/api/signals/history?days=30"
import requests
API_KEY = "YOUR_KEY"
BASE = "https://quarkresearch.cc"
def get_current_signal():
r = requests.get(f"{BASE}/api/signals/current",
headers={"x-api-key": API_KEY}, timeout=10)
r.raise_for_status()
return r.json()
def get_history(days=30):
r = requests.get(f"{BASE}/api/signals/history",
headers={"x-api-key": API_KEY},
params={"days": days}, timeout=30)
r.raise_for_status()
return r.json()["signals"]
sig = get_current_signal()
print(f"Regime: {sig['regime']['label']}")
print(f"Crash 21d: {sig['tail_risk']['crash_prob_21d']:.1%}")
print(f"Equity allocation: {sig['allocation']['equity_pct']:.0%}")
const API_KEY = 'YOUR_KEY';
const BASE = 'https://api.quarkresearch.cc';
async function getCurrentSignal() {
const r = await fetch(`${BASE}/api/signals/current`, {
headers: {'x-api-key': API_KEY}
});
if (!r.ok) throw new Error(`HTTP ${r.status}`);
return r.json();
}
const sig = await getCurrentSignal();
console.log(`Regime: ${sig.regime.label}`);
console.log(`Crash 21d: ${(sig.tail_risk.crash_prob_21d * 100).toFixed(1)}%`);
Point-in-time stamped CSV export — one row per signal observation. Use this to build your own backtests against our out-of-sample signal history.
# Download last 90 days as CSV
curl -H "x-api-key: YOUR_KEY" \
"https://api.quarkresearch.cc/api/signals/history.csv?days=90" \
-o quark_signals_90d.csv
# Columns:
# timestamp_utc, regime, regime_score,
# crash_prob_1d, crash_prob_5d, crash_prob_21d,
# equity_pct, defensive_pct, snr
Register a HTTPS URL to receive push notifications when the regime changes.
Payload shape matches /api/signals/current. One webhook per
API key. Use Test delivery to fire a synthetic payload before a
real regime change happens.
# Or register programmatically curl -X POST -H "x-api-key: YOUR_KEY" \ -H "content-type: application/json" \ -d '{"url":"https://your-server.example.com/webhooks/quark"}' \ https://quarkresearch.cc/api/webhook/register # Remove the webhook curl -X POST -H "x-api-key: YOUR_KEY" \ https://quarkresearch.cc/api/webhook/unregister # Fire a synthetic test payload to your registered URL curl -X POST -H "x-api-key: YOUR_KEY" \ https://quarkresearch.cc/api/webhook/test
| Timestamp (UTC) | Regime | Score | Crash 5d | Crash 21d | Equity % | SNR |
|---|---|---|---|---|---|---|
| Loading… | ||||||
Where the signal library's alpha actually comes from, decomposed per signal from live attribution snapshots. This is the same decomposition the operator terminal uses — licensees see the same numbers we see.
Fire a live request to /api/signals/current
using your key and see the raw JSON below. Use this to verify your key is
wired correctly before writing any integration code.
Link a paper or live Alpaca account to view your balance and positions here. Your API keys are stored in this browser's localStorage only — never sent to Quark servers. All brokerage API calls go directly from your browser to Alpaca.