Git Product home page Git Product logo

node-coinmarketcap's People

Contributors

aex12 avatar mattisony avatar murphyalexandre avatar seanrobb avatar

Stargazers

 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

node-coinmarketcap's Issues

Execute the alert only once

Hey first of all thank you for the brilliant library. I was testing your example and came across this issue

PS C:\Users\vivz\Desktop> node test
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency
BTC price is greater than 4000 of your defined currency

Is it possible to have the alert just fire once. Also is it possible to have multiple greater or lesser alerts on the same currency? Thanks

UPDATE 1
I am modifying your code to add the ability to alert only once

Hello Aex12

I am trying to used your stuff for 0.10.48 nvm node.. can you help me? I can't get it working, maybe you can make support for it?

Peace!

Not all tickers are working

coinmarketcap.on("block", coin =>

I get error
`undefined:1256
"p
^

SyntaxError: Unexpected token p in JSON at position 39941`

How to handle errors

This isn't a typical nodeback library where the error is available in the callback, how can I handle errors?

Syntax Errors

Randomly get different Syntax errors, here are 4 for example:

`undefined:17439``

    "percent_chang
     ^

 SyntaxError: Unexpected token p in JSON at position `552520'

 undefined:994
    "price_btc": "0.00012152


 SyntaxError: Unexpected end of JSON input

 undefined:16426
    "name": "Cr


 SyntaxError: Unexpected end of JSON input

 undefined:12862
    "market_c
     ^

 SyntaxError: Unexpected token m in JSON at position 408253

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.