<p>There is <a href="https://www.google.com/search?q=toblibot&amp;oq=toblibot&amp;aqs=chrome..69i57j69i60l3j69i61j69i65.1284j0j1&amp;sourceid=chrome&amp;es_sm=91&amp;ie=UTF-8" rel="nofollow">Toblibot</a> and <a href="https://www.google.com/search?q=toblibot&amp;oq=toblibot&amp;aqs=chrome..69i57j69i60l3j69i61j69i65.1284j0j1&amp;sourceid=chrome&amp;es_sm=91&amp;ie=UTF-8#q=gekko%20bitcoin%20trader" rel="nofollow">Gekko</a> and maybe some others. </p>

<p>I like Gekko quite a bit.</p>

<p>A quick google search will reveal them to you.</p>

CC BY-SA 3.0
2014-05-06T21:15:18.973Z
2014-05-06T21:15:18.973Z
Terrence Brannon
<p>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: </p>

<pre><code>&lt;?
$sell = mysql_query("SELECT * FROM trades WHERE `From`&lt;&gt;`Type` LIMIT 1000000000000");
$num = mysql_num_rows($sell);
echo $num;
for ($i = 0; $i &lt; $num; $i++) {
$id = mysql_result($sell,$i,"Id");
if($id != 0)
{
    $trade = new Trade($id);
    $trade-&gt;GetEquivalentTrade();
    $trade-&gt;ExecuteTrade();
}
}
?&gt;
</code></pre>

CC BY-SA 3.0
2014-05-04T19:38:21.260Z
Why all the downvotes? This answer appears at least somewhat useful to me. Is there something actually wrong?
Tom Au
CC BY-SA 3.0
2014-05-05T04:37:32.070Z
@Khan- It seems useful.
Jsd
CC BY-SA 3.0
2014-05-03T11:22:37.670Z
2014-05-03T11:22:37.670Z
Khan Shahrukh
<p>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?</p>

<bitcoind><client><api><trading><trade>
How trade engine works?
Jsd
# How trade engine works?

(Asked by: username_0 on 2014-05-03)

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?

**Tags:** bitcoind, client, api, trading, trade


---

## 2 answers

### Answer by username_1 on 2014-05-06. Score: 0

There is [Toblibot](https://www.google.com/search?q=toblibot&oq=toblibot&aqs=chrome..69i57j69i60l3j69i61j69i65.1284j0j1&sourceid=chrome&es_sm=91&ie=UTF-8) and [Gekko](https://www.google.com/search?q=toblibot&oq=toblibot&aqs=chrome..69i57j69i60l3j69i61j69i65.1284j0j1&sourceid=chrome&es_sm=91&ie=UTF-8#q=gekko%20bitcoin%20trader) and maybe some others.

I like Gekko quite a bit.

A quick google search will reveal them to you.


---

### Answer by username_2 on 2014-05-03. Score: 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();
}
}
?>

```

> **Comments:**
> **username_3**: Why all the downvotes? This answer appears at least somewhat useful to me. Is there something actually wrong?  
> **username_0**: @username_2- It seems useful.  

---

