Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

SubscribeToOrderUpdate for FTXTrigger data #37

Open
mircofx opened this issue Oct 20, 2022 · 0 comments
Open

SubscribeToOrderUpdate for FTXTrigger data #37

mircofx opened this issue Oct 20, 2022 · 0 comments

Comments

@mircofx
Copy link

mircofx commented Oct 20, 2022

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,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant