investfly.api.RestApiClient

class InvestflyApiError(builtins.Exception):

Common base class for all non-exit exceptions.

InvestflyApiError(statusCode: int, message: str, responseBody: Any = None)
statusCode
responseBody
class RestApiClient:

Shared HTTP transport used by the public endpoint-specific clients.

RestApiClient( baseUrl: str, logEnabled: bool = False, verifyTls: bool | str = True, timeout: float = 10.0, session: requests.sessions.Session | None = None)
DEFAULT_TIMEOUT: float = 10.0
baseUrl
logEnabled
verifyTls
timeout
session
headers: Dict[str, str]
log
def login( self, username: str, password: str) -> investfly.models.common.Session:
def logout(self) -> None:
def doGet(self, url: str) -> Any:
def doDelete(self, url: str) -> Any:
def doPost(self, url: str, obj: Any) -> Any:
def doPostCode(self, url: str, code: str) -> Any:
@staticmethod
def getException( response: requests.models.Response) -> InvestflyApiError: