P

Polynews · Price History

by Polynews

GETBaseSolana

$0.005

per call · USD Coin on Base

Historical price data with configurable timeframes (1H/6H/1D/1W/1M/ALL)

Endpoint

GET https://polynews.news/api/v1/price-history

3

Calls / 30d

3

Unique payers / 30d

Aug 28

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://polynews.news/api/v1/price-history", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://polynews.news/api/v1/price-history?marketId=69317&range=1D" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "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"
  }
}

Payment details

Pay to0x6ee49a7872844397fb52870cc07b308ffadc9427
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Polynews & similar services