Python SDK for OKX exchange API. Version 0.4.1 supports REST and WebSocket APIs, including spot, futures, and options trading. Active development.
pip install python-okxVerified import paths — ran on the pinned version, not inferred.
Initialize client with environment variables and fetch BTC-USDT ticker.
Use `api_secret_key=...` and set `flag='1'` for live trading, `flag='0'` for demo.
Call `ws.login(api_key, passphrase, secret_key, timestamp, sign)` on the WebSocket object before subscribing to private channels.
Use `from okx import OkxClient`.
No dependency data recorded yet.