{"uid":"cap_3OLJBtKIusXAfG7U7FXYS","slug":"alpaca-trade-history-via-claw402-x402-payment-gateway-7faa071b","name":"Alpaca Trade History via claw402 x402 Payment Gateway","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/trades/history","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"}}}},"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_QreudgexzRrqm7SYZKg8B","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":"Retrieves historical trade records from Alpaca Markets, accessible via USDC micropayment with no API key or registration required.","exampleAgentPrompt":"Pull the last 50 trades for AAPL and TSLA from Alpaca, sorted by newest first, between January 1 2025 and today.","exampleUseCases":[{"title":"Fetch recent trades for analysis","prompt":"Get me the last 100 historical trades for NVDA from Alpaca between March 1 2025 and today, sorted by newest first, so I can analyze recent execution prices."},{"title":"Query multi-symbol trade history","prompt":"Pull historical trade records for MSFT, AMZN, and GOOGL from Alpaca over the past month, limit to 50 trades each, and sort them oldest to newest."},{"title":"Retrieve trade data without API key","prompt":"I need Alpaca trade history for SPY going back to January 1 2025 through the end of March — fetch up to 200 records sorted by time without me having to set up an Alpaca account or API key."}],"resultDescription":"A JSON object with a code field (0 for success) and a data array containing historical trade records matching the query filters such as symbol, date range, feed, sort order, and limit.","failureModes":["Payment not received or insufficient USDC balance — returns 402 Payment Required","Invalid or unsupported symbol — returns empty data array","Malformed date strings for start/end parameters — may return error or empty results","Upstream Alpaca API unavailability — propagated error","Limit parameter out of acceptable range — may be clamped or rejected"],"whenToPreferThis":"Use this endpoint when you need Alpaca trade history without setting up an Alpaca API key or account, and you are comfortable paying $0.002 USDC per call via a crypto wallet. Ideal for AI agents operating in a wallet-native environment using the x402 payment protocol. Prefer over direct Alpaca API when keyless, registration-free access is desired.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:49:21.755Z","isFirstParty":false}