-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[mtgox] Server responded with an error or no data, sleeping. #3
Comments
There is no currency switch for MtGox yet because the current version of the 'node-mtgox-apiv2' dependency has USD hardcoded. I submitted a patch, but it still needs to get updated on npm before I can include it in Gekko. It appears that you can only trade from/to the default currency set in Mt. Gox. I've run into the same issue myself on the first version of Gekko and I changed it to USD on Mt. Gox to resolve it (you can always try to let Gekko make profit on USD and revert back to EUR when you are done). There is currently a bug in Gekko's error handling: when the buy/sell order errors like this it will get passed to wrong place and Gekko will try to refetch trades instead of redo the order. I'm working on a improved buy / sell script that solves this. |
Ok, so how do we do it? I've changed the default currency in mtgox account settings to USD, and I'm still getting the same error |
@siergiej The problem is probably that you do not have any USD, if you have just switched to USD in mtgox account. The error remains the same. Dunno if it is because it doesnt have any USD to use to buy BTC or if it is something else. |
@askmike Could you please keep us informed about when the patch is updated and how to update gekko afterwards. |
So i did a simple test - sold 0.01BTC for USD. Now I've got $1.3 in my accound, and Gekko still displays errors |
@siergiej @LockDoc there was a bug in Gekko since yesterday but I just pushed a fix for it. Could you please pull and try again? If you want to just test if Gekko will sell/buy you can add the code below rule 77 in
and comment out everything behind mail advice (at the end of the file). Debugging code aroung Mt. Gox calls is pretty hard because the API wrapper (external dependency) swallows all errors, even the ones in my code. |
Looks like it works fine now. Thanks! |
@askmike Thanks for the effort so far. |
Yes the dependecy is updated now, however I need to change some minor things in Gekko and test all the currencies that Gekko will support. For example not every currency is returned with the same amount of decimals and I want to know for sure this won't be an issue. I hope I will find some time later today to do this. |
I've just pushed an update: you can now set the currency of Mt Gox trading! All information can be found in the Configuring Gekko doc. Gekko is unable to trade due to bug in dependencyImportant Note: There is currently a bug in the dependency for Mt. Gox. Gekko currently cannot trade at Mt. Gox until: You have to apply the patch yourself (add 1 slash on rule 113) or wait until the maintainer merges the patch. |
I've added the first version of the portfolioManager. I did over 20 real trades to test it ( yes it did cost me some fee :( ), it does need more proper testing. Note that bitcoincharts currently is returning |
Hi,
2013-05-26 13:49:49 (INFO): ADVICE is to BUY @ 133.590 (0.379)
2013-05-26 13:49:49 (INFO): (PROFIT REPORT) -0.000% profit (in 1 trades)
2013-05-26 13:49:49 (ERROR): Server responded with an error or no data, sleeping.
2013-05-26 13:50:49 (DEBUG): fetching exchange...
2013-05-26 13:50:53 (DEBUG): fetched exchange
2013-05-26 13:50:53 (DEBUG): calculated new tick: -1 price: 133.590 diff: 0.427
2013-05-26 13:50:53 (ERROR): Server responded with an error or no data, sleeping.
2013-05-26 13:51:53 (DEBUG): fetching exchange...
2013-05-26 13:51:53 (ERROR): Server responded with an error or no data, sleeping.
2013-05-26 13:52:53 (DEBUG): fetching exchange...
2013-05-26 13:52:54 (ERROR): Server responded with an error or no data, sleeping.
My config is as follows:
Any idea what could be wrong?
The text was updated successfully, but these errors were encountered: