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

Metadata

Release files for brokapi 0.1.0a4

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

Built distributions (wheels)

Table of built distributions (wheels) for brokapi 0.1.0a4
File
brokapi-0.1.0a4-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
brokapi-0.1.0a4-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.0a4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
brokapi-0.1.0a4-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
brokapi-0.1.0a4-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 54.2 MB

Release files / brokapi-0.1.0a4.tar.gz

Download URL brokapi-0.1.0a4.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c7a9be42587dd9c10473dfc76d888b25e9449f7f27e751796f9bb54cf230ccc6
BLAKE2b-256 checksum
How to use checksums
4d4bdd61073fdb3aaeece1fce93ae8f95184fa311657f0065a48f4963976c54f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

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

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

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

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

Download URL brokapi-0.1.0a4-cp310-abi3-macosx_11_0_arm64.whl
Size 9.9 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
17100a6d2bc4483e4ff44b6f9ef1ac90e6a25efc8e335face060c8bd6e12a833
BLAKE2b-256 checksum
How to use checksums
0510b9859084f6986c008bc8033d46e4338cad7b41ad0861142a3f29088b2530
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

Security for brokapi 0.1.0a4

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