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 csvImport 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
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
Export the Python project
Every project exports
strategy.py,market_data.py,brokers.pyandlive.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format. - 3
Plug in Dukascopy
Implement the four adapter methods (
account,positions,submit_market_orderand 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
- LMAX API GuideInstitutional-grade FX exchange and broker: FIX and low-latency APIs with central limit order book execution.
- OANDA API Built into AlgoGPRegulated forex and CFD broker whose v20 REST API serves both orders and candles, with a free demo account.
- IG API GuideRegulated CFD, spread-betting and FX broker with a REST trading API, Lightstreamer streaming and a demo account.
- MetaTrader 5 API GuideThe forex and CFD terminal hundreds of brokers run: automate it with MQL5 Expert Advisors or the official MetaTrader5 Python package.
Independent guide. AlgoGP is not affiliated with Dukascopy. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.