investfly.api.InvestflyApiClient
High-level authenticated entry point for the public Investfly REST API.
class
InvestflyApiClient:
Group the public endpoint clients behind one authenticated session.
Call login() before using endpoint clients that require authentication, then use
marketApi, portfolioApi, strategyApi, or indicatorApi for typed operations.
InvestflyApiClient( baseUrl: str = 'https://api.investfly.com', logEnabled: bool = False, verifyTls: bool | str = True, timeout: float = 10.0)
Create an API client.
Arguments:
- baseUrl: Investfly REST API root URL.
- logEnabled: Log sanitized request and response metadata when true.
- verifyTls: Requests-compatible TLS certificate verification setting.
- timeout: Per-request timeout in seconds.
Login to investfly backend.
Arguments:
- username: Username for authentication.
- password: Password for authentication.
Returns:
Session object representing authenticated session.