API Support Forum
OEC API > API Support > Margin calls
Author Topic: Margin calls
(7 messages, Page 1 of 1)
Moderators: VPfau
FGingras
Posts: 36
Joined: Oct 15, 2007


Posted: Nov 06, 2007 @ 12:42 PM             Msg. 1 of 7
Is there a way to detect margin calls? Is there a API.Order property that indicates this from the OnOrderFilled event?

Francis
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Nov 06, 2007 @ 01:26 PM             Msg. 2 of 7
there is no way to detect margin calls in the OEC API.
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Nov 08, 2007 @ 12:40 PM             Msg. 3 of 7
Will there be in the future? This would be nice to know. What does happen when there is a margin call?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Nov 08, 2007 @ 01:36 PM             Msg. 4 of 7
margins calls will not be included in the API in the near future.

For more information on what does happen when there is a margin call, please conact our trade desk.

Trade Desk Phone: 800-920-5808 > Option 1
FGingras
Posts: 36
Joined: Oct 15, 2007


Posted: Dec 09, 2007 @ 10:13 PM             Msg. 5 of 7
I have a suggestion: currently we get "risk warning" messages in the OnErrror event. We could use those messages to detect margin calls if you sent the account string in the text.

Currently the API does not send the account string so we have no way of identifying which account the risk warning is for.

Detecting margin calls would allow us to disable automated trading.

What currently happens is the OEC risk system disables the account for the day while our server keeps trying to send hundreds of orders because we have no way to know there was a margin call and this annoys your order desk.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Dec 10, 2007 @ 03:29 PM             Msg. 6 of 7
Unfortunately, we are not able to provide this information at this time.

An automated trader could watch for orders rejected with "order breaks limits" comment for detecting risk warnings, with optional high watermark number of consecutive rejections.
FGingras
Posts: 36
Joined: Oct 15, 2007


Posted: Dec 10, 2007 @ 03:48 PM             Msg. 7 of 7
Yes but that same text is also used to reject orders that are above the account risk limit (buy 4 but account is limited to 2); it does not mean the account is in a margin call so we cannot use it.