Data Library



QuantConnect serves 51 CFD contracts from OANDA, starting on various dates from April 2004. CFD live-trading is only available for non-US residents. Quotes data with tick, second, minute, hour, and daily resolutions are available.

OANDA Brokerage CFD Data

QuantConnect provides all OANDA Brokerage CFD contracts for backtesting and trading.

Data Properties
Data ProviderOANDA
Start Date Mixed Dates: Earliest starts May 30th, 2004
Symbol Universe 51 CFD Contracts ( More Information)

To use OANDA Brokerage FX products in QuantConnect, you must specify the QuantConnect symbol, not the OANDA symbol. CFD data must be added in the Initialize() method manually. Specify Market.Oanda to backtest on OANDA historical data.

// Manual add symbols required in your initialize method:
public override void Initialize() {
    AddCfd("AU200AUD", Resolution.Minute, Market.Oanda);
// Access data via dedicated event handlers:
public void OnData(TradeBars data) {
// Access data via grouped time slice method handlers:
public override void OnData(Slice data) {
# Manual add symbols required in your initialize method:
def Initialize(self):
    self.AddCfd("AU200AUD", Resolution.Minute, Market.Oanda)

# Access data via grouped time slice method handlers:
def OnData(self, data):


Oanda CFD data is set in the timezone in which the contract is listed. The CFD exchange timezones include New York, Chicago, Sydney, Berlin, London, Zurich, Hong Kong, Amsterdam, and UTC Time. When accessing CFD data, make sure to account for the different time zones.

About the Provider

OANDA uses innovative computer and financial technology to provide Internet-based forex trading and currency information services to everyone, from individuals to large corporations, from portfolio managers to financial institutions. OANDA is a market maker and a trusted source for currency data. It has access to one of the world's largest historical, high frequency, filtered currency databases.

You can also see our Tutorials and Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: