Open mircofx opened 1 year ago
Hi,
I've established a WS connection and I need to get the type for trigger orders out of the DataEvent object I receive.
The problem is DataEvent is of type FTXOrder and not FTXTriggerOrder.
So that when I receive a DataEvent data, I got only data.Data.Type which is an OrderType [Market, Limit].
How can I parse data also as DataEvent and check if type is valorized [take_profit, stop, trailing_stop, etc...]
Can I get it from data.OriginalData or there is another channel that handles DataEvent?
Thank you,
Hi,
I've established a WS connection and I need to get the type for trigger orders out of the DataEvent object I receive.
The problem is DataEvent is of type FTXOrder and not FTXTriggerOrder.
So that when I receive a DataEvent data , I got only data.Data.Type which is an OrderType [Market, Limit].
How can I parse data also as DataEvent and check if type is valorized [take_profit, stop, trailing_stop, etc...]
Can I get it from data.OriginalData or there is another channel that handles DataEvent?
Thank you,