I have observed following bug in fyers-order-updates through websocket.
When an order gets ‘TRADED’ at certain price, the web-socket update for corresponding transaction does not have ‘tradedPrice’ in the feed. But if I use API get_orders() then the response has ‘tradedPrice’ in it.
Could you please fix this bug at fyers-server-side so that I could use the feed to know the exact price of a traded-order immediately.
I am working on a complex algo-trading system in nodejs setup. I am already using “orders” event on order-socket to track current status of an individual order. I am using fyers API V3 (npm package) and I have gone through the documentation.
The ‘trades’ event as suggested has tradedPrice but its so inconvenient to unnecessarily handle on(‘trades’) event to get traded-price. The “orders” update already has all the required information like tradedQuantity, “TRADED” status etc but NOT ‘tradedPrice’. It adds more complexity If I have to handle one more event just for “tradedPrice”.
It would be very helpful if this field can be added to “orders” event.
PS: I have also tried fyersOrderSocket.on(‘trades’) but I am not receiving any feed when order is traded.
Thank you so much. I appreciate your response. We are a group of serious algo traders and currently evaluating Fyers api before scaling up our trading- system. Please consider this feature request at a good priority.
I am not receiving fyersOrderData.on(‘trades’) event even when order is traded. What may be the reason? Your help appreciated.