Coder Social home page Coder Social logo

Comments (3)

algazarra avatar algazarra commented on August 11, 2024

Considering a price change alarm, how often does boilr ask for last price?

from boilr.

dllud avatar dllud commented on August 11, 2024

After some discussion, I and @andrefbsantos concluded that compensating for the incurred delay, i.e. turning the change into an average change, would be a bad failsafe. Instead Boilr will show the elapsed time when a Price Change alarm fires.

Giving an example. Bob sets a Price Change alarm for pair FOO/BAR in BazExchange with a 10% change and a 10 minutes time frame. His smartphone looses internet connection and can only fetch data 20 minutes later. Meanwhile, FOO/BAR had a 12% change during the first 10 minutes and a 6% change in the following ten.

When Bob phone finally connects it detects a 18% change. If Boilr was calculating averages it would see a 9% change for each 10 minutes and no alarm would fire. However, the retrieved data hints to the possibility of a > 10% change during some 10 min period while the phone was offline. Therefore we prefer to fire the alarm and show something like this:

FOO/BAR had 18% change in BazExchange during 20 minutes.

As @andrefbsantos puts it

Giving useless information is better than omitting information that might be useful.

from boilr.

dllud avatar dllud commented on August 11, 2024

@cicardia Boilr asks for last price after the user-defined time frame has elapsed. For instance, if you set the time frame for 1 day, Boilr only fetches the last price once per day. You could infer this from the first comment.

from boilr.

Related Issues (20)

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.