areed1192 / interactive-broker-python-api

A python packaged used to interact with the Interactive Brokers REST API.
MIT License
389 stars 124 forks source link

Unable to create session due to validation URL failing. #29

Open sandeepsinghal opened 3 years ago

sandeepsinghal commented 3 years ago

The following error is received when I am running the "ib_client.create_session()" call .. The authentication is successful and then some APIs are working fine if I try directly on the browser. For instance : https://localhost:5000/v1/api/iserver/scanner/params

What might have happened is that Interactive Brokers have stopped supporting the "fundamentals" api which was undocumented in the first place ?

_Would you like to make an authenticated request (Yes/No)? Yes


BAD REQUEST - STATUS CODE: 404 RESPONSE URL: https://localhost:5000/v1/portal/fundamentals/landing/265598?widgets=news&lang=en RESPONSE HEADERS: {'Date': 'Sat, 07 Aug 2021 18:16:02 GMT', 'Server': 'Apache', 'x-response-time': '0ms', 'Content-Type': 'text/html;charset=utf-8', 'Vary': 'Origin', 'Keep-Alive': 'timeout=5, max=200', 'Connection': 'Keep-Alive', 'Transfer-Encoding': 'chunked'} RESPONSE TEXT:

Resource not found

--------------------------------------------------------------------------------_

syntaxsdev commented 2 years ago

Not necessarily. Logging in with paper trading works just fine - just not with a regular account.