API Support Forum
OEC API > API Support > Risk Violation
Author Topic: Risk Violation
(3 messages, Page 1 of 1)
Moderators: VPfau
VSiron
Posts: 4
Joined: Dec 05, 2020


Posted: Jun 21, 2021 @ 08:31 AM             Msg. 1 of 3
Hello everybody,

I'm trying to get event, for Risk Violatiion.
According to documentation https://gainfutures.com/GFAPI/?topic=html/9900566b-260a-4247-8326-9698b013e7b8.htm OnError send Risk violation, but i don't receive messages about that.
I aslo foud another thread about TraderError https://apisupport.gainfutures.com/Topic/Index/1340 without more success.
How get risk violation message from the api ?
VPfau
Moderator
Posts: 135
Joined: Oct 26, 2011


Posted: Jun 23, 2021 @ 08:14 AM             Msg. 2 of 3
Hello VSiron,

Thank you to bring the question up. The Risk Violation error was moved to ITraderApi interface. It can be available thru IGFClient.Traders. To get this error your user has to be a trader manager and you need subscribe to ITradersApi.TraderError event.
For regular users the rejection reason can be fetched thru order status update.

We will update our documentation soon and add the feature request to our working queue.

Thank you
Vitaliy Pfau
VSiron
Posts: 4
Joined: Dec 05, 2020


Posted: Jun 25, 2021 @ 08:15 AM             Msg. 3 of 3
Thanks Vitaliy

Unfortunatly I'm already watching event from TraderError and just receiving
"To get this error your user has to be a trader manager and you need subscribe to ITradersApi"