How chipadevteam/pocketoptionapi works
This is an async Python client for PocketOption trading. A developer supplies an SSID and requests account data, candles, or trades; the client authenticates over WebSocket, routes platform messages, and returns typed results. The package also provides persistent keep-alive connections, connection diagnostics, and error/health monitoring. The README advertises further performance capabilities, but the sampled excerpts do not establish their call paths. The SSID scraper is a separate setup tool. Edges below are limited to excerpted calls or explicit README behavior.
Main entry points: client.py Async API client · websocket_client.py WebSocket client · connection_monitor.py Connection diagnostics · get_ssid.py SSID scraper
Components 15
Trading API
- Async API client
pocketoptionapi_async/client.py - Assets and regions
pocketoptionapi_async/constants.py - Trading data models
pocketoptionapi_async/models.py - API exceptions
pocketoptionapi_async/exceptions.py - Runtime configuration
pocketoptionapi_async/config.py - Trading utilities
pocketoptionapi_async/utils.py
Connection transport
- WebSocket client
pocketoptionapi_async/websocket_client.py - PocketOption platform
- Persistent connection
pocketoptionapi_async/connection_keep_alive.py
Reliability and diagnostics
- Connection diagnostics
pocketoptionapi_async/connection_monitor.py - Error and health monitoring
pocketoptionapi_async/monitoring.py
Credential setup
- SSID scraper
tools/get_ssid.py - Browser driver setup
tools/driver.py
Other components
- API user
- User browser login
Connections 16
- API user → Async API client: requests trading data
README.md - Async API client → WebSocket client: connects and sends
pocketoptionapi_async/client.py - WebSocket client → PocketOption platform: exchanges messages
pocketoptionapi_async/websocket_client.py - WebSocket client → Async API client: emits events
pocketoptionapi_async/websocket_client.py - Async API client → Assets and regions: validates assets
pocketoptionapi_async/client.py - Async API client → Trading data models: builds results
pocketoptionapi_async/client.py - Async API client → API exceptions: raises errors
pocketoptionapi_async/client.py - Async API client → Persistent connection: manages persistence
pocketoptionapi_async/client.py - API user → Connection diagnostics: starts diagnostics
- Connection diagnostics → Async API client: checks account balance
pocketoptionapi_async/connection_monitor.py - API user → Error and health monitoring: uses resilience tools
README.md - Async API client → Error and health monitoring: uses error handling
pocketoptionapi_async/client.py - Async API client → Runtime configuration: uses configuration
- API user → Trading utilities: uses utilities
- User browser login → SSID scraper: logs in for SSID
tools/get_ssid.py - SSID scraper → Browser driver setup: configures browser
tools/get_ssid.py