npx skills add https://github.com/bitgetlimited/agent_hub --skill bitget您可以通过 bgc CLI 工具访问完整的 Bitget 交易所功能——现货、合约、账户、杠杆、跟单、闪兑、赚币、P2P 和经纪商操作。
bgc --version
如果未找到 → 告知用户:npm install -g bitget-client
对于私有端点(账户信息、交易、转账):必须设置凭据。请参阅 ~/.claude/skills/bitget-skill/references/auth-setup.md。
bgc <模块> <工具名称> [--参数 值 ...]
所有输出均为 JSON 格式。响应始终包含:
data — 实际结果endpoint — 调用了哪个 APIrequestTime — 请求时间戳广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
有关完整工具和参数列表,请阅读:~/.claude/skills/bitget-skill/references/commands.md
它包含一个目录——直接跳转到相关模块部分。
| 模块 | 用途 |
|---|---|
spot | 现货价格、订单簿、K线、现货订单 |
futures | 永续合约价格、持仓、合约订单、杠杆 |
account | 余额、充值、提现、转账、子账户 |
margin | 杠杆资产、借入/偿还、杠杆订单 |
copytrading | 跟随交易员、复制仓位 |
convert | 将一种币兑换为另一种 |
earn | 储蓄/质押产品、申购/赎回 |
p2p | P2P 商户和订单 |
broker | 经纪商子账户和 API 密钥 |
在运行任何标记为 写入操作:是 的命令之前,请总结它将执行的操作,并要求用户确认。这包括:下单、取消订单、转账、提现、设置杠杆、借款、赎回赚币产品。
确认示例:
"这将在 BTCUSDT 交易对以 70,000 美元的价格下 0.01 BTC 的限价买单。确认吗?"
切勿静默执行写入操作。
如果 bgc 返回 "ok": false,请阅读 error.suggestion 以获取恢复操作。常见修复方法:~/.claude/skills/bitget-skill/references/error-codes.md
当凭据缺失时(AUTH_MISSING),向用户准确显示需要设置哪些环境变量。
# 公开市场数据(无需凭据)
bgc spot spot_get_ticker --symbol BTCUSDT
bgc futures futures_get_ticker --productType USDT-FUTURES --symbol BTCUSDT
bgc futures futures_get_funding_rate --productType USDT-FUTURES --symbol BTCUSDT
# 账户查询(需要凭据)
bgc account get_account_assets
bgc spot spot_get_orders --status open
bgc futures futures_get_positions --productType USDT-FUTURES
# 写入操作(运行前确认)
bgc spot spot_place_order --orders '[{"symbol":"BTCUSDT","side":"buy","orderType":"limit","price":"70000","size":"0.01"}]'
bgc futures futures_set_leverage --productType USDT-FUTURES --symbol BTCUSDT --marginCoin USDT --leverage 10
bgc account transfer --fromAccountType spot --toAccountType futures_usdt --coin USDT --amount 100
每周安装次数
1
代码仓库
GitHub 星标数
25
首次出现
1 天前
安全审计
安装于
amp1
cline1
openclaw1
opencode1
cursor1
kimi-cli1
You have access to the full Bitget exchange via the bgc CLI tool — spot, futures, account, margin, copy-trading, convert, earn, P2P, and broker operations.
bgc --version
If not found → tell the user: npm install -g bitget-client
For private endpoints (account info, trading, transfers): credentials must be set. See ~/.claude/skills/bitget-skill/references/auth-setup.md.
bgc <module> <tool_name> [--param value ...]
All output is JSON. The response always has:
data — the actual resultendpoint — which API was calledrequestTime — request timestampFor the full list of tools and parameters, read: ~/.claude/skills/bitget-skill/references/commands.md
It has a table of contents — go directly to the relevant module section.
| Module | Use for |
|---|---|
spot | Spot prices, orderbook, candles, spot orders |
futures | Perpetuals prices, positions, futures orders, leverage |
account | Balances, deposits, withdrawals, transfers, subaccounts |
margin | Margin assets, borrow/repay, margin orders |
copytrading | Follow traders, copy positions |
convert | Convert one coin to another |
Before running any command marked Write operation: Yes , summarize what it will do and ask the user to confirm. This includes: placing orders, cancelling orders, transfers, withdrawals, setting leverage, borrowing, redeeming earn products.
Example confirmation:
"This will place a limit buy order for 0.01 BTC at $70,000 on BTCUSDT. Confirm?"
Never silently execute a write operation.
If bgc returns "ok": false, read error.suggestion for the recovery action. Common fixes: ~/.claude/skills/bitget-skill/references/error-codes.md
When credentials are missing (AUTH_MISSING), show the user exactly which env vars to set.
# Public market data (no credentials needed)
bgc spot spot_get_ticker --symbol BTCUSDT
bgc futures futures_get_ticker --productType USDT-FUTURES --symbol BTCUSDT
bgc futures futures_get_funding_rate --productType USDT-FUTURES --symbol BTCUSDT
# Account queries (requires credentials)
bgc account get_account_assets
bgc spot spot_get_orders --status open
bgc futures futures_get_positions --productType USDT-FUTURES
# Write operations (confirm before running)
bgc spot spot_place_order --orders '[{"symbol":"BTCUSDT","side":"buy","orderType":"limit","price":"70000","size":"0.01"}]'
bgc futures futures_set_leverage --productType USDT-FUTURES --symbol BTCUSDT --marginCoin USDT --leverage 10
bgc account transfer --fromAccountType spot --toAccountType futures_usdt --coin USDT --amount 100
Weekly Installs
1
Repository
GitHub Stars
25
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
amp1
cline1
openclaw1
opencode1
cursor1
kimi-cli1
earn | Savings/staking products, subscribe/redeem |
p2p | P2P merchants and orders |
broker | Broker subaccounts and API keys |