UPUnlockPressure

Trade precheck for token unlocks

A trading workflow recipe for checking source-backed unlock pressure before entering or sizing a position.

Phase 1Cloudflare Worker API with free scanner routes and paid x402 risk routes.
JobBefore executing a trade, inspect the next dated unlocks and buy deeper context only when the free preview shows meaningful size, float share, or confidence.
When to buy token summaryBuy `POST /v1/token/risk-summary` when the trade decision depends on the next 90 days of token-level unlock pressure.
When to use the cheaper event routeUse `POST /v1/unlock-risk` when one event beside the trade is the whole question and a cheaper event score is enough.
No Phase 2 productThis recipe uses only current Phase 1 routes. No watchlists, alerts, portfolio reports, digests, or new report endpoints are exposed.
Phase 1 paid inventory Exactly four x402 routes GET /v1/unlocks/upcoming ($0.02), POST /v1/unlock-risk ($0.10), POST /v1/token/risk-summary ($0.25), POST /v1/unlock/backtest ($0.50). No watchlists, alerts, portfolio reports, digests, or new report paid products are exposed in Phase 1.
import { wrapFetchWithPayment, x402HTTPClient } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));

const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const httpClient = new x402HTTPClient(client);
const response = await fetchWithPayment("https://unlockpressure.pricepilot402-arya.workers.dev/v1/token/risk-summary", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ token: "SXT", lookbackDays: 90 })
});

const paid = await httpClient.processResponse(response);
console.log(paid.body);
curl -i "https://unlockpressure.pricepilot402-arya.workers.dev/v1/token/risk-summary" \
  -H "content-type: application/json" \
  --data '{"token":"SXT","lookbackDays":90}'
curl -i "https://unlockpressure.pricepilot402-arya.workers.dev/v1/unlock-risk" \
  -H "content-type: application/json" \
  --data '{"token":"SXT","unlock_event_id":"unlock_8059a416","includeEvidence":true}'