Skip to main content

soritrading-watch-together (Python)

pip install soritrading-watch-together

asyncio, standard library only. Python 3.8+. The import name is watch_together.

import asyncio
from watch_together import connect

async def main():
    api = await connect(
        rest={"url": "http://127.0.0.1:27719", "token": open("local-api.token").read().strip()},
        ws={"url": "ws://127.0.0.1:27720/v1", "token": open("ws-api.token").read().strip()},
        name="my-bot",
        uses=[{"ex": "binance", "sameKey": True, "sameHost": True}],
    )
    print("transport:", api.transport)          # 'ws' or 'rest' - what is actually in use

    api.on("signal", lambda s: print("signal", s["seq"], s["signal"]["sym"]))
    api.guard.on("binance", lambda e: print("binance is now", e["level"], e["why"]))

    while True:
        await api.guard.clear("binance")          # waits while 'hard' (bounded by the lease)
        ...                                       # your own background calls
        await api.report_usage("binance", 5)      # optional: shown to the agent as `external`
        await asyncio.sleep(1)

asyncio.run(main())
  • guard.level(ex) is free, soft, hard or unknown. unknown means the agent has no control plane (older agent) or no state has been received yet — it is never reported as free. api.tracker.unsupported tells the two apart.
  • guard.clear() never blocks on unknown.
  • Errors are ApiError with a machine-readable code (and reason for not-contributing). Read codes, not message text.

Tests: python3 -m unittest discover -s tests runs the shared vectors in ../conformance.

Metadata

Release files for soritrading-watch-together 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for soritrading-watch-together 0.1.1
File Size Uploaded Provenance Actions
soritrading_watch_together-0.1.1.tar.gz 13.4 kB With provenance Details for soritrading_watch_together-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for soritrading-watch-together 0.1.1
File Interpreter ABI Platform Actions
soritrading_watch_together-0.1.1-py3-none-any.whl Python 3 none any Details for soritrading_watch_together-0.1.1-py3-none-any.whl

Total release size: 27.4 kB

Release files / soritrading_watch_together-0.1.1.tar.gz

Download URL soritrading_watch_together-0.1.1.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1e62c961e44f4abcbdb056d330621f7da6776afaf32e1b068efb8bf6d6c47a2b
BLAKE2b-256 checksum
How to use checksums
9ce27e74fd6781cbe94021d9442940f3b7ec2cd196387f8ddf3d7c3b3dc2f7cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / soritrading_watch_together-0.1.1-py3-none-any.whl

Download URL soritrading_watch_together-0.1.1-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ae0cad7640e5a63cd96d2c8748126f93e18b2cb59f41bf8d2633049856c8588
BLAKE2b-256 checksum
How to use checksums
fdbe71d16ee452d605e47deb0da08afb3f61099ea5ab344139e3ec048a6e3b65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for soritrading-watch-together 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for soritrading_watch_together-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page