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 — March 12, 2026 Market Regime: Mean-Reverting Safety Score: 94.6 (HIGH) Composite Signals: BTC: buy (score: 0.241)\n ETH: buy (score: 0.245)\n SOL: buy (score: 0.253)\n HYPE: strong_buy (score: 0.348)\n # The bot would use this data to make trading decisions
Complete Source Code
Copy this code, replace YOUR_API_KEY with your key, and run:
import fetch from "node-fetch";
const API_KEY = "YOUR_API_KEY";
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?api_key=${{API_KEY}}`).then(r => r.json()),
fetch(`${{BASE}}/v3/signals/regime?api_key=${{API_KEY}}`).then(r => r.json()),
fetch(`${{BASE}}/v3/signals/safety?api_key=${{API_KEY}}`).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
- Get an API key from the API page
- Replace
YOUR_API_KEYin the code above - 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
# All endpoints used by this template:
curl -H "X-API-Key: YOUR_KEY" https://algotick.dev/v3/signals/regime
curl -H "X-API-Key: YOUR_KEY" https://algotick.dev/v1/signals/composite
curl -H "X-API-Key: YOUR_KEY" https://algotick.dev/v3/signals/safety
curl -H "X-API-Key: YOUR_KEY" 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.