API Support Forum
OEC API > Market Data > Get Margin Values
Author Topic: Get Margin Values
(2 messages, Page 1 of 1)
Moderators: VPfau
JKovalcin926
Posts: 8
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:

https://postimg.cc/nXLVkQHt

https://postimg.cc/K1sGsvz3

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


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

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