Errors that belong to no broker
Python exceptions in trading API work
10 entries decoded. These are exceptions from Python's standard library that a program calling a trading API meets when the network, the reply or its own tasks go wrong. 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: The Python Standard Library documentation.
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
10 entries
Raised in your own program.
asyncio.The operation has been cancelled.CancelledError asyncio.A deprecated alias of TimeoutError, raised when the operation has exceeded the given deadline.TimeoutError BrokenPipeErrorA subclass of ConnectionError, raised when trying to write on a pipe whose other end has been closed, or on a socket that has been shut down for writing.ConnectionRefusedErrorA subclass of ConnectionError, raised when a connection attempt is refused by the peer.ConnectionResetErrorA subclass of ConnectionError, raised when a connection is reset by the peer.json.A subclass of ValueError with extra attributes: the message, the document being parsed, and the position, line and column where parsing failed.JSONDecodeError socket.A subclass of OSError raised for address related errors by getaddrinfo() and getnameinfo().gaierror ssl.A subclass of SSLError raised when certificate validation has failed.SSLCertVerificationError ssl.Raised to signal an error from the underlying SSL implementation, which is currently the OpenSSL library.SSLError TimeoutErrorRaised when a system function timed out at the system level.
How to cite this
Python exceptions in trading API work. Broker API Hub, https://openbrokerapi.com/errors/python, newest check .
Where you rely on a single figure, cite the source and the checked date printed beside it as well.