Please refer to line 11

Screenshot 2026-09-22 125916

Hi, I need help with the mode=“” section. It mentions entering TOTP, but whenever I enter the code generated by Google Authenticator, I’m unable to log in. The TOTP changes every 30 seconds, so I’m confused about whether I should enter the 6-digit code directly or use the TOTP secret/key so that it can be generated automatically. I’m also getting an error in CMD while running the code. Could you please check the error and explain what I should enter in mode=“” and how to resolve the login issue?

@Tradehull_Imran

Hi @Deepak_Gupta ,

In this line, you do not need to change mode. Keep it as mode="pin_totp".

  • client_code → Enter your Client ID
  • pin → Enter your Login PIN
  • totp_secret → Enter your TOTP Key/Secret, not the 6-digit TOTP code

Example:

client_code = "1102234455"
tsl = Tradehull(client_code, mode="pin_totp", pin="123456", totp_secret="CK32EV76JP3RZQZPFSGPIGXYFXOHBOOO")

The TOTP Key/Secret will automatically generate the 6-digit TOTP code, so you don’t need to enter the changing 6-digit code manually.

@Tradehull_Imran Sir ye Build Your Own Order Flow Software — Free & Open Source.zip kya live me bhi same show karega ? if yes how can we see bigger time frame.

Hi @Himansshu_Joshi ,

The open-source ZIP file can be used to make changes as per your requirements. The data recorded during live market hours will also be shown in the chart. You can also change the timeframe to a bigger timeframe as required.

If you want to change or add any features, you can refer to the video below for the process:

Reference Video