Websocket
Connection
import asyncio
from turbine_client.ws import TurbineWSClient
async def main():
ws = TurbineWSClient(host="https://api.turbinefi.com")
async with ws.connect() as stream:
await stream.subscribe("0xMarketId...")
async for msg in stream:
print(f"Type: {msg.type}, Market: {msg.market_id}")
asyncio.run(main())Constructor Parameters
Parameter
Type
Required
Description
Subscriptions
Convenience Aliases
Receiving Messages
Async Iteration
Single Receive
Message Types
Type
Class
Property
Description
