Logo van Broker Api Deprecation Notice Monitoring

Broker Api Deprecation Notice Monitoring

Community
HimanshuJ16
broker-api-deprecation-notice-monitoring

Gebruik dit wanneer een langdurig draaiende bot REST-endpoints aanroept die een broker mogelijk buiten gebruik stelt. Verwerkt RFC 8594 Sunset- en RFC 9745 Deprecation-headers plus changelogfeeds tot één migratiedeadline met datum en escalatieniveau.

Add to TypingMind

Overzicht

UitgeverHimanshuJ16
RepositoryAlgo-Trading-Skills
Skillnaambroker-api-deprecation-notice-monitoring
Sterren
50
Forks
7
Meegeleverde bestanden
5
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 5

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door HimanshuJ16 op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Broker Api Deprecation Notice Monitoring in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/broker-api-deprecation-notice-monitoring
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HimanshuJ16/Algo-Trading-Skills.git /tmp/Algo-Trading-Skills
mkdir -p .claude/skills
cp -r /tmp/Algo-Trading-Skills/skills/broker-api-deprecation-notice-monitoring .claude/skills/broker-api-deprecation-notice-monitoring
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Broker Api Deprecation Notice Monitoring in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Broker Api Deprecation Notice Monitoring automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Broker Api Deprecation Notice Monitoring niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

When to Use

Invoke this skill when operating long-running algorithmic trading systems against REST/WebSocket broker APIs. Brokers retire legacy endpoints and change payload schemas, and the announcement usually arrives weeks ahead — in a developer changelog, and sometimes as an RFC 8594 Sunset or RFC 9745 Deprecation response header. This skill turns those scattered signals into a dated, de-duplicated migration deadline with an escalation tier attached.

The monitor is a deadline detector, and its failure modes are asymmetric: a false positive costs an engineer a few minutes reading a changelog entry, a false negative means a bot keeps calling an endpoint that stops answering mid-session. Every classification decision below is biased accordingly.

When NOT to Use

  • As proof that nothing is being retired. Header adoption is inconsistent across brokers, and RFC 8594 Section 3 is explicit that Sunset timestamps are hints: "it is not guaranteed that the resource will, in fact, be available until that time and will not be available after that time." An empty registry means nothing was signalled, not that nothing is changing. Alpaca's Market Data API v1 retirement, for instance, was announced in a blog post, not a header.
  • As the migration itself. This detects and dates a deadline. Executing the version cutover belongs to broker-api-versioning-migration-playbook; detecting schema-level breakage belongs to broker-api-changelog-diffing-tool.
  • For live outage detection. A sunset date is a scheduled retirement, not an unplanned outage. Use broker-status-page-monitoring-integration.
  • As an authoritative parse of changelog prose. The changelog path is a keyword-and-date heuristic that routes a human to the entry. Do not auto-disable a strategy on its output alone.

Prerequisites

  • A broker API adapter that exposes HTTP response headers to a hook or middleware layer.
  • The broker's developer changelog RSS/Atom/JSON feed URL, and a scheduler to poll it.
  • A structured logging pipeline or alert router (PagerDuty, Slack, Opsgenie).

Workflow

  1. Inspect live response headers. Hook inspect_http_headers into the HTTP client's global response handler and check every response for Sunset (RFC 8594), Deprecation (RFC 9745), Link with rel="sunset" or rel="deprecation" (RFC 8288), and the non-standard X-API-Deprecation-Warning. This hook runs on the same thread as live orders, so it must never raise into the caller — contain unexpected failures, log them with a traceback, and return no notice.

  2. Parse the two headers by their different contracts. Sunset is an HTTP-date, so accept all three HTTP-date forms (IMF-fixdate, obsolete RFC 850, asctime). RFC 9745 Deprecation is a Structured Field Date — @1688169599, seconds since the epoch — but deployed gateways still emit the pre-RFC Deprecation: true, which asserts deprecation without dating it. Treat an unparseable Deprecation value as "deprecated, date unknown", never as "not deprecated".

  3. Keep deprecation and sunset distinct. Deprecation is when the broker stops recommending the endpoint; sunset is when it stops answering. Derive urgency only from the sunset date. If Sunset is earlier than Deprecation, the broker's own metadata violates RFC 9745 Section 4 — log it and confirm the dates before planning a migration around either.

  4. Poll the developer changelog. Match deprecation keywords, then extract every unambiguous date. Discard candidates that fall before the entry's publication date — those are publication dates and release history, not deadlines — and take the earliest of what survives, because a later date in the same entry is usually the support window for the replacement API. Do not parse locale-ambiguous numeric dates (11/12/2026): day-first and month-first are indistinguishable without knowing the publisher, and guessing wrong moves a deadline by up to eleven months.

  5. Classify urgency from a single clock reading. With $D$ = whole days remaining, floored, computed in UTC:

    • Sunset instant already passed → EXPIRED.
    • $D \le 7$ → CRITICAL_SUNSET_IMMINENT.
    • $7 < D \le 30$ → WARNING_30_DAYS.
    • $D > 30$, or no sunset date at all → NOTICE.

    Expiry is decided by comparing instants, not by testing whether the floored day count reached zero. A sunset 23 hours away has zero whole days left and has not expired; reporting it as EXPIRED tells the desk the migration window is gone while a final day of it remains. The 7/30 day thresholds are operational conventions for migration lead time — neither RFC mandates them — so they are configurable.

  6. De-duplicate, then route. Key the registry by broker, endpoint, and entry identity; alert on a new notice, an escalation, or a broker moving the sunset date, and suppress pure de-escalation so routine re-inspection does not page anyone. Route NOTICE to logs, WARNING_30_DAYS to Slack/Teams, and CRITICAL_SUNSET_IMMINENT/EXPIRED to the on-call rota.

Full procedure: see references/workflows.md. Standards reference: see references/standards.md. Printable pre-flight checklist: see assets/checklist.md.

Common Pitfalls

  • Crashing the request path with the monitor. A header hook runs inline with every live order and quote request. Wiring now_fn=datetime.datetime.now (naive) makes the sunset subtraction raise TypeError on the first deprecated endpoint — converting "this breaks in 30 days" into "this breaks now". Interpret naive clocks as UTC, and contain unexpected errors rather than propagating them.
  • Taking the first date found in a changelog entry. Entries lead with their publication date and often cite the replacement API's support window. Picking the first match dates the deadline to the announcement; picking the latest dates it to the replacement's end of life. Either way a real three-week deadline can be filed as NOTICE or as already-EXPIRED — a silent miss in the one place this skill exists to prevent one.
  • Reading days_remaining == 0 as expired. timedelta.days floors, so a sunset 0.96 days away reports 0. Compare instants for expiry and keep the floored count for display only.
  • Collapsing every changelog notice onto one key. Keying feed notices by broker:GLOBAL_FEED means each new announcement evicts the previous one, so a broker retiring three endpoints shows one outstanding deprecation.
  • Assuming Deprecation: true is still the standard. RFC 9745 (Standards Track, March 2025) requires a Structured Field Date; a parser written only for the boolean form silently drops the date the broker actually supplied.
  • Splitting a Link header on commas. Commas are legal inside a link target, so <https://x/docs?tags=v1,legacy>; rel="sunset" splits into two fragments and the migration URL is lost. Match <target> forms directly, and compare rel as a whole token — RFC 8288 allows several space-separated relation types in one parameter.
  • Timing the countdown twice. Computing days_remaining and the urgency tier from two separate clock readings lets them straddle a threshold and disagree.
  • Monitoring REST only. WebSocket feeds are retired too, and their deprecation notices arrive in control frames or the changelog, never in a REST response header.

Verification

  • Run python -m unittest discover -s skills/broker-api-deprecation-notice-monitoring/scripts and confirm all tests pass.
  • Feed a mock response carrying Sunset: Wed, 25 Nov 2026 00:00:00 GMT against a frozen clock and confirm the extracted UTC date, the day count, and the escalation tier.
  • Confirm the boundary cases explicitly: a sunset 23 hours out is CRITICAL, not EXPIRED; exactly 7 days is CRITICAL; exactly 30 days is WARNING_30_DAYS.
  • Feed a changelog entry whose body restates its publication date before naming a later sunset date, and confirm the later date is chosen.
  • Hand the header inspector None, a list, and {"Sunset": None}, and confirm it returns no notice and raises nothing.

Related Skills

  • broker-api-versioning-migration-playbook
  • broker-api-changelog-diffing-tool
  • broker-status-page-monitoring-integration
  • structured-logging-for-post-incident-forensics

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Broker Api Deprecation Notice Monitoring?

Gebruik dit wanneer een langdurig draaiende bot REST-endpoints aanroept die een broker mogelijk buiten gebruik stelt. Verwerkt RFC 8594 Sunset- en RFC 9745 Deprecation-headers plus changelogfeeds tot één migratiedeadline met datum en escalatieniveau.

Waarom Broker Api Deprecation Notice Monitoring gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Broker Api Deprecation Notice Monitoring bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Broker Api Deprecation Notice Monitoring in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/broker-api-deprecation-notice-monitoring. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Broker Api Deprecation Notice Monitoring gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Broker Api Deprecation Notice Monitoring gebruiken?

Zoveel als je wilt. Je kunt Broker Api Deprecation Notice Monitoring gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Broker Api Deprecation Notice Monitoring gratis?

Ja. Deze skill is door HimanshuJ16 op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇