{"uid":"cap_VQfYCxUNEAo-U3m3-Xat8","slug":"price-history-ohlc-amanchain-160d2e56","name":"Price History OHLC (AmanChain)","description":"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.","url":"https://preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/api/x402/aman-price-history","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"request":{"type":"string","description":"service input (see body example)"},"serviceId":{"type":"string","description":"the service id, \"aman-price-history\""}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.093311","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.093311/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.093311","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.093311","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FSZF3UZ1BWBsP5UWtQY3i","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.093311","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches OHLC (open, high, low, close) price history for on-chain assets, executed deterministically via an AmanChain node against live consensus state, paid per call in USDC via x402.","exampleAgentPrompt":"Can you pull the OHLC price history for ETH over the past 30 days from the AmanChain on-chain price history service? I want the open, high, low, and close prices per candle.","exampleUseCases":[{"title":"Token price trend analysis","prompt":"Get me the OHLC price history for WBTC over the last 7 days — I want to see the daily open, high, low, and close to understand the recent price trend."},{"title":"DeFi portfolio valuation","prompt":"Fetch the historical price data for USDC/ETH over the past 30 days using the AmanChain price history service so I can value my DeFi positions at different points in time."},{"title":"Backtesting trading strategy","prompt":"Pull hourly OHLC candlestick data for SOL from the on-chain price history service for the past two weeks — I need it to backtest a simple moving average trading strategy."}],"resultDescription":"Returns OHLC (open, high, low, close) candlestick price data for the requested on-chain asset over the specified time range, sourced deterministically from live blockchain consensus state via the AmanChain node.","failureModes":["Invalid or unsupported asset/token identifier returns an error or empty result","Insufficient USDC balance or failed x402 payment results in request rejection","Malformed JSON body or missing serviceId field causes a 400-level error","Token or pool with insufficient on-chain liquidity history may return partial or no data","Network or node unavailability may cause timeouts or 5xx errors"],"whenToPreferThis":"Choose this endpoint when you need trustless, deterministically-executed on-chain OHLC price history without an API key or account, paid per call in USDC. Ideal for AI agents that require verifiable, consensus-backed price data rather than off-chain exchange feeds, and when you want per-call micropayment billing with no subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:01:26.197Z","isFirstParty":false}