From binance-binance-skills-hub-9
Posts text content to Binance Square via OpenAPI endpoint requiring X-Square-OpenAPI-Key. Returns post URL on success. Auto-activates on 'post to square' or similar. Handles errors like limits and bans.
npx claudepluginhub joshuarweaver/cascade-business-ops --plugin binance-binance-skills-hub-9This skill uses the workspace's default tool permissions.
Post text content to Binance Square.
Conducts multi-round deep research on GitHub repos via API and web searches, generating markdown reports with executive summaries, timelines, metrics, and Mermaid diagrams.
Dynamically discovers and combines enabled skills into cohesive, unexpected delightful experiences like interactive HTML or themed artifacts. Activates on 'surprise me', inspiration, or boredom cues.
Generates images from structured JSON prompts via Python script execution. Supports reference images and aspect ratios for characters, scenes, products, visuals.
Post text content to Binance Square.
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 |
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!"
}'
{
"code": "000000",
"message": null,
"data": {
"id": "content_id_here"
}
}
| Field | Type | Description |
|---|---|---|
| code | string | "000000" = success |
| message | string | Error message (null on success) |
| data.id | string | Created content ID |
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
| 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 |
| Header | Required | Description |
|---|---|---|
| X-Square-OpenAPI-Key | Yes | API key for Square posting |
When showing credentials to users:
abc12...xyz9When listing accounts, show names and description only — never full keys:
Accounts:
* default (Default account for Square posting)
your_api_keyabc12...xyz9)https://www.binance.com/square/post/{id}000000 but data.id is empty or missing, inform user that post may have succeeded but URL is unavailable, suggest checking Square page manually