Giter Club home page Giter Club logo

Comments (11)

askmike avatar askmike commented on May 23, 2024

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.

from gekko.

siergiej avatar siergiej commented on May 23, 2024

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

from gekko.

 avatar commented on May 23, 2024

@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.

from gekko.

 avatar commented on May 23, 2024

@askmike Could you please keep us informed about when the patch is updated and how to update gekko afterwards.

from gekko.

siergiej avatar siergiej commented on May 23, 2024

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

from gekko.

askmike avatar askmike commented on May 23, 2024

@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 gekko.js:

setTimeout(function() {
  trader.trade('BUY'); // if it bought change BUY to SELL and try again
}, 5000);

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.

from gekko.

siergiej avatar siergiej commented on May 23, 2024

Looks like it works fine now. Thanks!

from gekko.

 avatar commented on May 23, 2024

@askmike Thanks for the effort so far.
By reading this: ameensol/node-mtgox-apiv2#9
The patch should be included in mtgox api by now.
Is gekko now able to deal with EUR?

from gekko.

askmike avatar askmike commented on May 23, 2024

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.

from gekko.

askmike avatar askmike commented on May 23, 2024

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 dependency

Important 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.

from gekko.

askmike avatar askmike commented on May 23, 2024

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.

9e0ade0

Note that bitcoincharts currently is returning 502 all the time and there is a new bug in the Mt. Gox dependency. Gekko can't fetch trade data until you patch it manually or it gets patched and updated upstream.

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.