Bitcoin Forum
May 13, 2024, 11:34:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Botcoin.js] An autotrader for mtgox in node.js  (Read 1196 times)
advanced (OP)
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


Woodwallets.io


View Profile WWW
March 30, 2013, 04:46:26 PM
Last edit: March 31, 2013, 09:40:12 AM by advanced
 #1

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": "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 Smiley

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

Bitmessage : BM-NAx31aEiqeq5zKUtxhKscXQ7Dwn1jJfR
1715643253
Hero Member
*
Offline Offline

Posts: 1715643253

View Profile Personal Message (Offline)

Ignore
1715643253
Reply with quote  #2

1715643253
Report to moderator
1715643253
Hero Member
*
Offline Offline

Posts: 1715643253

View Profile Personal Message (Offline)

Ignore
1715643253
Reply with quote  #2

1715643253
Report to moderator
1715643253
Hero Member
*
Offline Offline

Posts: 1715643253

View Profile Personal Message (Offline)

Ignore
1715643253
Reply with quote  #2

1715643253
Report to moderator
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715643253
Hero Member
*
Offline Offline

Posts: 1715643253

View Profile Personal Message (Offline)

Ignore
1715643253
Reply with quote  #2

1715643253
Report to moderator
1715643253
Hero Member
*
Offline Offline

Posts: 1715643253

View Profile Personal Message (Offline)

Ignore
1715643253
Reply with quote  #2

1715643253
Report to moderator
1715643253
Hero Member
*
Offline Offline

Posts: 1715643253

View Profile Personal Message (Offline)

Ignore
1715643253
Reply with quote  #2

1715643253
Report to moderator
DigitalDroid
Newbie
*
Offline Offline

Activity: 11
Merit: 0



View Profile
March 30, 2013, 04:52:00 PM
 #2

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"?
advanced (OP)
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


Woodwallets.io


View Profile WWW
March 30, 2013, 04:55:54 PM
 #3

sure, i'll edit right away! Thanks

Bitmessage : BM-NAx31aEiqeq5zKUtxhKscXQ7Dwn1jJfR
dcl595
Sr. Member
****
Offline Offline

Activity: 381
Merit: 250


View Profile
March 30, 2013, 06:24:30 PM
 #4

Wish I understood this crap, makes me jealous
ASICPool
Member
**
Offline Offline

Activity: 80
Merit: 10



View Profile
March 30, 2013, 06:49:58 PM
 #5

This is really cool, made me think about making something alot like this, except php.
kokjo
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000

You are WRONG!


View Profile
March 30, 2013, 06:52:52 PM
 #6

botcoin [buttcoin]

LOL!

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
advanced (OP)
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


Woodwallets.io


View Profile WWW
March 30, 2013, 11:58:51 PM
 #7

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

Bitmessage : BM-NAx31aEiqeq5zKUtxhKscXQ7Dwn1jJfR
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!