Bitcoin Forum
May 03, 2024, 08:06:50 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 [4]  All
  Print  
Author Topic: BTC-E PHP Currency Arbitrage Bot Full Code  (Read 39853 times)
Financisto
Hero Member
*****
Offline Offline

Activity: 632
Merit: 768

BTC⇆⚡⇄BTC


View Profile WWW
November 20, 2013, 04: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!

LIST • ESCROW providers • Ranking & Scores available!LIST • FOSS BrainwalletsBTC ⇆⚡⇄ BTCBTC aka BTC: 16MBvhaJoRBxW3Vk6apnvz3UYT9HAgraVS ⚡ PGP: 2680207AA9A1B69FE7A033D80DE0F221074384C4 ⚡ If you think freedom matters, please support the development of these privacy projects→DONATE some sats: TailsQubes OSWhonixVeraCryptPicocryptKryptorSimpleX Chat
1714766810
Hero Member
*
Offline Offline

Posts: 1714766810

View Profile Personal Message (Offline)

Ignore
1714766810
Reply with quote  #2

1714766810
Report to moderator
1714766810
Hero Member
*
Offline Offline

Posts: 1714766810

View Profile Personal Message (Offline)

Ignore
1714766810
Reply with quote  #2

1714766810
Report to moderator
1714766810
Hero Member
*
Offline Offline

Posts: 1714766810

View Profile Personal Message (Offline)

Ignore
1714766810
Reply with quote  #2

1714766810
Report to moderator
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714766810
Hero Member
*
Offline Offline

Posts: 1714766810

View Profile Personal Message (Offline)

Ignore
1714766810
Reply with quote  #2

1714766810
Report to moderator
1714766810
Hero Member
*
Offline Offline

Posts: 1714766810

View Profile Personal Message (Offline)

Ignore
1714766810
Reply with quote  #2

1714766810
Report to moderator
1714766810
Hero Member
*
Offline Offline

Posts: 1714766810

View Profile Personal Message (Offline)

Ignore
1714766810
Reply with quote  #2

1714766810
Report to moderator
miaviator (OP)
Donator
Hero Member
*
Offline Offline

Activity: 686
Merit: 519


It's for the children!


View Profile WWW
November 20, 2013, 05: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.

Timmieman
Full Member
***
Offline Offline

Activity: 136
Merit: 100


View Profile
November 29, 2013, 04: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,

aideed
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
November 29, 2013, 07: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?
Timmieman
Full Member
***
Offline Offline

Activity: 136
Merit: 100


View Profile
November 30, 2013, 04: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

adamnyc
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
December 03, 2013, 02:59:03 PM
 #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!
daybyter
Legendary
*
Offline Offline

Activity: 965
Merit: 1000


View Profile
December 03, 2013, 06: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.


Financisto
Hero Member
*****
Offline Offline

Activity: 632
Merit: 768

BTC⇆⚡⇄BTC


View Profile WWW
December 04, 2013, 01:19:29 AM
 #68

It seems that High-frequency trading is getting too popular in cryptocoin world nowadays...

LIST • ESCROW providers • Ranking & Scores available!LIST • FOSS BrainwalletsBTC ⇆⚡⇄ BTCBTC aka BTC: 16MBvhaJoRBxW3Vk6apnvz3UYT9HAgraVS ⚡ PGP: 2680207AA9A1B69FE7A033D80DE0F221074384C4 ⚡ If you think freedom matters, please support the development of these privacy projects→DONATE some sats: TailsQubes OSWhonixVeraCryptPicocryptKryptorSimpleX Chat
daybyter
Legendary
*
Offline Offline

Activity: 965
Merit: 1000


View Profile
December 04, 2013, 03:26:52 PM
 #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...

miaviator (OP)
Donator
Hero Member
*
Offline Offline

Activity: 686
Merit: 519


It's for the children!


View Profile WWW
December 11, 2013, 02:10:53 AM
 #70

Rolling Bot code posted: https://bitcointalk.org/index.php?topic=366546.0

BTC Turkiye
Sr. Member
****
Offline Offline

Activity: 472
Merit: 254


Anlik Coin Fiyatlari BTCkur.com


View Profile WWW
November 04, 2014, 06: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

Farklı Borsaların Anlık Bitcoin, Litecoin, Ethereum ve Bitcoin Cash Kurunu Takip Edebilirsiniz.
BTCkur.com
Pages: « 1 2 3 [4]  All
  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!