Error while logging to XTS-TradeHull "cannot access local variable 'response' where it is not associated with a value"

I am trying to login to Jainam prop account on XTS C server. I am getting the following error.
UnboundLocalError: cannot access local variable ‘response’ where it is not associated with a value
ERROR:2026-03-14 11:53:39,290:MainThread:Failed to initialize XTS TradeHull as: cannot access local variable ‘response2’ where it is not associated with a value

Hi @vishal_rajgor ,

Had you created Jainam XTS Api keys?

Hello Priya, I have the API keys created, I am able to login to Quantman using the same interactive & market data keys.

Hi @vishal_rajgor ,

Send the login function code to check . Which codebase are you using ?

Make sure your using this url’s to login :

  • Root URL: http://ctrade.jainam.in:3000
  • Web Terminal URL: http://ctrade.jainam.in:3000/#!/app
  • API Access URL: http://ctrade.jainam.in:3000/dashboard#!/login

SYMPHONY C URL

Hostlookup_ https://smpc.jainam.in:14543/hostlookup

Market Data URL_ https://smpc.jainam.in:14543/apibinarymarketdata

Base URL_ https://smpc.jainam.in:14543
These are provided by the Broker.
#==================================================
from XTS_Tradehull import Tradehull

tsl = Tradehull(interactive_key=“your_interactive_key”,interactive_secret=“your_interactive_secret”,market_key=“your_market_key”,market_secret=“your_market_secret”,client_code=“your_client_code”, root_url = ‘root_url_provided_by_brocker’
)
#==================================================

Hi @vishal_rajgor ,

Do try and use this below links in the config file -

Root URL: http://ctrade.jainam.in:3000
Web Terminal URL: http://ctrade.jainam.in:3000/#!/app
API Access URL: http://ctrade.jainam.in:3000/dashboard#!/login

Even I am getting the same error in XTS.

my broker is Arhamshares.

Hi @sagarjajal ,

Share a screenshot of the error so we can check it.