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
1  
... 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
1  
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

4 Answers 4

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

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

Here it is, C# API for FX trading in ECN model: https://github.com/mForex/mForex.API

As far as I know, you can create free demo account and subsequently request for API, the only disadvantage is the fact, that real account are in PLN only.

share|improve this answer

try this http://syscoderblog.blogspot.com.au/2014/05/net-api-for-dukascopy-broker.html

it is a .Net (C# VB) API for dukascopy broker

It has a very nice demo and a monitor utility

share|improve this answer
    
may I ask why my post has been deleted? –  user8139 May 28 at 1:01
    
might be that someone interpreted it as an advertisment or the like. I read the history and your answer seems acceptable however. Thus at least apologies on my part for the perhaps unjust deletion –  Probilitator May 28 at 5:54
    
@user8139 : I deleted your post as it had appeared pure advertisement to me initially. Sorry for the knee-jerk reaction. Undeleted for now. –  olaker May 28 at 11:54

protected by Community May 28 at 11:44

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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