Logo Broker Status Page Monitoring Integration

Broker Status Page Monitoring Integration

Cộng đồng
HimanshuJ16
broker-status-page-monitoring-integration

Dùng khi sự cố lệnh hoặc nguồn cấp dữ liệu khiến đội trực phải xác định broker ngừng hoạt động hay lỗi nằm ở mã của bạn. Truy vấn các nguồn cấp dữ liệu summary của Atlassian Statuspage v2, giới hạn ở những thành phần luồng lệnh của bạn sử dụng và yêu cầu bằng chứng xác thực còn mới.

Add to TypingMind

Tổng quan

Nhà phát hànhHimanshuJ16
Kho mãAlgo-Trading-Skills
Tên kỹ năngbroker-status-page-monitoring-integration
Sao
50
Bản fork
7
Tệp đi kèm
5
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được HimanshuJ16 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Broker Status Page Monitoring Integration trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/broker-status-page-monitoring-integration
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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-status-page-monitoring-integration .claude/skills/broker-status-page-monitoring-integration
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Broker Status Page Monitoring Integration trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Broker Status Page Monitoring Integration ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Broker Status Page Monitoring Integration với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

When to Use

Invoke this skill when an order submission fails, a WebSocket drops, or a REST call times out, and the on-call question is is this the broker or is it us? Answering it by hand costs minutes at exactly the wrong moment. This skill polls the broker's public Statuspage v2 feed, scopes the reading to the components your order flow actually uses, and returns a classification an incident pipeline can route on.

The two wrong answers are expensive in opposite directions, and the whole design follows from that asymmetry:

  • Wrongly answering "broker" suppresses the ticket for a live bug in your own code and, in most deployments, trips a circuit breaker. The bug stays in production because the pager never fired.
  • Wrongly answering "us" sends an engineer to debug working code during a broker incident, when their attention is worth the most.

So each confident verdict requires positive evidence. EXTERNAL_BROKER_OUTAGE requires fresh evidence of impairment; INTERNAL_APPLICATION_BUG requires fresh evidence of health. Everything else — no reading, a stale reading, an unreachable feed, an unrecognised value, or a merely degraded page — returns UNKNOWN_FAILURE, which routes a human to the incident instead of resolving it automatically in either direction.

When NOT to Use

  • As an outage detector. A status page is a human-published artifact, updated after the broker's ops team notices, triages and decides to disclose. OPERATIONAL means "nothing has been published", never "nothing is wrong". Pair it with a first-party signal — reject rates, heartbeat latency, disconnect counts — and treat this as the corroborating input, not the trigger.
  • As the circuit breaker. This classifies; it does not halt trading, cancel orders or flatten positions. Wire the verdict into kill-switch-and-drawdown-circuit-breakers, and route around the broker with broker-failover-secondary-account-routing.
  • For scheduled API retirements. A sunset date is a planned deprecation, not an unplanned outage — see broker-api-deprecation-notice-monitoring.
  • For brokers without a Statuspage feed. The parser is specific to the Atlassian Statuspage v2 schema. A broker publishing status as an HTML page, an RSS feed or a Twitter account needs a different ingestion path; do not point this at an arbitrary URL and assume the absence of a status object means healthy.
  • As a retry gate on an ambiguous order state. "The broker is up" is not evidence that your timed-out order was not accepted. That is order-placement-idempotency, and this skill's verdict must never be used to justify a blind resubmission.

Prerequisites

  • Each broker's Statuspage v2 summary URL — the full URL including /api/v2/summary.json, e.g. https://status.alpaca.markets/api/v2/summary.json. These are public and unauthenticated; private and trial pages require an API key in an Authorization header.
  • The exact component names your order flow depends on, copied from the feed's components[].name. Without these the monitor can only reason over the blended page-wide indicator, which is both too noisy (an unrelated minor incident) and too quiet (a dead trading component under a green page).
  • An HTTP transport that enforces a connect and read timeout. The diagnosis path runs inside an order-failure handler; an untimed socket there converts a failed order into a hung strategy.
  • A poll interval. 60s is a reasonable default; polling faster than ~10s is wasted work — see Common Pitfalls.

Workflow

  1. Ingest summary.json. GET the full summary URL. The response carries page, status, components, incidents and scheduled_maintenances. Treat a non-200, a transport exception, or a payload without a status object as no evidence — never as an all-clear.

  2. Map status.indicator, and refuse to guess. none → OPERATIONAL, minor → DEGRADED, major/critical → MAJOR_OUTAGE, maintenance → MAINTENANCE. Anything else maps to UNKNOWN. Do not default unrecognised strings to the worst case: a typo or a future enum value would then trigger an automatic trading halt and an automatic ticket suppression off a string nobody validated.

  3. Scope to the components you depend on. Match your declared component names against components[].name and reduce their statuses to the worst one (partial_outage counts as an outage; a missing or unrecognised status counts as UNKNOWN, never as operational). This component-scoped state overrides the page indicator when it is known — it is what catches a dead order-routing component under a green page, and what stops an incident on a component you never call from silencing your bug tickets. If a declared name matches nothing, alert on it: the broker renamed a component and your scoping is now silently off.

  4. Check freshness before classifying. A reading older than the configured bound (default 300s) is not evidence. Measure age from your own fetch clock — not from page.updated_at, which is a last-changed timestamp: both feeds verified for this skill carried a healthy page.updated_at several hours old.

  5. Classify, in this order.

    EvidenceVerdict
    No reading, or older than the freshness boundUNKNOWN_FAILURE
    A declared dependency component is impairedEXTERNAL_BROKER_OUTAGE
    Page impaired, but every dependency reads operationalUNKNOWN_FAILURE
    Page impaired, no dependency evidenceEXTERNAL_BROKER_OUTAGE
    Anything merely degraded, or unrecognisedUNKNOWN_FAILURE
    Page operationalINTERNAL_APPLICATION_BUG
  6. Route the verdict. EXTERNAL_BROKER_OUTAGE suppresses the code-bug escalation and trips the circuit breaker. INTERNAL_APPLICATION_BUG pages the owning engineer. UNKNOWN_FAILURE pages a human and suppresses nothing — it is the correct answer far more often than a two-way classifier admits.

Full procedure, decision-table rationale and the EMS/alerting contract: see references/workflows.md. Endpoint evidence, schema and verified vendor claims: see references/standards.md. Printable pre-flight checklist: see assets/checklist.md.

Common Pitfalls

  • Treating "I could not reach the status page" as "the broker is fine". This is the single worst failure mode here, because it fires exactly when the broker is in trouble. An unreachable feed, an HTTP 500, a missing transport or an unconfigured broker key are all absence of evidence, and must classify as undetermined — never as an operational platform.
  • Suppressing a bug ticket on a minor indicator. minor is the page-wide roll-up of any small published incident — a degraded docs site, a slow web dashboard. It is consistent with both a broker fault and your own bug, so it justifies neither verdict. Suppressing on minor means a real bug in your order construction goes unexamined for as long as an unrelated incident stays open.
  • Trusting a green page you fetched from a CDN. Both verified endpoints serve Cache-Control: max-age=10, public, s-maxage=10, stale-while-revalidate=20, stale-if-error=3600. That stale-if-error=3600 means that when Statuspage's own origin fails, the edge may keep serving the last good body — a green "All Systems Operational" — for up to an hour.
  • Using page.updated_at as a freshness check. It records when the page last changed, not when it was last confirmed. A healthy page that has not changed in days carries a days-old timestamp; treating that as staleness turns every quiet period into an alert. Measure age from your own fetch instead.
  • Reading the page indicator and stopping there. status.indicator is a blend across every component on the page. Alpaca publishes 112 components in 11 groups, Coinbase 172 in 7 — an outage confined to "Broker API (Sandbox)" while you trade live is invisible in your decision if you only scope to the components you use, and an outage confined to your component can sit under a page-wide none.
  • Double-counting component groups. Group entries ("group": true) appear in the same components array as their children and carry a rolled-up status, so a single failing child reports as two impaired components unless groups are separated out.
  • Reading a missing component status as operational. A status field that is absent, null or an unrecognised string is unreadable, not healthy. Folding it into an all-clear is how a schema change becomes a silent mis-diagnosis.
  • Polling faster to detect outages sooner. The public Status API is documented as not rate limited, so the risk is not an IP block — it is that max-age=10 means a refetch inside 10 seconds returns the identical cached body. Sub-cache polling buys no freshness. (The separate, token-authenticated Manage API is limited — 60 req/min per page, 1 req/s per token, 429 plus Retry-After — but that is not the API you poll here.)
  • Fetching the status page once per failed order. A broker incident produces a burst of failures, and a diagnoser that refreshes on each one issues a fetch storm and adds network latency to every failure handler. Bound the implicit refresh to the cache TTL.
  • Blocking the order path on an untimed HTTP call. The diagnosis runs inside an exception handler on the trading thread. Without a transport timeout, one hung status fetch stalls the strategy that was already failing.
  • Letting the diagnoser raise. An exception thrown while classifying an execution failure displaces the original trading exception and destroys the forensic trail.

Verification

  • Run the unit suite and confirm every test passes: python -m unittest discover -s skills/broker-status-page-monitoring-integration/scripts
  • Assert an unreachable feed (HTTP 500, transport exception, missing transport, unknown broker key) yields UNKNOWN_FAILURE with platform_state UNKNOWN — never INTERNAL_APPLICATION_BUG and never OPERATIONAL. This is the highest-value single assertion in the suite.
  • Assert a minor indicator yields UNKNOWN_FAILURE, not EXTERNAL_BROKER_OUTAGE.
  • Assert an unrecognised status.indicator yields UNKNOWN, not MAJOR_OUTAGE.
  • Assert a dependency component in major_outage under a page indicator of none still yields EXTERNAL_BROKER_OUTAGE.
  • Assert a critical page with all declared dependencies operational yields UNKNOWN_FAILURE rather than suppressing the ticket.
  • Assert a reading older than the freshness bound is refetched, and yields UNKNOWN_FAILURE when the refetch also fails.
  • Assert a component whose status key is absent does not count toward an all-clear.
  • Assert a group and its failing child are not both listed as affected components.
  • Assert a burst of 50 diagnoses issues one status fetch, not 50.
  • Smoke-test against the live feeds with a timeout-enforcing transport and confirm your declared component names appear in unmatched_dependencies as an empty list.

Related Skills

  • broker-failover-secondary-account-routing
  • kill-switch-and-drawdown-circuit-breakers
  • broker-api-deprecation-notice-monitoring
  • circuit-breaker-for-downstream-service-calls
  • structured-logging-for-post-incident-forensics
  • order-placement-idempotency
  • vendor-outage-fallback-data-source-hierarchy

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Broker Status Page Monitoring Integration làm được gì?

Dùng khi sự cố lệnh hoặc nguồn cấp dữ liệu khiến đội trực phải xác định broker ngừng hoạt động hay lỗi nằm ở mã của bạn. Truy vấn các nguồn cấp dữ liệu summary của Atlassian Statuspage v2, giới hạn ở những thành phần luồng lệnh của bạn sử dụng và yêu cầu bằng chứng xác thực còn mới.

Vì sao nên dùng Broker Status Page Monitoring Integration trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Broker Status Page Monitoring Integration là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Broker Status Page Monitoring Integration trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/broker-status-page-monitoring-integration. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Broker Status Page Monitoring Integration?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Broker Status Page Monitoring Integration với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Broker Status Page Monitoring Integration với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Broker Status Page Monitoring Integration có miễn phí không?

Có. Kỹ năng này được HimanshuJ16 phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇