JKorf / FTX.Net

MIT License
31 stars 24 forks source link

Trigger update #10

Closed mircofx closed 3 years ago

mircofx commented 3 years ago

Hi,

How can I subscribe just to the trigger order updates on the websocket? I found the enum but I can't see where is implemented a part from submitting a new trigger order.

Like socket.SubscribeToOrderUpdatesAsync() But with trigger orders only.

Or if the same can retrieve also a property that if it's a trigger order the trigger order type is evaluated.

Thank you

mircofx commented 3 years ago

I found I can build an handler as private void HandleTriggerOrderUpdate(Clients client, DataEvent<FTXTriggerOrder> data) { //Something }

But there is no method in the library, such as: socketClient.SubscribeToOrderUpdatesAsync(data => HandleOrderUpdate(data)); There should be also a : socketClient.SubscribeToTriggerOrderUpdatesAsync(data => HandleTriggerOrderUpdate(data));

What do you think about it?

JKorf commented 3 years ago

Well sure, but the API doesn't offer that, so I can't provide that in the library

mircofx commented 3 years ago

Correct. I saw it was lacking in the API doc from FTX unfortunately. Thanks