Giter Site home page Giter Site logo

stocks's People

Contributors

martinshkreli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stocks's Issues

TypeError: Cannot read properties of undefined (reading 'toFixed')

Hello,

I am trying to understand why i am getting the errors

/Users/bipulmainali/stocks/stocks.js:37 process.stdout.write(\x1b[37m${quote.price.toFixed(2)}${randchars[Math.floor(Math.random() * 10)]}`);
^

TypeError: Cannot read properties of undefined (reading 'toFixed')
at Timeout.grab [as _onTimeout] (/Users/bipulmainali/stocks/stocks.js:37:49)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.0.0`

my ticker list is :

module.exports = [ 'BSX', 'EW', 'ABT', 'ISRG', 'MRNA', 'AMGN', 'LLY', 'NVO', 'PFE', 'MORF', 'PRTA', 'JNJ', 'MDT', 'SYK', 'BMY', 'GILD', 'VRTX', 'REGN', 'BIIB', 'TMO', 'ALGN', 'ILMN', 'ZBH', 'INCY', 'ALXN', 'DXCM', 'HOLX', 'RMD', 'VAR', 'EDIT', 'NTLA', 'BEAM', 'BLUE', 'IOVA', 'ARVN', 'SGMO', 'MRTX', 'SRNE', 'ATRA', 'ARWR', 'AKBA', 'FGEN', 'RVNC' ]

How to use

Hi,

I am a total brick when it comes to this coding stuff, but would like to use the terminal. Could someone do a step by step tutorial on how to get this thing up and running?

Thanks and all the best, Donald

tutorial

any tutorial /instruction you can point us dummies to that will show how to run your programme once downloaded? chrome/penguin

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.