Coder Social home page Coder Social logo

Comments (4)

nicolasburtey avatar nicolasburtey commented on July 19, 2024 1

Yes, but the maximum duration should be one month or maybe six months ? One year might involve too much calculation at runtime.

this has less to do with how many months, but more how many transactions there is. I think we should not have a limit here to get started, but rather see how this behave and then adjust as needed.

If we want a total amount graph, then we will need data points equal to what we get from the btcPriceList query to match the timestamp and get the dollar price.

good point. maybe to get started, we can show the balance of the bitcoin wallet in bitcoin, and the stablesats balance in dollar, and see how this feels, and then can iterate from it.

from galoy.

siddhart1o1 avatar siddhart1o1 commented on July 19, 2024

Should we stick to the one-month (max) graph due to too much calculation, as we don't have balance at time of transaction? Also, for the total amount graph, we might need to convert the balance to a common currency, so calculation will be required there as well + also BTC movement calculation?

from galoy.

nicolasburtey avatar nicolasburtey commented on July 19, 2024

Should we stick to the one-month (max) graph due to too much calculation, as we don't have balance at time of transaction?

I think we should show balance over time, and calculate it dynamically.
we should start by doing some unit testing here to test the behavior

I think it's better to get granular option from the user. I don't think month only is good. I think someone should be able to choose the day they want.

Also, for the total amount graph, we might need to convert the balance to a common currency, so calculation will be required there as well + also BTC movement calculation?

I'm not too sure. I would suggest starting with dollar, and when we have something we like we can iterate on having more currencies

from galoy.

siddhart1o1 avatar siddhart1o1 commented on July 19, 2024

I think it's better to get granular option from the user. I don't think month only is good. I think someone should be able to choose the day they want.or

Yes, but the maximum duration should be one month or maybe six months ? One year might involve too much calculation at runtime.

If we want a total amount graph, then we will need data points equal to what we get from the btcPriceList query to match the timestamp and get the dollar price.

from galoy.

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.