Parallel-rate history — last 7 days, hourly
Same series as the 24h shelf, seven days deep.
$0.99 per call — paid in USDC on Base over the x402 protocol, settled by Coinbase. No API key, no signup.
Parameters
| param | description |
|---|---|
pair | USD-NGN or USD-GHS (required) |
Call it (any x402 client)
# 1. GET without payment → HTTP 402 with PAYMENT-REQUIRED (price, payTo, scheme "exact")
curl -i "https://ai-money-endpoint.nibiashara.workers.dev/shelf/fx-parallel-history-7d?pair=USD-NGN"
# 2. Sign the payment (EIP-3009 transferWithAuthorization, gasless) and retry
# with the PAYMENT-SIGNATURE header → response body is the delivery.
With the official JS client the whole flow is one wrapped fetch:
import { wrapFetchWithPayment } from "@x402/fetch"; // npm i @x402/fetch @x402/evm
const fetchPaid = wrapFetchWithPayment(fetch, { /* your EVM signer */ });
const res = await fetchPaid("https://ai-money-endpoint.nibiashara.workers.dev/shelf/fx-parallel-history-7d?pair=USD-NGN");
const data = await res.json();
Or install the MCP server (https://ai-money-endpoint.nibiashara.workers.dev/mcp, registry id biz.nibiashara/shelves) and use the job-named tool for this shelf, or buy_shelf as an escape hatch.
Example response
{
"pair": "USD-NGN",
"window": "7d",
"points": [
{
"captured_at": "2026-08-16T00:00:00Z",
"parallel_mid": 1392.4,
"spread_pct": 3.4
}
]
}
Delivers
JSON { pair, window: '7d', points[] }