{"uid":"cap_L9w3sdfcl_mzw5EYyqIGW","slug":"claw402-alpaca-bars-ohlcv-market-data-via-x402-9b129613","name":"claw402 Alpaca Bars — OHLCV Market Data via x402","description":"Backed by vergex.trade. Pay for any API with USDC. No API keys. No registration. Just a wallet.","url":"https://claw402.ai/api/v1/alpaca/bars","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"end":{"type":"string"},"feed":{"type":"string"},"sort":{"type":"string"},"limit":{"type":"string"},"start":{"type":"string"},"symbols":{"type":"string"},"timeframe":{"type":"string"},"adjustment":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"code":0,"data":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fZp9aaHGNf8UeCJocRs9p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches historical OHLCV bar data for one or more stock symbols from Alpaca Markets, payable per-call with USDC via the x402 protocol","exampleAgentPrompt":"Pull the daily OHLCV bars for AAPL and TSLA from January 1 2024 to March 31 2024, adjusted for splits, sorted ascending, up to 1000 bars each — pay the $0.002 USDC fee from my wallet.","exampleUseCases":[{"title":"Intraday bars for index ETFs","prompt":"Grab the 1-minute OHLCV bars for SPY and QQQ from last Tuesday between 9:30 AM and 4:00 PM ET — pay the USDC micropayment from my wallet and give me the full candlestick data sorted by time."},{"title":"Weekly candlestick history for portfolio","prompt":"Fetch weekly OHLCV bars for MSFT, NVDA, and AMZN going back one full year from today, adjusted for splits, sorted ascending — cover up to 500 bars per symbol and settle the fee in USDC from my crypto wallet."},{"title":"Pre-earnings price movement lookup","prompt":"Pull the daily candlestick data for TSLA for the 30 trading days leading up to its last earnings report — I need open, high, low, close, and volume for each bar, no API key, just pay the x402 fee from my wallet."}],"resultDescription":"Returns a JSON object with a code field (0 for success) and a data array containing OHLCV bar records for the requested symbols, each bar including open, high, low, close, volume, and timestamp fields.","failureModes":["Payment not received or insufficient USDC balance — 402 Payment Required response","Invalid or unrecognized symbol — empty data array or error code","Invalid timeframe or date range parameters — malformed request error","Date range too large exceeding limit — truncated or error response","No data available for given date range (e.g. market holiday) — empty data array"],"whenToPreferThis":"Choose this endpoint when you need Alpaca-sourced OHLCV bar data for US equities and want to avoid API key registration by paying micro-fees in USDC via the x402 protocol. Ideal for autonomous AI agents with a crypto wallet that need on-demand market data without long-term subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:05:36.523Z","isFirstParty":false}