Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

brokapi for Python

One interface to the APIs of Russian brokers and crypto exchanges: market data, orders, reconciliation and rate limits. Supported now: BCS, T-Bank, Finam, ALOR and Bybit. A thin layer over the Rust core of brokapi: asyncio for the events, decimal.Decimal for money, the same errors and the same rules as the core.

Open alpha. The interface can change before the beta. Read "Before you trade with real money" first (in Russian): https://brokapi.ru/docs/before-live.html.

import asyncio
import brokapi

async def main():
    client = await brokapi.connect("bcs")  # BCS_REFRESH_TOKEN from the environment
    sber = await client.instrument("SBER")
    book = await client.order_book(sber, depth=5)
    print(book.bids[0].price, book.asks[0].price)
    await client.close()

asyncio.run(main())

Stop orders, client.raw() (any method of a broker's API by name) and the event log with replay (brokapi.record) work as in the Rust library.

Documentation: https://brokapi.ru/docs/python/ (in Russian). For AI agents that write code with the package: the index in text, https://brokapi.ru/docs/python/llms.txt (and the whole book as one file, https://brokapi.ru/docs/llms-full.txt). Licence: MIT or Apache-2.0.

Metadata

Release files for brokapi 0.1.0a8

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

Source distribution (sdist)

Source distribution for brokapi 0.1.0a8
File Size Uploaded Provenance Actions
brokapi-0.1.0a8.tar.gz 1.7 MB Without provenance Details for brokapi-0.1.0a8.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for brokapi 0.1.0a8
File Actions
brokapi-0.1.0a8-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for brokapi-0.1.0a8-cp310-abi3-win_amd64.whl
brokapi-0.1.0a8-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for brokapi-0.1.0a8-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
brokapi-0.1.0a8-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for brokapi-0.1.0a8-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
brokapi-0.1.0a8-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for brokapi-0.1.0a8-cp310-abi3-macosx_11_0_arm64.whl
brokapi-0.1.0a8-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for brokapi-0.1.0a8-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 59.4 MB

Release files / brokapi-0.1.0a8.tar.gz

Download URL brokapi-0.1.0a8.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
f5826d800dfe57e23fa2a05f06a38f0902b141336f69f24eb969773d902f1890
BLAKE2b-256 checksum
How to use checksums
7b7a7cba662f4eef2d76354346c03726988eb8a0d8b4ac4c36a17eb35a4c5420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / brokapi-0.1.0a8-cp310-abi3-win_amd64.whl

Download URL brokapi-0.1.0a8-cp310-abi3-win_amd64.whl
Size 13.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1c9389f242b3b64b468da2066e9eeb3612e9489a78ded00e7333e57469656259
BLAKE2b-256 checksum
How to use checksums
5a138a57d0cd3d2af65529331708771515c437e70d2a2aaac77b904fde2bdd87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / brokapi-0.1.0a8-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL brokapi-0.1.0a8-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 11.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
d1b2080506f94cf15d0a99ad22d10dfe208a829f6e829214133c4a8dccc2ba75
BLAKE2b-256 checksum
How to use checksums
11cfa8937fbe43af915ee91c6056f5e46e1736a62eb4d552181814523bcd9aec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / brokapi-0.1.0a8-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL brokapi-0.1.0a8-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 11.1 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
e25c9cebb4a2252bfbebb123b9fbfc6679ff586ad58654be310408a4dc7c4e3f
BLAKE2b-256 checksum
How to use checksums
7b982c0fa9fd41830e1a2f306425aca3173bf312e24a26c3b21e8b1076cb9631
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / brokapi-0.1.0a8-cp310-abi3-macosx_11_0_arm64.whl

Download URL brokapi-0.1.0a8-cp310-abi3-macosx_11_0_arm64.whl
Size 10.8 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
24b4e0bac7c73dbad0ef73718bc94392089bc7608ca91d02fd2d509c40321d84
BLAKE2b-256 checksum
How to use checksums
82c2e18158b1c2a8cc41bd46f397e0cea9b328e2bbc5b305a17d26f008285b9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / brokapi-0.1.0a8-cp310-abi3-macosx_10_12_x86_64.whl

Download URL brokapi-0.1.0a8-cp310-abi3-macosx_10_12_x86_64.whl
Size 11.2 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2a81a6a9c5ad923720bd03410bc63b7af524b3cc5973eb8d74dcc75169eac437
BLAKE2b-256 checksum
How to use checksums
4223c9c1d50331fabfd4592146b2ad974fb6cb21cc5c417a78dd2e71e45e7d62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Security for brokapi 0.1.0a8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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