1.2.0 • Published 12 months ago
stockjs v1.2.0
stockjs 上櫃公司股價通知小幫手
查詢上櫃公司當日股價,並透過 mandrillapp.com SendGrid 送出郵件通知
Setup
- Install
npm install -g stockjs
- Get a SendGrid api key Link
- Config your crontab
CLI Usage
FROM_EMAIL=shih@yulun.me \
TO=xxx@mail.com,yyy@mail.com \
SENDGRID_API_KEY=YOUR_KEY \
stockjs
API
.stock.getTodayPrice(stockCode, callback(stackObj))
.sendmail(stockObject, config, callback(err, result))
Data Source
TODO
- Multiple stocks at once
- Customize mail theme
- Using more generic api to get price
- ...
License
MIT