I place Limit and SLM order via Fyers API. Sometimes the limit order or SLM order gets partly filled. What is the best way to know whether the order is partly filled or not. Additionally, is it possible to convert the limit and SLM order to market when they are triggered so that there is no issue of partly filled orders? (ie, convert order type 1 and 3 to 2 once triggered)
Partly filled orders can be verified on fyers web.
I was referring to Fyers API. I want to control the process using the API.
In api you can not view.hence i referred to ordered placed in api viewing on web
IT DOES SHOW BUT DELAYED SOMETIMES WHICH WONT HELP
This does work. But I am more looking for something that will convert my limit or slm order to market once it is triggered. By the time you read the order book and check that there is a difference between filledQty and qty, few more quantity may get filled. So depending on use case, this may not be useful.
Did you figure this out? I am also facing same issue. I think Fyers should implement webhook to update order status as soon as it is changed.
No I did not figure this out yet.
Hi @arindam_ghosh, did you figure this out yet?
If you’re ready to convert type 1 to type 3, you might as well place it as type 3. This is because if you are using type 3, you need to just mention a stop price which will act as a trigger. As soon as the stop price is touched, all orders are placed as market orders.
If I bought 1000 stocks of a company A at 150 and if I place an SLM (or type 3) order at 140, the moment 140 is touched, all orders are sold irrespective of the price.
Also, as far as I know, you can’t modify the order type of an order in Fyers. You got to cancel the existing order and place a new order if you want to use a different order type. (Just do this experiment on fyers web and check).
Hope this is helpful.
I’m using type 3 order type (Stop Order). The problem is supposed if I place 100 stocks orders at 500 to sell but few stocks execute at 500 and few at 499,498.5…etc so I’m using stop-limit order.
Thanks for your quick suggestion.
Yes. This can happen. Slippage can be expected because it is a market order. The core idea was to get the fill.
Well issue is not with the type of order but more on the lines that how do you come to know immediately if the SLM order is filled or not. Do you keep checking status of the order in a loop or is there any webhook which will update you once the order is filled(in this case no need to make http request again and again)
An SLM order will get filled immediately. If you are using SL-L or type 4 order, that’s where you need to do the checking. As of now, the checking bit may not be feasible because of the limitation of the API of a maximum 100 pings/minute.
I’m not aware of how the webhook works. If you can elaborate, we can have a discussion.
You need to request every 1 minute because there is no webhook service available currently and need to specify the condition, once the order is executed so that it won’t request if the condition satisfies. Currently, there is less percentage of people using Algo Trading so there isn’t much burden on the server and once more and more joins API then webhook will be perfect service. This is what I feel.
