Giter VIP home page Giter VIP logo

twse's Introduction

TWSE

travis codecov code style: prettier

這是一個非官方的 TWSE 函式庫集合,主要分為以下幾個函式庫

twse

npm

負責拉取即時股價、上市/上櫃資訊。README

twse-cli

npm

提供 cli 介面顯示即時股價、到價/起漲桌面通知。README

twse's People

Contributors

kaddopur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

taminotsai

twse's Issues

add new feature to show latest status after adding stock

steps to reduce:

  1. choose Symbols
  2. enter Add/remove your symbol page, choose Add new
  3. change to Enter new symbol page, enter any number or character of certain stock
  4. choose the right stock and click enter

Actual Result:
go back directly to Add/remove symbol page, new symbol will be added in the list

Expected Result:
click enter, the latest status will be shown on the page of Enter new symbol to verify it's the right symbol we'd like to add to symbol list,
then go back to Add/remove symbol page

exception when notifier not exist

In twse-cli - migration.js, the notifiers would be undefined when notifier not exist and lead to Object.entries(notifiers) throw exception.

const { notifier = {}, notifier: { notifiers } = {} } = state;

Error Log

  var newNotifiers = Object.entries(notifiers).reduce(function (acc, _ref) {
                            ^

TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at migrateConditonAddValueField (/usr/local/lib/node_modules/twse-cli/dist/migrations.js:19:29)
    at /usr/local/lib/node_modules/twse-cli/dist/migrations.js:52:12
    at Array.reduce (<anonymous>)
    at exports.default (/usr/local/lib/node_modules/twse-cli/dist/migrations.js:51:21)
    at Object.<anonymous> (/usr/local/lib/node_modules/twse-cli/dist/store.js:32:45)
    at Module._compile (module.js:649:30)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)

some way go back from Enter new symbol to Add/remove new symbol page

Step to reproduce:

  1. choose Symbols
  2. change to Add/remove you symbols page, choose Add new
  3. change to Enter new symbol page

Actual Result:
There is no way back to previous Add/remove Symbols page in Enter new symbol page.
If user does not want to add any symbol at this time, then the only way to exit is to close this problem to restart.

Expect Result:
Add some ways (e.g. enter exit string) to go back to Add/remove Symbols page

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.