stockjs

1.2.0 • Public • Published

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

/stockjs/

    Package Sidebar

    Install

    npm i stockjs

    Weekly Downloads

    26

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    9.3 kB

    Total Files

    12

    Last publish

    Collaborators

    • imzack