Guide
BrokerMarket dataForexCFDsIndicesCrypto No key needed

Dukascopy API guide

Even traders who never open a Dukascopy account use its tick history to backtest FX strategies.

Last verified · Also known as JForex API, Dukascopy historical data, Dukascopy tick data

Quick answer

Dukascopy Bank is a Swiss ECN broker whose trading APIs are the JForex Java SDK and FIX. Quants know it best for free historical tick data for forex, metals, indices and some stocks, downloadable through the Historical Data Feed or community tools such as dukascopy-node and duka.

Dukascopy API at a glance

Pricing
Historical data free; trading costs apply
Availability
Most countries; not US residents
Paper trading
JForex demo account
Integration type
Local gateway
In AlgoGP
Design and backtest in AlgoGP, connect the exported code
Trading APIs
JForex SDK (Java), FIX 4.4, MT4
Free data
Tick and bar history for FX, metals, indices
Tools
dukascopy-node, duka, Tickstory

Downloading tick data

npx dukascopy-node -i eurusd -from 2024-01-01 -to 2024-02-01 -t h1 -f csv
One month of EUR/USD hourly bars as CSV with dukascopy-node.

Import the CSV into AlgoGP’s exported backtest.py with python backtest.py --csv bars.csv (columns timestamp,open,high,low,close,volume).

Build a Dukascopy strategy with AlgoGP

AlgoGP does not connect to Dukascopy natively yet. Dukascopy connects through a local gateway, socket, FIX or Protobuf stack rather than plain HTTPS, so it runs as a separate process next to your strategy.

  1. 1

    Design and backtest in AlgoGP

    Describe the strategy to the copilot and backtest it on years of normalized history. The result does not depend on any vendor.

  2. 2

    Export the Python project

    Every project exports strategy.py, market_data.py, brokers.py and live.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format.

  3. 3

    Plug in Dukascopy

    Implement the four adapter methods (account, positions, submit_market_order and a candle fetcher) with Dukascopy’s SDK, or keep a built-in platform for paper trading and add Dukascopy when you go live.

Built-in brokers for the same markets: Alpaca, Binance, Kraken, Bybit.

Dukascopy API: frequently asked questions

Is Dukascopy tick data free?

Yes, the historical feed is free to download.

Does Dukascopy have a REST API?

Trading is via JForex (Java) and FIX rather than a public REST API.

Design and backtest your Dukascopy strategy first

AlgoGP turns an idea into Python and tests it on years of history before you connect it to Dukascopy. The exported code keeps the broker behind four small adapter methods.

  • AI copilot writes and revises the rules
  • Backtests with realistic costs
  • Exported Python ready to wire to Dukascopy

Free plan, no card required.

Dukascopy alternatives

Independent guide. AlgoGP is not affiliated with Dukascopy. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.

Build a strategy