添加汇率 scraper
This commit is contained in:
@@ -4,3 +4,16 @@
|
||||
- 数据主要是放各种经济数据和图表。
|
||||
- 策略是放按照经济理论组织的相关数据和图表的对比。
|
||||
|
||||
|
||||
## 爬虫
|
||||
- 基于 bun 的定时任务
|
||||
- 统一获取接口
|
||||
- 统一爬取接口
|
||||
```
|
||||
async function fetch(startDate = null, endDate = null)
|
||||
async function trigger(startDate = null, endDate = null)
|
||||
```
|
||||
不传递startDate和endDate,默认,默认获取最近30天的数据。
|
||||
|
||||
fecher 负责从目标网站获取原始数据
|
||||
scraper 负责检查数据库中的数据是否完整,调用 fecher 将数据存储到数据库。
|
||||
|
||||
Reference in New Issue
Block a user