hi, thank you. this is working for me, however i am not sure which one of the parameters is the leverage or how do i specify the leverage. Maybe i am missing something obvious here... My contract definition sectype="CFD" contract=Contract() contract.symbol=symbol contract.secType=sectype contract.currency=currency contract.exchange=exchange contract.multiplier=???
There is no multiplier with CFDs, it's always 1:1. CFDs are like buying stocks/index on margin (you don't own the asset - futures analogy) without expiration and rollover, and you always trade against broker as market maker.