API Support Forum
OEC API > API Support > Standard versus Mini FX Accounts
Author Topic: Standard versus Mini FX Accounts
(5 messages, Page 1 of 1)
Moderators: VPfau
DJarmuth
Posts: 10
Joined: Oct 10, 2013


Posted: Oct 11, 2013 @ 09:51 AM             Msg. 1 of 5
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


Posted: Oct 11, 2013 @ 10:10 AM             Msg. 2 of 5
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


Posted: Oct 11, 2013 @ 10:42 AM             Msg. 3 of 5
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


Posted: Oct 11, 2013 @ 11:02 AM             Msg. 4 of 5
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


Posted: Oct 11, 2013 @ 12:16 PM             Msg. 5 of 5
Thank you. That is quite helpful.

David Jarmuth