@vinaykush

Attaching a sample code for generating TOTP using pyotp.

import pyotp as tp

Define your secret key

secret_key = "SECRET CODE HERE" # Replace this with your actual secret key

Generate TOTP

totp = tp.TOTP(secret_key)
current_otp = totp.now()

Regards,
SmartAPI Team