{"uid":"cap_eER-2QGAM0HZkmexyZYdV","slug":"orcpin-day-trade-counter-fe38761a","name":"Orcpin Day-Trade Counter","description":"Day-trade counter for trading agents: matched same-day buy/sell pairs per symbol in the rolling five-trading-day window (versioned NYSE holiday calendar), total in-window trades, and the ratio — with FINRA's pattern-day-trader definition (Rule 4210) cited separately as a published fact. Counts only, never a status determination; the comparison belongs to the caller. Nothing is stored.","url":"https://orcpin.dev/v1/day-trade-count?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9cROZQd5lX_jT6tWIiCIz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts matched same-day buy/sell pairs per symbol in a rolling 5-trading-day window and returns day-trade counts, totals, and ratios with FINRA Rule 4210 citation — never a PDT status determination.","exampleAgentPrompt":"Count my day trades for the 5-trading-day window ending today (2025-01-15) — here are my recent executions: bought 100 AAPL on 2025-01-13, sold 100 AAPL on 2025-01-13, bought 50 TSLA on 2025-01-14, sold 50 TSLA on 2025-01-15. My trade history goes back to 2025-01-10. Tell me how many matched same-day pairs I have, the total trades in window, and the day-trade ratio.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing: an array of matched same-day buy/sell day-trade pairs per symbol, integer day_trade_count, integer total_trades_in_window, nullable day_trade_ratio (day trades / total), the 5-trading-day window start and end dates, a coverage object flagging if supplied trade history is shorter than the window, a threshold_citation string quoting FINRA Rule 4210's 3-in-5-days PDT definition, a disclaimer noting this is counts only (no status determination), and a schema_version field.","failureModes":["Missing required 'asOf' or 'trades' fields returns a 400 validation error","Malformed date strings (not YYYY-MM-DD) cause parsing errors","Supplying trades with tradeDate outside the 5-trading-day window results in those trades being excluded with no error","Short coverage (tradesCoverageFrom later than window start) is flagged in the coverage object but does not error","Payment failure or missing x402 header returns 402 Payment Required","Empty trades array returns zero counts with no matches"],"whenToPreferThis":"Use this endpoint when a trading agent needs to programmatically count FINRA-relevant day trades within the rolling 5-trading-day window before making a status determination on its own. Prefer this over manual counting logic when you need a versioned NYSE holiday calendar applied correctly to the window, or when you want the FINRA Rule 4210 threshold cited as a published fact alongside raw counts. This endpoint never stores data and never makes a compliance determination — it's purely a counting utility, making it safe to call repeatedly without side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T09:28:24.210Z","isFirstParty":false,"canonicalSlug":"orcpin-day-trade-counter-fe38761a"}