78trust / 100

Articles Percentage Drop

by handel.halowerk.com in News & content

x402 APIPassing, checked 2 h ago

Notify when a listed-price reduction reaches a chosen percentage; previous price must be positive. Uses an optional predicate extension of the proven Price-Callback motor. price_percentage_drop_decision records this exact rule; the rule executes BEFORE dispatch. Same public IPv4HTTPS pinned connections, robots checks,9s,1MiBHTML,at-most-once receipt/idempotency7days,failureschargedfalse. Caller supplies historical price and schedules polling.

POST https://handel.halowerk.com/v1/price/articles/percentage-drop

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
220 ms typical, 308 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://handel.halowerk.com/v1/price/articles/percentage-drop" \
  -H "content-type: application/json" \
  -d '{"callback_url":"https://stack.halowerk.com/_top10-endspurt/callback","drop_percent":1,"idempotency_key":"example_replace_with_random_32_character_key","previous":{"currency":"GBP","value":60},"url":"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fhandel.halowerk.com%2Fv1%2Fprice%2Farticles%2Fpercentage-drop
const res = await pay("https://handel.halowerk.com/v1/price/articles/percentage-drop", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"callback_url":"https://stack.halowerk.com/_top10-endspurt/callback","drop_percent":1,"idempotency_key":"example_replace_with_random_32_character_key","previous":{"currency":"GBP","value":60},"url":"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"}),
});
console.log(await res.json());

Example input

{
  "callback_url": "https://stack.halowerk.com/_top10-endspurt/callback",
  "drop_percent": 1,
  "idempotency_key": "example_replace_with_random_32_character_key",
  "previous": {
    "currency": "GBP",
    "value": 60
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402266 ms$0.007
6 h agoPassed402186 ms$0.007
10 h agoPassed402308 ms$0.007
13 h agoPassed402165 ms$0.007
17 h agoPassed402273 ms$0.007
21 h agoPassed402220 ms$0.007
24 h agoPassed402121 ms$0.007
30 h agoPassed402446 ms$0.007