1.2.0 • Published 12 months ago

stockjs v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
12 months ago

stockjs 上櫃公司股價通知小幫手

_080614_123140_am

查詢上櫃公司當日股價,並透過 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

1.2.0

12 months ago

1.1.1

6 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago