Author |
Topic: Order Changed Events - limit price, quantity (2 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
GJulius427 Posts: 1 Joined: Aug 24, 2015 |
Hi, I can see the events get fired for OnStateChanged & OnAvgPositionChanged so I have the basic mechanism in place.
What I can't seem to find is a way to track when an order gets modified. I am monitoring the account with my program. The OEC Trader is placing the orders and doing the modifications. My program is only for monitoring what happens. I can see the order get placed and transition from Unknown to Waiting. I can see when the order gets cancelled. I cannot see when the order is "moved" from one price to another or when the quantity of the order is adjusted. What event(s) do I use to track modifications such as this? Thanks, -g Greg Julius |
||||
NShine Posts: 36 Joined: |
Please refer to the "Advanced API Example" in our Samples.
http://futures.gaincapital.com/trading/api/documentation.cfm If you run this project concurrently with OEC Trader, you can see how modified orders are detected through the OnCommandUpdated event. Check OrderListControl.cs, you'll want to use this event in a way similar to how you have implemented OnOrderStateChanged and OnAvgPositionChanged. |
||||