crawlrate

command module
v0.0.0-...-bf640e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2018 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

定时抓取汇率

设定任务:

从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" //汇率对应日期
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL