-
Notifications
You must be signed in to change notification settings - Fork 4k
Gekko can't pull GHS balance from cex.io #63
Comments
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); |
Where would I place this do I include the // or no? |
is this the error that you get? |
The error I get from the original code is that it can't pull the GHS balance from cex.io: 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... |
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? |
No idee, sorry. |
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 |
username: 'username', // your username, only fill in when using bitstamp or cexio |
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. |
Would your planned patches happen to fix my issue, #59 :( |
i fixed now it should display the value even if there is no order |
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. |
Trying to get Gekko to auto trade but it seems to be a problem when it tries to get the GHS balance from cex.io and thous it can't sell GHS.
BTC saldo and buying works though...
When starting:
2013-12-04 14:23:07 (INFO): Using normal settings to monitor the live market
2013-12-04 14:23:07 (INFO): Profit reporter active on simulated balance
2013-12-04 14:23:07 (DEBUG): getting balance & fee from cex.io
2013-12-04 14:23:13 (INFO): trading at cex.io ACTIVE
2013-12-04 14:23:13 (INFO): cex.io trading fee will be: 0%
2013-12-04 14:23:13 (INFO): current cex.io portfolio:
2013-12-04 14:23:13 (INFO): BTC: 0.00000145
2013-12-04 14:23:13 (INFO): GHS: NaN
2013-12-04 14:23:13 (INFO): Calculating EMA on historical data...
2013-12-04 14:23:13 (DEBUG): fetching historical data at cex.io
When trying to sell
2013-12-04 12:26:13 (DEBUG): we are currently in a downtrend @ 0.07277501 (-0.007)
2013-12-04 12:26:13 (INFO): ADVICE is to SELL @ 0.07277501 (-0.007)
2013-12-04 12:26:13 (INFO): wanted to sell but insufficient GHS (NaN) at cex.io
2013-12-04 12:27:10 (DEBUG): fetching new trades for new bucket at cex.io
2013-12-04 12:27:12 (DEBUG): cex.io fetching from tid 543256
2013-12-04 12:27:12 (DEBUG): fetching since 1386156422
Best regards,
N
The text was updated successfully, but these errors were encountered: