Last updated: November 27, 2026
Signal push tells you about a signal the moment it is published and again when it closes, so nothing has to poll. There are three ways to receive the same events. Pick the one that fits where your code runs.
wait_for_signal), and what the free plan uses in place of the stream.signal.new — a signal was published. Carries the same signal object as GET /api/skill/signals/:id.signal.closed — its target was hit, its stop was hit, or its window ended. Carries the signal and result: outcome (target, stop or window) and resultPct after fees, without leverage.market.pause / market.resume — new short signals are held back while Bitcoin rallies, then resume. A quiet feed during a pause is expected.{
"id": "evt_1042",
"type": "signal.new",
"seq": 1042,
"occurredAt": "2026-11-27T14:03:11.000Z",
"plan": "pro",
"signal": {
"id": "6741c0a2…", "coin": "SOL", "direction": "bearish", "confidence": 72,
"entryPrice": 141.9, "stopLoss": 150.4, "takeProfit": 129.1, "leverage": 3,
"requiresSubscription": false
}
}
id is unique per event: use it to ignore a delivery you already handled. seq only grows: use it as a cursor and to put events in order. It is not a counter of what you receive, because filters and your plan leave some events out.
entryPrice, stopLoss, takeProfit and leverage are null, and each event carries the link to subscribe. One webhook. Wait, but no stream.The plan is applied when an event is sent. A webhook made during a trial keeps working afterwards as a free one.
Add one on the Webhooks page, with POST /api/skill/webhooks, or by asking your agent (create_webhook). You get a signing secret once; keep it.
curl -X POST https://signals.x70.ai/api/skill/webhooks \
-H "X-Api-Key: $SIGNALS_API_KEY" -H "Content-Type: application/json" \
-d '{"url": "https://your-server.com/signals", "events": ["signal.new", "signal.closed"], "filter": {"coins": ["SOL", "BTC"], "direction": "short", "minConfidence": 60}}'
Every request we send has these headers:
X-Signals-Signature: t=<unix seconds>,v1=<hex> — v1 is the HMAC-SHA256 of t + "." + body with your secret.X-Signals-Event — the event type. X-Signals-Delivery — an id for this delivery.Check the signature on the raw body, before parsing it:
import crypto from 'node:crypto';
// rawBody: the request body exactly as received (a string), before any JSON parsing.
export function isFromSignals(rawBody, signatureHeader, secret, maxAgeSeconds = 300) {
const t = /t=(\d+)/.exec(signatureHeader || '')?.[1];
const v1 = /v1=([0-9a-f]+)/.exec(signatureHeader || '')?.[1];
if (!t || !v1) return false;
if (Math.abs(Date.now() / 1000 - Number(t)) > maxAgeSeconds) return false; // too old: a replay
const expected = crypto.createHmac('sha256', secret).update(t + '.' + rawBody).digest('hex');
return expected.length === v1.length && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}
import hashlib, hmac, re, time
def is_from_signals(raw_body: bytes, signature_header: str, secret: str, max_age_seconds: int = 300) -> bool:
t = re.search(r"t=(\d+)", signature_header or "")
v1 = re.search(r"v1=([0-9a-f]+)", signature_header or "")
if not t or not v1:
return False
if abs(time.time() - int(t.group(1))) > max_age_seconds:
return False # too old: a replay
expected = hmac.new(secret.encode(), t.group(1).encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, v1.group(1))
A complete receiver in Node, with nothing to install:
import http from 'node:http';
import { isFromSignals } from './verify.js';
const SECRET = process.env.SIGNALS_WEBHOOK_SECRET;
const seen = new Set(); // event ids already handled
http.createServer((req, res) => {
let raw = '';
req.on('data', (c) => { raw += c; });
req.on('end', () => {
if (!isFromSignals(raw, req.headers['x-signals-signature'], SECRET)) { res.writeHead(401).end(); return; }
res.writeHead(200).end('ok'); // answer first, within 5 seconds
const event = JSON.parse(raw);
if (seen.has(event.id)) return; // a retry of something you already have
seen.add(event.id);
if (event.type === 'signal.new') console.log('NEW', event.signal.coin, event.signal.direction, event.signal.entryPrice);
if (event.type === 'signal.closed') console.log('CLOSED', event.signal.coin, event.result.outcome, event.result.resultPct);
});
}).listen(8080);
What we expect from your endpoint. Answer with any 2xx status within 5 seconds; do the work after answering. Anything else counts as a failure and we try again after 10 seconds, 30 seconds, 2 minutes, 10 minutes, 30 minutes, 2 hours, 6 hours and 12 hours. A delivery that never succeeds stays in your log, where you can send it again. After three days of nothing but failures we switch the webhook off; one click on the Webhooks page switches it back on. Answer 410 to tell us an address is retired for good.
The URL must be https:// and reachable from the internet. We do not follow redirects.
Discord and Slack. Paste an "incoming webhook" URL from either and each event arrives as one readable line, for example SHORT SOL · confidence 72% · entry 141.9 · stop 150.4 · target 129.1 · 3x. Use your own private channel: signal data may not be shared with other people (Terms, section 8).
One connection, events as they happen, in the Server-Sent Events format. Trial and paid plans; up to three connections per account. A comment line arrives every 20 seconds to keep the connection open.
curl -N -H "X-Api-Key: $SIGNALS_API_KEY" https://signals.x70.ai/api/skill/signals/stream
Each event has an id line with its seq. Send it back as Last-Event-ID (or ?after=) when you reconnect and you get everything you missed. The filters go in the query: ?coins=SOL,BTC&direction=short&minConfidence=60.
import json, os, urllib.request
KEY = os.environ["SIGNALS_API_KEY"]
URL = "https://signals.x70.ai/api/skill/signals/stream"
last_id = None
while True: # reconnect for ever; Last-Event-ID resumes where the connection dropped
headers = {"X-Api-Key": KEY, **({"Last-Event-ID": last_id} if last_id else {})}
try:
with urllib.request.urlopen(urllib.request.Request(URL, headers=headers), timeout=90) as stream:
event = {}
for line in stream:
line = line.decode().rstrip("\n")
if line.startswith(":"):
continue # heartbeat
if line == "": # a blank line ends one event
if event.get("event") not in (None, "ready"):
payload = json.loads(event["data"])
print(event["event"], payload.get("signal", {}).get("coin"))
last_id = event.get("id", last_id)
event = {}
elif ": " in line:
k, v = line.split(": ", 1)
event[k] = v
except Exception as err:
print("reconnecting:", err)
Every plan. The first call without after starts from now and returns only a cursor; pass the cursor back each time. wait is in seconds, 50 at most; leave it out to get an answer at once.
import json, os, urllib.request
KEY = os.environ["SIGNALS_API_KEY"]
cursor = None
while True: # each call waits up to 50 seconds for something to happen
url = "https://signals.x70.ai/api/skill/events?wait=50" + (f"&after={cursor}" if cursor is not None else "")
with urllib.request.urlopen(urllib.request.Request(url, headers={"X-Api-Key": KEY}), timeout=70) as r:
answer = json.load(r)
cursor = answer["cursor"]
for event in answer["events"]:
print(event["type"], event.get("signal", {}).get("coin"))
To catch up after being offline, call /api/skill/events?after=<your last cursor> without wait until it returns nothing.
An agent connected to the MCP server has these tools: wait_for_signal, get_events, create_webhook, list_webhooks, test_webhook, delete_webhook. Things you can say to it: