Author

Topic: [Botcoin.js] An autotrader for mtgox in node.js (Read 1211 times)

sr. member
Activity: 267
Merit: 250
Woodwallets.io
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
legendary
Activity: 1050
Merit: 1000
You are WRONG!
botcoin [buttcoin]

LOL!
member
Activity: 80
Merit: 10
This is really cool, made me think about making something alot like this, except php.
sr. member
Activity: 381
Merit: 250
Wish I understood this crap, makes me jealous
sr. member
Activity: 267
Merit: 250
Woodwallets.io
sure, i'll edit right away! Thanks
newbie
Activity: 11
Merit: 0
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"?
sr. member
Activity: 267
Merit: 250
Woodwallets.io
Hello newbies Smiley 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 (now with instructions in a better readme)

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



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": "[email protected]",
    "gmail_sender": "[email protected]",
    "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 Smiley

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