{"uid":"cap_U8e0uCBHFIm569rKsJCsc","slug":"agents-x402stock-xyz-x402stock-crypto-spot-pair-daily-open-close-price-23c9aa04","name":"x402stock Crypto Spot Pair Daily Open/Close Price","description":"The official UTC open and close price for a crypto spot pair on a given date.","url":"https://agents.x402stock.xyz/api/v1/crypto/{pair}/open-close?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["pair","date"],"properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pair":{"type":"string","description":"Currency or crypto spot pair as BASE-QUOTE, e.g. EUR-USD or BTC-USD."}}},"responseSchema":{"type":"object","required":["ticker","data","source","as_of"],"properties":{"data":{"type":"object","required":["date","open","close"],"properties":{"date":{"type":"string","anyOf":[{"type":"string"},{"type":"null"}]},"open":{"type":"number"},"close":{"type":"number"}},"additionalProperties":false},"as_of":{"type":"string"},"source":{"type":"string","const":"x402stock"},"ticker":{"type":"string"},"feedback":{"type":"object","required":["endpoint","method","free","note"],"properties":{"free":{"type":"boolean"},"note":{"type":"string"},"method":{"type":"string","const":"POST"},"endpoint":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bHyTI4SdE3HtqFeWxzVQK","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.x402stock.xyz","brandSlug":"agents-x402stock-xyz-x402","brandBaseUrl":"https://agents.x402stock.xyz","brandDocsUrl":null,"whatItDoes":"Returns the official UTC open and close price for a cryptocurrency spot pair on a specific calendar date","exampleAgentPrompt":"What were the UTC open and close prices for BTC-USD on March 10, 2024?","exampleUseCases":[{"title":"Crypto portfolio daily performance check","prompt":"What did ETH-USD open and close at on April 22, 2025? I want to see how much it moved that day."},{"title":"Backtesting entry and exit prices","prompt":"I'm backtesting a strategy — can you pull the UTC open and close prices for SOL-USD on every Monday in February 2024, starting with February 5?"},{"title":"Verifying a reported crypto trade price","prompt":"Someone claims they bought BTC-USD at $68,200 on November 12, 2024 — what were the official UTC open and close prices that day so I can check if that's plausible?"}],"resultDescription":"A JSON object containing the ticker symbol, the date, the UTC open price, and the UTC close price for the requested crypto spot pair on the specified date, along with a source identifier and an as_of timestamp indicating data freshness.","failureModes":["Invalid pair format (not BASE-QUOTE) returns an error","Date parameter missing returns a 400 bad request","Future dates or dates with no trading data may return null or error","Unsupported or obscure crypto pairs may return no data","Payment failure via x402/USDC results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need the official UTC open and close price for a specific cryptocurrency spot pair on a specific past date — ideal for backtesting, trade verification, daily performance snapshots, or historical price lookups. Prefer this over OHLCV bar endpoints when you only need the day-level open and close, not intraday bars. This endpoint is pay-per-call with no API key required, making it suitable for autonomous agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:38:28.741Z","isFirstParty":false,"canonicalSlug":"agents-x402stock-xyz-x402stock-crypto-spot-pair-daily-open-close-price-23c9aa04"}