闲社服务运行正常AI智能体自动化平台
s

StandX交易终端

技能标识:standx-cli

Crypto trading CLI for StandX exchange v0.3.5. Use when users need to: (1) Query crypto market data (prices, order books, klines, funding rates), (2) Manage trading orders (create, cancel, view), (3) Check account balances, positions, and trade history, (4) Stream real-time market data via WebSocket, (5) Manage leverage and margin settings. Supports BTC, ETH, SOL, XRP and other trading pairs.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.5.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

StandX交易终端

StandX CLI 技能

StandX CLI 是用于StandX交易所的加密货币交易命令行工具。

安装

方式一:ClawHub(推荐 - 自动安装)

bash
clawhub install standx-cli

方式二:Homebrew

bash
brew tap wjllance/standx-cli
brew install standx-cli

方式三:直接下载

bash

Linux x86_64


curl -L -o /tmp/standx.tar.gz https://github.com/wjllance/standx-cli/releases/download/v0.3.5/standx-v0.3.5-x86_64-unknown-linux-gnu.tar.gz
tar -xzf /tmp/standx.tar.gz -C /tmp
sudo mv /tmp/standx /usr/local/bin/
sudo chmod +x /usr/local/bin/standx

macOS Apple Silicon

curl -L -o /tmp/standx.tar.gz https://github.com/wjllance/standx-cli/releases/download/v0.3.5/standx-v0.3.5-aarch64-apple-darwin.tar.gz tar -xzf /tmp/standx.tar.gz -C /tmp sudo mv /tmp/standx /usr/local/bin/ sudo chmod +x /usr/local/bin/standx

方式四:手动安装(仅技能)

如果您希望手动安装技能并单独管理二进制文件:

bash

安装技能


git clone https://github.com/wjllance/standx-cli-skill.git ~/.openclaw/skills/standx-cli

然后通过Homebrew或直接下载单独安装二进制文件(参见方式二或三)

快速开始

检查安装:

bash
standx --version

查看BTC价格:

bash
standx market ticker BTC-USD

身份验证

大多数命令需要身份验证。StandX CLI支持多种安全的身份验证方法。

环境变量(推荐)

最安全的身份验证方式。凭据不会存储在shell历史记录或命令日志中。

bash

添加到 ~/.bashrc 或 ~/.zshrc


export STANDXJWT=yourjwt_token
export STANDXPRIVATEKEY=youred25519private_key

重新加载shell配置

source ~/.bashrc

安全最佳实践:

  • - 切勿在命令中硬编码凭据(会出现在shell历史记录中)
  • 切勿将凭据提交到版本控制
  • 对包含凭据的文件设置600权限
  • 定期轮换令牌(7天后过期)

获取凭据

访问 https://standx.com/user/session 生成:

  • - JWT令牌(必需) - 有效期为7天,用于读取账户数据
  • Ed25519私钥(可选但推荐) - 交易操作必需

验证身份验证

bash
standx auth status

替代身份验证方法

交互式登录

适用于首次设置或测试:

bash
standx auth login --interactive

基于文件的登录

适用于环境变量不可用的自动化脚本:

bash

将凭据存储在具有受限权限的文件中


echo yourjwttoken > ~/.standx_token
echo yourprivatekey > ~/.standx_key
chmod 600 ~/.standxtoken ~/.standxkey

使用文件登录

standx auth login --token-file ~/.standxtoken --key-file ~/.standxkey

⚠️ 避免在生产环境中使用:

bash

危险:凭据将在shell历史记录中可见


standx auth login --token yourtoken --private-key yourkey

退出登录

bash
standx auth logout

市场数据(无需身份验证)

列出交易对

bash
standx market symbols

获取行情

bash
standx market ticker BTC-USD
standx market ticker ETH-USD

订单簿深度

bash
standx market depth BTC-USD --limit 10

K线(蜡烛图)数据

bash

最近24小时,1小时K线


standx market kline BTC-USD -r 60 --from 1d

最近7天,日K线

standx market kline BTC-USD -r 1D --from 7d

特定日期范围

standx market kline BTC-USD -r 60 --from 2024-01-01 --to 2024-01-07

资金费率

bash
standx market funding BTC-USD --days 7

账户与交易(需要身份验证)

账户信息

bash
standx account balances
standx account positions
standx account orders
standx account history --limit 20

创建订单

bash

限价买入


standx order create BTC-USD buy limit --qty 0.01 --price 60000

市价卖出

standx order create BTC-USD sell market --qty 0.01

取消订单

bash
standx order cancel BTC-USD --order-id 123456
standx order cancel-all BTC-USD

交易历史

bash
standx trade history BTC-USD --from 7d

杠杆与保证金(需要身份验证)

bash

查询杠杆


standx leverage get BTC-USD

设置杠杆

standx leverage set BTC-USD 10

查询保证金模式

standx margin mode BTC-USD

设置保证金模式

standx margin mode BTC-USD --set isolated

实时流

公共流(无需身份验证)

bash

价格流


standx stream price BTC-USD

订单簿流

standx stream depth BTC-USD --levels 5

交易流

standx stream trade BTC-USD

用户流(需要身份验证)

bash
standx stream order # 订单更新
standx stream position # 持仓更新
standx stream balance # 余额更新
standx stream fills # 成交更新

输出格式

bash

JSON输出


standx -o json market ticker BTC-USD

CSV导出

standx -o csv market symbols > symbols.csv

静默模式(仅输出值)

standx -o quiet config get base_url

特殊模式

OpenClaw模式(AI优化的JSON)

bash
standx --openclaw market ticker BTC-USD

试运行(预览而不执行)

bash
standx --dry-run order create BTC-USD buy limit --qty 0.01 --price 60000

参考

链接

  • - GitHub:https://github.com/wjllance/standx-cli
  • 文档:https://github.com/wjllance/standx-cli/tree/main/docs
  • 问题反馈:https://github.com/wjllance/standx-cli/issues

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 standx-cli-1776299674 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 standx-cli-1776299674 技能

通过命令行安装

skillhub install standx-cli-1776299674

下载

⬇ 下载 standx-cli v0.5.0(免费)

文件大小: 13.49 KB | 发布时间: 2026-4-16 16:50

v0.5.0 最新 2026-4-16 16:50
**Summary:**
standx-cli v0.5.0 introduces direct, scriptable install options and a reorganized structure for improved deployment and clarity.

- Added direct GitHub-based install scripts for Linux and macOS in skill metadata (SKILL.md).
- Expanded installation instructions in documentation to include direct download and manual methods.
- Released an openclaw/ subdirectory for OpenClaw compatibility, along with a package.json.
- Removed references to now-missing authentication, security, and homebrew docs; troubleshooting and examples remain.
- Updated SKILL.md metadata: new install methods and a downgraded binary version in the description.
- Removed/added various reference and meta files to match the new layout.
返回顶部