Skip to main content

PyBinbot

Utility functions for the binbot project. Most of the code here is not runnable, there's no server or individual scripts, you simply move code to here when it's used in both binbot and binquant.

pybinbot is the public API module for the distribution.

This module re-exports the internal shared and models packages and the most commonly used helpers and enums so consumers can simply::

    from pybinbot import round_numbers, ExchangeId

The implementation deliberately avoids importing heavy third-party libraries at module import time.

Installation

uv sync --extra dev

--extra dev also installs development tools like ruff and mypy

Telegram delivery

Import TelegramDelivery from pybinbot.shared.telegram_delivery. Initialization loads the application's .env and reads TELEGRAM_BOT_KEY and TELEGRAM_USER_ID, without overriding existing environment variables. Credentials may also be passed explicitly.

Use send_once(message) for a synchronous attempt with a short timeout and no retry or cooldown. Use await send(message) for asynchronous delivery with rate-limit retries and optional spacing configured at initialization. Both use HTML formatting and disable link previews. Delivery does not persist messages. The Telegram library is installed as a dependency of pybinbot.

Publishing

  1. Save your changes and do the usual Git flow (add, commit, don't push the changes yet).
  2. Bump the version, choose one of these:
make bump-patch

or

make bump-minor

or

make bump-major
  1. Git tag the version for Github. This will read the bump version. There's a convenience command:
make tag
  1. git commit --amend. This is to put these new changes in the previous commit so we don't dup uncessary commits. Then git push

For further commands take a look at the Makefile such as testing make test

Metadata

Release files for pybinbot 1.13.8

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

Source distribution (sdist)

Source distribution for pybinbot 1.13.8
File Size Uploaded Provenance Actions
pybinbot-1.13.8.tar.gz 94.0 kB With provenance Details for pybinbot-1.13.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pybinbot 1.13.8
File Interpreter ABI Platform Actions
pybinbot-1.13.8-py3-none-any.whl Python 3 none any Details for pybinbot-1.13.8-py3-none-any.whl

Total release size: 177.1 kB

Release files / pybinbot-1.13.8.tar.gz

Download URL pybinbot-1.13.8.tar.gz
Size 94.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dede50cca53794a2f7ba055add01e5f9b2ae52ac7ef68d3ec52caec6b0f5dd6f
BLAKE2b-256 checksum
How to use checksums
0a886a1d85998a25d044951cdd951118c247ba33f4a2befb0f50a104a1f3402e
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 Nov 8, 2026.

Transparency log

Release files / pybinbot-1.13.8-py3-none-any.whl

Download URL pybinbot-1.13.8-py3-none-any.whl
Size 83.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e75395779ec2f94d2e31b6d2164a6d5d2ef32e5f9043e220d9b78c54c0c50aa3
BLAKE2b-256 checksum
How to use checksums
52c1a990e20567a654874cbb37e7fd5b22a3114b4414ead64ff5112dc1d75c5d
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 Nov 8, 2026.

Transparency log

Security for pybinbot 1.13.8

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 pybinbot-1.13.8.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 Nov 8, 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

1.13.8 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