longbridge-fx
Original:🇺🇸 English
Translated
Foreign-exchange rates for all currencies supported by Longbridge Securities — HKD / USD / CNY / SGD / EUR / GBP / JPY / etc. Use to convert multi-currency holdings, normalise account values, or quote a cross-rate. Light-touch utility skill, no login required. Triggers: "汇率", "美元兑港币", "人民币兑美元", "港币换美金", "今天汇率", "USD HKD", "CNY USD", "外汇", "匯率", "美元兌港幣", "人民幣兌美元", "港幣換美金", "今天匯率", "外匯", "exchange rate", "fx rate", "currency conversion", "USD to HKD", "HKD to USD", "CNY to USD", "JPY to USD", "convert HKD to USD", "1 USD in HKD".
14installs
Sourcelongbridge/skills
Added on
NPX Install
npx skill4agent add longbridge/skills longbridge-fxTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →longbridge-fx
Foreign-exchange rates for all currencies Longbridge supports.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
When to use
- "今天美元兑港币多少", "USD to HKD today" → run, look up row.
USD/HKD - "100 港币能换多少美金" → run, compute (or
100 / (USD/HKD), depending on the row's quote convention).100 * (HKD/USD) - "我组合里 HKD / USD / CNY 都有,统一换算成 USD" → run once, normalise each currency leg.
- "人民币兑美元 / CNH vs CNY" → check whether the row is or
CNY/USD; surface the symbol verbatim.CNH/USD
For cross-rates not directly listed, derive from two USD-quoted rows (e.g. ).
EUR/JPY = (EUR/USD) / (JPY/USD)Subcommand
Single CLI command, no arguments beyond format. Runif unsure of current flags.longbridge exchange-rate --help
bash
longbridge exchange-rate --format jsonThere are no per-currency filters — the command returns the full table; pick the row(s) you need from the JSON.
Workflow
- Run .
longbridge exchange-rate --format json - Find the row matching the user's pair (mind the quote convention: is "1 BASE = N QUOTE").
BASE/QUOTE - If user wants a specific amount, do the arithmetic inline; show both rate and computed amount.
- If the user's pair isn't directly quoted, derive via USD: .
A/B = (A/USD) / (B/USD) - Cite source as Longbridge Securities / 数据来源:长桥证券 / 數據來源:長橋證券, plus the as-of timestamp from the response if provided.
CLI examples
bash
# Full rate table
longbridge exchange-rate --format jsonThat's it — there's no symbol argument. Filter on the JSON client-side.
Output
JSON array, one row per supported pair. Typical fields:
| Field | Meaning |
|---|---|
| e.g. |
| numeric exchange rate |
| as-of time |
Render the relevant row(s) only; don't dump the full table unless the user asked for it.
Error handling
| Situation | LLM response |
|---|---|
Shell | Fall back to MCP if configured; otherwise tell the user to install longbridge-terminal. |
| Empty array | Unusual — relay verbatim and tell the user to retry shortly. |
| Pair not in response | "Longbridge doesn't quote |
| Other stderr | Surface verbatim. |
MCP fallback
| CLI subcommand | MCP tool |
|---|---|
| |
Related skills
| User asks | Route to |
|---|---|
| Multi-currency holdings normalised to one base | |
| Account-level performance with currency exposure | |
| Statement export with FX legs | |
| Stock quote in native currency | |
File layout
longbridge-fx/
└── SKILL.md # prompt-only, no scripts/