Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant