data = {
“symbol”:“BSE:SENSEX23SEP67200PE”,
“qty”:900,
“type”:2,
“side”:-1,
“productType”:“MARGIN”,
“validity”:“DAY”,
“offlineOrder”:False,
}
response = fyers.place_order(data=data)
print(response)
data = {
“symbol”:“BSE:SENSEX23SEP67200PE”,
“qty”:900,
“type”:2,
“side”:-1,
“productType”:“MARGIN”,
“validity”:“DAY”,
“offlineOrder”:False,
}
response = fyers.place_order(data=data)
print(response)
The symbol which you are trying BSE:SENSEX23SEP67200PE is not tradeble in the market.
Same thing you can check in web as well. Please try with another symbol which is trading. it will place.
For above symbol there is no bid and ask.
Hope it will help you thank you.
Are you able to place a market order for BSE SENSEX symbol? It is working for you?
I tried the blow. same issue. Can you please check?
data = {
"symbol":"BSE:SENSEX23SEP66300PE",
"qty":900,
"type":2,
"side":-1,
"productType":"MARGIN",
"validity":"DAY",
"offlineOrder":False,
}
response = fyers.place_order(data=data)
print(response)
Hi @venkatesh.gone.yjnmjn9j
I checked from our side. It is not working.
Thanks for reporting. I will update you when it will be fixed.
Thanks
Thank you. Please fix and update me . Appreciate it
Hi @venkatesh.gone.yjnmjn9j
This issue is fixed, You can check now and Please let us know if you still face the issue.
Now you will able to place BSE F&O orders via APIv3
Not able to place a market order. Below is the issue
{‘code’: 200, ‘message’: ‘’, ‘data’: [{‘statusCode’: 200, ‘body’: {‘code’: -99, ‘message’: ‘RED:Block Type:NonSqroff Reason:Market orders are blocked for BSE F&O contracts[ FYERS BFO MKT ]’, ‘s’: ‘error’, ‘id’: ‘23092900012950’}, ‘statusDescription’: ‘OK’}
Hi @venkatesh.gone.yjnmjn9j
Change the type from 2 to 1
because 2 is market which exchange is not allowing.
1 is limit orders and you have to give limit price as well.
Hi @venkatesh.gone.yjnmjn9j ,
You can follow this template and can change values accordingly.
data = {
"symbol":"BSE:SENSEX23SEP65800PE",
"qty":10,
"type":1,
"side":-1,
"productType":"MARGIN",
"limitPrice":90,
"disclosedQty":0,
"stopPrice":0,
"validity":"DAY",
"offlineOrder":False,
"stopLoss":0,
"takeProfit":0
}
I am able to place the limit order but not Market order. Why fyers not allowing Market orders for Sensex options.? I see i am able to place market order for Zerodha.
due to volatility in BFO option market, this is the decision taken. Sorry for that but it as beneficiary to avoid a big loss.