{"uid":"cap_x525LdMnV4ondrTo6b-PR","slug":"losbeto-brazilian-business-day-counter-anbima-252-0f1e6942","name":"Losbeto Brazilian Business Day Counter (ANBIMA 252)","description":"OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana and Algorand via x402.","url":"https://markets.losbeto.xyz/br-bizdays?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["from","to"],"properties":{"to":{"type":"string","description":"to parameter"},"from":{"type":"string","description":"from parameter"}}}}},"output":{"type":"object","properties":{"example":{"type":"object","description":"Count Brazilian bank business days between two dates on the ANBIMA 252 convention, or list a full year's bank holidays with ?year=. Carnaval, Good Friday and Corpus Christi move with Easter and Consciencia Negra became national only in 2024 — a hardcoded holiday table silently corrupts any BRL rate calculation. Returns the day count and the du/252 year fraction ready to use as an..."}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Jq9xhczJvLCxps74motoy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts Brazilian bank business days between two dates using the ANBIMA 252 convention and returns the day count plus the du/252 year fraction for BRL rate calculations","exampleAgentPrompt":"How many Brazilian bank business days are there between January 2, 2025 and June 30, 2025, and what's the du/252 year fraction I should use for CDI annualization?","exampleUseCases":[{"title":"CDI rate annualization for BRL bond","prompt":"I need to price a Brazilian CDI-linked bond maturing on December 15, 2025 — can you get me the business day count and the du/252 year fraction from today, July 1, 2025, to maturity so I can annualize the rate correctly?"},{"title":"Interest rate swap tenor calculation","prompt":"For a BRL interest rate swap that starts March 3, 2025 and ends March 3, 2026, how many ANBIMA business days are in that period and what's the corresponding 252-convention year fraction?"},{"title":"Derivatives desk holiday-aware day count","prompt":"I'm pricing a Brazilian DI futures contract and need to know the exact number of bank business days between August 1, 2025 and January 2, 2026 — make sure Carnaval, Corpus Christi, and Consciência Negra are accounted for correctly."}],"resultDescription":"Returns a JSON object containing the count of Brazilian bank business days between the two input dates calculated under the ANBIMA 252 convention, and the corresponding du/252 year fraction ready to use as an exponent for CDI or other BRL rate calculations. Carnaval, Good Friday, Corpus Christi (Easter-dependent), and Consciência Negra (national since 2024) are correctly handled. No upstream calls are made.","failureModes":["Missing required 'from' or 'to' query parameters returns an error","Malformed date strings (non-ISO format) may cause parsing errors","Dates outside the supported holiday table range may return incorrect counts","Payment failure via x402 (insufficient USDC balance) blocks the request"],"whenToPreferThis":"Use this endpoint when you need a correct, Brazil-specific ANBIMA 252 business day count for BRL fixed income pricing, CDI annualization, or derivatives tenor calculations. It correctly handles Easter-dependent holidays (Carnaval, Good Friday, Corpus Christi) and the 2024 national status of Consciência Negra — errors a hardcoded table would silently introduce. Prefer it over generic business-day calculators that lack Brazil-specific holiday rules, and over building your own table which would require constant maintenance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:39:39.089Z","isFirstParty":false,"canonicalSlug":"losbeto-brazilian-business-day-counter-anbima-252-0f1e6942"}