Skip to content

xiongdashan/crawlrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

定时抓取汇率

设定任务:

从xe.com上抓取指定的汇率,并保存在数据库中,同时把抓取的所有币种的汇率发送到指定邮箱

提供Api

查询汇率,返回最新的抓取记录

GET 

http://localhost/currency/:convert

convert: 当前币种-目标币种,如:

http://127.0.0.1:1000/currency/CNY-HKD

返回

{
    "Convert": "CNY-HKD", //转换的币种
    "Rate": 1.17302,//汇率
    "Date": "2018-07-15" //汇率对应日期
}

About

从xe.com抓取汇率并提供Api查询接口

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages