Xynaptic Watch
api.xynaptic.io/v1/watch-put
Xynaptic Watch — the agent daycare: we watch a condition for you, checked hourly up to 30 days; when triggered the result is encrypted with your watch_secret. Types: crypto_price_above|below, crypto_change_pct, company_officer_change, stock_price_above|below, stock_rsi_below|above, energy_price_above|below, news_keyword. POST body: { type, symbol|ticker|siren|keyword, price|pct|rsi, ttl_days?: 30,
POST
https://api.xynaptic.io/v1/watch-putUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.xynaptic.io/v1/watch-put", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"type":"crypto_price_below","price":80000,"symbol":"btc"}),
});
console.log(await res.json());Example input
{
"type": "crypto_price_below",
"price": 80000,
"symbol": "btc"
}