Unable to place SENSEX option orders

shankar1318
shankar1318 edited August 2023 in Python client
Hi, I am getting below error from python client when trying to place sensex options orders. I am correctly specifying the exchange as "BFO" and I do have the segment activated. I am also able to place orders manually through kite web.

BFO: is disabled for your account. You can activate the segment on [Console.](https://console.zerodha.com/account/segment-activation) .
  • sujith
    Can you private message the client id and api_key? We will check and get back to you.
  • shankar1318
    shankar1318 edited August 2023
    Hi Sujith, issue was with my code. I was adding a ":" by mistake like in quotes call to BFO. It started working after I removed it. However, I feel the error message could be improved like say "This isn't a valid segment" instead of saying inactive segment which isnt true.
This discussion has been closed.