investfly.api.RestApiClient
HTTP transport and error type used by the public endpoint clients.
class
InvestflyApiError(builtins.Exception):
Describe a non-successful Investfly REST response.
Attributes:
- statusCode: HTTP response status.
- responseBody: Parsed JSON or text returned by the server, when available.
class
RestApiClient:
Shared HTTP transport used by the endpoint-specific clients.
Most users should start with InvestflyApiClient. Use this class directly when a
supported endpoint does not yet have a typed convenience method.
RestApiClient( baseUrl: str, logEnabled: bool = False, verifyTls: bool | str = True, timeout: float = 10.0, session: requests.sessions.Session | None = None)
Create a transport for one Investfly API root.