I want to trade stock CFDs with Interactive Brokers. For this I have setup my AssetList file like this:

Code:
GOOG,50,0.01,0,0,0.01,0.01,0,10,1,0,GOOG-CFD-SMART-USD
FB,50,0.01,0,0,0.01,0.01,0,10,1,0,FB-CFD-SMART-USD
AGN,50,0.01,0,0,0.01,0.01,0,10,1,0,AGN-CFD-SMART-USD
UNH,50,0.01,0,0,0.01,0.01,0,10,1,0,UNH-CFD-SMART-USD
SBUX,50,0.01,0,0,0.01,0.01,0,10,1,0,SBUX-CFD-SMART-USD
AAPL,50,0.01,0,0,0.01,0.01,0,10,1,0,AAPL-CFD-SMART-USD



When Zorro tries to get the asset history it prints the following error:

Code:
!CFD market data is not provided; please submit a market data request on the underlying stock: GOOG@ISLAND



This is because Interactive Brokers does not give asset history for stock CFDs but one should rather subscribe the underlying stock history.

---------

I contacted support. Currently the only way to go around this problem it to write your own Broker Plugin which wraps the IB.dll and adapts the parameters accordingly.

I have attached my solution for this.

--------

I also now have another problem, I get this warning:

Code:
!Order Event Warning:Attribute 'Outside Regular Trading Hours' is ignored based on the order type and destination. PlaceOrder is now being processed.



I am unsure what I am supposed to do with this warning? Will opening and closing trades work as expected? Can I suppress this warning somehow?