80trust / 100
Get Current Crypto Price
by Sindri in Onchain & crypto
x402 APIPassing, checked 27 min ago
Live cryptocurrency price API. Returns the current market price (in USD) of any cryptocurrency by ticker symbol (BTC, ETH, DOGE, etc.) — live market data an LLM cannot know on its own.
POST https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/getCurrentCryptoPrice
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 135 ms typical, 135 ms slowest 5%
- Last check
- 27 min ago
- Next check
- in 1 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/getCurrentCryptoPrice" \
-H "content-type: application/json" \
-d '{"symbol":"BTC"}'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%2Fppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws%2FgetCurrentCryptoPrice
const res = await pay("https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/getCurrentCryptoPrice", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"symbol":"BTC"}),
});
console.log(await res.json());Example input
{
"symbol": "BTC"
}Example output
{
"data": {
"params": {
"symbol": "BTC"
},
"priceUSD": "65000.00",
"symbol": "BTC"
},
"ok": true
}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 |
|---|---|---|---|---|
| 27 min ago | Passed | 402 | 135 ms | $0.01 |
| 6 h ago | Passed | 402 | 137 ms | $0.01 |