Author |
Topic: Standard versus Mini FX Accounts (5 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
DJarmuth Posts: 10 Joined: Oct 10, 2013 |
Can I use the account type on an account to assume what the contract size is for a forex? For example, if the account type is "Standard FX", is the contract size always going to be 100000 and is the "Mini FX" always going to be 10000? Or, do I have to read the contract size coming back on a position ( which is really a little too late )?
David Jarmuth |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
it is better to use http://www.openecry.com/api/api/html/M_OEC_API_Position_GetContractSize.htm static method to find out contract size in such cases.
Victor Vins Lead Software Developer |
||||
DJarmuth Posts: 10 Joined: Oct 10, 2013 |
That is kind of what I thought. However, does that mean that I won't know the contract size for sure until the user is in a position?
David Jarmuth |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
This static method doesn't use actual position. So, you will get contract size any time with or without a position.
Victor Vins Lead Software Developer |
||||
DJarmuth Posts: 10 Joined: Oct 10, 2013 |
Thank you. That is quite helpful.
David Jarmuth |
||||