#Interface address
https://api.it120.cc/**gooking**/forex/rate?fromCode=**CNY**&toCode=**USD**
Please replace the red googling with your own exclusive domain name:
["**What is an exclusive domain name? **》](https://www.yuque.com/apifm/doc/qr6l4m)
The blue one is the corresponding currency code. For details, please see the currency code table below.
# Interface description
This interface can be requested using the GET method. You can directly copy the address to the browser to open it to view the effect.
As in the above example, the query is about the exchange rate relationship between RMB (CNY) and US dollars (USD), that is, how many RMB (CNY) is equal to 1 US dollar (USD)
#Interface return
```json
{
"code": 0,
"data": {
"rate": 6.5749,
"toCode": 657.49,
"fromCode": 100
},
"msg": "success"
}
```
+ code = 0 indicates that the interface query is successful
+ rate = 6.5749 means that currently 1 US dollar is equal to 6.5769 RMB
+ fromCode is the current price of RMB in the foreign exchange market
+ toCode is the current price of US dollars in the foreign exchange market
# Currency code table
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