76trust / 100
Price History
by polynews.news in News & content
x402 APIPassing, checked 22 min ago
Historical price data with configurable timeframes (1H/6H/1D/1W/1M/ALL)
GET https://polynews.news/api/v1/price-history
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 91.7%
- Response time
- 456 ms typical, 838 ms slowest 5%
- Last check
- 22 min ago
- Next check
- in 7 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://polynews.news/api/v1/price-history?marketId=69317&range=1D"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%2Fpolynews.news%2Fapi%2Fv1%2Fprice-history
const res = await pay("https://polynews.news/api/v1/price-history?marketId=69317&range=1D");
console.log(await res.json());Example input
{
"marketId": "69317",
"range": "1D"
}Example output
{
"data": {
"marketId": "69317",
"outcomes": [
{
"history": [
{
"price": 68,
"timestamp": 1747008000000
},
{
"price": 71,
"timestamp": 1747011600000
},
{
"price": 72,
"timestamp": 1747015200000
}
],
"outcomeId": "0x1a...",
"outcomeName": "Gavin Newsom"
}
]
},
"meta": {
"endpoint": "/api/v1/price-history",
"latencyMs": 240,
"tier": "standard",
"timestamp": "2026-05-12T04:30:00.000Z",
"version": "v1"
}
}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 |
|---|---|---|---|---|
| 22 min ago | Passed | 402 | 414 ms | $0.005 |
| 4 h ago | Passed | 402 | 462 ms | $0.005 |
| 7 h ago | Passed | 402 | 838 ms | $0.005 |
| 11 h ago | Passed | 402 | 437 ms | $0.005 |
| 14 h ago | Timed out | - | - | - |
| 18 h ago | Passed | 402 | 677 ms | $0.005 |
| 22 h ago | Passed | 402 | 1.8 s | $0.005 |
| 25 h ago | Passed | 402 | 386 ms | $0.005 |
| 30 h ago | Passed | 402 | 481 ms | $0.005 |
| 33 h ago | Passed | 402 | 456 ms | $0.005 |
| 36 h ago | Passed | 402 | 439 ms | $0.005 |
| 41 h ago | Passed | 402 | 383 ms | $0.005 |