Comments (11)
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.
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.
@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.
@askmike Could you please keep us informed about when the patch is updated and how to update gekko afterwards.
from gekko.
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.
@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.
Looks like it works fine now. Thanks!
from gekko.
@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.
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.
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.
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 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)
- Ichimoku indicator
- Error with papertrader and tradebot HOT 1
- How to exit from a strategy ? HOT 2
- Binance: can't have BTC as currency and USDT as asset? How to accumulate USDT? HOT 1
- Reconciliation of overlapping datasets HOT 1
- Candle Tick drifts if API fails to return data for X minutes (Kraken) HOT 1
- [Trade Bot Error] Not able to run trade bots with kraken HOT 40
- Access previous EMA HOT 1
- Cant install on windows HOT 3
- Instantly crashing when using data set. (TypeError: done is not a function) HOT 1
- Windows WSL Related Setup HOT 1
- Unable to Import data HOT 1
- TypeError: _.last(...).join is not a function HOT 1
- Original BBRSI HOT 1
- error with new install HOT 2
- Too long Insufficient data available. Age: N of 90 HOT 1
- Cannot trade on coinfalcon HOT 1
- Error: non-error thrown: ERROR: Talib is not enabled HOT 1
- Unable to see the functionality of any page HOT 2
- Sqlite issue, Gekko no finding sqlite on live trader start attempt. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gekko.