Errors that belong to no broker
Requests and urllib3 exceptions explained
12 entries decoded. These are exceptions raised by the Python libraries Requests and urllib3, which many trading API clients are built on. Each page says what the entry means, what it means in trading API work and what to do next, and links to the place it is defined: Requests documentation, Exceptions.
Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.
Exceptions
12 entries
Raised in your own program by the library.
requests.The server declared chunked encoding but sent an invalid chunk.exceptions. ChunkedEncodingError requests.Requests describes it as a connection error having occurred.exceptions. ConnectionError requests.The request timed out while trying to connect to the remote server.exceptions. ConnectTimeout requests.An HTTP error occurred.exceptions. HTTPError requests.Requests could not decode the text into JSON.exceptions. JSONDecodeError requests.The server did not send any data in the allotted amount of time.exceptions. ReadTimeout requests.The Requests guide says the library verifies SSL certificates for HTTPS requests by default and throws SSLError when it is unable to verify one.exceptions. SSLError requests.The request timed out.exceptions. Timeout requests.Too many redirects.exceptions. TooManyRedirects urllib3.Raised when the maximum number of retries is exceeded.exceptions. MaxRetryError urllib3.Raised when urllib3 fails to establish a new connection.exceptions. NewConnectionError urllib3.Raised when something unexpected happens in the middle of a request or a response.exceptions. ProtocolError
How to cite this
Requests and urllib3 exceptions explained. Broker API Hub, https://openbrokerapi.com/errors/python-requests, newest check .
Where you rely on a single figure, cite the source and the checked date printed beside it as well.