- ago
Is it possible to place orders for stock CFDs with the BrokerAdapter for Interactive Brokers in Wealth-Lab? If so, how is this achieved?
1
357
Solved
5 Replies

Reply

Bookmark

Sort
Cone8
 ( 25.44% )
- ago
#1
It's not currently possible, but we can mark this as a feature request. Vote by liking your first post.
0
Cone8
 ( 25.44% )
- ago
#2
After looking into it more, we actually did add some "hooks" for CFDs in the IB Provider, but for some reason getting the BarHistory (required to trade it from a script) doesn't work. I can look into that. (Edit - actually, it might work.. I just haven't requested account permissions for CFD.)

Meanwhile, it seems that US stock CFD symbols use a lowercase "n" suffix, e.g, TTDn, AMZNn, IBMn,...

For now, you can add the necessary records in the IBContracts.txt file in the User Data folder (File > Open WealthLab User Data Folder).
Close WL before editing the file.

Example:
CODE:
// normal stock TTD=TTD|USD|STK|SMART|NASDAQ|TTD|||0| // Add this record to create a CFD contract for TTD: TTDn=TTD|USD|CFD|SMART||TTDn|||0|1
This identifies the TTD CFD, and now you should be able to trade TTDn from the Order Manager (manually).

Let me know if you can get a chart for the CFD (account perms required). If you can, then you can trade it from the chart or a script too!

Notice where the n's were added, CFD replaced STK, NASDAQ was removed, and a 1 (the multiplier) was added at the end.
0
- ago
#3
Ok, thanks! I'll give it a try, and let you know the results.
0
Cone8
 ( 25.44% )
- ago
#4
I'll have to rely on you because there are additional qualifications to trade CFDs based on residency status:

◻ Legal residents of the US, Canada, Hong Kong, New Zealand and Israel are prohibited from trading IB UK-issued CFDs.
◻ Residents of Spain can trade CFDs issued by IBUK if they are either MiFID Professionals or clients of a Spanish Introducing Broker or Professional Financial Advisor.
◻ Residents of Australia can trade CFDs issued by Interactive Brokers Australia PTY LTD.
◻ Residents of Japan can trade CFDs issued by IB Securities Japan (IBSJ).
◻ Residents of Singapore can trade CFDs on any underlying if they open an account under Interactive Brokers Singapore Pte. Ltd.
0
Cone8
 ( 25.44% )
- ago
#5
Another feature request resolved since WealthLab's IB Provider fully supports trading CFDs (since Build 44).
Also, when data is required for CFDs, the provider will access the data for the associated non-CFD contract.

See Help > Interactive Brokers for more info to set up IBContracts.txt for trading CFDs - especially for Forex trading.
1
Best Answer

Reply

Bookmark

Sort