Hi I am learning python to backtest strategies and trying to incorporate that in my day to day trading. When I am trying to generate access token . It is giving me the following error
"HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /callback?type=login&status=success&request_token=CR64KztvTGH2e7St6oOkKDkLp9XtcQwB&action=login (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))"
HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /callback?type=login&status=success&request_token=xxxxxxxx&action=login
You seem to be using localhost as a redirect URL. Ensure it's up and running to parse the request_token from the redirect URL.