Official Python SDK for Longbridge Open API, providing access to trading, market data, account management, and real-time quote streaming. Current version 4.3.0, requires Python >= 3.8, with regular releases.
pip install longbridgeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize client with credentials from environment variables.
Change import from 'from longbridge.openapi import Longbridge' to 'from longbridge import Longbridge'.
Use the on_token_refresh callback in Config to refresh tokens automatically.
Instantiate Longbridge with a Config object instead of calling connect().
No dependency data recorded yet.