Author |
Topic: Risk Violation (3 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
VSiron Posts: 5 Joined: Dec 05, 2020 |
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: 164 Joined: |
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: 5 Joined: Dec 05, 2020 |
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" |
||||