GithubHelp home page GithubHelp logo

Comments (17)

thrasher- avatar thrasher- commented on May 21, 2024

Hey @kempeng, yeah this is definitely something which we plan to address. So far our focus has been using the default variable types supplied with the Golang standard library but will eventually use either the Decimal package or use our own implementation.

from gocryptotrader.

kempeng avatar kempeng commented on May 21, 2024

I could do some work using Decimal if you want?

from gocryptotrader.

thrasher- avatar thrasher- commented on May 21, 2024

That would be awesome if you could! Thanks in advance :)

from gocryptotrader.

SamyGhannad avatar SamyGhannad commented on May 21, 2024

@kempeng I'd like to work on this one, Did you make any progress?

from gocryptotrader.

kempeng avatar kempeng commented on May 21, 2024

starting to make some progress. Investigated the approach first. Propose to use shopsping's decimal package. Will implement it in a forked version

from gocryptotrader.

kempeng avatar kempeng commented on May 21, 2024

@SamyGhannad , thank you for offering your help. I have forked the full source to kempeng/gocryptotrader, and now have a version in which I converted most of the float64's into decimal.Decimal's which compiles main.go.
I would appreciate it you can help me test this version and help me finish it further.

from gocryptotrader.

kempeng avatar kempeng commented on May 21, 2024

@thrasher-, if you have a moment, please take a look at my conversion of float64’s to decimals. I would be interested in your view how to integrate this back in the master code at some point?

from gocryptotrader.

thrasher- avatar thrasher- commented on May 21, 2024

Great work @kempeng! Will check out your branch and test it. Merging it will be straight forward to master as it will be just a matter of updating the dependencies and imports. I would also add a script to travis which checks to see if any submitted PR's contain float64's moving forward and complaining if it finds them.

from gocryptotrader.

kempeng avatar kempeng commented on May 21, 2024

hi @thrasher-, perhaps we can review what I have done & choices I made (not ALL float64's are converted) offline. Also, I only touch the core libraries, not for example the web service javascript codes. Not sure if I missed large chunks of code by just focussing on compiling main.go ?

from gocryptotrader.

shazbert avatar shazbert commented on May 21, 2024

@kempeng LGTM well done on the conversion!

from gocryptotrader.

kempeng avatar kempeng commented on May 21, 2024

what is the best way to get my forked version back into the master?

from gocryptotrader.

shazbert avatar shazbert commented on May 21, 2024

@kempeng rebase and open a PR on the branch that has these updates then we can merge it ourselves if its too complicated

from gocryptotrader.

kempeng avatar kempeng commented on May 21, 2024

@shazbert, thanks for the offer to help: I will need some help to do this. What is the first step I need to take?

from gocryptotrader.

shazbert avatar shazbert commented on May 21, 2024

@kempeng Are you on our Slack it will be easier to talk there, if so what is your username so I can PM you?

from gocryptotrader.

kempeng avatar kempeng commented on May 21, 2024

Yes, username Geert

from gocryptotrader.

Rots avatar Rots commented on May 21, 2024

What's the state on this? @kempeng, would you create a pull request?

from gocryptotrader.

thrasher- avatar thrasher- commented on May 21, 2024

Will create a PR for this shortly

from gocryptotrader.

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.