2

How cryptocoin trade engine works? Is there any open source project available other than buttercoin. I want to build a simple trade engine in ruby on rails for cryptocoins. what are the essential parts needed other than API?

closed as too broad by dchapes, hafnero, Salvador Dali, John T May 20 '14 at 23:22

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

0

You can code a trade engine in language like C++ or any other which ever is suitable for you. What actually happens in the back-end is an script keeps on repeating after particular interval for new trades or deposits that script can be coded in any language which can communicate with the database. Following is the example of a PHP script which checks for new trades and then update the database if any new trade took place:

<?
$sell = mysql_query("SELECT * FROM trades WHERE `From`<>`Type` LIMIT 1000000000000");
$num = mysql_num_rows($sell);
echo $num;
for ($i = 0; $i < $num; $i++) {
$id = mysql_result($sell,$i,"Id");
if($id != 0)
{
    $trade = new Trade($id);
    $trade->GetEquivalentTrade();
    $trade->ExecuteTrade();
}
}
?>
  • Why all the downvotes? This answer appears at least somewhat useful to me. Is there something actually wrong? – Tom Au May 4 '14 at 19:38
  • @Khan- It seems useful. – Jsd May 5 '14 at 4:37
0

There is Toblibot and Gekko and maybe some others.

I like Gekko quite a bit.

A quick google search will reveal them to you.

Not the answer you're looking for? Browse other questions tagged or ask your own question.