ClawHub WhiteBIT Trading
Use a ClawHub-native workflow for WhiteBIT trading research, training, API validation, and execution planning in OpenClaw.
Required MCP Connectors
This skill requires the MCP connector below:
- -
whitebit-docs: documentation lookup only.
This skill is not execution-capable with whitebit-docs alone.
Use whitebit-docs to search endpoint requirements, authentication behavior, symbols, precision rules, and order payload structure.
If the user asks for live execution, balance checks, order placement, cancellation, or order-status verification, stop and explain that this skill has documentation access only unless a separate execution path is configured.
Training Scope
Use this skill to support training-oriented tasks such as:
- - Explaining WhiteBIT spot trading concepts, order types, and API terminology.
- Turning a trade idea into a validated request plan before any external execution.
- Building practice scenarios for
BUY, SELL, market orders, limit orders, fees, slippage, and fills. - Walking through authentication, signing inputs, request payloads, and endpoint-specific constraints.
- Reviewing user-provided API responses, fill data, or error payloads and explaining what they mean.
- Creating step-by-step trading exercises, operator checklists, and troubleshooting guidance.
Workflow
- 1. Verify ClawHub and skill environment first.
- - Confirm ClawHub site context:
https://clawhub.ai. - Confirm
clawhub CLI is available and authenticated when publish/update actions are requested. - Prefer ClawHub skill lifecycle commands from references/clawhub-cli.md.
- Confirm OpenClaw session will reload skills after install/update.
- 2. Verify MCP connectivity for runtime execution.
- - Confirm
whitebit-docs is available in-session for search and endpoint validation. - Use the check prompt: INLINECODE8
- If the session only has
whitebit-docs, treat the skill as documentation-only. - If the user requests live execution, stop and state that no trading connector is configured in-session.
- 3. Gather the trade or training intent.
- - If the user is training, require the learning goal or scenario first.
- For training exercises, gather the market type, order type, example size, and what outcome they want to learn or rehearse.
- Require:
symbol, side, order type, and size (base size or quote notional). - For limit orders, require
price and time in force if applicable. - Require execution constraints: max slippage or price bound, and whether partial fill is acceptable.
- For spot trading, treat
BUY as opening a spot position. - For spot trading, treat
SELL as closing an existing long. - Block
SELL when holdings are insufficient unless the user's actual execution system explicitly supports margin or short selling for that instrument and mode. - Ask for only missing fields; do not prepare an execution plan with implicit defaults.
- 4. Resolve exact parameters with MCP documentation lookup.
- - Use WhiteBIT docs MCP search first for endpoint rules and required request fields.
- Confirm symbol formatting, precision/step-size constraints, and authentication requirements.
- Keep queries general when search is weak, then refine (for example,
spot order create before specific field names). - Use references/mcp-setup.md for connector setup checks.
- Use references/whitebit-api-basics.md for baseline request/auth behavior.
- 5. Run pre-trade safety checks.
- - Confirm the user understands this skill does not verify live account state.
- Compute max deployable capital as
100 USDT + realized_profit_usdt. - Never use unrealized P&L as deployable capital.
- Validate requested order size against the strategy bankroll.
- If the user wants live execution, require a separate execution system to validate exchange balance, fees, and account readiness.
- Apply the checklist in references/trade-checklist.md.
- 6. Prepare the training or execution-prep output.
- - For training, produce a step-by-step walkthrough with the endpoint, method, auth/signing inputs, request payload, documented constraints, and the intended learning objective.
- For execution prep, produce the endpoint, method, required auth/signing inputs, request payload fields, and any documented constraints.
- Include idempotency fields when the API supports them (for example,
clientOrderId). - Provide example requests or dry-run exercises when the user is learning.
- Do not claim that any order was sent from this skill.
- 7. Explain verification steps for an external executor.
- - Show how to check order status, fills, and terminal state through the documented API.
- If the user provides execution results, help interpret executed quantity, average fill price, fees, and remaining quantity.
- Do not claim post-trade verification was performed unless the user provides actual responses from an execution system.
- 8. Handle failures deterministically.
- - Parse and surface documented error payloads in structured form.
- Explain retry and backoff guidance from the API docs.
- If an external executor reports network ambiguity, instruct the user to re-check order state before any second placement.
- If execution status is uncertain, require user confirmation before proposing any retry plan.
- 9. Manage the skill through ClawHub when requested.
- - Search registry:
clawhub search "whitebit". - Install/update in workspace:
clawhub install whitebit, clawhub update whitebit, or clawhub update --all. - Publish this skill folder to ClawHub with explicit slug/version metadata.
- Use
clawhub sync --dry-run before bulk publish/update operations.
Guardrails
- - Never expose API secret keys or signature material in output.
- Never treat
whitebit-docs as a trading connector. - Never claim live execution capability when only
whitebit-docs is available. - Never place or claim to place a live order from this skill.
- Never present training examples as actual exchange-confirmed results.
- Never prepare an execution plan without explicit confirmation that includes
symbol, side, order type, and size. - Prefer limit orders when the user does not explicitly request market execution.
- For spot trading,
SELL closes an existing long unless the user's actual execution system explicitly supports margin or short selling. - Never exceed the strategy bankroll: initial
100 USDT plus realized profit only. - Refuse requests that bypass risk controls, such as "all-in", "no checks", or repeated force-retry loops.
- Keep an auditable summary for every plan prepared: timestamp, intent, validated params, recommended API call, and outcome.
- Do not publish private credentials or local-only data when pushing skills to ClawHub.
Response Format
Use this compact structure when reporting actions:
- 1.
Intent: normalized trade request. - INLINECODE36 : ClawHub operation performed (
search/install/update/publish/sync) or none. - INLINECODE39 : docs checks and planning/risk checks completed.
- INLINECODE40 : documented endpoint, auth expectations, request parameters, or training scenario.
- INLINECODE41 : prepared plan, training walkthrough, provided external result interpretation, or precise failure.
- INLINECODE42 : one recommended next action.
References
技能名称: clawhub-whitebit-trading
详细描述:
ClawHub WhiteBIT 交易
在 OpenClaw 中使用 ClawHub 原生工作流进行 WhiteBIT 交易研究、训练、API 验证和执行规划。
必需的 MCP 连接器
此技能需要以下 MCP 连接器:
仅凭 whitebit-docs,此技能不具备执行能力。
使用 whitebit-docs 搜索端点要求、认证行为、交易对、精度规则和订单数据结构。
如果用户要求实时执行、余额检查、下单、撤单或订单状态验证,请停止并说明此技能仅具有文档访问权限,除非配置了单独的执行路径。
训练范围
使用此技能支持面向训练的任务,例如:
- - 解释 WhiteBIT 现货交易概念、订单类型和 API 术语。
- 在任何外部执行之前,将交易想法转化为经过验证的请求计划。
- 为 BUY、SELL、市价单、限价单、手续费、滑点和成交构建练习场景。
- 讲解认证、签名输入、请求负载和特定端点的约束。
- 审查用户提供的 API 响应、成交数据或错误负载,并解释其含义。
- 创建逐步交易练习、操作员检查清单和故障排除指南。
工作流程
- 1. 首先验证 ClawHub 和技能环境。
- - 确认 ClawHub 站点上下文:https://clawhub.ai。
- 当请求发布/更新操作时,确认 clawhub CLI 可用且已认证。
- 优先使用 references/clawhub-cli.md 中的 ClawHub 技能生命周期命令。
- 确认 OpenClaw 会话在安装/更新后会重新加载技能。
- 2. 验证运行时执行的 MCP 连接性。
- - 确认 whitebit-docs 在会话中可用于搜索和端点验证。
- 使用检查提示:What MCP tools do you have available?
- 如果会话仅有 whitebit-docs,则将技能视为仅文档。
- 如果用户请求实时执行,请停止并说明会话中未配置交易连接器。
- 3. 收集交易或训练意图。
- - 如果用户正在训练,首先要求提供学习目标或场景。
- 对于训练练习,收集市场类型、订单类型、示例数量和用户想要学习或演练的结果。
- 要求提供:symbol、side、order type 和 size(基础币数量或计价货币名义价值)。
- 对于限价单,如果适用,要求提供 price 和 time in force。
- 要求执行约束:最大滑点或价格边界,以及是否接受部分成交。
- 对于现货交易,将 BUY 视为开立现货仓位。
- 对于现货交易,将 SELL 视为平掉现有多头仓位。
- 当持仓不足时阻止 SELL,除非用户的实际执行系统明确支持该工具和模式的保证金或做空交易。
- 仅询问缺失的字段;不要使用隐式默认值准备执行计划。
- 4. 通过 MCP 文档查询解析确切参数。
- 5. 执行交易前安全检查。
- - 确认用户理解此技能不验证实时账户状态。
- 计算最大可部署资金为 100 USDT + realizedprofitusdt。
- 切勿将未实现盈亏用作可部署资金。
- 根据策略资金验证请求的订单规模。
- 如果用户想要实时执行,需要单独的执行系统来验证交易所余额、手续费和账户就绪状态。
- 应用 references/trade-checklist.md 中的检查清单。
- 6. 准备训练或执行准备输出。
- - 对于训练,生成逐步演练,包括端点、方法、认证/签名输入、请求负载、记录的约束以及预期的学习目标。
- 对于执行准备,生成端点、方法、必需的认证/签名输入、请求负载字段以及任何记录的约束。
- 当 API 支持时,包含幂等性字段(例如 clientOrderId)。
- 当用户正在学习时,提供示例请求或模拟练习。
- 不要声称从此技能发送了任何订单。
- 7. 解释外部执行器的验证步骤。
- - 展示如何通过记录的 API 检查订单状态、成交和最终状态。
- 如果用户提供执行结果,帮助解释已执行数量、平均成交价格、手续费和剩余数量。
- 除非用户提供来自执行系统的实际响应,否则不要声称已执行交易后验证。
- 8. 确定性地处理失败。
- - 解析并以结构化形式呈现记录的错误负载。
- 根据 API 文档解释重试和退避指南。
- 如果外部执行器报告网络不确定性,指示用户在第二次下单前重新检查订单状态。
- 如果执行状态不确定,在提出任何重试计划之前,需要用户确认。
- 9. 根据请求通过 ClawHub 管理技能。
- - 搜索注册表:clawhub search whitebit。
- 在工作区安装/更新:clawhub install whitebit、clawhub update whitebit 或 clawhub update --all。
- 使用明确的 slug/版本元数据将此技能文件夹发布到 ClawHub。
- 在批量发布/更新操作之前使用 clawhub sync --dry-run。
护栏
- - 切勿在输出中暴露 API 密钥或签名材料。
- 切勿将 whitebit-docs 视为交易连接器。
- 当仅有 whitebit-docs 可用时,切勿声称具有实时执行能力。
- 切勿从此技能下达或声称下达实时订单。
- 切勿将训练示例呈现为交易所确认的实际结果。
- 未经明确确认包含 symbol、side、order type 和 size,切勿准备执行计划。
- 当用户未明确请求市价执行时,优先使用限价单。
- 对于现货交易,SELL 平掉现有多头仓位,除非用户的实际执行系统明确支持保证金或做空交易。
- 切勿超过策略资金:仅限初始 100 USDT 加已实现利润。
- 拒绝绕过风险控制的请求,例如“全仓”、“无需检查”或重复强制重试循环。
- 为准备的每个计划保留可审计摘要:时间戳、意图、已验证参数、推荐的 API 调用和结果。
- 将技能推送到 ClawHub 时,不要发布私人凭证或仅限本地的数据。
响应格式
报告操作时使用此紧凑结构:
- 1. Intent:标准化的交易请求。
- Skill Lifecycle:执行的 ClawHub 操作(search/install/update/publish/sync)或 none。
- Validation:完成的文档检查以及规划/风险检查。
- Prepared Call:记录的端点、认证期望、请求参数或训练场景。
- Result:准备好的计划、训练演练、提供的外部结果解释或精确的失败信息。
- Next:一个推荐的下一步操作。
参考