@bitget-ai/bitget-agent-skill 3.4.1 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -0
- package/README.md +112 -126
- package/VERSION +1 -1
- package/package.json +7 -11
- package/scripts/install.js +171 -133
- package/scripts/validate-skills.mjs +289 -0
- package/skills/bitget-agentic/SKILL.md +131 -0
- package/skills/bitget-agentic/references/authorization.md +99 -0
- package/skills/bitget-agentic/references/first-time-setup.md +88 -0
- package/skills/bitget-agentic/references/legacy-migration.md +38 -0
- package/skills/bitget-agentic/references/troubleshooting.md +43 -0
- package/references/auth-setup.md +0 -54
- package/references/commands.md +0 -2387
- package/references/demo-trading.md +0 -58
- package/references/discover-guide.md +0 -112
- package/references/error-codes.md +0 -118
- package/references/trading-safety.md +0 -163
- package/scripts/gen-references.js +0 -266
- package/skills/agentic/SKILL.md +0 -345
- package/skills/agentic-connect/SKILL.md +0 -146
- package/skills/uta/SKILL.md +0 -189
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: bitget-agentic-connect
|
|
3
|
-
description: >
|
|
4
|
-
FIRST-TIME ONLY Bitget Agentic setup: install local bitget-agentic, connect
|
|
5
|
-
remote HTTP MCP https://agent.bitget.com/mcp, legacy MCP/API-key check, then
|
|
6
|
-
client OAuth. Invoke only when the user has not yet connected / is following
|
|
7
|
-
the online connection guide. Chinese triggers: 首次接入、第一次授权、安装并连接
|
|
8
|
-
云端 MCP、Agentic 账户开通. After MCP is connected and first login succeeds,
|
|
9
|
-
STOP using this skill — hand off to installed bitget-agentic for re-auth and
|
|
10
|
-
trading (do not compete on 「连接 Agent」 once setup is done). Server tools are
|
|
11
|
-
guide / do_query / do_request_open_api; mcp_auth is client-side OAuth (Cursor),
|
|
12
|
-
not a server tool.
|
|
13
|
-
metadata:
|
|
14
|
-
version: 1.0.1
|
|
15
|
-
author: Bitget
|
|
16
|
-
updated: 2026-10-30
|
|
17
|
-
requires:
|
|
18
|
-
bins: ["node", "npx"]
|
|
19
|
-
node: ">=20"
|
|
20
|
-
packages:
|
|
21
|
-
mcp: "https://agent.bitget.com/mcp"
|
|
22
|
-
skill: "@bitget-ai/bitget-agent-skill"
|
|
23
|
-
license: MIT
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
# Bitget Agentic 账户 · 连接指南(仅首次)
|
|
27
|
-
|
|
28
|
-
**本文是什么:**首次接入指南。读完后按 Step 0–5 完成:装本地 `bitget-agentic` → 登记云端 MCP `https://agent.bitget.com/mcp` → 旧版快检 → 客户端 OAuth → 用账户只读调用确认已登录。不要手填 API Key,不要自己拼授权链接。
|
|
29
|
-
|
|
30
|
-
**服务端 tool 只有三个:** `guide`、`do_query`、`do_request_open_api`。
|
|
31
|
-
**`mcp_auth` 是客户端鉴权入口(Cursor),不是服务端 tool。**
|
|
32
|
-
|
|
33
|
-
**之后:**首次授权成功后本文使命结束;重新授权、交易、断连一律交给已热加载的本地 `bitget-agentic`(`npx @bitget-ai/bitget-agent-skill --skill agentic`)。旧版快检文案、交易规则、失败表以该文件为准,本文不重复维护。
|
|
34
|
-
|
|
35
|
-
只有用户明确说不要授权时,才不发起 OAuth。只说「先看行情」不算拒绝。
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
## 先看这几条
|
|
40
|
-
|
|
41
|
-
- 行情可不登录;交易 / 账户 / Reality 要 OAuth。先 `guide` 再调用。
|
|
42
|
-
- 不做:提现、主→子划转、改主账户安全设置;美股直连、CFD、税务、质押/机构借贷不接入。
|
|
43
|
-
- 登录态是 OAuth token(不是 API Key)。Agentic 账户与 Agent **1:1**;换绑会替换原授权(提醒用户处理挂单/监控)。
|
|
44
|
-
- 多 Agent 可各绑一个子账户;一个 Agent 管多子账户 → [进群反馈](https://telegram.me/+o1tYqQ_lXxllYjgy)。
|
|
45
|
-
- 产品困惑(非操作细节)也可提示同一进群链接。
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## Step 0 · 装本地 skill 并热加载
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
npx @bitget-ai/bitget-agent-skill --target all --skill agentic
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
必须带 `--skill agentic`。装完后 **Agent 在本对话读取安装输出里的 `SKILL.md` 全文**(热加载),不要让用户去打开文件。与 Step 1 顺序不固定,但都要在本对话做完。
|
|
56
|
-
|
|
57
|
-
若读到的 skill 仍要求装 `@bitget-ai/bitget-agent-mcp` 或手填 Key,忽略那些步骤,按本文连云端 MCP。
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## Step 1 · 连接云端 MCP
|
|
62
|
-
|
|
63
|
-
只登记:`https://agent.bitget.com/mcp`。不要配 `BITGET_API_*`。
|
|
64
|
-
|
|
65
|
-
- Claude Code:`claude mcp add -s user bitget-mcp-server --transport http https://agent.bitget.com/mcp`(无 Cursor 的 `CLIENT_ID`)
|
|
66
|
-
- Cursor:合并写入 `~/.cursor/mcp.json`(勿整份覆盖):
|
|
67
|
-
|
|
68
|
-
```json
|
|
69
|
-
{
|
|
70
|
-
"mcpServers": {
|
|
71
|
-
"bitget-mcp-server": {
|
|
72
|
-
"url": "https://agent.bitget.com/mcp",
|
|
73
|
-
"auth": { "CLIENT_ID": "cursor" }
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
- 其他客户端:按各自 HTTP MCP 方式填同一 URL。
|
|
80
|
-
|
|
81
|
-
写完后在本对话先试 `guide()`。多数情况立刻可用,不要默认要求新开对话。
|
|
82
|
-
仍看不到三个 tool 时:先查是否残留旧版 stdio `@bitget-ai/bitget-agent-mcp` 或手填 Key 的本地 MCP(软冲突可共存、产品上硬冲突)→ 引导用户自清理 → 仍不行再新开对话。新对话可发:
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
我已经把 https://agent.bitget.com/mcp 写进本地 MCP 配置,但这个对话里还是调不到 guide / do_query / do_request_open_api。请检查是否还留着旧版 @bitget-ai/bitget-agent-mcp 或手填 API Key 的本地 MCP;有的话告诉我怎么清理,再确认新连接。
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
90
|
-
## Step 2 · 旧版快检
|
|
91
|
-
|
|
92
|
-
即将授权前看当前客户端 MCP 配置。命中即旧版:
|
|
93
|
-
|
|
94
|
-
- stdio 启动 `@bitget-ai/bitget-agent-mcp`
|
|
95
|
-
- 或配置了 `BITGET_API_KEY` / `BITGET_SECRET_KEY` / `BITGET_PASSPHRASE`
|
|
96
|
-
|
|
97
|
-
命中后:只用云端三个 tool + 客户端对本 MCP 的鉴权;把本地 `bitget-agentic` §2 里的升级提醒原文发给用户后即可进 Step 3(不必等「同意升级」)。用户明确拒绝升级则停止。
|
|
98
|
-
只配了云端 URL、或仅有 skill/bgc/signal 等,不算旧版、不拦 OAuth。不要用 `npm list` 判断。找不到配置路径时让用户自确认,不要默认「没有旧版」。
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
## Step 3 · 客户端授权
|
|
103
|
-
|
|
104
|
-
1. Cursor:对本 MCP 一轮 `mcp_auth` / Connect(勿连点)。有链接先本机打开浏览器,打不开再发原文。
|
|
105
|
-
2. 无 `mcp_auth`:先 `do_request_open_api(operation_id="getAccountAssets", params={})`;未授权 / 401 则按该客户端完成 MCP 登录。
|
|
106
|
-
3. 不改 Bitget 域名,不拼 authorize URL。出现「Authorization session ended」且回调已有 `code` → 旧会话作废,再走一轮即可。
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
## Step 4 · 网络(bitget.com)
|
|
111
|
-
|
|
112
|
-
超时 / ECONNREFUSED / ENOTFOUND / network / fetch failed / 打不开 Bitget → 先查已生效代理,再重试 Step 3;无代理则请用户开好后再授权。不要未查网络就反复点允许,不要手填 Key。
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
## Step 5 · 成功
|
|
117
|
-
|
|
118
|
-
已登录标志:客户端显示已登录,且例如:
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
do_request_open_api(operation_id="getAccountAssets", params={})
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
成功(也可用 `getDeductInfo`)。页面走完不算。
|
|
125
|
-
|
|
126
|
-
> 授权完成。不会把 API Key 发给你。登录状态在云端 MCP 的连接里,不用把密钥交给我。
|
|
127
|
-
>
|
|
128
|
-
> 若要断开,到网页「子账户管理」使用「断开 Agent 连接」。断开前必须先处理未成交挂单。资金可以在子账户管理转回,这一步不是断开的前置条件。从主账户转入由你在网页完成。
|
|
129
|
-
|
|
130
|
-
然后 **只按已读过的本地 `bitget-agentic` 继续**(行情 `guide`→`do_query`,交易 `guide`→`do_request_open_api`)。不要把 token 写入 skill。删旧账户话术见本地 skill §6。
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
|
|
134
|
-
## 没成功
|
|
135
|
-
|
|
136
|
-
| 情况 | 动作 |
|
|
137
|
-
|-|-|
|
|
138
|
-
| 账户已满 | 授权页改选已有账户 |
|
|
139
|
-
| KYC 未完成 | 完成后再授权 |
|
|
140
|
-
| 三个 tool 都不在 | 回 Step 1;不要装旧 stdio 包 / 手填 Key;不必重装 skill |
|
|
141
|
-
| bitget.com 连不上 | Step 4 |
|
|
142
|
-
| 用户拒绝升级 | 停止 |
|
|
143
|
-
| 授权页 JSON 422,缺 OAuth 参数只剩 challenge/nonce | 前端丢参;清站点登录态后再一轮,或反馈前端 |
|
|
144
|
-
| token 换票 403 且返回 HTML | 多为 WAF;非应用层错误 |
|
|
145
|
-
|
|
146
|
-
无明确原因不要猜,问要不要再发起一次。
|
package/skills/uta/SKILL.md
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: bitget
|
|
3
|
-
description: >
|
|
4
|
-
Use this skill whenever the user wants to check prices, pull candlesticks / K-line
|
|
5
|
-
(OHLCV) history, the orderbook or other market data, manage account balances,
|
|
6
|
-
place or cancel orders, manage futures/spot/margin positions, set leverage or
|
|
7
|
-
margin/position mode, transfer funds, deposit or withdraw, check funding rates,
|
|
8
|
-
use demo/paper trading, take loans, or do anything else on the Bitget exchange.
|
|
9
|
-
Invoke this skill even when the user doesn't say "Bitget" by name — action phrases
|
|
10
|
-
like "check my open orders", "cancel my BTC position", "move USDT to futures",
|
|
11
|
-
"what's my P&L", "place a market sell", "how much can I withdraw", "show my
|
|
12
|
-
positions", "set leverage to 10x", "what's the funding rate", "show me BTC daily
|
|
13
|
-
candles", "pull the 4h K-line" all require this skill. Also invoke for
|
|
14
|
-
Chinese-language trading requests such as "查看我的账户",
|
|
15
|
-
"下一个限价单", "查看持仓盈亏", "转账到合约账户", "BTC现在多少钱", "看下K线", "查历史K线",
|
|
16
|
-
"设置杠杆", "提币" —
|
|
17
|
-
these are Bitget operations even without the exchange name. Always invoke this
|
|
18
|
-
skill before attempting any exchange trading task from scratch.
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
# Bitget Skill (Unified Trading Account / v3)
|
|
22
|
-
|
|
23
|
-
Drive the Bitget exchange through the `bgc` CLI — one Unified Trading Account (UTA)
|
|
24
|
-
covering spot, margin, and futures, plus funds, sub-accounts, loans, and broker
|
|
25
|
-
operations. The CLI is a thin shell over the Bitget Agent SDK: the SDK owns action
|
|
26
|
-
dispatch, input validation, write-safety, and discovery, so this skill teaches you
|
|
27
|
-
the **grammar** and the **safe workflow**, then points you at the reference docs.
|
|
28
|
-
|
|
29
|
-
Reference docs live in this skill's `references/` directory (alongside this file).
|
|
30
|
-
|
|
31
|
-
## Step 1: Check prerequisites
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
bgc --version
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
If not found → tell the user: `npm install -g @bitget-ai/bitget-agent-cli`
|
|
38
|
-
|
|
39
|
-
Public market data needs no credentials. Everything else (account, trading,
|
|
40
|
-
transfers, withdrawals) needs API credentials as environment variables. See
|
|
41
|
-
`references/auth-setup.md`.
|
|
42
|
-
|
|
43
|
-
## Step 2: The grammar (this replaced the old v2 grammar)
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
bgc <tool> [--action <name>] [--<param> <value> ...] [global flags]
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
- **One verb per call.** There are 14 intent verbs (e.g. `market`, `order`,
|
|
50
|
-
`position`, `account_overview`, `transfer_funds`, `withdraw`).
|
|
51
|
-
- **`--action`** picks the intent for an action-routed verb
|
|
52
|
-
(`bgc order --action place`, `bgc position --action closeAll`).
|
|
53
|
-
A few verbs take no action (e.g. `account_overview` is a single-shot snapshot).
|
|
54
|
-
- **Values coerce by shape:** `true`/`false` → boolean, a value starting with `[`
|
|
55
|
-
or `{` → JSON (e.g. `--orders '[{...}]'`), everything else stays a string.
|
|
56
|
-
|
|
57
|
-
> The old v2 form `bgc <module> <tool_name>` (e.g. `bgc spot spot_get_ticker`) is
|
|
58
|
-
> **gone**. There are no separate spot/futures modules — one `--category` param
|
|
59
|
-
> (`SPOT`, `MARGIN`, `USDT-FUTURES`, `COIN-FUTURES`, `USDC-FUTURES`) selects the market.
|
|
60
|
-
|
|
61
|
-
## Step 3: Discover before you assemble a call
|
|
62
|
-
|
|
63
|
-
Don't guess parameters. The CLI introspects its own live surface:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
bgc discover # list domains + verb counts
|
|
67
|
-
bgc discover --domain trade # verbs in a domain
|
|
68
|
-
bgc discover --tool order # one verb: actions + full schema
|
|
69
|
-
bgc discover --tool order --action place # exact required/optional contract
|
|
70
|
-
bgc discover --search "funding rate" # keyword-search the whole surface
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
`bgc discover --tool <verb> --action <name>` is the authoritative, always-current
|
|
74
|
-
parameter contract. **Read it before constructing any non-trivial command**, especially
|
|
75
|
-
for trading. Full guide: `references/discover-guide.md`.
|
|
76
|
-
|
|
77
|
-
A complete **static** catalog of every verb, action, and parameter is in
|
|
78
|
-
`references/commands.md` (auto-generated from the SDK — navigate by its domain TOC).
|
|
79
|
-
|
|
80
|
-
## Output contract
|
|
81
|
-
|
|
82
|
-
All output is JSON.
|
|
83
|
-
|
|
84
|
-
- **Success** → stdout, exit 0: `{ endpoint, requestTime, data }` — `data` is the result.
|
|
85
|
-
- **Error** → stderr, exit 1: `{ ok: false, error: { type, category, message, suggestion, retryable }, timestamp }`.
|
|
86
|
-
- **`--dry-run`** → stdout, exit 0: `{ dryRun: true, operationId, wouldSend, ... }` — the would-send request, nothing sent.
|
|
87
|
-
- **Confirmation gate** → stdout, exit 0: `{ confirmationRequired: true, operationId, hint, ... }` — a high-risk write that was NOT executed because `--confirm` was absent. This is a **normal result, not an error.**
|
|
88
|
-
|
|
89
|
-
On error, branch on `error.category`: `auth`/`param` → fix the request and resend;
|
|
90
|
-
`balance`/`risk` → surface to the user (cannot self-heal); `rate`/`network` → back
|
|
91
|
-
off and retry; `config` → check account mode / credentials. See `references/error-codes.md`.
|
|
92
|
-
|
|
93
|
-
## The 14 verbs
|
|
94
|
-
|
|
95
|
-
| Domain | Verb | Use for |
|
|
96
|
-
|--------|------|---------|
|
|
97
|
-
| market | `market` | Tickers, orderbook, candles, instruments, funding rate, open interest (public) |
|
|
98
|
-
| trade | `order` | Place/cancel/modify orders (single or batch), open/history/fills, max-openable |
|
|
99
|
-
| trade | `position` | Current/history positions, ADL rank, **close** (one, by symbol) / **closeAll** |
|
|
100
|
-
| trade | `strategy_order` | Trigger/plan orders: place/cancel/modify/open/history |
|
|
101
|
-
| account | `account_overview` | One-call snapshot: assets, settings, funding assets, (opt.) positions + fee rate |
|
|
102
|
-
| account | `account_config` | Account settings: leverage, position/holding mode (one-way/hedge), account mode (basic/advanced) |
|
|
103
|
-
| account | `repayment` | Repay liabilities |
|
|
104
|
-
| funds | `transfer_funds` | Transfer between accounts / sub-accounts |
|
|
105
|
-
| funds | `deposit` | Deposit address & records |
|
|
106
|
-
| funds | `withdraw` | **Withdraw** (high-risk) & records |
|
|
107
|
-
| funds | `funds_records` | Funding/transfer/deposit/withdraw history |
|
|
108
|
-
| subaccount | `subaccount` | Create/list sub-accounts, manage their API keys & assets |
|
|
109
|
-
| loan | `loan` | Crypto loans: borrow, repay, orders, collateral |
|
|
110
|
-
| tax | `tax` | Tax/transaction records |
|
|
111
|
-
|
|
112
|
-
Use `discover` for the actions and exact params of any verb.
|
|
113
|
-
|
|
114
|
-
## Write safety: two different "confirms" — don't conflate them
|
|
115
|
-
|
|
116
|
-
Operations are graded **read < write < high**. There are TWO separate confirmation
|
|
117
|
-
concepts here, and mixing them up is the single biggest source of trading mistakes:
|
|
118
|
-
|
|
119
|
-
1. **Confirm with the USER — for every write.** Before running ANY write (placing or
|
|
120
|
-
cancelling orders, transfers, withdrawals, setting leverage, borrowing, repaying),
|
|
121
|
-
summarize what it will do and get the user's go-ahead. This is your *behavior*, not
|
|
122
|
-
a CLI flag. Never silently execute a write.
|
|
123
|
-
> Example: "This places a limit BUY of 0.01 BTC at $70,000 on BTCUSDT (SPOT). OK to send?"
|
|
124
|
-
|
|
125
|
-
2. **The `--confirm` flag — for high-risk ops only.** This is a CLI gate that ONLY four
|
|
126
|
-
operations require: `closeAllPositions`, `cancelAllOrders`, `withdrawal`,
|
|
127
|
-
`brokerSubaccountWithdrawal`. Without `--confirm` they return
|
|
128
|
-
`{ confirmationRequired: true }` and send nothing (a normal result, not an error).
|
|
129
|
-
|
|
130
|
-
**Ordinary writes do NOT take `--confirm`.** A plain `order --action place`, a single
|
|
131
|
-
`cancel`, a `transfer_funds`, a leverage change — these execute **live** the moment you
|
|
132
|
-
omit `--dry-run`. `--confirm` is not their gate and adding it changes nothing; the
|
|
133
|
-
user's go-ahead (concept 1) is what authorizes them.
|
|
134
|
-
|
|
135
|
-
**Don't guess which kind an action is — read its contract.**
|
|
136
|
-
`bgc discover --tool <verb> --action <name>` reports `riskLevel` (`read`|`write`|`high`)
|
|
137
|
-
and `requiresConfirm` (`true` only for the four high-risk ops).
|
|
138
|
-
|
|
139
|
-
Safety flags:
|
|
140
|
-
- `--dry-run` — preview the would-send request without sending it (great for showing the user exactly what will happen).
|
|
141
|
-
- `--confirm` — execute a **high-risk** operation. No effect on an ordinary write or a read.
|
|
142
|
-
- `--read-only` — block all writes for the session.
|
|
143
|
-
- `--paper-trading` — route writes to the Bitget demo environment (see below).
|
|
144
|
-
|
|
145
|
-
**Recommended patterns:**
|
|
146
|
-
- *Ordinary write:* preview with `--dry-run` (or just summarize the effect), get the user's OK, then run it — no `--confirm`.
|
|
147
|
-
- *High-risk write:* `--dry-run` to preview → show the user the `wouldSend` payload → on their OK, re-run with `--confirm`.
|
|
148
|
-
|
|
149
|
-
## Trading specifics — read before trading
|
|
150
|
-
|
|
151
|
-
Before constructing futures close / TP-SL / withdrawal commands, read
|
|
152
|
-
`references/trading-safety.md`. Critical rules:
|
|
153
|
-
|
|
154
|
-
- **Close ONE position at market: `position --action close --symbol <PAIR>`.** High-risk →
|
|
155
|
-
needs `--confirm`; in hedge mode add `--posSide long|short`. It hard-requires `--symbol`, so it
|
|
156
|
-
can never flatten the whole category by omission.
|
|
157
|
-
- **Close EVERYTHING in a category: `position --action closeAll --category <CAT>`** (optionally
|
|
158
|
-
narrowed by `--symbol`) — also high-risk, needs `--confirm`.
|
|
159
|
-
- **Close at YOUR price instead of market:** `order --action place` with the OPPOSITE side — one-way
|
|
160
|
-
mode add `--reduceOnly yes`; hedge mode set `--posSide` to the side you're closing. (Selling to
|
|
161
|
-
"close" a short actually opens more short — check `position --action info` first.)
|
|
162
|
-
- **Limit orders require `--price`** (market orders take none); in hedge mode `--posSide` is required
|
|
163
|
-
too. `discover --tool order --action place` reports these under `conditionalRequired`.
|
|
164
|
-
- **TP/SL:** preset `--takeProfit` / `--stopLoss` on the opening order, or manage after entry via `strategy_order`.
|
|
165
|
-
- **Spot market BUY `qty` is in quote coin (USDT), not base coin** — confirm intent to avoid mis-sized orders.
|
|
166
|
-
- **Withdrawals:** always show the chain and destination address in the confirmation; wrong chain is irreversible.
|
|
167
|
-
|
|
168
|
-
## Demo / paper trading
|
|
169
|
-
|
|
170
|
-
When the user wants to practice or says "demo"/"paper"/"simulated", add `--paper-trading`
|
|
171
|
-
to writes (needs separate demo credentials; mutually exclusive with `--read-only`). Keep
|
|
172
|
-
the whole session in one mode — never mix live and demo. See `references/demo-trading.md`.
|
|
173
|
-
|
|
174
|
-
## Output presentation
|
|
175
|
-
|
|
176
|
-
- **Prices/tickers:** symbol, last price, 24h change, volume — readable summary, not raw JSON.
|
|
177
|
-
- **Order lists:** table with orderId, symbol, side, price, qty, status.
|
|
178
|
-
- **Balances:** coin, available, frozen; skip dust (< 0.0001).
|
|
179
|
-
- **Positions:** symbol, side (long/short), size, entry, mark, unrealized PnL, **liquidation price**, leverage. Never omit liquidation price.
|
|
180
|
-
- **Funding rates:** current rate, annualized, next settlement time.
|
|
181
|
-
- For raw data the user didn't ask to see: summarize, don't dump full JSON. Use `--view summary` (default) and `--fields` to trim large payloads.
|
|
182
|
-
|
|
183
|
-
## Escape hatch
|
|
184
|
-
|
|
185
|
-
If no verb fronts the operation you need, reach any catalog operation by id:
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
bgc raw --operationId <id> --args '{"category":"SPOT","symbol":"BTCUSDT"}'
|
|
189
|
-
```
|