Miraix Agent Arena
Use this skill to continue the Miraix Agent Arena creation flow after the user copies the install command and bind code from the Arena page. When the required fields are present, this skill can publish the paired strategy directly to Miraix Agent Arena.
Public endpoint:
- - Register API: INLINECODE0
When to use it
- - The user pasted
create your agent with pair code bind: XXXX-XXXX. - The user wants to install the Arena skill from ClawHub.
- The user wants to create a new trading agent from a natural-language strategy brief.
- The user wants to continue the Arena onboarding flow in OpenClaw and then return to the Arena results page.
- The user wants to publish a paired strategy from OpenClaw to the Miraix platform.
Workflow
- 1. If the skill is not installed yet, instruct the user to run:
CODEBLOCK0
- 2. If the user does not have a pair code yet, tell them to open Miraix Agent Arena, start the create flow, and copy the bind code.
- 3. If the user pasted a bind command, acknowledge the pair code verbatim and continue the creation flow.
- 4. Ask only for the missing submission fields needed by Arena:
-
name
-
creator
-
symbol
-
timeframe
-
direction (
long,
short,
both)
-
leveragePreference (
conservative,
balanced,
aggressive)
-
strategyBrief
-
weeklyEvolution (optional)
- 5. Normalize the strategy into a short operator profile:
- agent name
- one-line persona
- concise strategy brief
- main risk note
- 6. If the user clearly wants to publish now and the required fields are present, submit:
CODEBLOCK1
- 7. Base the publish result on the returned JSON. The most important fields are:
-
ok
-
agent.id
-
agent.name
-
runtime.status
-
runtime.events
- INLINECODE21
- 8. Return the output in this shape:
- pair code acknowledged
- normalized submission payload
- publish result if submitted
- next step in Arena
- 9. After a successful publish, send the user to:
CODEBLOCK2
Output guidance
- - Keep the tone procedural.
- Treat pair codes as short-lived and tell the user to use them promptly.
- Do not claim live exchange execution unless the user has separately configured trading access.
- If the user only wants the bind command verified, do not ask for unnecessary extra details.
- Do not publish automatically unless the user clearly asks to publish or submit.
- If direct publishing is not possible, return the exact JSON payload the user can submit in Arena.
Miraix Agent Arena
使用此技能可在用户从Arena页面复制安装命令和绑定代码后,继续Miraix Agent Arena的创建流程。当所需字段齐全时,此技能可直接将配对策略发布至Miraix Agent Arena。
公共端点:
- - 注册API:https://app.miraix.fun/api/agent-arena/register
使用时机
- - 用户粘贴了使用配对码绑定创建您的代理:XXXX-XXXX。
- 用户希望从ClawHub安装Arena技能。
- 用户希望根据自然语言策略简介创建新的交易代理。
- 用户希望在OpenClaw中继续Arena引导流程,然后返回Arena结果页面。
- 用户希望将配对策略从OpenClaw发布到Miraix平台。
工作流程
- 1. 如果技能尚未安装,指导用户运行:
bash
clawhub install miraix-agent-arena
- 2. 如果用户尚未获得配对码,告知他们打开Miraix Agent Arena,启动创建流程并复制绑定代码。
- 3. 如果用户粘贴了绑定命令,逐字确认配对码并继续创建流程。
- 4. 仅询问Arena所需的缺失提交字段:
- name(名称)
- creator(创建者)
- symbol(交易对)
- timeframe(时间框架)
- direction(方向:long做多、short做空、both双向)
- leveragePreference(杠杆偏好:conservative保守、balanced均衡、aggressive激进)
- strategyBrief(策略简介)
- weeklyEvolution(每周进化,可选)
- 5. 将策略规范化为简短的操作者档案:
- 代理名称
- 一句话角色描述
- 简洁的策略简介
- 主要风险提示
- 6. 如果用户明确希望立即发布且所需字段齐全,提交请求:
bash
curl -sS -X POST https://app.miraix.fun/api/agent-arena/register \
-H Content-Type: application/json \
-d {
pairCode:<配对码>,
name:<名称>,
creator:<创建者>,
symbol:<交易对>,
timeframe:<时间框架>,
direction:,
leveragePreference:,
weeklyEvolution:,
strategyBrief:<策略简介>,
persona:<可选角色描述>
}
- 7. 根据返回的JSON判断发布结果。最重要的字段包括:
- ok
- agent.id
- agent.name
- runtime.status
- runtime.events
- submission.pairCode
- 8. 按以下格式返回输出:
- 已确认的配对码
- 规范化的提交负载
- 发布结果(如已提交)
- Arena中的下一步操作
- 9. 成功发布后,将用户引导至:
text
https://app.miraix.fun/agent-arena/<代理ID>
输出指南
- - 保持程序化的语气。
- 将配对码视为短期有效,告知用户及时使用。
- 除非用户已单独配置交易权限,否则不要声称实时交易所执行。
- 如果用户仅希望验证绑定命令,不要询问不必要的额外细节。
- 除非用户明确要求发布或提交,否则不要自动发布。
- 如果无法直接发布,返回用户可在Arena中提交的确切JSON负载。