Is there any onTrade callback on the platform similar to "on_ticks" callback. If there is none, how do i get trades? Do I need to keep polling my position and take difference of positions at (t-1) vs position at (t) to find trades?
Thanks Rakesh. Can you also share the data structure that one gets on trade_events? I found this: Tick structure (passed to the on_ticks callback), but it seems that this is the data structure of market data event. Can you please share a similar data structure for trade_event?
By trades, do you mean placed order?
If yes, you can then you can use
on_order_update
callback. Check documentation here.will
on_order_update
be called when my standing order is hit at the exchange?Can you also share the data structure that one gets on trade_events?
I found this:
Tick structure (passed to the on_ticks callback)
, but it seems that this is the data structure of market data event. Can you please share a similar data structure for trade_event?You don't get trade data structure but you will receive order update like this.