triggered SL-M order shown as ‘type’: 1 in orderbook for ‘stopPrice’ is > 0 but it should be type 2 as market order a per Fyers documentation
{‘clientId’: ‘XXXX’, ‘exchange’: 10, ‘fyToken’: ‘101000000014947’, ‘id’: ‘25052600030308’, ‘instrument’: 0, ‘offlineOrder’: False, ‘source’: ‘API’, ‘status’: 2, ‘type’: 1, ‘pan’: ‘XXXX’, ‘limitPrice’: 796, ‘productType’: ‘INTRADAY’, ‘qty’: 1, ‘disclosedQty’: 0, ‘remainingQuantity’: 0, ‘segment’: 10, ‘symbol’: ‘NSE:MOTILALOFS-EQ’, ‘description’: ‘MOTILAL OSWAL FIN LTD’, ‘ex_sym’: ‘MOTILALOFS’, ‘orderDateTime’: ‘26-May-2025 09:27:33’, ‘side’: 1, ‘orderValidity’: ‘DAY’, ‘stopPrice’: 796, ‘tradedPrice’: 796, ‘filledQty’: 1, ‘exchOrdId’: ‘1200000004443769’, ‘message’: ’ ', ‘ch’: 6.25, ‘chp’: 0.8026712900532974, ‘lp’: 784.9, ‘orderNumStatus’: ‘25052600030308:2’, ‘slNo’: 11, ‘orderTag’: ‘2:Untagged’}
But below is the documentation
Stop Order / SL-M
- type: 3
- A stop order is designed to limit losses on a position. It becomes a market order when the stopPrice is reached. The stopPrice is the trigger price at which the market order will be placed.
- The stopPrice must not be higher than the Last Traded Price (ltp) for a sell order and not lower than the ltp for a buy order.
is this a bug or something i am missing, pls guide.