Author |
Topic: mapping Account(s) to Contracts for orders (5 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
MMike94 Posts: 13 Joined: Nov 19, 2009 |
I've asked this question of Customer service and got a good answer, but let me also get your opinion.
I have seen that some Accounts are for Forex, some for Futures and some for Equities. Using the Account object and Contract object (or the contract's ContractGroup), how can I determine which account should be used to place an order for a particular contract? For example, the logon I'm using has two accounts - one for FX and one for Futures. When I submit an order for ESH1, I need to use the Futures account, but when I submit an order for AUD/USD, I need to use the other account. What is the best way, at run time, using the Account and Contract objects to determine which account to use when submitting the order? Thanks Paul |
||||
MMike94 Posts: 13 Joined: Nov 19, 2009 |
Victor,
Can you please reply? Thanks Paul |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hello,
AccountType.MiniFX and AccountType.StandardFX should be used with ContractKind.Forex; AccountType.Equity - Equity, EquityOption, MutualFund; all other account types are futures-related and should be with futures-related contracts (Future, Option, GenericCompound, FutureCompound, OptionsCompound. CustomCompound is a special contract kind and supported for complex equity options orders only for now (so, this is for AccountType.Equity) Victor Vins Software Developer |
||||
MMike94 Posts: 13 Joined: Nov 19, 2009 |
Victor,
Thank you for the information. There are 3 ContractKind values that you did not mention -- Unknown, EquityIndex and Bond. I'm guessing EquityIndex would go with AccountType.Equity and Bond would go with a futures account type. Would that be correct? I'm assuming Unknown would never happen, but can I match that with a future account type also? Thanks, Paul Paul |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
EquityIndex - right, this is for AccountType.Equity.
Trading with ContractKind.Bond is not supported right now and reserved for future use (with AccountType.Equity) Victor Vins Software Developer |
||||