create_currency_api_session
Documentation for eth_defi.currency_api.session.create_currency_api_session function.
- create_currency_api_session(retries=5, backoff_factor=0.5, pool_maxsize=16)
Create a
requests.Sessionconfigured for the Exchange API.Installs an
LoggingRetrypolicy with exponential backoff that retries on429and5xxresponses, and a connection pool sized for the threaded scanner. Host fallback (jsDelivr → pages.dev) is handled by the client, not here.- Parameters
- Returns
A configured session. Safe to share across threads.
- Return type
requests.sessions.Session