Market Data Stream
TypeScript service consuming the real-time API feed and broadcasting to a trading dashboard. Framework: TypeScript + Node.js.
Live Output Preview
If you ran this bot right now, the API would return:
# Live API output — June 17, 2026 Market Regime: Mean-Reverting Safety Score: 97.3 (HIGH) Composite Signals: BTC: buy (score: 0.291)\n ETH: neutral (score: 0.021)\n SOL: neutral (score: 0.023)\n HYPE: neutral (score: 0.080)\n # The bot would use this data to make trading decisions
Complete Source Code
Copy this code and run — no API key required:
import fetch from "node-fetch";
const BASE = "https://algotick.dev";
interface Signal {{
coin: string;
composite_score: number;
regime: string;
}}
async function streamMarketData() {{
while (true) {{
const [composite, regime, safety] = await Promise.all([
fetch(`${{BASE}}/v1/signals/composite`).then(r => r.json()),
fetch(`${{BASE}}/v3/signals/regime`).then(r => r.json()),
fetch(`${{BASE}}/v3/signals/safety`).then(r => r.json()),
]);
console.clear();
console.log("=== Algo Tick Market Feed ===");
console.log(`Safety: ${{safety.coherence_score}} (${{safety.safety_level}})`);
console.log("");
for (const sig of composite.signals || []) {{
const r = (regime.regimes || []).find((x: any) => x.coin === sig.coin);
console.log(
`${{sig.coin.padEnd(5)}} | Score: ${{sig.composite_score?.toFixed(3).padStart(7)}} | ` +
`Regime: ${{(r?.regime_label || "?").padEnd(15)}} | ` +
`Direction: ${{sig.regime || "?"}}`
);
}}
await new Promise(r => setTimeout(r, 10000)); // Poll every 10s
}}
}}
streamMarketData();
Setup Instructions
- Install dependencies:
pip install requests(Python) ornpm install node-fetch(TypeScript) - Run the script and monitor the output
- Connect your exchange API for live trading
API Endpoints Used
Framework
TypeScript + Node.js
Data Source
Algo Tick API
# No API key required. All endpoints used by this template:
curl https://algotick.dev/v3/signals/regime
curl https://algotick.dev/v1/signals/composite
curl https://algotick.dev/v3/signals/safety
curl https://algotick.dev/v1/signals/volatility?coin=BTCDon't just stare at the dashboard. Automate it.
Every metric on this page is available via our sub-millisecond API.
Build trading bots, backtest strategies, and power AI agents with institutional-grade data.