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=???