Exceptions

exception AIORobinhoodError

Base class for all aiorobinhood errors.

exception ClientAPIError(method, url, status, response)

Indicates there was an invalid response from the Robinhood servers.

Parameters
  • method (str) – The HTTP method.

  • url (URL) – The URL endpoint.

  • status (int) – The HTTP error code.

  • response (Dict[str, Any]) – The Robinhood server’s response.

exception ClientError

Base class for all RobinhoodClient errors.

exception ClientRequestError(method, url, msg=None)

Indicates there was an issue contacting the Robinhood servers.

Parameters
  • method (str) – The HTTP method.

  • url (URL) – The URL endpoint.

  • msg (Optional[str]) – The exception message.

exception ClientUnauthenticatedError

Indicates the RobinhoodClient was used before authentication.

exception ClientUninitializedError

Indicates the RobinhoodClient was used before initialization.