Giter Club home page Giter Club logo

Comments (13)

gm1972 avatar gm1972 commented on June 5, 2024

It looks like if you in the file: \gekko-master\exchanges\cexio.js

Tries to use the value: "- parseFloat(data.GHS.orders);" but that value does not exist in the json list so if I just ignore it it seems to work

// assets = parseFloat(data.GHS.available) - parseFloat(data.GHS.orders);
assets = parseFloat(data.GHS.available);

from gekko.

levitt avatar levitt commented on June 5, 2024

Where would I place this
assets = parseFloat(data.GHS.available) - parseFloat(data.GHS.orders);
assets = parseFloat(data.GHS.available);

do I include the // or no?

from gekko.

levitt avatar levitt commented on June 5, 2024

is this the error that you get?

#59

from gekko.

gm1972 avatar gm1972 commented on June 5, 2024

The error I get from the original code is that it can't pull the GHS balance from cex.io:
2013-12-04 14:23:13 (INFO): BTC: 0.00000145
2013-12-04 14:23:13 (INFO): GHS: NaN

GHS = NaN

so if I replace the row "assets = parseFloat(data.GHS.available) - parseFloat(data.GHS.orders);" with "assets = parseFloat(data.GHS.available);" it seems to work (the // is to mark that row as a comment)

But it would be better if somebody that works with the code examined it to see that that was the problem... I'm just guessing...

from gekko.

levitt avatar levitt commented on June 5, 2024

hmm... Your logs show that

2013-12-04 14:23:07 (DEBUG): getting balance & fee from cex.io

you got pass the part that Im getting a error at. Hmm... Any idea whats wrong with mines?

from gekko.

gm1972 avatar gm1972 commented on June 5, 2024

No idee, sorry.

from gekko.

levitt avatar levitt commented on June 5, 2024

I have a question, for the username part

username: 0, // your username, only fill in when using bitstamp or cexio

I would fill it like this correct? This is what you did?

username: 1, // levitt, only fill in when using bitstamp or cexio

from gekko.

gm1972 avatar gm1972 commented on June 5, 2024

username: 'username', // your username, only fill in when using bitstamp or cexio

from gekko.

kuzetsa avatar kuzetsa commented on June 5, 2024

I'm trying to come up with a bugfix for this issue right now

... My planned patches to the handling of cexio exchange should also have the added benefit of the gekko portfolio manager code having a more current BTC balance (as a result of BTC withdraw, deposit, mining new coin with the GHS, etc.)

If anyone else is working on this code right now (like this week I mean) I'd love to know.

from gekko.

levitt avatar levitt commented on June 5, 2024

Would your planned patches happen to fix my issue, #59 :(

from gekko.

kuzetsa avatar kuzetsa commented on June 5, 2024

@levitt I'm not sure?

I've never seen #59 or related issues with my own gekko installation, but I'll add leave a comment on that issue too since I have exactly one thought on the issue you're describing, but it doesn't relate to the behavior in this issue so it would be off-topic.

from gekko.

Devouring avatar Devouring commented on June 5, 2024

#84

i fixed now it should display the value even if there is no order

from gekko.

askmike avatar askmike commented on June 5, 2024

A new version of Gekko (in development, need help testing) that holds a local database of all historical data. If you guys can help me test / figure it out we can have this version as soon as possible.

More info here.

from gekko.

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.