<p><strong>The Java <a href="https://github.com/timmolter/XChange" rel="nofollow">XChange library</a> could help</strong></p>

<p>It might not be exactly what you're after, but the XChange project provides a demonstration of a general purpose API for communicating with multiple exchanges. </p>

<p>You could repurpose the code to create your own mock trading endpoints and run up a collection of virtual hosts. In this manner you can test against a reasonably well known set of APIs for the usual failure modes.</p>

CC BY-SA 3.0
2012-09-11T22:10:17.780Z
2012-09-11T22:10:17.780Z
Gary
<p>goxcli could also be an interesting codebase to make your own multi exchange trading api, goxcli provides an interesting and a shell api you can use as a backend to build your own frontend on top of it. for no goxcli supports only mtgox, but its open source and you can fork it on github : <a href="https://github.com/Trasp/GoxCLI" rel="nofollow">https://github.com/Trasp/GoxCLI</a></p>

<p>see also : <a href="https://github.com/neofutur/bitcoin_simple_php_tools" rel="nofollow">https://github.com/neofutur/bitcoin_simple_php_tools</a></p>

CC BY-SA 3.0
2012-09-12T06:01:05.320Z
2013-03-04T23:17:30.153Z
2013-03-04T23:17:30.153Z
neofutur
<p>To experiment a little with automatic trading I'm looking for a trading api (like mtgox has) which is used on multiple independent websites so that if one goes under that I then don't have to redo my whole program. If possible one from open source bitcoin trading websites so that I can setup one in a vm and use that to test against.</p>

<p>I'm currently running my tests against Mt.Gox but that can be a bit expensive when the script doesn't perform too well.</p>

<websites><api>
Is there a Trading API that spans multiple independent sites, preferably from open source websites?
Folkert van Heusden
# Is there a Trading API that spans multiple independent sites, preferably from open source websites?

(Asked by: username_0 on 2012-09-11)

To experiment a little with automatic trading I'm looking for a trading api (like mtgox has) which is used on multiple independent websites so that if one goes under that I then don't have to redo my whole program. If possible one from open source bitcoin trading websites so that I can setup one in a vm and use that to test against.

I'm currently running my tests against Mt.Gox but that can be a bit expensive when the script doesn't perform too well.

**Tags:** websites, api


---

## 2 answers

### Answer by username_1 on 2012-09-11. Score: 4

**The Java [XChange library](https://github.com/timmolter/XChange) could help**

It might not be exactly what you're after, but the XChange project provides a demonstration of a general purpose API for communicating with multiple exchanges.

You could repurpose the code to create your own mock trading endpoints and run up a collection of virtual hosts. In this manner you can test against a reasonably well known set of APIs for the usual failure modes.


---

### Answer by username_2 on 2012-09-12. Score: 2

goxcli could also be an interesting codebase to make your own multi exchange trading api, goxcli provides an interesting and a shell api you can use as a backend to build your own frontend on top of it. for no goxcli supports only mtgox, but its open source and you can fork it on github : <https://github.com/Trasp/GoxCLI>

see also : <https://github.com/username_2/bitcoin_simple_php_tools>


---

