Bitcoin Forum

Other => Beginners & Help => Topic started by: advanced on March 30, 2013, 04:46:26 PM



Title: [Botcoin.js] An autotrader for mtgox in node.js
Post by: advanced on March 30, 2013, 04:46:26 PM
Hello newbies :) I'm one of you!

I wrote a simple Node.js app that can automatically sell/buy BTC on MTgox when certain thresholds are reached.
It checks the price every 30seconds and execute your scheduled orders if needed. Everything gets logged in the directory logs/ and you will receive an email on a specified address whenever a trade is executed.

You can see the source  and download it fron github. https://github.com/adv0r/botcoin (https://github.com/adv0r/botcoin) (now with instructions in a better readme)

As simple as that. Is probably faulty. So, dont trust me with your own money.

https://photos-3.dropbox.com/t/0/AAB44FSLvF9dEhmhiVOR3Ho4DHcR8NBLQ9CGrZDvRAP4hw/12/15321988/png/32x32/3/_/1/2/botcoin.png/uQeJzJ3RXgiHjhymrZ_gJP4vDAG41M4lfD6N5hZL0Rc?size=1024x768

You need to edit the file cfg/config.json with your MTgox api keys and preferences :

Code:
{
    "api_key": "your-api-key-mtgox",
    "sec_key": "your-secret-key-mtgox",
    "strategy": "path/to/strategy.csv",
    "email_notification": "your@email.com",
    "gmail_sender": "you@gmail.com",
    "gmail_password": "Your?gmail_p4sswd",
    "ask_confirmation": "true"
}


Then you can specify your trade rules in a simple csv file (specified in the options above). For example :

Code:
operation, amount,direction,target,comment
buy,15,below,81,here is one comment
sell,1,above,90.3,sell one BTC when the price overcomes 90.3 $
sell,100,below,55,sell 100 BTC if the price drops under 55$


I needed it for my own purpose. Now I can sleep good dreams and siestas having the app running 24/7 on a webserver . It worked for one week straight without failures and saved me two days ago from the big 95$ to 75$ drop.

Let me know if you like it and you find it useful. Fork it, clone it, talk to me :)

If you want to support open source projects like this, support me donating to  1N7XxSvek1xVnWEBFGa5sHn1NhtDdMhkA7


Title: Re: [Botcoin.js] An autotrader for mtgox in node.js
Post by: DigitalDroid on March 30, 2013, 04:52:00 PM
Quote
sell,100,above,10,sell 100 BTC if the price drops under 100
shouldn't that be "sell 100 BTC if the price goes above 10"?


Title: Re: [Botcoin.js] An autotrader for mtgox in node.js
Post by: advanced on March 30, 2013, 04:55:54 PM
sure, i'll edit right away! Thanks


Title: Re: [Botcoin.js] An autotrader for mtgox in node.js
Post by: dcl595 on March 30, 2013, 06:24:30 PM
Wish I understood this crap, makes me jealous


Title: Re: [Botcoin.js] An autotrader for mtgox in node.js
Post by: ASICPool on March 30, 2013, 06:49:58 PM
This is really cool, made me think about making something alot like this, except php.


Title: Re: [Botcoin.js] An autotrader for mtgox in node.js
Post by: kokjo on March 30, 2013, 06:52:52 PM
botcoin [buttcoin]

LOL!


Title: Re: [Botcoin.js] An autotrader for mtgox in node.js
Post by: advanced on March 30, 2013, 11:58:51 PM
Asd ! I was thinking to create a user friendly web interface and offer it as a service. I thinking it could work but I don't feel safe managing people btc