← Blog

Developers

The Signals API in 20 lines

Nov 10, 2026

The API returns each market's current daily state and latest intraday call. Here is a small script that prints the calls made since yesterday for a few markets.

// node 18+: KEY=mtm_live_... node calls.mjs
const since = new Date(Date.now() - 86400000).toISOString().slice(0, 10);
const url = '/api/v1/signals?symbol=BTC/USDT,ETH/USDT,GOLD,SP500&since=' + since;
const r = await fetch(new URL(url, process.env.HOST), {
  headers: { Authorization: 'Bearer ' + process.env.KEY },
});
if (r.status === 429) throw new Error('slow down: ' + r.headers.get('retry-after') + ' s');
const j = await r.json();
for (const s of j.daily) {
  console.log(s.symbol.padEnd(10), s.state.toUpperCase().padEnd(5),
    'since', s.fired_at, 'anchor', s.anchor, 'age', s.trend_age);
}

Run it once a day after 00:10 UTC: daily calls land a few minutes after the daily close. Keep the key on your own machine or server, never in a web page.