83trust / 100
Tools Price
by x402.swaphunt.dev in Markets & finance
x402 APIPassing, checked 1 h ago
SwapHunt — a crypto market-context toolkit for trading agents: live prices, market regime, volatility, sentiment, funding, macro events, seasonality and anti-FOMO sanity checks, all pay-per-call. This route returns a single asset's live spot price with 24h context: price, 24h change %, 24h high/low and volume — one clean JSON snapshot (BTC, ETH, SOL, any major). For many assets at once use /price/multi.
GET https://x402.swaphunt.dev/v1/tools/price
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 249 ms typical, 249 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.swaphunt.dev/v1/tools/price?asset=BTC¤cy=USD"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%2Fx402.swaphunt.dev%2Fv1%2Ftools%2Fprice
const res = await pay("https://x402.swaphunt.dev/v1/tools/price?asset=BTC¤cy=USD");
console.log(await res.json());Example input
{
"asset": "BTC",
"currency": "USD"
}Example output
{
"asset": "BTC",
"change_24h": 2.3,
"currency": "USD",
"high_24h": 68100,
"low_24h": 65800,
"price": 67250,
"volume_24h": 31500000000
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 293 ms | $0.001 |
| 4 h ago | Passed | 402 | 249 ms | $0.001 |
| 9 h ago | Passed | 402 | 226 ms | $0.001 |