跳转到主要内容

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.

状态

即将推出 使用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",
            "lang": "zh"
        }))
        async for msg in ws:
            print(msg)

asyncio.run(main())