Loading…

Exchange rate query interface

["Online Walkthrough"](https://bi.cool/project/m5vDU78/embed?bi-active-file=ForexRate.vue) ```javascript WXAPI.forexRate(fromCode, toCode) ``` fromCode and toCode are the numbers of the two specified currencies, as follows: USD: United States dollar CNY: Renminbi GBP: British Pound EUR: Euro HKD: Hong Kong dollar MOP: Macau Pataca JPY: Japanese yen CAD: Canadian dollar AUD: Australian dollar SGD: Singapore Dollar KRW: South Korean Won PHP: Philippine Peso THB: Thai Baht CHF: Swiss franc NZD: New Zealand Dollar DKK: Danish Krone NOK:Norwegian Krona SEK: Swedish Krona RUB: Ruble MYR: Ringgit ZAR: South African Rand Example: fromCode = CNY toCode=USD ```json { "code": 0, "data": { "rate": 6.3757, "toCode": 637.57, "fromCode": 100 }, "msg": "success" } ``` + rate exchange rate, in this example the exchange rate from US dollars to RMB is 6.3757 + fromCode current foreign exchange price of RMB + toCode current foreign exchange price of US dollars