Skip to main content

Python SDK for the 3kk0 unified streaming API

Project description

kk0 SDK

A minimal Python client for the 3kk0 unified WebSocket stream.

Quickstart

from kk0 import Stream
import asyncio

async def main():
    async with Stream("wss://api.3kk0.com/stream") as s:
        await s.subscribe(
            channels=["trades"],
            symbols=["SOL/USDT"],
            exchanges=["binance"],
        )
        async for event in s:
            print(event)

asyncio.run(main())

The broker exposes a single /stream websocket: send a subscribe payload with the filters you care about, and the iterator yields every normalized trade, orderbook, heartbeat, or raw message that matches. Include raw=True in the subscribe call to flow through the raw-connector payload (events arrive with type == "raw" and a payload that mirrors the upstream exchange data). Adjust depth and other filters as needed for your workload.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kk0-0.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kk0-0.1.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file kk0-0.1.2.tar.gz.

File metadata

  • Download URL: kk0-0.1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for kk0-0.1.2.tar.gz
Algorithm Hash digest
SHA256 39021e91c94a12e3795de5f11888c385965cab6f74a66306a57fa3d5a93ae2cc
MD5 f7f1e49e0232ac2c3be1123a3250ccd9
BLAKE2b-256 9f4198e587c3dfaf9438576ecdb7e41eded58788c5c7afd37bedf4ee7f27fd2e

See more details on using hashes here.

File details

Details for the file kk0-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: kk0-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for kk0-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e14f118c5e162d05ee2e2b44a1ab14c827e5d87673230df378c179822babd8de
MD5 e5e1f618235d2388f2521e9ae521fe56
BLAKE2b-256 3db4a7e33eb6da38fb6af63a1d4e87227d31c54a5ee6057b100d38eb4cf7cdf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page