> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oddspapi.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Python SDK - 异步WebSocket客户端

> 官方OddsPapi Python SDK，支持异步WebSocket。流式传输实时体育博彩赔率，并与您的Python交易系统和分析集成。

## 状态

**即将推出**

使用`websockets`的示例：

```python theme={null}
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",
            "lang": "zh"
        }))
        async for msg in ws:
            print(msg)

asyncio.run(main())
```
