aixxai 1.7.0 → 1.7.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aixxai",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "AIXX CLI - 让你的AI调用万物。One command, every AI model. By AIXX (Wanan Exchange), the verification-first compute exchange. 安装:npx aixxai",
5
5
  "type": "module",
6
6
  "bin": {
@@ -49,28 +49,10 @@ export async function balance(subArgs) {
49
49
  console.log(`使用Key: ${maskKey(apiKey)}`);
50
50
  console.log(`后端地址: ${baseUrl}\n`);
51
51
 
52
- // 0. 优先调 /v1/account(2026-08-28新增,能拿到真实账户余额,包括unlimited token)
53
- try {
54
- const acctResp = await fetch(`${baseUrl}/account`, {
55
- headers: { Authorization: `Bearer ${apiKey}` },
56
- signal: AbortSignal.timeout(FETCH_TIMEOUT),
57
- });
58
- if (acctResp.ok) {
59
- const acct = await acctResp.json();
60
- console.log('────────────────────────────────────');
61
- console.log(`👤 账户:${acct.username || '未知'}`);
62
- console.log(`💰 账户余额:¥${(acct.balance_cny ?? 0).toFixed(2)}($${(acct.balance_usd ?? 0).toFixed(2)})`);
63
- console.log(`📊 已用额度:¥${(acct.used_cny ?? 0).toFixed(2)}`);
64
- if (acct.unlimited_token) console.log(`♾️ Token模式:不限量(按账户余额扣费)`);
65
- console.log('────────────────────────────────────');
66
- console.log(`\n💡 充值入口:${acct.topup_url || baseUrl.replace(/\/v1$/, '') + '/console/topup'}\n`);
67
- return;
68
- }
69
- } catch {
70
- // /v1/account 不可用 → 降级到旧的 billing 接口
71
- }
52
+ // 0. /v1/account 端点已退役(1121千问终检:console/v1/account=404死路,白耗一次请求)
53
+ // 直接走 /dashboard/billing/subscription(1121实测200活)
72
54
 
73
- // 1. 降级:查总额度(subscription)
55
+ // 1. 查总额度(subscription)
74
56
  let hardLimitUsd = 0;
75
57
  try {
76
58
  const resp = await fetch(`${baseUrl}/dashboard/billing/subscription`, {
@@ -1,232 +1,206 @@
1
- /**
2
- * AIXX CLI - market 命令(1104 公开端点版)
3
- *
4
- * 算力行情数据订阅(三档:consumer/bulk/all · 7天全功能试用):
5
- * aixx market login --token <T> 保存访问令牌
6
- * aixx market tickers [--usd] 全标的快照
7
- * aixx market ticker <SYMBOL> 单标的快照
8
- * aixx market score <SYMBOL> 标的记分卡
9
- * aixx market history <SYMBOL> [d] 历史点位
10
- * aixx market detail <SYMBOL> 大宗详情数据包
11
- * aixx market consumer <SYMBOL> 消费级详情数据包
12
- * 所有命令支持 --json(脚本管道用)
13
- *
14
- * 本命令组为纯数据输出,零 AI 参与;错误一律人话提示。
15
- * 端点:/api/v1/* 公开命名契约(机读契约见 /api/v1/api-docs.json)。
16
- *
17
- * 令牌来源:环境变量 AIXX_MARKET_TOKEN → ~/.aixx/config.json marketToken(兼容读 aciBetaToken)。
18
- */
19
-
20
- import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'fs';
21
- import { homedir } from 'os';
22
- import { join } from 'path';
23
-
24
- const BASE = process.env.AIXX_MARKET_BASE_URL || 'https://aixx.ai';
25
- const FETCH_TIMEOUT = 15000;
26
-
27
- function configFile() {
28
- return join(homedir(), '.aixx', 'config.json');
29
- }
30
-
31
- function loadToken() {
32
- if (process.env.AIXX_MARKET_TOKEN) return process.env.AIXX_MARKET_TOKEN;
33
- try {
34
- const f = configFile();
35
- if (existsSync(f)) {
36
- const conf = JSON.parse(readFileSync(f, 'utf-8'));
37
- return conf.marketToken || null;
38
- }
39
- } catch (e) { /* 走未配置路径 */ }
40
- return null;
41
- }
42
-
43
- async function mFetch(path) {
44
- const token = loadToken();
45
- if (!token) {
46
- console.error('尚未配置访问令牌。');
47
- console.error('开通: https://www.aixx.vip | 或设置环境变量 AIXX_MARKET_TOKEN');
48
- process.exit(1);
49
- }
50
- const ctrl = new AbortController();
51
- const timer = setTimeout(() => ctrl.abort(), FETCH_TIMEOUT);
52
- try {
53
- const res = await fetch(`${BASE}${path}`, {
54
- headers: { Authorization: `Bearer ${token}` },
55
- signal: ctrl.signal,
56
- });
57
- if (res.status === 403) {
58
- console.error('当前订阅档位不包含该数据 —— 如需升级请访问 aixx.ai 或联系客服');
59
- process.exit(1);
60
- }
61
- if (res.status === 404) {
62
- console.error('未查询到该数据(请核对标的代码,或联系客服确认订阅状态)');
63
- process.exit(1);
64
- }
65
- if (res.status === 401 || res.status === 403) {
66
- console.error('令牌无效或已过期,请重新登录: aixx market login --token <T>');
67
- process.exit(1);
68
- }
69
- if (!res.ok) {
70
- console.error(`服务暂不可用 (${res.status}),请稍后重试`);
71
- process.exit(1);
72
- }
73
- return await res.json();
74
- } catch (err) {
75
- console.error(err?.name === 'AbortError' || err?.name === 'TimeoutError'
76
- ? '连接超时,请检查网络后重试' : '网络异常,请稍后重试');
77
- process.exit(1);
78
- } finally {
79
- clearTimeout(timer);
80
- }
81
- }
82
-
83
- function fmtWan(v, usd) {
84
- if (typeof v !== 'number') return '-';
85
- const cur = usd ? '$' : '¥';
86
- return `${cur}${v >= 1 ? v.toFixed(2) + '万' : (v * 10000).toFixed(0)}`;
87
- }
88
-
89
- function money(v, usd) {
90
- if (typeof v !== 'number') return '-';
91
- return (usd ? '$' : '¥') + v;
92
- }
93
-
94
- function printTicker(c, usd) {
95
- const lo = usd ? c.listing?.lo_usd : c.listing?.lo;
96
- const hi = usd ? c.listing?.hi_usd : c.listing?.hi;
97
- const cur = usd ? '$' : '¥';
98
- console.log(` ${c.symbol} [${c.category || '-'}]`);
99
- console.log(` 评分: ${c.score?.raw ?? '-'} (${c.score?.grade ?? '-'})`);
100
- console.log(` 价格带: ${money(lo, usd) === '-' ? cur + '-' : money(lo, usd)} ~ ${money(hi, usd)} (在售 ${c.listing?.count ?? 0})`);
101
- if (usd && c.msrp_usd_wan != null) console.log(` 发售价: $${c.msrp_usd_wan}万`);
102
- console.log(` 租金参考: ${usd ? '$' + (c.rental?.usd_hr ?? '-') : '¥' + (c.rental?.cn_hr ?? '-')}/时`);
103
- console.log('');
104
- }
105
-
106
- function printScore(d) {
107
- const s = d.scorecard || {};
108
- console.log(` ${d.symbol} 记分卡`);
109
- console.log(` 总分: ${s.raw ?? '-'} 等级: ${s.grade ?? '-'}`);
110
- const dims = s.dims || {};
111
- const f = s.formula || {};
112
- const w = f.weights || {};
113
- console.log(` 回本维度: ${dims.payback ?? '-'} (权重 ${w.payback ?? 40})`);
114
- console.log(` 涨价维度: ${dims.appreciation ?? '-'} (权重 ${w.appreciation ?? 30})`);
115
- console.log(` 流通维度: ${dims.liquidity ?? '-'} (权重 ${w.liquidity ?? 30})`);
116
- console.log(` 版本: ${f.version || '-'}`);
117
- }
118
-
119
- async function market(subArgs) {
120
- const sub = subArgs[0] || 'help';
121
- const rest = subArgs.slice(1);
122
- const asJson = rest.includes('--json');
123
- const usd = rest.includes('--usd');
124
- const args = rest.filter((a) => !a.startsWith('--'));
125
- const q = (p) => (usd ? '?currency=USD&' : '?') + 'pretty=1';
126
-
127
- if (sub === 'login') {
128
- const i = rest.indexOf('--token');
129
- const tok = i >= 0 ? rest[i + 1] : null;
130
- if (!tok) {
131
- console.error('用法: aixx market login --token <令牌>');
132
- process.exit(1);
133
- }
134
- const f = configFile();
135
- let conf = {};
136
- try { if (existsSync(f)) conf = JSON.parse(readFileSync(f, 'utf-8')); } catch (e) { conf = {}; }
137
- conf.marketToken = tok;
138
- mkdirSync(join(homedir(), '.aixx'), { recursive: true });
139
- writeFileSync(f, JSON.stringify(conf, null, 2));
140
- console.log('✓ 令牌已保存');
141
- return;
142
- }
143
-
144
- if (sub === 'tickers') {
145
- const d = await mFetch(`/api/v1/market/overview${usd ? '?currency=USD' : ''}`);
146
- if (asJson) { console.log(JSON.stringify(d, null, 2)); return; }
147
- console.log(`AIXX 算力行情 更新: ${d.generated} 标的: ${d.count} 币种: ${d.currency}\n`);
148
- for (const c of d.cards || []) printTicker(c, usd);
149
- return;
150
- }
151
-
152
- if (sub === 'ticker') {
153
- const sym = (args[0] || '').toUpperCase();
154
- if (!sym) { console.error('用法: aixx market ticker <SYMBOL>'); process.exit(1); }
155
- const d = await mFetch(`/api/v1/assets/${encodeURIComponent(sym)}${usd ? '?currency=USD' : ''}`);
156
- if (asJson) { console.log(JSON.stringify(d, null, 2)); return; }
157
- console.log(`AIXX 算力行情 更新: ${d.generated}`);
158
- printTicker(d.ticker, d.currency === 'USD');
159
- return;
160
- }
161
-
162
- if (sub === 'score') {
163
- const sym = (args[0] || '').toUpperCase();
164
- if (!sym) { console.error('用法: aixx market score <SYMBOL>'); process.exit(1); }
165
- const d = await mFetch(`/api/v1/assets/${encodeURIComponent(sym)}/aci`);
166
- if (asJson) { console.log(JSON.stringify(d, null, 2)); return; }
167
- printScore(d);
168
- return;
169
- }
170
-
171
- if (sub === 'history') {
172
- const sym = (args[0] || '').toUpperCase();
173
- const days = parseInt(args[1] || '30', 10) || 30;
174
- if (!sym) { console.error('用法: aixx market history <SYMBOL> [天数]'); process.exit(1); }
175
- const d = await mFetch(`/api/v1/assets/${encodeURIComponent(sym)}/history?days=${days}`);
176
- if (asJson) { console.log(JSON.stringify(d, null, 2)); return; }
177
- console.log(`AIXX 行情历史 ${d.symbol} 近 ${d.days} 天\n`);
178
- for (const p of d.points || []) {
179
- console.log(` ${p.as_of ?? p.generated} ${money(p.listing?.lo, false)} ~ ${money(p.listing?.hi, false)} 评分 ${p.score_raw ?? '-'}`);
180
- }
181
- return;
182
- }
183
-
184
- if (sub === 'detail') {
185
- const sym = (args[0] || '').toUpperCase();
186
- if (!sym) { console.error('用法: aixx market detail <SYMBOL> [--usd]'); process.exit(1); }
187
- const d = await mFetch(`/api/v1/market/bulk/${encodeURIComponent(sym)}${usd ? '?currency=USD' : ''}`);
188
- if (asJson) { console.log(JSON.stringify(d, null, 2)); return; }
189
- console.log(`AIXX 行情详情 ${d.symbol} 更新: ${d.generated} 币种: ${d.currency}\n`);
190
- printTicker(d.ticker, d.currency === 'USD');
191
- const pts = d.history?.points || [];
192
- console.log(` 近 ${d.history?.days ?? 0} 天走势${d.history?.truncated ? '(截断)' : ''}:`);
193
- for (const p of pts.slice(-10)) {
194
- console.log(` ${p.as_of ?? p.generated} 评分 ${p.score_raw ?? '-'}`);
195
- }
196
- const rr = d.rent_regions || [];
197
- if (rr.length) {
198
- console.log(`\n 地区租金参考 (USD/时):`);
199
- console.log(' ' + rr.map((r) => `${r.region} $${r.usd_hr}`).join(' · '));
200
- }
201
- return;
202
- }
203
-
204
- if (sub === 'consumer') {
205
- const sym = (args[0] || '').toLowerCase();
206
- if (!sym) { console.error('用法: aixx market consumer <型号,如 rtx5090>'); process.exit(1); }
207
- const d = await mFetch(`/api/v1/market/consumer/${encodeURIComponent(sym)}`);
208
- if (asJson) { console.log(JSON.stringify(d, null, 2)); return; }
209
- console.log(`AIXX 消费级行情 ${d.symbol} 更新: ${d.as_of || d.updated_at || '-'}\n`);
210
- const retail = d.retail || {};
211
- for (const [ch, v] of Object.entries(retail)) {
212
- if (!v || typeof v !== 'object') continue;
213
- console.log(` ${ch}: 中位 ${money(v.median, false)} 区间 ${money(v.min, false)} ~ ${money(v.max, false)} (${v.n || 0} 条)`);
214
- }
215
- const rr = d.rent_regions || [];
216
- if (rr.length) {
217
- console.log(`\n 地区租金: ${rr.map((r) => `${r.region || r[0]} ${r.usd_hr || r[1]}`).join(' · ')}`);
218
- }
219
- return;
220
- }
221
-
222
- console.log('用法: aixx market <子命令>');
223
- console.log(' login --token <T> 保存访问令牌');
224
- console.log(' tickers [--usd] [--json] 全标的快照');
225
- console.log(' ticker <SYMBOL> 单标的快照');
226
- console.log(' score <SYMBOL> 标的记分卡');
227
- console.log(' history <SYMBOL> [天数] 历史点位');
228
- console.log(' detail <SYMBOL> [--usd] 大宗详情数据包');
229
- console.log(' consumer <型号> 消费级详情数据包');
230
- }
231
-
232
- export { market };
1
+ /**
2
+ * AIXX CLI - market 命令(GPU 算力行情)
3
+ *
4
+ * 1121 行情首页窗拍B:六命令重映射到生产端点(bulk/consumer族·四轮找茬淬炼)。
5
+ * tickers → GET /api/v1/market/bulk 全标的快照(40SKU锚价)
6
+ * ticker → bulk + 客户端过滤 单标的
7
+ * detail → bulk 过滤全字段 大宗详情
8
+ * consumer→ GET /api/v1/market/consumer 消费级租金带
9
+ * score/history → ACI记分卡/历史点位=卡194内测端点候上生产(行情首页窗拍B流程)——如实报未上生产
10
+ *
11
+ * 凭证兼容序: AIXX_MARKET_TOKEN → config marketToken/aciBetaToken → AIXX_API_KEY → config AIXX_API_KEY → account.json apiKey
12
+ */
13
+
14
+ import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
15
+ import { join } from 'path';
16
+ import { homedir } from 'os';
17
+
18
+ const BASE = process.env.AIXX_MARKET_BASE_URL || 'https://aixx.ai';
19
+ const FETCH_TIMEOUT = 15000;
20
+
21
+ function configFile() {
22
+ return join(homedir(), '.aixx', 'config.json');
23
+ }
24
+
25
+ function loadToken() {
26
+ if (process.env.AIXX_MARKET_TOKEN) return process.env.AIXX_MARKET_TOKEN;
27
+ try {
28
+ const f = configFile();
29
+ if (existsSync(f)) {
30
+ const conf = JSON.parse(readFileSync(f, 'utf-8'));
31
+ if (conf.marketToken) return conf.marketToken;
32
+ if (conf.aciBetaToken) return conf.aciBetaToken;
33
+ if (conf.AIXX_API_KEY) return conf.AIXX_API_KEY;
34
+ }
35
+ } catch (e) { /* 走未配置路径 */ }
36
+ if (process.env.AIXX_API_KEY) return process.env.AIXX_API_KEY;
37
+ try {
38
+ const acc = join(homedir(), '.aixx', 'account.json');
39
+ if (existsSync(acc)) {
40
+ const a = JSON.parse(readFileSync(acc, 'utf-8'));
41
+ if (a.apiKey) return a.apiKey;
42
+ }
43
+ } catch (e) { /* 走未配置路径 */ }
44
+ return null;
45
+ }
46
+
47
+ async function mFetch(path) {
48
+ const token = loadToken();
49
+ if (!token) {
50
+ console.error('尚未配置访问令牌。');
51
+ console.error('开通: https://www.aixx.vip | 或设置环境变量 AIXX_API_KEY');
52
+ process.exit(1);
53
+ }
54
+ const ctrl = new AbortController();
55
+ const timer = setTimeout(() => ctrl.abort(), FETCH_TIMEOUT);
56
+ try {
57
+ const res = await fetch(`${BASE}${path}`, {
58
+ headers: { Authorization: `Bearer ${token}` },
59
+ signal: ctrl.signal,
60
+ });
61
+ if (res.status === 403) {
62
+ console.error('当前订阅档位不包含该数据 —— 如需升级请访问 aixx.ai 或联系客服');
63
+ process.exit(1);
64
+ }
65
+ if (res.status === 404) {
66
+ console.error('未查询到该数据(请核对标的代码)');
67
+ process.exit(1);
68
+ }
69
+ if (res.status === 401) {
70
+ console.error('令牌无效或已过期,请重新登录: aixx market login --token <T>');
71
+ process.exit(1);
72
+ }
73
+ if (!res.ok) {
74
+ console.error(`服务暂不可用 (${res.status}),请稍后重试`);
75
+ process.exit(1);
76
+ }
77
+ return await res.json();
78
+ } catch (err) {
79
+ console.error(err?.name === 'AbortError' || err?.name === 'TimeoutError'
80
+ ? '连接超时,请检查网络后重试' : '网络异常,请稍后重试');
81
+ process.exit(1);
82
+ } finally {
83
+ clearTimeout(timer);
84
+ }
85
+ }
86
+
87
+ function fmtCnyWan(v) {
88
+ if (typeof v !== 'number') return '-';
89
+ return v >= 10000 ? `¥${(v / 10000).toFixed(1)}万` : `¥${v.toLocaleString()}`;
90
+ }
91
+
92
+ function fmtUsd(v) {
93
+ if (typeof v !== 'number') return '-';
94
+ return v >= 10000 ? `$${(v / 10000).toFixed(1)}万` : `$${v.toLocaleString()}`;
95
+ }
96
+
97
+ function printBulkItem(it, usd) {
98
+ const price = usd ? fmtUsd(it.price_usd) : fmtCnyWan(it.price_cny);
99
+ console.log(` ${it.subject || it.sku} (${it.sku})`);
100
+ console.log(` 锚价: ${price}${usd ? '' : ' | ' + fmtUsd(it.price_usd)}`);
101
+ console.log(` 在售: ${it.units_on_sale ?? '-'} 台 采购热度: ${it.buyer_heat ?? '-'} 售出中位: ${it.sold_median_days ?? '-'} 天`);
102
+ if (it.premium_note) console.log(` 口径: ${it.premium_note}`);
103
+ console.log('');
104
+ }
105
+
106
+ function filterItems(items, kw) {
107
+ const k = String(kw || '').toLowerCase();
108
+ return items.filter((it) =>
109
+ String(it.sku || '').toLowerCase().includes(k) ||
110
+ String(it.subject || '').toLowerCase().includes(k) ||
111
+ String(it.subject_en || '').toLowerCase().includes(k));
112
+ }
113
+
114
+ async function market(subArgs) {
115
+ const sub = subArgs[0] || 'help';
116
+ const rest = subArgs.slice(1);
117
+ const asJson = rest.includes('--json');
118
+ const usd = rest.includes('--usd');
119
+ const args = rest.filter((a) => !a.startsWith('--'));
120
+
121
+ if (sub === 'login') {
122
+ const i = rest.indexOf('--token');
123
+ const tok = i >= 0 ? rest[i + 1] : null;
124
+ if (!tok) {
125
+ console.error('用法: aixx market login --token <令牌>');
126
+ process.exit(1);
127
+ }
128
+ const f = configFile();
129
+ let conf = {};
130
+ try { if (existsSync(f)) conf = JSON.parse(readFileSync(f, 'utf-8')); } catch (e) { conf = {}; }
131
+ conf.marketToken = tok;
132
+ mkdirSync(join(homedir(), '.aixx'), { recursive: true });
133
+ writeFileSync(f, JSON.stringify(conf, null, 2));
134
+ console.log('✓ 令牌已保存');
135
+ return;
136
+ }
137
+
138
+ if (sub === 'tickers') {
139
+ const d = await mFetch('/api/v1/market/bulk');
140
+ const items = d?.data?.items || [];
141
+ if (asJson) { console.log(JSON.stringify(d, null, 2)); return; }
142
+ console.log(`AIXX 大宗算力行情 更新: ${d?.data?.generated_at || '-'} 标的: ${items.length}\n`);
143
+ for (const it of items) printBulkItem(it, usd);
144
+ return;
145
+ }
146
+
147
+ if (sub === 'ticker' || sub === 'detail') {
148
+ const sym = (args[0] || '').trim();
149
+ if (!sym) { console.error(`用法: aixx market ${sub} <标的,如 b300>`); process.exit(1); }
150
+ const d = await mFetch('/api/v1/market/bulk');
151
+ const items = filterItems(d?.data?.items || [], sym);
152
+ if (asJson) { console.log(JSON.stringify(sub === 'detail' ? items : items[0] || {}, null, 2)); return; }
153
+ if (items.length === 0) {
154
+ console.log(`未找到与"${sym}"匹配的标的。`);
155
+ console.log('用 aixx market tickers 看全部标的代码。');
156
+ return;
157
+ }
158
+ console.log(`AIXX 大宗行情 · ${sym} 匹配 ${items.length} 条 更新: ${d?.data?.generated_at || '-'}\n`);
159
+ for (const it of items) printBulkItem(it, usd);
160
+ return;
161
+ }
162
+
163
+ if (sub === 'score' || sub === 'history') {
164
+ const nameZh = sub === 'score' ? 'ACI记分卡' : '历史点位(K线)';
165
+ console.log(`📊 ${nameZh}端点为ACI内测版(卡194),候行情首页窗质检上生产后开放。`);
166
+ console.log(' 现在可用的替代:');
167
+ console.log(' - aixx market ticker <标的> 锚价/在售/热度/售出中位');
168
+ console.log(' - aixx market consumer <型号> 消费级全球租金带');
169
+ console.log(' - aixx status 账户与数据API额度全貌');
170
+ return;
171
+ }
172
+
173
+ if (sub === 'consumer') {
174
+ const sym = (args[0] || '').toLowerCase();
175
+ if (!sym) { console.error('用法: aixx market consumer <型号,如 4090>'); process.exit(1); }
176
+ const d = await mFetch(`/api/v1/market/consumer?symbol=${encodeURIComponent(sym)}`);
177
+ const syms = d?.data?.symbols || [];
178
+ if (asJson) { console.log(JSON.stringify(d, null, 2)); return; }
179
+ if (syms.length === 0) {
180
+ console.log(`未找到与"${sym}"匹配的消费级型号。`);
181
+ return;
182
+ }
183
+ console.log(`AIXX 消费级行情 更新: ${d?.data?.updated_at || '-'} 单位: ${d?.data?.unit || '-'}\n`);
184
+ for (const s of syms) {
185
+ console.log(` ${s.symbol}:`);
186
+ for (const r of s.rows || []) {
187
+ const band = Array.isArray(r.band) ? ` 区间 $${r.band[0]}~$${r.band[1]}` : '';
188
+ console.log(` ${r.region || r.region_en}: $${r.usd_per_hr}/台·时${band}${r.samples ? ` (${r.samples} 采样)` : ''}`);
189
+ }
190
+ console.log('');
191
+ }
192
+ return;
193
+ }
194
+
195
+ // help / 未知子命令
196
+ console.log('用法: aixx market <子命令>');
197
+ console.log(' tickers [--usd] [--json] 全标的快照(40SKU锚价)');
198
+ console.log(' ticker <标的> [--usd] 单标的(如 b300 / h200)');
199
+ console.log(' detail <标的> [--usd] 大宗详情(含口径注)');
200
+ console.log(' consumer <型号> 消费级全球租金带(如 4090)');
201
+ console.log(' score <标的> ACI记分卡(内测候上生产)');
202
+ console.log(' history <标的> [天数] 历史点位(内测候上生产)');
203
+ console.log(' login --token <T> 保存访问令牌(兼容项,标准key即可用)');
204
+ }
205
+
206
+ export { market };