Take the 2-minute tour ×
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It's 100% free, no registration required.

I am looking for a broker who provides a free trading API for FX. The goal is to develop at-home algorithms in C# (possibly Qt) to run on a fake portfolio, and then later on real money with competitive broker fees.

Would you know some comparison of such APIs?

What do you think of OANDA? Dukascopy? TD Ameritrade?

Here is the list of APIs I have found so far:

  • Delta Trading API
  • FxSpyder
  • AVAFx
  • Dukascopy bank trading API
  • TD Ameritrade
  • FxCM
share|improve this question
free? Would you sit down for months, pay developers a bundle to write a systematic trading architecture, then let any anonymous person on the web use it without even registering their email address or other ID in order to follow up? There is no such interface that you are asking for, simple as that. –  Matt Wolf Oct 27 '13 at 7:42
... brokers could provide free API, free possibility to train models on a virtual portfolio, then charge broker fees when trading for real... simple as that ... –  antitrust Oct 27 '13 at 8:46
I think @MattWolf showed good point, brokers don't have interest in supplying API based on fake market infrastructure, because of no income from that. Normally testing is covered by third-party trading platform applications based on data downloaded from broker executed on local client machines. When you want test your strategy you can do internal simulations w/o api and next real simulation w/ api using low capital or find testing system outside your broker infrastructure when based on some well-known protocols. –  Svisstack Oct 27 '13 at 10:12
so is your advice to find a simple data feed to start with ? what an API from a broker would provide more is exact replication of market conditions: data frequencies and order latencies, fees, order mechanism... also, development in the API would be to be reused when deciding to trade for eal –  antitrust Oct 27 '13 at 11:50
Most brokers you mentioned are exclusively targeting the retail crowd with wide spreads, low liquidity, last look, delayed fills and a host of other shennenigans. But I am glad you found the answer to your question yourself –  Matt Wolf Oct 27 '13 at 16:39
show 3 more comments

2 Answers

Take a look at FIX4.4 protocol, accessible from http://www.dukascopy.com/swiss/english/forex/api/fix_api/

Thread about C# libraries: http://stackoverflow.com/questions/4876279/fix-library-for-net

share|improve this answer
Thanks! why them and not another one ? what are alternatives ? also, cannot have access to API without sending an email or calling the dukascopy: is it free to use the API, is there free access to virtual portfolio for backtesting ? –  antitrust Oct 27 '13 at 2:25
add comment

I use MB Trading SDK for automated trading.

It is COM based but easy to integrate with C#.

You can setup a demo account and trade on it for free.

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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