Official OddsPapi Python SDK with async WebSocket support. Stream realtime sports betting odds and integrate with your Python trading systems and analytics.
websockets
import asyncio, json, websockets async def main(): async with websockets.connect("wss://v5.oddspapi.io/ws") as ws: await ws.send(json.dumps({ "type": "login", "apiKey": "YOUR_API_KEY" })) async for msg in ws: print(msg) asyncio.run(main())