Pages:
Author

Topic: Gekko - a javascript trading bot and backtesting platform - page 32. (Read 147846 times)

sr. member
Activity: 287
Merit: 250
Your node version is out of date, the Bitstamp module doesn't really require node 0.10 but other dependencies do. Could you try to update to 0.10.x?
legendary
Activity: 2955
Merit: 1049
on raspberry
Code:
npm ERR! Error: No compatible version found: bitstamp@'>=0.0.0- <0.1.0-'
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR!     at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
npm ERR!     at next_ (/usr/share/npm/lib/cache.js:438:17)
npm ERR!     at next (/usr/share/npm/lib/cache.js:415:44)
npm ERR!     at /usr/share/npm/lib/cache.js:408:5
npm ERR!     at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR!     at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR!     
npm ERR! or use
npm ERR!     reportbug --attach /home/xx/gekko/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.6.11+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/xx/gekko
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message No compatible version found: bitstamp@'>=0.0.0- <0.1.0-'
npm ERR! message No valid targets found.
npm ERR! message Perhaps not compatible with your version of node?
sr. member
Activity: 287
Merit: 250
OK, new to Git here. I followed the Installing Gekko on windows guide the first time round.

Now how to I update the dependencies, since one has changed in : gekko-master\node_modules\mtgox-apiv2>.

I took the manual approach and applied his latest patch by doing it myself, but I am a bit worried other changes that happen in this library will be missed.

EDIT:
Since we used : npm install to get dependencies.

I did a npm help.

This revealed npm update command.

Now I am golden. Thanks me for the help.

Awesome that you got it working!

For everyone one else facing problems: there is a new bug in the MtGox dependency yet again. Once my patch is accepted I will let Gekko use that version until I have checked all next updates myself. To get the latest version of Gekko running on Mt. Gox I think you have to apply this fix (in `node_modules/mtgox-apiv2/mtgox.js`) until it has been fixed upstream.
full member
Activity: 196
Merit: 100
OK, new to Git here. I followed the Installing Gekko on windows guide the first time round.

Now how to I update the dependencies, since one has changed in : gekko-master\node_modules\mtgox-apiv2>.

I took the manual approach and applied his latest patch by doing it myself, but I am a bit worried other changes that happen in this library will be missed.

EDIT:
Since we used : npm install to get dependencies.

I did a npm help.

This revealed npm update command.

Now I am golden. Thanks me for the help.
full member
Activity: 196
Merit: 100
I've pulled it down for a look. I have done a simple comment on the buy/sell in 'live' settings to just drop an 'info' message with what it would do. I turned on debug as well.

But I am stalled at the start. It gets to the 'fetching exchange...' message, then hangs.

I check task manager to take a peek at network traffic, and no change there. I suspect it has to do with the Mt Gox key and secret. Bit confused here. Are both keys the 'unreadable' encrypted output, or is one of them the original plain text you entered to generate the key. I took the same keys I used for the Chrome Addon bot, which work fine in that.

I am on Windows 7 Home Premium.


EDIT/NOTE I see he just put a patch up in git for this very reason!

" askmike commented on 7574901 4 hours ago

Here I am again with a bug fix Smiley The fetchTrades method was silently failing because the callback never got passed... "
sr. member
Activity: 287
Merit: 250
This would be very cool if it was made.

I can see this becoming very big and popular among Bitcoin users.

Keep up the good work!

Thanks, that's what I am hoping to achieve with Gekko. Also to raise the bar for existing trade bots. (though it is not quite at a decent level itself right now imo)

Github user lockdoc has added a bunch of information to Gekko that explains how you can run Gekko silently forever:

Running Gekko headless
newbie
Activity: 42
Merit: 0
This would be very cool if it was made.

I can see this becoming very big and popular among Bitcoin users.

Keep up the good work!
sr. member
Activity: 287
Merit: 250
It is now possible to set a currency for Mt. Gox, for advice as well as real trading (as well as a lot of minor bug fixes)!

Do note that there currently is a bug in a dependency (caused by none other then myself) that will mess up all trades at Mt. Gox. Refer to this issue for the whole story and how to fix it!

Edit: I have also written some documentation explaining how to configure real trading in more detail. This will hopefully demystify a lot around how Gekko handles real trading.

https://github.com/askmike/gekko/blob/master/docs/Configuring_gekko.md
sr. member
Activity: 287
Merit: 250
Hello,
Interesting project. Are you able to add a little obscure exchange to your list. The virwox exchange allows USD>SLL>BTC as well as some other currencies. They have APIs and JSON format as well.

The good thing about this exchange is it makes it easy for 'beginners' to take a look at bitcoins with their credit card or PayPal account immediately.

The bad thing is, its usually more expensive than MtGox prices if you are going for Market Order. If you have patience, the Limit Order can take a while to full.

Cheers
G

I am currently stabilising Gekko so that it can correctly handle all current exchanges (with decent error handling, and making sure all orders are filled). When this is done it will be easy to add more exchanges to Gekko relatively easy. I will put this exchange on my list and will research it when this moment is there.
hero member
Activity: 826
Merit: 1000
Hello,
Interesting project. Are you able to add a little obscure exchange to your list. The virwox exchange allows USD>SLL>BTC as well as some other currencies. They have APIs and JSON format as well.

The good thing about this exchange is it makes it easy for 'beginners' to take a look at bitcoins with their credit card or PayPal account immediately.

The bad thing is, its usually more expensive than MtGox prices if you are going for Market Order. If you have patience, the Limit Order can take a while to full.

Cheers
G
It is not a bad idea. They have also NMC, IXC and DVC that I get out of my mining rigs as a by-product...

Made a mistake in name I thought you are talking about Vircurex
full member
Activity: 196
Merit: 100
Hello,
Interesting project. Are you able to add a little obscure exchange to your list. The virwox exchange allows USD>SLL>BTC as well as some other currencies. They have APIs and JSON format as well.

The good thing about this exchange is it makes it easy for 'beginners' to take a look at bitcoins with their credit card or PayPal account immediately.

The bad thing is, its usually more expensive than MtGox prices if you are going for Market Order. If you have patience, the Limit Order can take a while to full.

Cheers
G
sr. member
Activity: 287
Merit: 250
Hi, I left this running in demo mode over the weekend while I was away from the computer and returned to find this message "(PROBLEM) 2013-05-27 09:06:06 Server responded with an error or no data, sleeping" repeating four times in sequence, once a minute. I waited for the next trade to take place and found that the last price seemed to be up to date. I restarted it and it reconnected immediately. This has not recurred so far (about 1.5 hours runtime).
Is it able to reconnect if the connection is lost? Should it have in this instance?

Thanks for trying it out!

Well there was a bug in Gekko since around friday: Because of wrong error handling every try to buy/sell would result in Gekko trying to refetch trade data with the error message above (instead of buying/selling again). This is fixed now so you should download the latest version.

Also check that the default currency in your Mt. Gox account is USD. Gekko will support all currencies supported by Mt. Gox in the near future. But for now you have to set the default currency to USD or disable real trading.

----

I am currently adding a portfolio manager that will take care of a lot of trade things that are really messy now:

  • Proper buy and sell order on BTC-e and Bitstamp by first checking the lowest ask / highest bid. And checking afterwards wether the order went through and if not retry.
  • Better error handling, verifying real trade settings
  • Better profit tracking based on your real portfolio instead of virtual balance

Community Request

It is not fully working yet but with this portfolio manager I am proposing a universal way at which different exchanges could be implemented the same way through different (javascript) projects. I am talking about the `portfolio managers expectations` and the `trading method expectations` as described in docs/Exchanges.md. I think standards like this would really speed up the development of different projects. If anybody has any ideas of things that need to be different / added to the document please let me know (or submit a pull request if you are a developer).
legendary
Activity: 1025
Merit: 1000
Hi, I left this running in demo mode over the weekend while I was away from the computer and returned to find this message "(PROBLEM) 2013-05-27 09:06:06 Server responded with an error or no data, sleeping" repeating four times in sequence, once a minute. I waited for the next trade to take place and found that the last price seemed to be up to date. I restarted it and it reconnected immediately. This has not recurred so far (about 1.5 hours runtime).
Is it able to reconnect if the connection is lost? Should it have in this instance?
newbie
Activity: 14
Merit: 0
Yeah the only altcoin data I can get are the last 40 or so candles on BTC-e's home page for the altcoin, which only covers 24 hours... Sucks.
sr. member
Activity: 287
Merit: 250
Update

  • The profit calculating options are now configurable.
  • Gekko now supports Bitstamp (alpha stage).

This means that Gekko now supports the three biggest exchanges. The auto buying and selling should be considered alpha (but is more stable than the BTC-e counterpart I think).

Whoa this thing is amazing. I've got it running on my VPS using forever and I tweaked the email a bit so it's short enough to be forwarded to my phone.

One thing I've noticed is that when it does to buy at BTCe, it will say "now buying" but nothing actually happens. Not sure if the same thing happens on Gox, because I hate it.

Thanks a lot for this, you inspired me to make something similar to this using Java for altcoins, but I'm doing something wrong with the EMAs.

Thanks!

Gekko is really early stage at the moment and one of the biggest issues at the moment are automatic placing orders on exchanges that don't support MKT orders through their API. Gekko also isn't keeping track of the orders, it's basically fire and forget (really unacceptable for a trade bot). Gekko doesn't have this problem at Mt. Gox because it will place a MKT order and Mt. Gox will figure out what the market price is and make sure the order gets filled.

So the biggest todo will be to improve this and make sure that when Gekko detects a trend it will make sure all it's orders are filled at all supported exchanges.

I'm really curious on you are going to solve some of the problems I'm running into (like altcoins data for example, see couple of post above). My goal for Gekko, besides learning, is to improve the quality of the open source trade bots out there Smiley.
newbie
Activity: 14
Merit: 0
Whoa this thing is amazing. I've got it running on my VPS using forever and I tweaked the email a bit so it's short enough to be forwarded to my phone.

One thing I've noticed is that when it does to buy at BTCe, it will say "now buying" but nothing actually happens. Not sure if the same thing happens on Gox, because I hate it.

Thanks a lot for this, you inspired me to make something similar to this using Java for altcoins, but I'm doing something wrong with the EMAs.
sr. member
Activity: 287
Merit: 250
Thank you!

Regarding altcoin hystorical data, what about storing locally for few hours the BTC-E ticker and only then enable trading?
https://btc-e.com/api/2/ltc_usd/ticker

It's not very elegant but it should be effective. Another dirty hack could be the scraping of cryptcoincharts

http://www.cryptocoincharts.info/period-charts.php?period=2-days&resolution=hour&pair=ltc-usd&market=btc-e

Inside the page source:



Thanks for the research! I don't think it's a good idea to put a scraper in Gekko: It's not really nice towards the website and if they change a tiny thing in the HTML everyone has got a non working trade bot until I fix Gekko and everyone updates (manually).

The good news is that `ltc.block-explorer.com` pulls the data from an API (as you've shown). However I can't find any documentation on the API, so I don't think it's wise to use this private API for the same reasons. I think I will email the guys behind the site to ask.

In the meantime I'm testing it on BTC-E with BTC/USD.

I'm quite bullish with BTC, could you add an option to calculate profits in BTC instead of USD?  Grin


Cool, thanks for testing! Let me know if Gekko runs in to any trouble. I've also got Gekko running on BTC-e since the last update (almost 24h) and it just passed a threshold:



(and the math seems to add up)

Quote
(ADVICE) 2013-05-22 21:36:51 HOLD @ 117.100 (0.191)
(PROFIT REPORT) 2013-05-22 21:36:51 -0.176% profit (in 1 trades)
(ADVICE) 2013-05-22 21:56:53 HOLD @ 117.500 (0.235)
(PROFIT REPORT) 2013-05-22 21:56:53 0.165% profit (in 1 trades)
(ADVICE) 2013-05-22 22:16:52 HOLD @ 117.088 (0.231)
(PROFIT REPORT) 2013-05-22 22:16:52 -0.187% profit (in 1 trades)
(ADVICE) 2013-05-22 22:36:52 BUY @ 117.515 (0.258)
(PROFIT REPORT) 2013-05-22 22:36:52 0.177% profit (in 2 trades)
2013-05-22 22:36:52 NOW going to BUY @ BTC-E
2013-05-22 22:36:54 Send advice via email.

As for the feature: Simple request and I hope I'm able to do it tonight, else tomorrow Smiley
member
Activity: 72
Merit: 10
In the meantime I'm testing it on BTC-E with BTC/USD.

I'm quite bullish with BTC, could you add an option to calculate profits in BTC instead of USD?  Grin
member
Activity: 72
Merit: 10
Thank you!

Regarding altcoin hystorical data, what about storing locally for few hours the BTC-E ticker and only then enable trading?
https://btc-e.com/api/2/ltc_usd/ticker

It's not very elegant but it should be effective. Another dirty hack could be the scraping of cryptcoincharts

http://www.cryptocoincharts.info/period-charts.php?period=2-days&resolution=hour&pair=ltc-usd&market=btc-e

Inside the page source:
var data = google.visualization.arrayToDataTable([["Date","L","O","C","H"],["2013-05-20 17h",3.0109,3.0149,3.023,3.029],["2013-05-20 18h",2.98,3.0229,2.9817,3.033],["2013-05-20 19h",2.96,2.9817,2.97011,3],["2013-05-20 20h",2.97011,2.989,2.98,3.0183],["2013-05-20 21h",2.94,2.9801,2.95699,3.00979],["2013-05-20 22h",2.94951,2.9799,2.9583,2.9799],["2013-05-20 23h",2.95249,2.95831,2.96,2.9799],["2013-05-21 00h",2.9543,2.97768,2.9736,2.98021],["2013-05-21 01h",2.9,2.9551,2.93,2.9734],["2013-05-21 02h",2.9,2.9034,2.93102,2.94943],["2013-05-21 03h",2.88,2.9,2.88,2.94],["2013-05-21 04h",2.85,2.9,2.89,2.90854],["2013-05-21 05h",2.8703,2.899,2.94,2.95],["2013-05-21 06h",2.9,2.94,2.91869,2.94999],["2013-05-21 07h",2.91245,2.91374,2.91572,2.93435],["2013-05-21 08h",2.89151,2.91572,2.909,2.9329],["2013-05-21 09h",2.9001,2.9001,2.918,2.92],["2013-05-21 10h",2.9001,2.918,2.9001,2.92],["2013-05-21 11h",2.892,2.9001,2.9042,2.92],["2013-05-21 12h",2.8765,2.90438,2.9,2.9189],["2013-05-21 13h",2.88019,2.9003,2.89,2.91173],["2013-05-21 14h",2.88,2.88,2.89986,2.906],["2013-05-21 15h",2.89,2.89986,2.94,2.94998],["2013-05-21 16h",2.8901,2.94987,2.943,2.94987],["2013-05-21 17h",2.93,2.943,2.949,2.969],["2013-05-21 18h",2.93,2.939,2.955,2.965],["2013-05-21 19h",2.93112,2.955,2.95,2.96],["2013-05-21 20h",2.938,2.951,2.95,2.9649],["2013-05-21 21h",2.8902,2.9388,2.9254,2.95],["2013-05-21 22h",2.91019,2.918,2.93406,2.945],["2013-05-21 23h",2.9,2.921,2.93807,2.94242],["2013-05-22 00h",2.91,2.912,2.94451,2.95],["2013-05-22 01h",2.936,2.94451,2.936,2.95903],["2013-05-22 02h",2.92957,2.936,2.93,2.947],["2013-05-22 03h",2.92962,2.9298,2.92962,2.94489],["2013-05-22 04h",2.9175,2.92962,2.92695,2.94],["2013-05-22 05h",2.9171,2.925,2.954,2.95842],["2013-05-22 06h",2.95,2.954,2.95,2.959],["2013-05-22 07h",2.9098,2.95001,2.92,2.95835],["2013-05-22 08h",2.90203,2.91,2.90215,2.92898],["2013-05-22 09h",2.902,2.90203,2.92485,2.92485],["2013-05-22 10h",2.91,2.92485,2.91402,2.94],["2013-05-22 11h",2.913,2.91402,2.92578,2.928],["2013-05-22 12h",2.913,2.92578,2.9309,2.93499],["2013-05-22 13h",2.913,2.93,2.9131,2.93],["2013-05-22 14h",2.91305,2.92085,2.92795,2.92944],["2013-05-22 15h",2.91102,2.915,2.91894,2.93],["2013-05-22 16h",2.91893,2.92966,2.93,2.93]]);
Pages:
Jump to: