← 返回 Skills 市场
julian-l

Bingx Announcement

作者 Julian-L · GitHub ↗ · v0.1.2 · MIT-0
cross-platform ✓ 安全检测通过
162
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install announcement
功能描述
Query BingX official announcements by module type — latest announcements, promotions, product updates, maintenance notices, listing/delisting, funding rate,...
使用说明 (SKILL.md)

BingX Announcement API

Public content endpoint for BingX announcements and notices. No authentication or signature required.

Quick Reference

Endpoint Method Description Required Optional
/openApi/content/v1/announcement GET Announcements by module type (paginated) None contentType, language, page

Parameters

Parameter Type Required Description
contentType string No Module type (see Enums below). Omit to get default or all.
language string No Language: zh-tw (Traditional Chinese), en-us (English).
page integer No Page number for pagination; minimum 1.

contentType (Enum)

Value Description
LatestAnnouncements Latest announcements
LatestPromotions Latest promotions
ProductUpdates Product updates
AssetMaintenance Asset maintenance
SystemMaintenance System maintenance
SpotListing Spot new listings
FuturesListing Futures new listings
InnovationListing Innovation zone new listings
FundingRate Funding rate
Delisting Delisting notices
CryptoScout Crypto scout

language

Value Description
zh-tw Traditional Chinese
en-us English

Note: If the API returns a validation error for language, use en-us for English (some environments require this value).

Parameter Validation Rules

  • contentType: Must exactly match one of the enum values above (case-sensitive).
  • language: Must be zh-tw or en-us.
  • page: Integer ≥ 1.

Request Headers

Header Value
X-SOURCE-KEY BX-AI-SKILL

Quick Start

Base URLs: see references/base-urls.md

TypeScript helper (no auth):

CONSTRAINT: You MUST copy the fetchContent function below verbatim when generating code. Do NOT rewrite the request or JSON parsing logic. Only modify: (1) BASE_URLS entries for custom environments, (2) business parameters passed to fetchContent.

// Base URLs — see references/base-urls.md for all environments
// Domain priority: .com is mandatory primary; .pro is fallback for network/timeout errors ONLY.
const BASE_URLS = ["https://open-api.bingx.com", "https://open-api.bingx.pro"];

function isNetworkOrTimeout(e: unknown): boolean {
  if (e instanceof TypeError) return true;
  if (e instanceof DOMException && e.name === "AbortError") return true;
  if (e instanceof Error && e.name === "TimeoutError") return true;
  return false;
}

async function fetchContent(
  path: string,
  params: Record\x3Cstring, string | number> = {}
): Promise\x3Cunknown> {
  const query = new URLSearchParams(
    Object.entries(params).map(([k, v]) => [k, String(v)])
  ).toString();
  for (const base of BASE_URLS) {
    try {
      const url = `${base}${path}${query ? `?${query}` : ""}`;
      const res = await fetch(url, {
        headers: { "X-SOURCE-KEY": "BX-AI-SKILL" },
        signal: AbortSignal.timeout(10000),
      });
      const json = await res.json();
      if (json.code !== undefined && json.code !== 0) throw new Error(`BingX error ${json.code}: ${json.msg}`);
      return json.data ?? json;
    } catch (e) {
      if (!isNetworkOrTimeout(e) || base === BASE_URLS[BASE_URLS.length - 1]) throw e;
    }
  }
  throw new Error("Unreachable");
}

Code Usage Rules

  • MUST copy fetchContent verbatim -- do not simplify or rewrite
  • MUST include X-SOURCE-KEY: BX-AI-SKILL header on every request
  • MUST NOT remove the domain fallback loop or isNetworkOrTimeout check

Common Calls

Latest announcements, English, page 1:

const data = await fetchContent("/openApi/content/v1/announcement", {
  contentType: "LatestAnnouncements",
  language: "en-us",
  page: 1,
});
// data.list[].title, data.list[].time, data.list[].link

Latest announcements, Traditional Chinese, page 1:

const data = await fetchContent("/openApi/content/v1/announcement", {
  contentType: "LatestAnnouncements",
  language: "zh-tw",
  page: 1,
});
// data.list[].title, data.list[].time, data.list[].link

Crypto scout, Traditional Chinese:

const data = await fetchContent("/openApi/content/v1/announcement", {
  contentType: "CryptoScout",
  language: "zh-tw",
  page: 1,
});
// data.list[].title, data.list[].time, data.list[].link

System maintenance notices:

const data = await fetchContent("/openApi/content/v1/announcement", {
  contentType: "SystemMaintenance",
  language: "zh-tw",
  page: 1,
});
// data.list[].title, data.list[].time, data.list[].link

cURL example (no signature required):

curl -H "X-SOURCE-KEY: BX-AI-SKILL" \
  "https://open-api.bingx.com/openApi/content/v1/announcement?contentType=LatestAnnouncements&language=en-us&page=1"

Additional Resources

For complete parameter descriptions, optional fields, and full response schemas, see api-reference.md.


Agent Interaction Rules

  • All requests are read-only; no CONFIRM required.
  • If the user does not specify contentType, offer the list of module types or default to LatestAnnouncements.
  • If the user does not specify language, default to zh-tw or infer from conversation (e.g. user writes in English → en-us).
  • page: Default to 1 when not specified.
  • When returning results, summarize key fields (e.g. title, time, link) and point to full response if needed.

When contentType is missing

Please select a module type: LatestAnnouncements, LatestPromotions, ProductUpdates, AssetMaintenance, SystemMaintenance, SpotListing, FuturesListing, InnovationListing, FundingRate, Delisting, CryptoScout. Defaults to LatestAnnouncements if not specified.

安全使用建议
This skill appears to do exactly what it says: fetch public BingX announcements via a read-only API and summarize them. Before installing, confirm you trust the skill's source (owner ID and the missing homepage/source are limited metadata). Also check the BASE_URLS you or the agent will use (the docs reference a missing references/base-urls.md) and prefer the official domain (https://open-api.bingx.com). Be aware the SKILL mandates adding a non-secret header X-SOURCE-KEY: BX-AI-SKILL and copying the provided fetchContent function verbatim — these are unusual constraints but not dangerous by themselves. If you need higher assurance, request a skill with a published source repository or homepage and explicit base-URL configuration.
功能分析
Type: OpenClaw Skill Name: announcement Version: 0.1.2 The skill bundle provides a legitimate interface for querying public announcements from the BingX cryptocurrency exchange. The TypeScript code in SKILL.md implements a standard fetch wrapper with a domain fallback mechanism and specific headers (X-SOURCE-KEY) required by the API provider, with no evidence of data exfiltration, malicious execution, or harmful prompt injection.
能力评估
Purpose & Capability
Name and description match the provided instructions and api-reference: the skill documents a public announcements endpoint and only needs HTTP GETs. No extraneous credentials, binaries, or installs are requested.
Instruction Scope
Instructions are limited to read-only API requests and summarizing results. Two unusual points: (1) the SKILL mandates including a static header X-SOURCE-KEY: BX-AI-SKILL on every request (not an auth secret, appears to be a tracking/source header), and (2) it requires copying the fetchContent function verbatim. Neither is inherently malicious, but the verbatim requirement is atypical and reduces implementation flexibility. The docs reference a relative file references/base-urls.md that is not included in the provided manifest — callers must ensure BASE_URLS are set to official domains.
Install Mechanism
This is an instruction-only skill with no install spec and no code files that execute on install. That's the lowest-risk model and matches the declared metadata.
Credentials
The skill requests no environment variables, no credentials, and no config paths. That is proportionate to accessing a public API. The X-SOURCE-KEY header is a constant (not a secret) declared in the docs.
Persistence & Privilege
always is false and the skill does not request persistent privileges or system-wide config changes. It does not instruct modifying other skills or storing credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install announcement
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /announcement 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.2
- Initial release of the bingx-announcement skill. - Enables querying BingX official announcements by module type (latest, promotions, updates, maintenance, listings, funding, etc.). - Supports language selection (`zh-tw` or `en-us`) and pagination. - Provides a ready-to-use TypeScript fetch helper with strict usage requirements. - No authentication or signature needed; uses public endpoints. - Includes clear parameter and usage rules for easy integration.
元数据
Slug announcement
版本 0.1.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bingx Announcement 是什么?

Query BingX official announcements by module type — latest announcements, promotions, product updates, maintenance notices, listing/delisting, funding rate,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 162 次。

如何安装 Bingx Announcement?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install announcement」即可一键安装,无需额外配置。

Bingx Announcement 是免费的吗?

是的,Bingx Announcement 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Bingx Announcement 支持哪些平台?

Bingx Announcement 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bingx Announcement?

由 Julian-L(@julian-l)开发并维护,当前版本 v0.1.2。

💬 留言讨论