返回顶部
W

WEEX APIWEEX API交易工具

Automated trading tool for WEEX API, supporting futures and spot trading, including natural language order placement, order cancellation, order query, market data and account data retrieval.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
105
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

WEEX API

WEEX API

使用:

  • - scripts/weexcontractapi.py 用于合约
  • scripts/weexspotapi.py 用于现货

对于私有端点:

bash
export WEEXAPIKEY=...
export WEEXAPISECRET=...
export WEEXAPIPASSPHRASE=...
export WEEXAPIBASE=https://api-contract.weex.com
export WEEX_LOCALE=en-US

快速路径

bash

合约


python3 scripts/weexcontractapi.py list-endpoints --pretty
python3 scripts/weexcontractapi.py ticker --symbol BTCUSDT --pretty
python3 scripts/weexcontractapi.py poll-ticker --symbol BTCUSDT --interval 2 --count 30 --pretty

现货

python3 scripts/weexspotapi.py list-endpoints --pretty python3 scripts/weexspotapi.py ticker --symbol BTCUSDT --pretty

自然语言指令

自然语言由代理层进行解析。
脚本不再从自由文本中提取关键词。

代理必须将用户意图转换为结构化字段,然后调用确定性命令:

bash

合约 V3


python3 scripts/weexcontractapi.py place-order \
--symbol ETHUSDT --side SELL --position-side SHORT --type LIMIT \
--quantity 0.001 --price 10000 --time-in-force GTC --confirm-live --pretty

现货 V3

python3 scripts/weexspotapi.py place-order \ --symbol ETHUSDT --side BUY --order-type LIMIT \ --quantity 0.001 --price 999 --time-in-force GTC --confirm-live --pretty

安全策略

  • - 未携带 --confirm-live 参数时,绝不发送变更请求。
  • 默认流程为直接实时执行(无试运行步骤)。
  • 如果指令不明确或缺少字段,仅询问缺失的字段。

重新生成 API 定义

本地合约和现货定义基于实时 WEEX V3 文档生成:

bash
python3 scripts/generateweexapi_definitions.py --product all

参考资料

  • - references/spot-endpoints.md
  • references/spot-api-definitions.json(机器可读的本地现货接口定义)
  • references/spot-api-definitions.md(人类可读的本地现货接口定义)
  • references/contract-api-definitions.json(机器可读的本地接口定义)
  • references/contract-api-definitions.md(人类可读的本地接口定义)
  • references/contract-endpoints.md
  • references/auth-and-signing.md
  • references/websocket.md

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 weex-1775941809 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 weex-1775941809 技能

通过命令行安装

skillhub install weex-1775941809

下载

⬇ 下载 WEEX API v1.0.1(免费)

文件大小: 47.45 KB | 发布时间: 2026-4-12 11:57

v1.0.1 最新 2026-4-12 11:57
Update description to English

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部