client_code = sheet.range(‘C_CODE’).value
this reads client code incorrectly, print and see its value, it would add a decimal point and 0 at the end of client id.
use this code instead
import pdb
import time
import datetime
import traceback
import talib
from Dhan_Tradehull_V2 import Tradehull
import pandas as pd
from pprint import pprint
import time
import xlwings as xw
# Excel sheet setup
wb = xw.Book("Websocket.xlsx")
sheet = wb.sheets['Strategy']
client_code = int(sheet.range('C_CODE').value)
token_id = str(sheet.range('TKN_ID').value)