Pages:
Author

Topic: BTC-E PHP Currency Arbitrage Bot Full Code (Read 39896 times)

sr. member
Activity: 472
Merit: 254
Anlik Coin Fiyatlari BTCkur.com
November 04, 2014, 02:50:33 PM
#71
1- Does this still work?
2- Which areas we need to change to make it work? Right now If I just save the code as index.php and view it in a browser, it shows me a blank screen.
3- What is the easiest and most simple way to run this?

Thanks for your help
donator
Activity: 686
Merit: 519
It's for the children!
legendary
Activity: 965
Merit: 1000
December 04, 2013, 11:26:52 AM
#69
I'd like to do HFT, but since you can only fetch the prices every 15s, or so, it's practically impossible. Maybe with a network of servers, or so. But I only have 1 server atm, so I gave up on this for now...
hero member
Activity: 633
Merit: 768
BTC⇆⚡⇄BTC
December 03, 2013, 09:19:29 PM
#68
It seems that High-frequency trading is getting too popular in cryptocoin world nowadays...
legendary
Activity: 965
Merit: 1000
December 03, 2013, 02:29:31 PM
#67
Does this strategy still work? I wrote a similar bot, but gave up on it, because all those bots at btc-e made it impossible to be proftiable, if you respect the request limits.

newbie
Activity: 2
Merit: 0
December 03, 2013, 10:59:03 AM
#66
Greetings!

Nice script. Thanks for sharing it.

It's been a while since BTC-e, Vircurex and Cryptsy added some more altcoins.

BTW, is it possible to add automated (triangular and 2-currency) arbitrage for altcoins pairs (LTC/BTC; NMC/BTC; PPC/BTC; XPM/BTC etc.)?

Keep up the good work!

I did try to implement multi currency legs using 3-6 hops vs the current system.  The issue was speed and getting an open socket on e proved unreliable.  If someone can build a php socket allowing data to pass without opening a new curl session each request this would be possible. 

The math on dynamic arbitrage is strange though it can be created for this many legs. 

I'll be testing some new price rolling engines with EMA soon and will post any working code here so someone better than me can work with it.

Greetings!

Nice script. Thanks for sharing it.

It's been a while since BTC-e, Vircurex and Cryptsy added some more altcoins.

BTW, is it possible to add automated (triangular and 2-currency) arbitrage for altcoins pairs (LTC/BTC; NMC/BTC; PPC/BTC; XPM/BTC etc.)?

Keep up the good work!

I did try to implement multi currency legs using 3-6 hops vs the current system.  The issue was speed and getting an open socket on e proved unreliable.  If someone can build a php socket allowing data to pass without opening a new curl session each request this would be possible. 

The math on dynamic arbitrage is strange though it can be created for this many legs. 

I'll be testing some new price rolling engines with EMA soon and will post any working code here so someone better than me can work with it.

Hey - just sent you a PM.  I have my own code going - not clean enough to post here yet.  I have the techniques for the sockets, I do not know enough about the techniques for what to do when quite yet.  I agree the math gets strange ... Fun stuff.
The rolling bots I find fascinating when playing with the orderbooks as well.  The arb bots seem OK to a point ... Have you seen this implemented at cryptsy or others yet?

Thanks for this thread, its refreshing!
full member
Activity: 136
Merit: 100
November 30, 2013, 12:26:46 PM
#65
This might be quite a silly question:

In the case of a Bitcoin -> Litecoin > Dollar > Bitcoin transaction, does there have to be finances in all valuta?

So does the arbitrage bot trade Bitcoin to litecoin, then litecoin to dollar and dollar to bitcoin, or all at the same time?

With best regards,
Tim
newbie
Activity: 53
Merit: 0
November 29, 2013, 03:49:18 PM
#64
thanks for posting this here, really fun to look through and play with.

Quote
There is also an unfinished currency change function which would allow you to swap from B to U when the price of B is falling and U to B when it is rising.  This actually works really well, you can take advantage of arbitrage in either currency while holding funds in the most profitable currency.

what needs finishing to make this active?
full member
Activity: 136
Merit: 100
November 29, 2013, 12:12:39 PM
#63
I`ve fixed the bot with help of the 2 fixes and it's currently running.

Though after 24 hours the only thing it has traded is converted all BTC to USD, though in the code it states that it should 50/50 the amount in BTC and USD?

What could be the reason behind this?

My total finances where 6 times the minimum trading amount

With best regards,
donator
Activity: 686
Merit: 519
It's for the children!
November 20, 2013, 01:42:57 AM
#62
Greetings!

Nice script. Thanks for sharing it.

It's been a while since BTC-e, Vircurex and Cryptsy added some more altcoins.

BTW, is it possible to add automated (triangular and 2-currency) arbitrage for altcoins pairs (LTC/BTC; NMC/BTC; PPC/BTC; XPM/BTC etc.)?

Keep up the good work!

I did try to implement multi currency legs using 3-6 hops vs the current system.  The issue was speed and getting an open socket on e proved unreliable.  If someone can build a php socket allowing data to pass without opening a new curl session each request this would be possible. 

The math on dynamic arbitrage is strange though it can be created for this many legs. 

I'll be testing some new price rolling engines with EMA soon and will post any working code here so someone better than me can work with it.
hero member
Activity: 633
Merit: 768
BTC⇆⚡⇄BTC
November 20, 2013, 12:27:44 AM
#61
Greetings!

Nice script. Thanks for sharing it.

It's been a while since BTC-e, Vircurex and Cryptsy added some more altcoins.

BTW, is it possible to add automated (triangular and 2-currency) arbitrage for altcoins pairs (LTC/BTC; NMC/BTC; PPC/BTC; XPM/BTC etc.)?

Keep up the good work!
member
Activity: 92
Merit: 10
Well, after tinkering with this for a while, I've come to the conclusion that either a.) I don't know how to configure it, or b.) It no longer works properly and needs updates. I've let it run for a while with a small amount of funds to play with...it hardly ever makes trades, and I have yet to see a profitable one. I always end up with less than I had before trading.
member
Activity: 92
Merit: 10
Is the currency change function usable in its current state? Where would I put the call if I wanted to use it?
full member
Activity: 140
Merit: 100
Well, I'm not too worried about losing the vast US$5.38 total of all my currencies combined in an experiment that doesn't go anywhere. I'm mining on CPU and a crappy Nvidia GPU so you have to know it's about figuring out how all this works not about making money. Later perhaps I'll get serious about making money but right now it's like model rocketry—I expect it to teach me about the right shape of a nose cone, not take me to the moon.

In other words, let me make mistakes on small numbers before I try to screw myself up with big ones.

Looks like I'm not getting anywhere without being on Fast Trade. When I'm on Fast Trade it made me about two cents in an hour. So I'm calling this a successful experiment. Thanks!
newbie
Activity: 26
Merit: 0
That output is good but the arbitrage opportunities are too small now, it would take a revamp of the fee system to allow them to arb bots properly, i ran this bot on 2 Triples BTC/LTC/RUR and USD for a week for little value.

Im pretty sure that btc-e has its own feeless arb bots running.
full member
Activity: 140
Merit: 100
What does it mean if I'm getting numbers in my output but trades aren't actually happening?

------.---------.----------------------------------.-----------------------------------.-.--------------------------------.--.-.-.3.-..-.--.-.-.----.-.--.----.---.----.----.----.-.----.------.-..-------..------.-.--.----.-.----.--.--------------------------------..------.7-.----.1-----..-.-.--.-.-.1.-----..-.-.-.--.1.----------.-...--.-------------.----.-.--.------.3.--.-.----.---.------.---------------------.2--.-.-----------.----.1------.--.-------------.----.-----------.---------.----.-----------------------------------------.----.------------------------------------------.--.------.--.-.-----------.----.---------.----.------.-----------.-.--.------------.--------.--------------.----.------.--.----------------.----.------.-.--.------.--------.1.------.----.----.----.-.--------.1.-.----.2-----.---------.------------.------.-----------.1--.---.------.----------------.----..---.---------

Have I done something wrong? The script is running and it did trigger one transaction when I started running it, but since then no.

Thanks!
sr. member
Activity: 350
Merit: 250
Install WAMP
Edit PHP.INI and make sure CURL is enabled
copy script to WAMP PHP directory (call the file bot.php)
open command prompt
change directory to the WAMP instead PHP version
run "php.exe bot.php"

it starts scanning / trading

*********DON'T FORGET TO EDIT SETTINGS IN SCRIPT!!!*

If you can't get it running I would suggest to just leave it alone then as it has the potential to lose your BTC / LTC / USD if not configured correctly.
newbie
Activity: 34
Merit: 0
How exactly do I make this work??? What do I do with the script? paste it into DOS or Python or something? I hate not knowing anything about coding, since everything surrounding bitcoin is so coding-intensive

upload to webserver -> Go to address Smiley  As long as all dependancies are setup you should be good to go.

Webserver? So does this mean it won't run on a desktop pc? If anyone feel's like giving an oversimplified explanation (or a link) of how to run a script/program like this it would be very much appreciated.  Smiley
I've looked at some very simple java stuff before (should I admit it was minecraft or hide that in shame? lol.) And I have worked on a website or two, but only through a control panel and UI with alot of drag n drop, so I really know almost nothing about what it takes to code or run these types of bots.
sr. member
Activity: 350
Merit: 250
How exactly do I make this work??? What do I do with the script? paste it into DOS or Python or something? I hate not knowing anything about coding, since everything surrounding bitcoin is so coding-intensive

upload to webserver -> Go to address Smiley  As long as all dependancies are setup you should be good to go.
member
Activity: 98
Merit: 10
How exactly do I make this work??? What do I do with the script? paste it into DOS or Python or something? I hate not knowing anything about coding, since everything surrounding bitcoin is so coding-intensive
Pages:
Jump to: