Code Monkey home page Code Monkey logo

Comments (5)

sanket-buyhatke avatar sanket-buyhatke commented on June 27, 2024

hi @sukhwant280, the quantity here needs to refactored to 10^-8 decimals (currently it is displayed in sats).

e.g

data = {'rate': 2663113.45, 'btc': 87190000}
vol = data['btc'] * (10 ** -8)
print(vol)

output:

0.8719

from bitbnspy.

sukhwant280 avatar sukhwant280 commented on June 27, 2024

should not this be already factored in the api.. as there are so many other coins and will be challenging to resolve for these specific coins?

Enhancement request can we take and if taking, please provide eta.

thanks
sukhwant

from bitbnspy.

sanket-buyhatke avatar sanket-buyhatke commented on June 27, 2024

AFAIK, only btc

noted. (as changing it on the backend could disrupt the flow for those who have implemented the refactoring, it will take a while to roll out the change)

would suggest implementing client side change for now.

from bitbnspy.

sukhwant280 avatar sukhwant280 commented on June 27, 2024

noted. just to confirm, BTC is only coin to be refactored?

please close the ticket after response

from bitbnspy.

sanket-buyhatke avatar sanket-buyhatke commented on June 27, 2024

yes

from bitbnspy.

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.