Skip to content
Fourohtwo

Historical token price on Arc, batch

apexfaucet.xyz/api/x402/arc-price-at

Historical token price on Arc, batch: ?q=0xTOKEN@BLOCK,0xTOKEN@BLOCK (up to 50 pairs) returns each token's USD price AT each block, read from its deepest Uniswap v4 USDC pool with an eth_call at that block. For history values, P&L and tax exports. A pool that did not exist yet answers null with the reason. Malformed input, a future block, or not one pair priceable is refused before payment.

BaseArcSolanaBNB ChainRobinhood ChainAnswering
GEThttps://apexfaucet.xyz/api/x402/arc-price-at

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://apexfaucet.xyz/api/x402/arc-price-at?q=0x59933F316417C89d9dC5107B30f08C99b774Ea9D%40latest&token=0x59933F316417C89d9dC5107B30f08C99b774Ea9D");
console.log(await res.json());

Example input

{
  "q": "0x59933F316417C89d9dC5107B30f08C99b774Ea9D@latest",
  "token": "0x59933F316417C89d9dC5107B30f08C99b774Ea9D"
}