Crypto Alerts for Bots and AI Agents: A Webhook Guide
SIMMENT can now send every alert your desk receives, range breakouts, key level breaks, liquidation cascades, volatility spikes, US macro prints and market-moving news, to an HTTPS address of your choice, as signed JSON. That lets a script, a trading bot or an AI agent react within seconds instead of a person watching a phone. This guide covers the setup, what each message contains, how to check that a message really came from SIMMENT, and the rules that keep an automated system from doing something you did not intend.
- One webhook per account, set on simment.ai/account after confirming your email. Pick the same alert groups as in the app.
- Every alert is a POST with a JSON body: title, text, coin, level, price, direction, timeframe, a unique id and a timestamp.
- Each request is signed: X-Simment-Signature carries a timestamp and an HMAC-SHA256 of the body with your secret. An optional Authorization header can be added for receivers that require one.
- Answer with any 2xx within 8 seconds. After 20 failures in a row the webhook switches itself off until you save it again.
- Alerts are market context, not trade instructions. A bot that acts on them needs its own filters and risk limits.
What you need
- A free SIMMENT account with a confirmed email address. Desks opened with email and password get a 6-digit code; Google and Apple sign-ins are confirmed already.
- A public HTTPS endpoint that accepts POST requests: your own server, a serverless function, or an automation service that gives you a webhook URL.
- Optionally, a secret or token your endpoint expects in an Authorization header.
Setting it up
- Open simment.ai/account and sign in. If you see "Confirm your email", enter the code first.
- In the Webhook section, paste your HTTPS address. Only public addresses are accepted: no local or private networks, no custom ports.
- If your endpoint requires it, type the full header value, for example "Bearer your-token", into the Authorization header field. It is stored on the server and never shown again.
- Choose the alert groups. They are the same as in the app: crypto major zones, liquidation cascades, volatility spikes, US macro data and market-moving news.
- Save, copy the signing secret, and press "Send test". The page shows the HTTP status your endpoint returned.
What a message looks like
Every alert is sent as a POST with Content-Type application/json. The body carries the visible title and text in your account's language and every field the apps use to draw the alert on a chart. An illustrative example:
{
"event": "alert",
"title": "BTC 1h range breakout above 61,200",
"body": "Closed 1.1 ATR above the box. Measured move 63,900.",
"lang": "en",
"group": "crypto",
"symbol": "BTC",
"level": "range",
"dir": "up",
"price": 61350.5,
"tf": "1h",
"id": "1795790000000_ab12c",
"ts": 1795790000000
}Test messages have "event": "test". Range and pattern alerts can also carry a "shape" object with the box or pattern points. Treat "id" as the unique key: if your endpoint is slow and a delivery is repeated, the same id means the same alert.
Checking that a message came from SIMMENT
Anyone who learns your URL could post to it. The signature proves a message came from SIMMENT and was not changed. The header looks like this:
X-Simment-Signature: t=1795790000,v1=5f2c...e81a v1 = hex( HMAC-SHA256( secret, t + "." + raw request body ) )
Compute the same HMAC over the raw body exactly as received, before parsing the JSON, compare it in constant time, and reject messages whose timestamp is more than a few minutes old. In Node.js:
Verifying in Node.js
import crypto from 'crypto'
export function verifySimment(rawBody, header, secret) {
const p = Object.fromEntries(String(header).split(',').map((kv) => kv.split('=')))
const mac = crypto.createHmac('sha256', secret).update(`${p.t}.${rawBody}`).digest('hex')
const a = Buffer.from(mac), b = Buffer.from(String(p.v1 || ''))
const fresh = Math.abs(Date.now() / 1000 - Number(p.t)) < 300
return a.length === b.length && crypto.timingSafeEqual(a, b) && fresh
}Verifying in Python
import hmac, hashlib, time
def verify_simment(raw: bytes, header: str, secret: str) -> bool:
p = dict(kv.split('=', 1) for kv in header.split(','))
mac = hmac.new(secret.encode(), p['t'].encode() + b'.' + raw, hashlib.sha256).hexdigest()
fresh = abs(time.time() - int(p['t'])) < 300
return hmac.compare_digest(mac, p.get('v1', '')) and freshAnswering, retries and limits
- Reply with any 2xx status within 8 seconds. Do slow work after replying, for example by putting the alert on a queue.
- Redirects are not followed. Point the webhook at the final address.
- After 20 failed deliveries in a row the webhook switches off, and the account page says so. Saving it again switches it back on.
- You can rotate the signing secret at any time from the account page. Update your verifier at the same moment.
Using alerts safely in an automated system
An alert says something happened on a chart. It does not say what to do. Our own research on 5,471 range breakouts found that 57% fell back inside the range within 8 bars, so a bot that buys every breakout alert would mostly be buying fakeouts.
- Filter. Use the fields in the message, and your own data, before acting: timeframe, how far price closed past the level, volume, trend.
- Ignore what is not an entry. Some alerts report that a pattern was invalidated or that a target was reached; read "level" and the title.
- Limit risk in the bot, not in your head: maximum position size, a stop on every position, a daily loss limit, and a switch that stops everything.
- Deduplicate by "id", and ignore "event": "test".
- Start on paper. The SIMMENT desk gives you 10,000 virtual USDT on live prices to see how a rule would have behaved before any real money is involved.
Quick answers
Can I get SIMMENT crypto alerts by webhook?
Yes. On simment.ai/account, after confirming your email, save an HTTPS address and choose the alert groups. Every alert is then sent as a signed JSON POST.
How do I verify a SIMMENT webhook?
Compute HMAC-SHA256 of "t.rawBody" with your signing secret, where t comes from the X-Simment-Signature header, compare it with the header's v1 value in constant time, and reject old timestamps.
Can I send an Authorization header to my endpoint?
Yes. Type the full header value, such as "Bearer your-token", into the Authorization header field on the account page. It is stored on the server and sent with every request.
Are SIMMENT alerts trading signals?
No. They describe what happened on a chart or in the news. Any automated use needs its own filters and risk limits. SIMMENT is a paper trading desk and nothing on it is financial advice.
Sources
SIMMENT is a free crypto paper trading desk: 10,000 virtual USDT on live prices, with the alerts and charts this article draws on. Open the desk → · News and market reaction · iOS app
Educational content. Simulated trading only. Not financial advice.