I have a pending INTRADAY sell LIMIT order, using fyers.modify_order(data=data) where data is
data = {
"id":orderId,
"type":2
}
I am tried to modify it to market order, its giving error 'Invalid order id', I rechecked the order id its fine. I am able to change the price using the API and same orderId. Hence orderId is not the issue.
This is the data for the trade which I want to modify to market order
{
exchange: 'NSE',
symbol: 'ONGC-EQ',
type: 1 #'LIMIT',
side: -1 #'SELL',
quantity: 1,
tradedQuantity: 0,
tradedPrice: 0,
productType: 'INTRADAY',
limitPrice: 187,
stopPrice: 0,
currentPrice: 185,
status: 'PENDING',
id: 'xxxxx' #orderId,
message: '',
token: '10100000002475'
}
What am I missing?
How to convert a pending INTRADAY sell order to market order.
8 replies