@shahnawaz-pe-0 SmartConnect is not using "X-API-Key" header. https://github.com/angel-one/smartapi-python/blob/main/SmartApi/smartConnect.py#L153. Correct the header and it will work.