Chinese Bank Forex Rates
Use this skill when you need the latest forex rates for a supported Chinese bank and one or more currencies.
Inputs
bank: bank name or aliascurrencies: one or more currency names or ISO codes
Output
The script returns JSON with:
bankNameupdateTimein ISO 8601 format when normalization is possiblerates: list of objects withcurrencyName,buyPrice, andsellPrice
Prices are returned as strings to preserve bank-published precision. If the preferred value and configured fallback are both empty, the field is returned as an empty string.
Supported Banks
- 招商银行
- 中国银行
- 中国农业银行
- 中国工商银行
- 中国建设银行
- 交通银行
Price Selection Rule
When a bank exposes explicit 现汇 and 现钞 columns, the implementation uses:
buyPrice: prefer现汇买入价, then现钞买入价sellPrice: prefer现汇卖出价, then现钞卖出价
If a bank only publishes one buy and one sell price, the published pair is used directly.
Invocation
From this skill directory:
npm start -- --bank "中国银行" --currencies 美元 EUR