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. 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.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| brokapi-0.1.0a2.tar.gz | 1.2 MB | Without provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| brokapi-0.1.0a2-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| brokapi-0.1.0a2-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.0a2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| brokapi-0.1.0a2-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
| brokapi-0.1.0a2-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 44.0 MB
Release files / brokapi-0.1.0a2.tar.gz
| Download URL | brokapi-0.1.0a2.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60358362137981f607dc94ebba1e441e92c8d8d10b87b4b01b8e24633816169a
|
|
BLAKE2b-256 checksum How to use checksums |
d9dcb693836bd6435170b9ab6bef92522c141d0a35d8eab35615a8c6c88be3bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / brokapi-0.1.0a2-cp310-abi3-win_amd64.whl
| Download URL | brokapi-0.1.0a2-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 9.5 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f9137b27e18d5d1f014856de0f7525859fa2967fe1b890034c22a75a34f36e67
|
|
BLAKE2b-256 checksum How to use checksums |
8ea4eb4851931d7643f79714f707bad6b38c7f63d0949335c75d27ee81b51062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / brokapi-0.1.0a2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | brokapi-0.1.0a2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 8.7 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
606f1e2fe2adae371dd5c1de05f04787038b8930199999859e8ff1842fe2a2b7
|
|
BLAKE2b-256 checksum How to use checksums |
b2c5faad5775ba15a0b8be5deba6a44fa57ccb444e135a4cf399639bc3483c43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / brokapi-0.1.0a2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | brokapi-0.1.0a2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 8.3 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
4d3222434ec37fbc6a004b360b2daa688cded8ccd7be29bf2d66700821c987e6
|
|
BLAKE2b-256 checksum How to use checksums |
03a710417e56d59eddd54ff7c768095285a2dd70f824b1a2b0d24551f5c51fa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / brokapi-0.1.0a2-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | brokapi-0.1.0a2-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 8.0 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9579239dee61fa2cfda7df692b2d258046386d83c923ff0ac86167c6e950e493
|
|
BLAKE2b-256 checksum How to use checksums |
f4d12cc63276d646530347dde17eeaec295c0fda5aaed15c1fc6f6dc482016a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / brokapi-0.1.0a2-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | brokapi-0.1.0a2-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 8.3 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
02e60a563f44f8f746276cd70009b2a18f45bb8a5a9293970deb4ea73a426343
|
|
BLAKE2b-256 checksum How to use checksums |
5aa5df6977c1022ebe367a5271626c17b9379abfa04fde41dcf23021ea29c293
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Security for brokapi 0.1.0a2
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.