Xpersona
B

Barra

CLAWHUB · Unverified

在币安交易所通过市价单或限价单买入BTC现货,自动处理交易参数和账户验证并反馈成交详情。 Skill: Barra Owner: violetsakura-7 Summary: 在币安交易所通过市价单或限价单买入BTC现货,自动处理交易参数和账户验证并反馈成交详情。 Tags: latest:0.1.4 Version history: v0.1.4 | 2026-03-27T01:05:02.585Z | auto - Added metadata file (_meta.json) for the skill. - No changes to functionality or documentation. v0.1.3 | 2026-03-15T14:11:02.667Z | user Barra v0.1.2 - 环境变量配置示例中的 API 密钥内容已移除,需自行填写。 - 其余功能和指南保持不变。 v0.1.2 | 2026-03-15T11:43:43.931Z | auto No changes det

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s178xrp78yvf2v5gt2bb61dnj583ggv8:barra
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-violetsakura-7-barra/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

12,120 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: "Barra 币安现货交易技能"
version: "1.0.0"
description: "在币安交易所执行比特币(BTC)的现货买入操作,支持市价单和限价单"
author: "Your Name"
tags:
  - 币安
  - 现货交易
  - 比特币
  - 交易执行
permissions:
  - binance.trading
  - binance.account.read
​---

# Barra 币安现货交易技能使用指南

## 功能概述
该技能允许你通过自然语言指令,让OpenClaw在币安交易所执行比特币(BTC)的现货买入操作。技能会处理从指令解析到订单执行的全过程,并返回交易结果。

## 工作流程
1. **指令解析**:AI从你的对话中提取交易参数(买入金额、价格类型、交易对等)
2. **账户验证**:检查币安账户连接状态和可用余额
3. **订单执行**:调用币安现货API执行买入操作
4. **结果反馈**:返回订单成交详情(成交价、数量、订单ID等)

## 参数说明
执行时,AI会自动从你的指令中提取以下参数:

| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|--------|------|------|--------|------|
| `symbol` | string | 是 | "BTCUSDT" | 交易对,默认为BTC/USDT |
| `amount` | number | 是 | 无 | 买入金额(以计价货币计,如USDT) |
| `orderType` | string | 否 | "MARKET" | 订单类型:MARKET(市价单)或LIMIT(限价单) |
| `price` | number | 否 | 无 | 限价单价格(当orderType=LIMIT时必填) |
| `totalCost` | boolean | 否 | true | 是否按总额买入(true=用指定金额全仓买入,false=按数量买入) |

## API 密钥配置要求

### ⚠️ 安全红线(必须遵守)

要让该技能正常工作,你需要先在币安官网完成API配置:

1. **创建API密钥**
   - 登录币安官网 → [个人中心] → [API管理]
   - 点击"创建API",选择"系统生成密钥"
   - 完成身份验证后,妥善保存API Key和Secret Key [citation:3]

2. **权限配置(严格按以下说明勾选)**
   - ✅ **启用阅读**:必须勾选,允许AI查看账户余额和交易历史
   - ✅ **启用现货交易**:必须勾选,AI才能执行买入操作
   - ⚠️ **启用提款功能**:【严禁勾选】——这是最重要的安全原则。即使API泄露,资金也无法被转出平台 [citation:3]
   - ❌ **其他权限**(保证金、合约、转账等)建议保持关闭

3. **IP白名单设置(关键步骤)**
   - 在"IP访问限制"中选择"仅允许受信任的IP地址访问"
   - 填入运行OpenClaw的服务器的IP地址
   - 只有绑定IP后,币安才会开放现货交易权限 [citation:8]

### 环境变量配置
将API密钥添加到OpenClaw的环境变量中:
```bash
export BINANCE_API_KEY=""
export BINANCE_SECRET_KEY=""
---

_meta.json

{
  "ownerId": "kn76zgs9rgray7gqs4y6eh9dxs81pnbf",
  "slug": "barra",
  "version": "0.1.4",
  "publishedAt": 1774573502585
}

skill-card.md

## Description:

Executes Bitcoin (BTC) spot buy orders on Binance using market or limit orders.

This skill is ready for commercial/non-commercial use.

## Publisher:

[violetsakura-7](https://clawhub.ai/user/violetsakura-7)

### License/Terms of Use:

MIT-0

## Use Case:

External users who connect a Binance account use Barra to submit BTC spot buy orders from natural-language instructions and receive order execution details.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can trigger real cryptocurrency buy orders without a documented final confirmation.

Mitigation: Require an explicit final confirmation before every trade and review the order details before execution.

Risk: Binance API credentials with broad permissions could expose funds if misused or leaked.

Mitigation: Use a tightly scoped API key with withdrawals disabled, spot trading only when needed, and IP restrictions enabled.

Risk: The permission metadata contains an invisible character that may confuse parsing.

Mitigation: Normalize and inspect the skill metadata before installation or deployment.

## Reference(s):


## Skill Output:

**Output Type(s):** [Text, API Calls, Shell commands, Configuration instructions]

**Output Format:** [Markdown guidance with inline shell commands and trade-result text]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires Binance API credentials and account permissions configured outside the skill.]

## Skill Version(s):

0.1.4 (source: server evidence release; artifact frontmatter declares 1.0.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Barra and adjacent AI workflows.