nautechsystems / nautilus_trader

A high-performance algorithmic trading platform and event-driven backtester
https://nautilustrader.io
GNU Lesser General Public License v3.0
1.71k stars 402 forks source link

Add CFD and Commodity support for Interactive Brokers #1605

Closed DracheShiki closed 2 months ago

DracheShiki commented 2 months ago

Feature Request

add CFD and Commodity support for Interactivebrokers.

Done with it:) Tested with "XAUUSD.IBCMDTY", "XAUUSD.IBCFD", "IBUS30.IBCFD", "TSLA.IBCFD", "EUD/USD.IBCFD" by live trading and historical data downloading. fix the small bug of strict symbology. "NVDAn=CFD.IBCFD" works now. a doc that "IBCFD" and "IBCMDTY" used as venue (mapping to "SMART") might be updated. Although it works with no bugs as far as i tested it, the cfd.pyx and commodity.pyx may need to be refined.

cjdsellers commented 2 months ago

Now implemented with #1604, many thanks @DracheShiki :pray:.