API Support Forum
OEC API > Market Data > receive flag from Admin cancel pending order
Author Topic: receive flag from Admin cancel pending order
(2 messages, Page 1 of 1)
Moderators: VPfau
Posts: 9
Joined: Jan 24, 2022

Posted: Dec 09, 2022 @ 11:05 AM             Msg. 1 of 2
Hello, good day

We want to implement the following use cases:
-Admin Cancel
-Admin Modify
-Admin Liquidity
and recognize from the GF API that it was the admin who made the use case and not our software by client-side
Could you tell me how it could be done?

thanks for advanced
Posts: 348

Posted: Jan 04, 2023 @ 10:20 AM             Msg. 2 of 2
Sorry for the delay. The developers advised, "listen to order events: CommandUpdated, OrderConfirmed, OrderStateChanged etc."

See https://gainfutures.com/GFAPI/?topic=html/Events_T_GF_Api_Orders_IOrdersApi.htm and https://gainfutures.com/GFAPI/?topic=html/T_GF_Api_Positions_PositionChangedEventArgs.htm
Chris M