top of page

Get auto trading tips and tricks from our experts. Join our newsletter now

Thanks for submitting!

Open Source API for trading algorithms? best way the get in to it [ Algorithms Trading]? book? Exa

Hi all, Is there any Open Source API for trading algorithms? Also what is the best way the get in to it [ Algorithms Trading] if you do not work in the financial industry. book? Examples? tutorial?

—– May I ask you why you specifically need Open Source? You can find several APIs (even for demo accounts) out there; you can use them for free (at least in simulation and testing), but will not have access to the source code.

Then, trying to answer your other questions: I guess the best way to get into algorithms trading is to experiment yourself with an API. A good book about algorithmic trading is Johnsons’ “Algorithmic Trading & DMA”, Myeloma Press. If you want pieces of code to start with, you can use code examples on the net.

Personally I like Dukascopy’s JForex API (Java based); even if you will end up not using it (also because they are limited to FX market and I do not know what market you are looking at), I think their wiki and tutorials may give you some ideas.

Also, Algodeal provides you with a good API for backtesting. I remember Interactive Brokers offers API for C++ and Java; I am not sure whether you can use them for testing without having an account with them.

Hope to have provided you with some useful suggestions.

Good luck with your algorithmic trading experience,


Some brokers providing free API (associated with free demo accounts) I have in mind: – Interactive Broker – LMAX – Dukascopy


I would take a look at MetaTrader if you are interested in FX markets. The software is free and comes with a set of pre-coded tech indicators + online library of user community donated code. Demo accounts are free and let you backtest strategies. Also, check out Wealth-Lab.


Have you looked at AlgoTrader (

It is an open Source Algorithmic Trading System based on Esper, Spring, and InteractiveBrokers.

AlgoTrader is an automated trading system (ATS) that can trade any type of security on any market available through InteractiveBrokers All aspects of trading like getting market data, analyzing prices, taking trade decisions, placing orders & tracking executions can be automated. The system is based on Java SE 6.0, Spring, Esper and a Model Driven Architecture.

Features of the system: * Automate Trading Strategies based on Trading Rules (using Esper EQL)

* Automated Execution via different Broker Interfaces

* Backtest und simulate strategies based on Historical Data

* Portfolio Tracking & Performance Measurement

A FIX interface is also currently being developed.

Have a look!


thought ur question was interesting , in a way i think there cannot be genric open source algo trading frameworks since every company would use their own strategy and models.

but I cannot override the fact many of the internals of these frameworks might be the same.

Did a little googling for you.. the following looked relevant


If you are comfortable with C# below are links to free open source:


You can develop without any account and use them on TWS or Gateway (Demo account). Access to any market and any instrument. All free.

If you open an account, you can use them in paper trading or real money trading.

Can be used with all main languages, including c#, c++ and java (there is even an the excel version). Pretty powerful and complete.

0 views0 comments


bottom of page