API Support Forum
OEC API > Market Data > Get Margin Values
Author Topic: Get Margin Values
(2 messages, Page 1 of 1)
Moderators: VPfau
Posts: 9
Joined: Jan 24, 2022

Posted: Jul 15, 2022 @ 03:05 PM             Msg. 1 of 2
Hello good day
We are currently working with GF API and C#
We want to get the margin values of some futures symbols, but at the moment what we receive does not match what the calculator gives us.
We carry out the following process:
* gateway initialization
* OnSymbolLookupReceived event trigger
* margin request with RequestMarginCalculation
* Triggering the OnMarginCalculationCompleted event and reading the MarginCalculationResult.

and for each symbol, with a Qty:1 we get the following:



Could you guide us about this deviation of values?
Thanks in advance
Posts: 49
Joined: Aug 24, 2017

Posted: Sep 08, 2022 @ 10:33 AM             Msg. 2 of 2

The difference between the Trader calculation and yours is that you have added a HypoOrder, where Trader had none.