S

square-post

by @binancev
4.4(22)

Binance Squareにテキストコンテンツを公開し、API経由でのコンテンツ追加をサポートして、ソーシャルメディアの自動投稿を実現します。

social-media-contentinstagram-marketingimage-designcontent-creationvisual-storytellingGitHub
インストール方法
npx skills add binance/binance-skills-hub --skill square-post
compare_arrows

Before / After 効果比較

1
使用前

以前、Binance Squareにコンテンツを投稿する際は、通常、手動でプラットフォームにログインし、一つずつ編集・公開する必要がありました。この方法は非効率的で、特に頻繁な更新や大量の情報を公開する必要がある運営者にとっては、時間と労力がかかり、エラーも発生しやすく、コンテンツ公開の即時性や規模化を実現することが困難でした。

使用後

API公開機能の導入後、プログラミングインターフェースを通じてテキストコンテンツをBinance Squareに自動的に公開できるようになりました。これにより、コンテンツ作成者や運営チームは、予約公開、一括公開、コンテンツ同期を容易に実現でき、コンテンツ公開の効率と柔軟性が大幅に向上し、情報伝達がよりスマートで便利になりました。

SKILL.md

square-post

Square Post Skill

Overview

Post text content to Binance Square.

API: Add Content

Method: POST

URL:

https://www.binance.com/bapi/composite/v1/public/pgc/openApi/content/add

Request Headers:

Header Required Description

X-Square-OpenAPI-Key Yes Square OpenAPI Key

Content-Type Yes application/json

clienttype Yes binanceSkill

Request Body:

Field Type Required Description

bodyTextOnly string Yes Post content text (supports #hashtags)

Example Request

curl -X POST 'https://www.binance.com/bapi/composite/v1/public/pgc/openApi/content/add' \
  -H 'X-Square-OpenAPI-Key: your_api_key' \
  -H 'Content-Type: application/json' \
  -H 'clienttype: binanceSkill' \
  -d '{
    "bodyTextOnly": "BTC looking bullish today!"
  }'

Response Example

{
  "code": "000000",
  "message": null,
  "data": {
    "id": "content_id_here"
  }
}

Response Fields

Field Type Description

code string "000000" = success

message string Error message (null on success)

data.id string Created content ID

Post URL Format

On success, construct the post URL:

https://www.binance.com/square/post/{id}

Example: If data.id is 298177291743282, the post URL is:

https://www.binance.com/square/post/298177291743282

Error Handling

Code Description

000000 Success

10004 Network error. Please try again

10005 Only allowed for users who have completed identity verification

10007 Feature unavailable

20002 Detected sensitive words

20013 Content length is limited

20020 Publishing empty content is not supported

20022 Detected sensitive words (with risk segments)

20041 Potential security risk with the URL

30004 User not found

30008 Banned for violating platform guidelines

220003 API Key not found

220004 API Key expired

220009 Daily post limit exceeded for OpenAPI

220010 Unsupported content type

220011 Content body must not be empty

2000001 Account permanently blocked from posting

2000002 Device permanently blocked from posting

Authentication

Required Header

Header Required Description

X-Square-OpenAPI-Key Yes API key for Square posting

Security

Never Display Full Keys

When showing credentials to users:

  • X-Square-OpenAPI-Key: Show first 5 + last 4 characters: abc12...xyz9

Listing Accounts

When listing accounts, show names and description only — never full keys:

Accounts:
* default (Default account for Square posting)

Agent Behavior

  • Check key before API calls: Verify that X-Square-OpenAPI-Key is configured and not the placeholder your_api_key

  • Prompt for key if missing: If key is not configured, ask user to provide their API Key first

  • Prompt for content if missing: If user triggers posting but doesn't provide specific content, ask what they want to post

  • Never display full keys: Only show first 5 + last 4 characters (e.g., abc12...xyz9)

  • Store provided keys: When user provides a new key, update the Accounts section in this file

  • Optimize content before posting:

Polish user's raw input for better readability

  • Show optimized content and ask user to choose: use optimized version or post original text

  • Return post URL on success: After successful post, return the URL https://www.binance.com/square/post/{id}

  • Handle missing id: If code is 000000 but data.id is empty or missing, inform user that post may have succeeded but URL is unavailable, suggest checking Square page manually

Notes

  • Only pure text posts are supported currently

  • Check daily post limit to avoid 220009 error

Weekly Installs926Repositorybinance/binance…ills-hubGitHub Stars473First Seen12 days agoSecurity AuditsGen Agent Trust HubPassSocketPassSnykFailInstalled oncodex908opencode906gemini-cli899github-copilot899amp899cline898

ユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数3.7K
評価4.4 / 5.0
バージョン
更新日2026年5月22日
比較事例1 件

ユーザー評価

4.4(22)
5
27%
4
55%
3
18%
2
0%
1
0%

この Skill を評価

0.0

対応プラットフォーム

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

タイムライン

作成2026年3月17日
最終更新2026年5月22日