Author |
Topic: Margin calls (7 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
FGingras Posts: 36 Joined: Oct 15, 2007 |
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 |
there is no way to detect margin calls in the OEC API.
|
||||
PArnoldson Posts: 154 Joined: Oct 03, 2007 |
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 |
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 |
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 |
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 |
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.
|
||||