Skip to navigation

FX Pairs

View as MarkdownOpen in Claude

Symbol: String. Specify the target currency. For orders, this will dictate the quantity value.

SecType: String. Specify CASH.

Exchange: String. Specify IDEAL for Virtual Forex or IDEALPRO for true forex trading.

Currency: String. Specify the base currency forex pair. This will dictate size with cash quantity trades.

contract = Contract()
contract.symbol = "EUR"
contract.secType = "CASH"
contract.exchange = "IDEALPRO"
contract.currency = "GBP"