← 返回
未分类 Key 中文

nexustrader

NexusTrader trading assistant. Query crypto balances, positions, prices, and place orders on Binance, Bybit, OKX, Bitget, HyperLiquid.
NexusTrader交易助手。查询加密货币余额、持仓、价格,并在币安、Bybit、OKX、Bitget、HyperLiquid等交易所下单。
quantweb3-scott quantweb3-scott 来源
未分类 clawhub v1.0.5 1 版本 99781.7 Key: 需要
★ 0
Stars
📥 457
下载
💾 5
安装
1
版本
#latest

概述

NexusTrader

Use the exec tool to run bridge.py. Do not write code or call external HTTP APIs directly.

bridge.py connects to a local MCP server at 127.0.0.1:18765 (SSE) — all exchange communication goes through that server.

Security Considerations

This skill accesses your exchange API keys. Before using:

  • API keys are stored in {NEXUSTRADER_PROJECT_DIR}/.keys/.secrets.toml — a local file, never transmitted by this skill.
  • Auto-start is disabled by default. The skill will not start background processes unless you explicitly set NEXUSTRADER_NO_AUTOSTART=0 in the skill's .env file.
  • If auto-start is enabled, the NexusTrader-mcp daemon will run in the background and hold access to your API keys.
  • Start with testnet/demo keys. Only use real keys after verifying the workflow in a sandbox.
  • Orders require explicit user confirmation — verify your agent flow enforces this before live trading.
  • See upstream docs for key setup: https://github.com/Quantweb3-com/NexusTrader-mcp

Environment Variables

  • NEXUSTRADER_PROJECT_DIR (optional, default: ~/NexusTrader-mcp): Location of your NexusTrader-mcp project directory. Controls where .keys/.secrets.toml is read from.
  • NEXUSTRADER_NO_AUTOSTART (default: 1): Set to 0 to allow bridge.py to auto-start the MCP daemon when offline. Default 1 means you must start the server manually.
  • NEXUSTRADER_MCP_URL (optional, default: http://127.0.0.1:18765/sse): MCP server address if running on a non-default port.

Usage

Get all balances:

exec {baseDir}/bridge.py get_all_balances

Get all positions:

exec {baseDir}/bridge.py get_all_positions

Get balance for one exchange:

exec {baseDir}/bridge.py get_balance --exchange=okx

Get ticker:

exec {baseDir}/bridge.py get_ticker --symbol=BTCUSDT-PERP.BINANCE

Get klines:

exec {baseDir}/bridge.py get_klines --symbol=BTCUSDT-PERP.BINANCE --interval=1h --limit=24

Get open orders:

exec {baseDir}/bridge.py get_open_orders --exchange=okx

Get position for one symbol:

exec {baseDir}/bridge.py get_position --symbol=BTCUSDT-PERP.OKX

Place order (confirm first):

exec {baseDir}/bridge.py create_order --symbol=BTCUSDT-PERP.BINANCE --side=BUY --order_type=MARKET --amount=0.001

Cancel order (confirm first):

exec {baseDir}/bridge.py cancel_order --symbol=BTCUSDT-PERP.BINANCE --order_id=123

Symbol format: BTCUSDT-PERP.OKX / ETHUSDT-SPOT.BYBIT. Exchange names lowercase.

If exec returns {"error": ...} → explain in Chinese.

If server not running → tell user to start manually: cd ~/NexusTrader-mcp && uv run nexustrader-mcp start

For orders, always confirm with user before calling create_order/cancel_order/modify_order.

版本历史

共 1 个版本

  • v1.0.5 当前
    2026-03-31 05:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 186 📥 62,034
professional

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 277 📥 57,462
professional

Stock Market Pro

kys42
Yahoo Finance (yfinance) 驱动的股票分析技能:行情报价、基本面、ASCII 趋势图、高分辨率图表(RSI/MACD/BB/VWAP/ATR),以及可选的网络...
★ 162 📥 40,023