← 返回 Skills 市场
Binance Square Post
作者
RenYuKe-CN
· GitHub ↗
· v1.1.0
· MIT-0
136
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install binance-square-publish
功能描述
发送内容到 Binance Square(币安广场)。 支持纯文字帖子,可带 $代币标签(如 $BTC)和 #话题标签。 集成每日新闻简报功能,自动获取 Web3/AI 热点并发布到 Square。 用户需要先配置自己的 API Key 才能使用。
使用说明 (SKILL.md)
Binance Square Post Skill
概述
将文字内容发布到 Binance Square(币安广场社交平台),支持自动生成并发布每日新闻简报。
使用前配置
用户需要先配置自己的 Square OpenAPI Key:
获取 API Key
- 登录 Binance 账户
- 访问 Binance Square OpenAPI 页面
- 创建或获取你的 OpenAPI Key
配置方法
在 skill 文件中添加配置:
config:
accounts:
- name: default
api_key: 你的API密钥
功能 1:手动发帖
API 调用
Endpoint
POST https://www.binance.com/bapi/composite/v1/public/pgc/openApi/content/add
Headers
| Header | 必填 | 说明 |
|---|---|---|
| X-Square-OpenAPI-Key | 是 | 你的 Square OpenAPI Key |
| Content-Type | 是 | application/json |
| clienttype | 是 | binanceSkill |
Body
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| bodyTextOnly | string | 是 | 帖子内容(支持 $代币标签和 #话题标签) |
示例
curl -X POST 'https://www.binance.com/bapi/composite/v1/public/pgc/openApi/content/add' \
-H 'X-Square-OpenAPI-Key: 你的API密钥' \
-H 'Content-Type: application/json' \
-H 'clienttype: binanceSkill' \
-d '{
"bodyTextOnly": "Hello Binance Square! $BTC #Crypto"
}'
响应
成功响应:
{
"code": "000000",
"message": null,
"data": {
"id": "123456789012345"
},
"success": true
}
帖子链接:https://www.binance.com/square/post/{id}
功能 2:自动每日新闻简报
数据源
使用 6551 API 获取每日热点新闻:
- Web3 新闻:
GET https://ai.6551.io/open/free_hot?category=web3 - AI 新闻:
GET https://ai.6551.io/open/free_hot?category=ai - 宏观新闻:
GET https://ai.6551.io/open/free_hot?category=macro
自动生成简报流程
- 调用以上 API 获取当日热点新闻
- 筛选高质量内容(A+ 级)
- 整理成简报格式
- 调用 Binance Square API 发布
简报模板
📰 每日新闻简报 - [日期]
🔥 今日热点
1️⃣ [热点1]
2️⃣ [热点2]
3️⃣ [热点3]
4️⃣ [热点4]
5️⃣ [热点5]
---
#每日新闻 #Web3 #AI #加密货币
定时任务配置(可选)
用户可以通过 OpenClaw cron 设置每日自动发布:
任务时间:每天北京时间 00:00(早上8点)
错误码
| 错误码 | 说明 |
|---|---|
| 000000 | 成功 |
| 10004 | 网络错误,请重试 |
| 10005 | 仅限已完成身份验证的用户 |
| 10007 | 功能不可用 |
| 20002 | 检测到敏感词 |
| 20013 | 内容长度受限 |
| 20020 | 发布空内容不被支持 |
| 30004 | 用户未找到 |
| 30008 | 因违规被禁言 |
| 220003 | API Key 未找到 |
| 220004 | API Key 已过期 |
| 220009 | 每日发帖上限已达 |
使用示例
示例 1:简单发帖
用户:发一条帖子到 Binance Square,内容是 "Hello World"
示例 2:币圈分析发帖
用户:帮我发一条关于 $BTC 行情分析的帖子
- 查询代币当前价格(使用 query-token-info skill)
- 构造分析内容
- 调用 API 发送
示例 3:发布每日新闻简报
用户:生成并发布今日新闻简报
- 获取 Web3/AI/宏观 新闻
- 筛选热点内容
- 生成简报
- 发布到 Square
- 返回帖子链接
示例 4:带话题标签
$BTC #比特币 #加密货币 #行情分析
安全注意事项
- 永远不要在公开场合暴露完整的 API Key
- 显示 API Key 时只显示首5位+末4位,如:
abc12...xyz9 - 定期检查 API Key 权限设置
- 如发现异常,及时在 Binance 官网重置 Key
注意事项
- 目前仅支持纯文字帖子(不支持图片、视频)
- 内容长度有限制(避免超过 2000 字符)
- 建议帖子内容加上热门话题标签以获得更多曝光
- 每日简报会自动筛选高质量新闻,确保内容价值
安全使用建议
Before installing: 1) Do not paste your Binance API key into a repository or plain SKILL.md if that file can be stored/shared — prefer the platform's secret store or environment variables. 2) Verify the Binance endpoint and header names against official Binance Square OpenAPI docs to ensure authenticity. 3) Limit the API key permissions (use minimal scopes) and create a key you can safely rotate. 4) Be cautious enabling daily automatic posts — test manual posting first to confirm content formatting and filtering. 5) Vet the third-party news source (https://ai.6551.io); automatic fetching means external content can be posted under your account. 6) Monitor activity and rotate/revoke the key immediately if you see unexpected posts. If you cannot avoid storing the key in a file, never commit that file to shared repos and consider using a dedicated, low-permission key for testing.
功能分析
Type: OpenClaw Skill
Name: binance-square-publish
Version: 1.1.0
The skill allows users to post content to Binance Square and generate automated news briefings. It requires a user-provided Binance OpenAPI key and fetches news data from a third-party API (ai.6551.io). The instructions in SKILL.md and README.md are transparent, align with the stated functionality, and include proactive security advice regarding the handling and masking of API keys. No evidence of malicious intent, data exfiltration, or unauthorized execution was found.
能力评估
Purpose & Capability
Functionality (post text to Binance Square, fetch news from external API, publish daily digest) is coherent with the name/description. However the skill does not declare any required credentials in the registry metadata while the SKILL.md instructs the user to embed their Square OpenAPI Key into the skill config (a mismatch between declared requirements and actual needs).
Instruction Scope
Runtime instructions only call Binance Square endpoints and third‑party news endpoints (6551.io), which is consistent with posting and auto-news features. Concerns: it tells users to place their API key directly in SKILL.md (plaintext secret storage), and it enables scheduled automatic fetching from 6551.io and posting to Binance — this gives the skill authority to autonomously publish content using the user's key. The instructions do not limit or sanitize content sources beyond 'A+ filtering', and they provide broad discretion for automatic generation and posting.
Install Mechanism
This is an instruction-only skill with no install spec and no files executed on install, which minimizes installation-level risk. There are no downloads, packages, or binaries installed by the skill.
Credentials
The skill requires the user's Binance Square OpenAPI Key to function but the registry lists no required env vars or primary credential; instead the SKILL.md instructs embedding the key in the skill file. This is disproportionate from a configuration/secret-handling best-practices perspective. The skill also calls an external third-party API (ai.6551.io) — while that service doesn't require credentials in the doc, automatic fetches mean external content can influence what is posted under the user's identity.
Persistence & Privilege
The skill is not marked 'always: true'. Autonomous invocation is allowed (default) and the SKILL.md explicitly supports scheduled daily posts (cron), which could result in recurring autonomous posts using the user's API key. That is expected for an auto-posting skill, but it increases blast radius if the key is misconfigured or the source feeds are untrusted.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install binance-square-publish - 安装完成后,直接呼叫该 Skill 的名称或使用
/binance-square-publish触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Binance Square Post Skill v1.1.0
- 新增「每日新闻简报」功能:自动获取 Web3、AI、宏观热点并整理成简报,一键发布到 Binance Square。
- 支持按需或定时(cron)生成并发布当日高质量热点摘要。
- 丰富使用示例,明确新闻简报调用流程与模板格式。
- 文档结构优化,分离手动发帖和自动简报功能,便于查阅。
- 更新描述,强调新闻简报的用途和价值。
v1.0.0
Initial release of binance-square-post skill:
- Enables posting plain text content to Binance Square, supporting $token and #topic tags.
- Requires users to configure their own Binance Square OpenAPI Key.
- Provides detailed API endpoint, request structure, and response handling.
- Includes error code explanations and usage examples.
- Notes security precautions for API Key management.
- Currently only supports text posts (no media), with a maximum length of 2000 characters.
元数据
常见问题
Binance Square Post 是什么?
发送内容到 Binance Square(币安广场)。 支持纯文字帖子,可带 $代币标签(如 $BTC)和 #话题标签。 集成每日新闻简报功能,自动获取 Web3/AI 热点并发布到 Square。 用户需要先配置自己的 API Key 才能使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 136 次。
如何安装 Binance Square Post?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install binance-square-publish」即可一键安装,无需额外配置。
Binance Square Post 是免费的吗?
是的,Binance Square Post 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Binance Square Post 支持哪些平台?
Binance Square Post 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Binance Square Post?
由 RenYuKe-CN(@renyuke-cn)开发并维护,当前版本 v1.1.0。
推荐 Skills