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 (BCS, T-Bank, Finam): market data, orders, reconciliation and rate limits. 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. Checked against the imitations of the brokers, not yet on live accounts. The interface can change before the beta.

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/. Licence: MIT or Apache-2.0.

Metadata

Release files for brokapi 0.1.0a1

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.0a1
File Size Uploaded Provenance
brokapi-0.1.0a1.tar.gz 1.1 MB Without provenance Details

Built distributions (wheels)

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

Total release size: 40.1 MB

Release files / brokapi-0.1.0a1.tar.gz

Download URL brokapi-0.1.0a1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
5447f28ac1654c81813afe9b7923bcbd96ea917f331d671baa6498330080f7b4
BLAKE2b-256 checksum
How to use checksums
f7fa586ac58db70ff5ceb8b0b67948072cf300270ac511ac77288ec1c54eaacd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL brokapi-0.1.0a1-cp310-abi3-win_amd64.whl
Size 8.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
92a99f98b37ca839a846fda4933a640d767a9005d907c4383efc828e70599006
BLAKE2b-256 checksum
How to use checksums
4b49769e2701a2b16319389c597ba8fcff58eeb5892c6c09b652e8f1873c03db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

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

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

Download URL brokapi-0.1.0a1-cp310-abi3-macosx_11_0_arm64.whl
Size 7.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1aa37dbe940e2c013703881198d1f07087950a57738b152954fe89306fe011d6
BLAKE2b-256 checksum
How to use checksums
d5ffa1dd68ec3f08ed491d4a6f8ca177b0d8dbce543d236355e847cf80273420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

Security for brokapi 0.1.0a1

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.

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