S

Space Z · Aman Price History

by Space Z

POSTBase

$0.0933

per call · USD Coin on Base

Price History OHLC: node-operated on-chain service Executed deterministically by the AmanChain node against live consensus state (real blocks, pools, balances) — paid per call via x402, settled in USDC on Base. Input: JSON body {"serviceId":"aman-price-history","request":"<input>"}. No account, no API key.

Endpoint

POST https://preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/api/x402/aman-price-history

1

Calls / 30d

1

Unique payers / 30d

Sep 4

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://preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/api/x402/aman-price-history", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "request": "AMAN-USDT",
    "serviceId": "aman-price-history"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/api/x402/aman-price-history" \
  -H "Content-Type: application/json" \
  -d '{"request":"AMAN-USDT","serviceId":"aman-price-history"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "candles": [
    {
      "c": 0.622,
      "h": 0.63,
      "l": 0.6,
      "o": 0.61,
      "t": 1788300000000,
      "v": 320
    }
  ]
}

Payment details

Pay to0x215200bd7e6973ad2d2927bdd3e04a61531f5629
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from Space Z & similar services